Quentin Tarantino's
The Hateful Eight
(2015)

Turns out that Oswaldo Mobray (Tim Roth), Joe Gage (Michael Masden) and Bob (Demian Bichir) were all part of the Domergue Gang there to rescue Daisy (Jennifer Jason Leigh).  The leader of the gang, Jody (Channing Tatum), is Daisy's brother and was hiding in the basement the whole time.

The only two left alive by the end of the film is  Major Warren (Samuel Jackson) and Sheriff Chris Mannix (Walton Goggins), who have gun injuries so severe that it is presumed they are going to die where they lay.

Thanks bkronbeck!

IMDB