Leaks from the Panama Papers reveal a web of intrigue about how companies got the rights to drill for oil.