If you are interested in learning more about when good people do bad things, I highly recommend The Lucifer Effect.
Of course thinking about the self would be mediated by the MOST RECENTLY evolved part of the brain. If only human beings...