Machine Learning for Malware Detection