FireEye Inc beat analysts' estimates for quarterly revenue and reported a smaller quarterly loss on Wednesday, as the cybersecurity firm's shift to a subscription-based model and cost-cutting efforts paid off.