"I'm gonna do 'er"
he intends to fuck the woman in question.
If on the other hand he says
"I'm gonna do 'im"
he intends to fuck-over the man in question.