RepairPal Certified shops can diagnose and repair your 2004 Hyundai Sonata. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.
With the work done already, I agree the most likely cause is the catalytic converter needing replacement. Exhaust is not flowing out properly causing the loss of power and the engine to choke itself under higher performance conditions.
Not running hot. Changed the plugs, wires, fuel injectors and cleaned the sensor.