Kensho: When oil rebounds these stocks soar

512038371UI046_FUEL_PRICE_H
Ulet Ifansasti | Getty Images

Oil prices are rallying on investor speculation about a potential production freeze agreement during this Sunday's crude producer meeting in Doha, Qatar. So what can you buy if the energy commodity continues to spike?

WTI crude is up 9 percent year to date and 5 percent for the month through Monday. Using Kensho, a quantitative tool used by hedge funds, CNBC Pro found the top-performing S&P 500 names when oil prices rose by at least 10 percent over a month.