mirror of
https://github.com/vee1e/capa-rules.git
synced 2026-09-01 10:58:40 +00:00
26 lines
663 B
YAML
26 lines
663 B
YAML
rule:
|
|
meta:
|
|
name: create executable heap
|
|
namespace: load-code/shellcode
|
|
authors:
|
|
- moritz.raabe@mandiant.com
|
|
scopes:
|
|
static: function
|
|
dynamic: span of calls
|
|
mbc:
|
|
- Memory::Allocate Memory [C0007]
|
|
features:
|
|
- and:
|
|
- or:
|
|
- basic block:
|
|
- and:
|
|
- api: kernel32.HeapCreate
|
|
- number: 0x40000 = HEAP_CREATE_ENABLE_EXECUTE
|
|
- call:
|
|
- and:
|
|
- api: kernel32.HeapCreate
|
|
- number: 0x40000 = HEAP_CREATE_ENABLE_EXECUTE
|
|
- optional:
|
|
- api: msvcrt.memcpy
|
|
- api: ntdll.RtlCopyMemory
|
|
- api: ntdll.RtlMoveMemory
|