This paper proposes a cooperative energy transaction model for a virtual power plant (VPP) developed as a bi-level optimization program based on the Stackelberg game in the deregulated electricity markets. The VPP integrates multiple renewable energy hubs consisting of electric vehicle charging stations with photovoltaic and battery energy storage systems. The proposed model derives co-optimized strategic decisions for the VPP operator in the day-ahead (joint active power, reserve, and reactive power) markets while considering the balancing market operation. The proposed model is reformulated as a mathematical program with equilibrium constraints (MPEC) using the Karush-Kuhn-Tucker conditions and the strong duality theorem. For an efficient solution, the MPEC is approximated as a mixed-integer linear program by applying the Fortuny-Amat transform on the complementarity and slackness conditions and the binary expansion on the bilinear terms. The uncertainties of the renewables, loads, and prices are modeled using stochastic scenarios. Finally, comparative case studies of a VPP in an IEEE 33 node active distribution network show that the proposed model improves the profit by strategic cooperative energy transactions.