A newer (2012-2016) cartoon that might match this description is Slugterra. It was shown on Disney XD.
In the world, people fight with these sort of capsule gauntlets which
allow them to shoot out these small creatures that fight mid-air
before going back into the capsule. They transform when released.
People fight with slugs, which are "kept in special cylinder-shaped cases called slug shells." When fired, they transform into Velocimorphs or Megamorphs. If two slugs are fired simultaneously and intersect, they battle, as shown in this example:
They can be picked up and re-capsuled or, if they like their 'slinger, they'll return to them voluntarily.
the villain is corrupting and using their power for the worse things.
The villian is "the nefarious Dr. Thaddius Blakk and his ghoul slugs." The red-tinged slug shown in the video above is a Ghoul Slug; Blakk has a way of corrupting slugs and turning them into ghouls.
the main character is discovering his past I think.
The main character ("Eli Shane") is attempting to follow in his father's footsteps, and perhaps to find his father, and has a diary or letters from his father that reflect the past - my memory is vague here, but I think it could easily be mistaken for "discovering his past."