SINGAPORE (Reuters) -Exxon Mobil Corp has agreed to sell its Malaysian oil and gas assets to state energy firm Petronas, exiting the country's upstream sector where it used to be a dominant producer, two people with direct knowledge of the matter said.