I think you have misunderstood the definition of corruption. That aspect of capitalism might be considered unjust, but corruption has a different meaning. The ruling class might use their gains for corrupt purposes, but that’s something that can happen in any system with a concentration of wealth and insufficient regulation, it’s not inherent to capitalism. You might want to take a look at social capitalism
I think you have misunderstood the definition of corruption. That aspect of capitalism might be considered unjust, but corruption has a different meaning. The ruling class might use their gains for corrupt purposes, but that’s something that can happen in any system with a concentration of wealth and insufficient regulation, it’s not inherent to capitalism. You might want to take a look at social capitalism