The line: "What is your major malfunction, numb-nuts?" is from the 1987 film "Full Metal Jacket". This astute war film was directed, co-written, and produced by Stanley Kubrick. The stars include Matthew Modine, R. Lee Ermey, Vincent D'Onofrio, and Adam Baldwin. The screenplay was provided by Kubrick, Michael Herr, and Gustav Hasford and was based on Hasford's novel 'The Short-Timers' (1979).

Specifically, with the above quote, Gunnery Hartman (Ermey) is asking the shabby, non-jovial question to Private Pyle (D'Onofrio) in "Full Metal Jacket". This quote features the last words from the troop's abusive drill sergeant Sgt. Hartman. Hartman's hardcore tactics have driven the recruit Gomer Pyle over the edge. Pyle is standing in the bathroom with a loaded rifle. Instead of trying to calmly talk Pyle down, Hartman hurls the above quote as verbal abuse. The crazed recruit, Pyle, answers by blowing Hartman away and then killing himself.

This movie is Stanley Kubrick's take on the Vietnam War. It follows smart-aleck Private Davis (Modine), quickly christened "Joker" by his foul-mouthed drill sergeant (Ermey). Joker and pudgy Private Lawrence (D'Onofrio), nicknamed "Gomer Pyle," will have to endure the rigors of a very hard basic training camp. Though Pyle takes a frightening detour, Joker graduates to the Marine Corps and is sent to Vietnam as a journalist, covering (and eventually participating in) the bloody Battle of Hué.

More Info: en.wikiquote.org