The firm reported profits of $8.45bn in the second quarter of the year as oil and gas prices jumped.