I have thought about how in Indiana Jones and the Kingdom of the Crystal Skull, the Soviet Union officials are the villains, but they are shown to be acting in reaction to existing United States weaponry and technology that is threatening their country and government. RedLetterMedia does good job of explaining this in their review of the movie.
However, their main goal is to use the titular skull for mind control against Earth's population.
That's interesting.
However, I think the average viewer will just associate whatever ideology the villain has with it being bad.