Automatic reverse engineering of malware emulators