Files
capa-rules/executable/resource/extract-resource-via-kernel32-functions.yml
Willi BallenthinandMike Hunhoff c1d20764ad use "span of calls" scope (#973)
* use sequence scope instead of thread scope for "static: function" rules

* use sequence scope instead of thread scope for "static: basic block" rules

* make runtime linking rules more concise

* doc: describe sequence scope

* rename "sequence" scope to "span of calls" scope

* Update anti-analysis/anti-av/check-for-sandbox-and-av-modules.yml

Co-authored-by: Mike Hunhoff <[email protected]>

* Update anti-analysis/anti-vm/vm-detection/check-for-windows-sandbox-via-device.yml

Co-authored-by: Mike Hunhoff <[email protected]>

* Update collection/get-geographical-location.yml

Co-authored-by: Mike Hunhoff <[email protected]>

* Update collection/file-managers/gather-classicftp-information.yml

Co-authored-by: Mike Hunhoff <[email protected]>

* Update collection/database/wmi/reference-wmi-statements.yml

Co-authored-by: Mike Hunhoff <[email protected]>

* Update collection/database/sql/reference-sql-statements.yml

Co-authored-by: Mike Hunhoff <[email protected]>

---------

Co-authored-by: Mike Hunhoff <[email protected]>
2025-01-29 10:27:13 +01:00

32 lines
1.0 KiB
YAML

rule:
meta:
name: extract resource via kernel32 functions
namespace: executable/resource
authors:
- [email protected]
scopes:
static: function
dynamic: span of calls
examples:
- BF88E1BD4A3BDE10B419A622278F1FF7:0x401000
- Practical Malware Analysis Lab 01-04.exe_:0x4011FC
# ntdll
- 563653399B82CD443F120ECEFF836EA3678D4CF11D9B351BB737573C2D856299:0x140001ABA
features:
- or:
- and:
- or:
- api: kernel32.LoadResource
- api: kernel32.LockResource
- api: LdrAccessResource
- optional:
- api: kernel32.GetModuleHandle
# may occur in parent function, see 0664B09A86EC2DF7DFE01A93E184A1FA23DF66EA82CAB39000944E418EC1F7B2
- or:
- api: kernel32.FindResource
- api: kernel32.FindResourceEx
- api: LdrFindResource_U
- api: LdrFindResourceEx_U
- api: kernel32.SizeofResource
- api: kernel32.FreeResource