Finish five levels with a "Silent Assassin" rank to get the M4. Alternately, complete the Shogun Showdown level with a "Silent Assassin" rank.