An Indonesian mining company has agreed to purchase a bankrupt Queensland company's assets, which include the Vulcan coal mine in the Bowen Basin.