Homelite generator help

The capacitor would be my guess, too. The electrolyte dries out over time.

Actually these would be oil filled, but they can and do go bad. (They are an AC cap)