The attorney general and reporter shall, when requested, advise the department on matters of law. The department may acquire, hold, and alienate property necessary or desirable for the performance of the functions vested in it by law. It shall have all powers necessary and proper for the carrying out of its functions, including the power to adopt and promulgate rules binding upon itself, and all persons subject to its control.