Skip to content

Commit

Permalink
find pusha popa sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tz committed Nov 23, 2020
1 parent 8078d3f commit 824bb51
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
11 changes: 11 additions & 0 deletions anti-analysis/anti-disasm/contain-anti-disasm-techniques.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
rule:
meta:
name: contain anti-disasm techniques
namespace: anti-analysis/anti-disasm
author: [email protected]
scope: file
examples:
- a5c70086b3bc4fe64f4e7a0aa452e620
features:
- or:
- count(match(contain pusha popa sequence)): 10 or more
2 changes: 2 additions & 0 deletions anti-analysis/packer/generic/packed-with-generic-packer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ rule:
- mnemonic: popa
- mnemonic: popad # vivisect
- characteristic: cross section flow
- not:
- match: contain pusha popa sequence
18 changes: 18 additions & 0 deletions lib/contain-pusha-popa-sequence.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
rule:
meta:
name: contain pusha popa sequence
author: [email protected]
lib: true
scope: function
examples:
- a5c70086b3bc4fe64f4e7a0aa452e620:0x35007200
features:
- and:
- or:
- count(mnemonic(pusha)): 2 or more
# vivisect
- count(mnemonic(pushad)): 2 or more
- or:
- count(mnemonic(popa)): 2 or more
# vivisect
- count(mnemonic(popad)): 2 or more

0 comments on commit 824bb51

Please sign in to comment.