In fact, the boss will get great satisfaction from vindictively doing you in. On the other hand, don't be ingratiating or try to befriend sociopathic bosses. When you have to approach the sociopath, do so from a substance of reason, knowledge and fairness. Sociopathic bosses are not attracted to nor particularly good at performing in highly structured situations. Negotiating is where they excel.
Sales is another.
Sociopaths are expert at dumping goods on unsuspecting buyers at high prices. But the tedium of the paperwork afterward is far too boring. This is where the employee may come in and save the day. Give the sociopath an emotionally charged predicament involving high stakes and he or she will easily exploit the situation. But astute workers should recognise that sociopathic bosses are not good at attending to details.