Fuel in Valve cover?

I recently bought a 2008 rzr 800.. They guy told me it had a holz top end about 40 hrs ago… It’s has a dual looney tuned exhaust and a power commander 5 and is snorkeled straight to the intake with a uni filter… It started blowing white smoke the other day and a rattle near the valve cover and it’s always been hard to idle when it’s cold… I reloaded the lte map and it still didn’t fix anything …I have since pulled the valve cover and it smells like gas.. I pulled the intake and there was some black soot on the flap… Any suggestions before I go deeper into the motor?