My understanding is that evolution optimizes for learning and adapting to the environment. We aren't 'programmed' to be either civil or violent, but to respond in the most advantageous way to the circumstances we find ourselves in. In a society full of dishonest people who are prone to violence, a person who tries to be honest, kind, and peaceful is at a huge disadvantage. But in a society where people are mostly honest, kind, and helpful, helping others altruistically is likely to pay off down the road, and violence or dishonesty are likely to get someone ostracized.
Mating choices will reflect and perpetuate this--in a violent, corrupt society, the physically strong, cunning, and ruthless will be the most sought after. In a more altruistic society, people who produce the most value for others (and therefore receive the most favors in kind) will have the highest status.
So evolution in this sense isn't really outside of our control. If we help each other and discourage violence, evolution will reinforce that, making society more peaceful and altruistic over time. On the other hand, if we make it so corruption and cruelty are the best ways to get ahead, people's behavior is likely get worse and worse.