Brazilian firms emerge from the gloom