are stormtroopers the bad guys?
Yes, Stormtroopers are really the bad guys. They serve a fascist power that is known for, among other things, enslaving planets and races, seizing territory and resources without legitimate claim, imposing martial law without provocation, and generally disproportionate response to civil unrest.