Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.

Commit 2e082dc

Browse files
author
Oliver Old
authored
Add disassembly and perform some cleanup
1 parent 0b734b3 commit 2e082dc

File tree

1 file changed

+12
-5
lines changed
  • volatility/plugins/overlays/windows

1 file changed

+12
-5
lines changed

volatility/plugins/overlays/windows/win10.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,19 @@ def findcookie(self, kernel_space):
228228
return False
229229
# Did not find nt!ObGetObjectType, trying with YARA instead.
230230
if model == "32bit":
231-
s = "8B FF 55 8B EC 8B 4D 08 8D 41 E8"
231+
# 8bff mov edi, edi
232+
# 55 push ebp
233+
# 8bec mov ebp, esp
234+
# 8b4d08 mov ecx, dword ptr [ebp + 8]
235+
# 8d41e8 lea eax, dword ptr [ecx - 0x18]
236+
nt_ObGetObjectType_signature = "8bff 55 8bec 8b4d08 8d41e8"
232237
else:
233-
s = "48 8D 41 D0 0F B6 49 E8"
234-
rules = yara.compile(sources = {
235-
'n': 'rule r1 {strings: $a = {' + s + '} condition: $a}'
236-
})
238+
# 488d41d0 lea rax, qword ptr [rcx - 0x30]
239+
# 0fb649e8 movzx ecx, byte ptr [rcx - 0x18]
240+
nt_ObGetObjectType_signature = "488d41d0 0fb649e8"
241+
rule = 'rule r1 {strings: $a = {%s} condition: $a}' \
242+
% nt_ObGetObjectType_signature
243+
rules = yara.compile(source = rule)
237244
scanner = malfind.DiscontigYaraScanner(
238245
address_space = kernel_space,
239246
rules = rules)

0 commit comments

Comments
 (0)