During WW II, Standard Oil did, in fact, trade with the enemy. So did several other U.S. multi-national firms.
However, these dealings were conducted through European subsidiaries, largely staffed with European nationals and charged with a fiduciary responsibility to conserve assets.
Under the circumstances, I frankly don't know what else they could've done. Should the U.S. headquarters have instructed the European subsidiary to a.) refuse to do business with Germany and German companies or b.) destroy the properties?
Refusing to do business probably wasn't feasible as a practical matter...or legally. And destroying the properties probably wasn't feasible, either.
You're not being serious, right? The availability of petroleum-based fuels and lubricants was critical center of gravity for the Nazis to have prosecuted the war. If in fact Standard Oil did not do everything they could to stop the Nazis from using their facilities and products then they committed the most serious of treasons.
How many deaths would they have facilitated to have preserved their corporate assets if that was the case?