Classifying malware to combat cyber threats