The owner of the adultery website Ashley Madison was already struggling to sell itself or raise funds for at least three years before the publication of details about its members, according to internal documents and emails that were released by hackers as part of their assault on the company in recent weeks.

Some unnamed investors wanted out, multiple attempts to close a deal or raise funds failed, and a public market debut looked increasingly unlikely, the documents show.

Avid Life Media announced on Friday that CEO Noel Biderman, who founded the website in 2001, had left the company with immediate effect, the latest sign of the wrenching impact on the company of the attack, which led to the disclosure of sensitive data about millions of clients.