Holy damn, that doesn't look very good...
The best thing you can do is grab the smallest pair of tweazers you can find, settle into a comfortable sofa or something (cause this will take a while), and try to pull them straight one by one. You'll have to be very careful when doing it, because if you break a pin or scratch it up too badly, it might be game over straight away. Once you're done with that, pop it into your cpu socket, cross your fingers and hope for the best.
Best case scenario, everything boots up fine and works exactly as it did before.
Worst case scenario, everything shorts out and your house burns down
Either way, I'm not sure how much you were selling the CPU, but it's up to you whether you want to invest the considerable amount of time into trying to fix it, without guarantee it'll actually pay off in the end.EDIT:
What's the greenish things on the top right of the second picture? Has there been a liquid spill on it? The picture is kinda blurry, but it looks kinda oxidized... Or mouldy xDEdited by Leyaena - 2/15/16 at 6:51am