Try a variety of products/methods since you don't know what it is.
Chemical: acetone, MEK, Wax & Grease Romover and see which one works best. They all should have some effect. You have to keep it wet and don't forget ample ventilation.
Mechanical: Since you're painting it anyway, try one of those 3M abrasive disks (looks like a round luffa)