Militants launched an assault on Iraq's main oil refinery early Wednesday as they pressed an offensive that has seen them capture swathes of territory, an official and a refinery employee said.