If you have completed an MBA in HR, you can refer to your course books and implement all the theoretical knowledge you have gained. Although the company may not have specific HR rules in place, organizations typically operate based on certain fundamental principles. Try to familiarize yourself with these principles. Work on establishing systems, focus on administrative tasks, understand the company's operational rules, create an employee handbook, set up leave policies, and communicate with your boss to explain the benefits of a system-based organization.
Leaving should not be seen as the only solution. If you have an opportunity, make the most of it. If the organization lacks systems, take the initiative to create them. This experience will be invaluable for your growth.
You can also refer to resources like Human Capital and follow HR-related websites for further insights.
Regards