The former SNP chief executive is facing a lengthy jail sentence after admitting embezzling funds from the party.