The reaction is likely to be:
2AB₂ + heat → A₂ + 4B
This is because Le Chatelier's principle states that a reaction in equilibrium will shift to the side that reverses the change that is introduced into the system. Therefore, heat addition is favoring the products, then the reaction is endothermic.