* The Ladykillers (2004) - He plays a con artist who pretends to be a piano teacher to pull off a heist.
* Cloud Atlas (2012) - He plays a variety of characters, including a ruthless ship captain in one segment.
* Toy Story (1995) and sequels - While Woody is generally considered a good guy, he can be selfish and stubborn at times, particularly in *Toy Story 2*.
* Saving Private Ryan (1998) - While his character, Captain Miller, is heroic, he is also shown to be capable of ruthless actions in the heat of battle.
There are some other minor roles or smaller films where he might play more ambiguous characters. However, it's fair to say that Tom Hanks is primarily known for playing good guys.