Hundreds of firefighters have spent their fourth night battling a major out-of-control bushfire north-east of Perth.