SAN FRANCISCO — Hewlett-Packard financial executives with key roles in the company’s purchase of Autonomy have lawyered up to fight accusations they knew or should have known the British software firm cooked its books.

Palo Alto-based Hewlett-Packard Co. disclosed an $8.8 billion write down in November related to the Autonomy deal, spurring a wave of shareholder litigation.