-
-
Save confile/121f2583bb637e520ca1c4cee627eaa0 to your computer and use it in GitHub Desktop.
Revisions
-
williballenthin created this gist
Jul 23, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ rule get_eip { meta: author = "William Ballenthin" email = "[email protected]" license = "Apache 2.0" copyright = "FireEye, Inc" description = "Match x86 that appears to fetch $PC." strings: // 0: e8 00 00 00 00 call 5 <_main+0x5> // 5: 58 pop eax // 6: 5b pop ebx // 7: 59 pop ecx // 8: 5a pop edx // 9: 5e pop esi // a: 5f pop edi $x86 = { e8 00 00 00 00 (58 | 5b | 59 | 5a | 5e | 5f) } condition: $x86 }