The attorney general may employ or discharge attorneys and employees to transact for the state, its departments, officials, boards, commissions, and agencies, all business of a legal or quasi legal nature, except those declared by law to be the duty of the judge of any court, or the prosecuting attorney of any county.