Diagnosing, Locating, and Removing Malware