Through surging profits or soaring share prices, the war has been a boon for some firms.