I'm no expert, but I don't believe anger is a necessary component of a sociopath. They're more commonly described as cold calculators. The quote that sums them up best is, "I don't get mad... I get even." Though it's worth noting that many sociopaths live as law-abiding, productive members of society.
Sociopathy is a personality disorder, and so much about personality appears to be hard-wired into the brain at birth. So, if sociopathy is involved, it's highly questionable whether a different environment would have made a difference.
As for behavioral differences around different groups of people, I think it comes down to why. Most of us do it because we want to fit in and belong, which is the opposite of sociopathy. A sociopath would probably be doing it to manipulate the groups in some way, or to gain some other sort of advantage.