jet is destroyed by falling debris. McClane barely survives and sees Gabriel's vehicle pull into a nearby hangar. He contacts the FBI and orders the director to storm the facility where Gabriel is situated and rescue his daughter if he doesn't make it out alive. There, Gabriel demands that Farrell decrypt the financial data. When he refuses, Gabriel shoots him in the knee and threatens to kill Lucy. McClane arrives, killing two of Gabriel's men, but he is shot in the shoulder by Gabriel's last man, Emerson. Gabriel positions himself behind McClane, putting the barrel of the gun in his shoulder wound. McClane then pulls the trigger. The bullet travels through McClane's shoulder and hits Gabriel in the chest, killing him instantly. Farrell then grabs a pistol and kills Emerson as the FBI arrives. Afterwards, McClane thanks Farrell for saving Lucy's life, who takes a romantic interest in him. Cast Bruce Willis as Detective John McClane of the NYPD. He becomes involved in stopping Thomas Gabriel after being tasked with transporting Matt Farrell to the FBI for questioning. He saves Farrell from a hit squad and the two work together to stop Gabriel's plan. Justin Long as Matthew "Matt" Farrell, a hacker-turned-white hat who now designs cyber-security algorithms. He unknowingly helped Thomas Gabriel with his plan and survives an assassination attempt with McClane's help. He uses his computer expertise to help McClane stop Gabriel's plan. Timothy Olyphant as Thomas Gabriel, a former Defense Department analyst who leads a group of cyber-terrorists systematically shutting down the entire U.S. infrastructure. Olyphant filmed his role within three weeks. Mary Elizabeth Winstead as Lucy Gennero-McClane, McClane's estranged daughter. The inclusion of McClane's daughter was previously considered for the third film, and she was in the video game Die Hard: Vendetta. Maggie Q as Mai Linh, Gabriel's second-in-command and lover Kevin Smith as Frederick "Warlock" Kaludis, a hacker who reluctantly helps McClane and Farrell track down Gabriel. Smith made uncredited rewrites to the scenes in which he appears. Cliff Curtis as Miguel Bowman, Deputy Director of the FBI Cyber Security Division. Jonathan Sadowski as Trey, Gabriel's main hacker Edoardo Costa as Emerson, Gabriel's henchman Cyril Raffaelli as Rand, Gabriel's acrobatic henchman Yorgo Constantine as Russo, Gabriel's henchman Željko Ivanek as Agent Molina, Bowman's right hand man. Christina Chang as Taylor Len Wiseman as the F-35B pilot (cameo) Additional characters include Gabriel's henchmen: Chris Palmero as