Using Machine Learning to Detect Malware