Genie is a boss who helps Jafar during his battle with Sora and friends during Kingdom Hearts. Genie's loyalties lie with Aladdin, but after Jafar acquired the magic lamp, he used a wish to have the Genie aid him in battle.
As a nearly omnipotent being, Genie cannot actually be defeated, or even really fought. He acts as a guard for Jafar, and will attack Sora when he gets too close to him, but as his loyalties still lie with Aladdin, he will release restorative orbs afterwards. The only solution is to simply avoid Genie and go straight for Jafar, but if you could use the orbs, provoke an attack from Genie but dodge it.
The orbs Genie drops are: