When malware learns to think