joyce8/EMBER2024-capa huggingface dataset:
Function at 0x132f0
Capabilities:
Attach user process memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x19348
push 0x128a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov edx, dword [ebp + 8]
add edx, dword [0x1b9f4]
mov eax, dword [edx]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx ecx, al
test ecx, ecx
jne 0x13363
mov dword [ebp - 0x40], 0xc0000141
jmp 0x133a4
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x38]
mov ecx, dword [edx + 0x3c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
jne 0x133a4
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x44]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
jne 0x133a4
mov dword [ebp - 0x40], 0xc0000141
mov dword [ebp - 4], 0xffffffff
jmp 0x133cd
cmp dword [ebp - 0x40], 0
jl 0x13429
movzx edx, word [ebp - 0x20]
shr edx, 1
cmp edx, dword [ebp + 0x10]
jbe 0x13405
mov eax, dword [ebp + 0x10]
lea ecx, [eax + eax - 2]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov word [edx + ecx*2 - 2], 0
jmp 0x13429
movzx eax, word [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
movzx eax, word [ebp - 0x20]
shr eax, 1
mov ecx, dword [ebp + 0xc]
mov word [ecx + eax*2], 0
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x13450
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea ecx, [ebp - 0xc]
push ecx
push 4
mov edx, dword [ebp - 0x14]
push edx
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xc0000004
jne 0x134c0
mov eax, dword [ebp - 0xc]
add eax, 0x1000
mov dword [ebp - 0xc], eax
push 0x73745553
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x134be
mov eax, 0xc0000001
jmp 0x135f6
jmp 0x134ce
cmp dword [ebp - 0x10], 0
jge 0x134ce
mov eax, dword [ebp - 0x10]
jmp 0x135f6
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
cmp dword [ebp - 0x10], 0xc0000004
jne 0x13553
push 0x73745553
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 8]
shl eax, 0xc
mov dword [ebp - 0xc], eax
push 0x73745553
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x13531
mov eax, 0xc0000001
jmp 0x135f6
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x134ec
cmp dword [ebp - 0x10], 0
jge 0x1355e
jmp 0x135e4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x135e4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x38]
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
movzx ecx, word [ebp - 0x1c]
test ecx, ecx
jle 0x135c6
cmp dword [ebp - 0x18], 0
je 0x135c6
mov edx, dword [ebp + 8]
push edx
call sub.ntoskrnl.exe_wcslen
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.ntoskrnl.exe__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x135c6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x44]
push eax
call fcn.00012bf0
cmp eax, dword [ebp + 0x10]
jbe 0x135c6
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x44]
mov dword [ecx], eax
jmp 0x135e4
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0
jne 0x135d7
mov dword [ebp - 4], 0
jmp 0x135e2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add eax, dword [edx]
mov dword [ebp - 4], eax
jmp 0x13564
push 0x73745553
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x13600
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea ecx, [ebp - 0xc]
push ecx
push 4
mov edx, dword [ebp - 0x14]
push edx
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xc0000004
jne 0x13670
mov eax, dword [ebp - 0xc]
add eax, 0x1000
mov dword [ebp - 0xc], eax
push 0x73745553
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1366e
mov eax, 0xc0000001
jmp 0x13792
jmp 0x1367e
cmp dword [ebp - 0x10], 0
jge 0x1367e
mov eax, dword [ebp - 0x10]
jmp 0x13792
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
cmp dword [ebp - 0x10], 0xc0000004
jne 0x13703
push 0x73745553
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 8]
shl eax, 0xc
mov dword [ebp - 0xc], eax
push 0x73745553
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x136e1
mov eax, 0xc0000001
jmp 0x13792
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x1369c
cmp dword [ebp - 0x10], 0
jge 0x1370b
jmp 0x13780
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x13780
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x38]
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
movzx ecx, word [ebp - 0x1c]
test ecx, ecx
jle 0x13762
cmp dword [ebp - 0x18], 0
je 0x13762
mov edx, dword [ebp + 8]
push edx
call sub.ntoskrnl.exe_wcslen
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.ntoskrnl.exe__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x13762
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x44]
mov dword [edx], ecx
jmp 0x13780
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x13773
mov dword [ebp - 4], 0
jmp 0x1377e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add ecx, dword [eax]
mov dword [ebp - 4], ecx
jmp 0x13711
push 0x73745553
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x13f60
Capabilities:
Find process by pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x13fbe
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.ntoskrnl.exe_ObOpenObjectByPointer
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x13fb5
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwTerminateProcess]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x14c30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x13fd0
push 0
push 0
push 0
push 0x1fffff
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x14ca4
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x14ca4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x14d10
Capabilities:
Find process by pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov ecx, 0x1b854
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov byte [ebp - 1], al
push 0x1ba00
call fcn.000110b0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x14d47
mov dword [ebp - 8], 0xc000009a
jmp 0x14d87
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0xc]
add edx, 0xc
push edx
mov eax, dword [ebp + 8]
push eax
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x14d79
mov ecx, dword [ebp - 0xc]
push ecx
push 0x1ba00
call fcn.00011120
jmp 0x14d87
mov edx, dword [ebp - 0xc]
push edx
push 0x1b844
call fcn.00011070
mov dl, byte [ebp - 1]
mov ecx, 0x1b854
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x14e00
Capabilities:
Find process by pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
call fcn.000142c0
test eax, eax
je 0x14e21
mov eax, 0xc00000bd
jmp 0x14e9c
mov ecx, 0x1b868
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov byte [ebp - 5], al
push 0x1ba60
call fcn.000110b0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x14e4b
mov dword [ebp - 0xc], 0xc000009a
jmp 0x14e8b
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x14e7d
mov edx, dword [ebp - 4]
push edx
push 0x1ba60
call fcn.00011120
jmp 0x14e8b
mov eax, dword [ebp - 4]
push eax
push 0x1b858
call fcn.00011070
mov dl, byte [ebp - 5]
mov ecx, 0x1b868
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x151a0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [0x1b884], 0
jbe 0x152ef
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [0x1b884]
push ecx
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x152ef
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
cmp dword [0x1b880], 0
je 0x152dc
mov ecx, dword [0x1b880]
mov edx, dword [ecx]
mov eax, dword [0x1b898]
mov ecx, dword [edx + eax*4]
mov dword [0x1b8cc], ecx
mov edx, dword [0x1b880]
mov eax, dword [edx]
mov ecx, dword [0x1b8a4]
mov edx, dword [eax + ecx*4]
mov dword [0x1b8d0], edx
mov eax, dword [0x1b880]
mov ecx, dword [eax]
mov edx, dword [0x1b8ac]
mov eax, dword [ecx + edx*4]
mov dword [0x1b8d8], eax
mov ecx, dword [0x1b880]
mov edx, dword [ecx]
mov eax, dword [0x1b8a8]
mov ecx, dword [edx + eax*4]
mov dword [0x1b8e0], ecx
mov edx, dword [0x1b880]
mov eax, dword [edx]
mov ecx, dword [0x1b8b0]
mov edx, dword [eax + ecx*4]
mov dword [0x1b8e8], edx
mov eax, dword [0x1b880]
mov ecx, dword [eax]
mov edx, dword [0x1b8b4]
mov eax, dword [ecx + edx*4]
mov dword [0x1b8f0], eax
push 0x150d0
mov ecx, dword [0x1b8d0]
push ecx
call fcn.00011c00
mov dword [0x1b8d4], eax
push 0x14ff0
mov edx, dword [0x1b8d8]
push edx
call fcn.00011c00
mov dword [0x1b8dc], eax
push 0x14eb0
mov eax, dword [0x1b8e0]
push eax
call fcn.00011c00
mov dword [0x1b8e4], eax
push 0x143b0
mov ecx, dword [0x1b8e8]
push ecx
call fcn.00011c00
mov dword [0x1b8ec], eax
push 0x14330
mov edx, dword [0x1b8f0]
push edx
call fcn.00011c00
mov dword [0x1b8f4], eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [ebp - 0x24]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov esp, ebp
pop ebp
ret
Function at 0x15910
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x24], 0
cmp dword [0x1b884], 0
jbe 0x159d3
push str.KeUserModeCallback
push str.ntoskrnl.exe
push str.SystemRoot_system32win32k.sys
call fcn.00013d20
mov dword [ebp - 4], eax
push 0
push str.win32k.sys
call fcn.00012e50
mov dword [ebp - 0x28], eax
cmp dword [ebp - 4], 0
je 0x159d3
cmp dword [ebp - 0x28], 0
je 0x159d3
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [0x1b884]
push ecx
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x159d3
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call fcn.00014c10
lea ecx, [ebp - 8]
push ecx
push 0x1000
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 4]
push edx
call fcn.000137c0
mov dword [ebp - 0x34], eax
mov eax, 0x141a0
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 4]
xchg dword [ecx], eax
mov dword [0x1b8c8], eax
mov edx, dword [ebp - 8]
push edx
call fcn.000137a0
call fcn.00014bf0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [ebp - 0x30]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov esp, ebp
pop ebp
ret
Function at 0x176c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
pop ebp
ret 4

Function at 0x177a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x1ad38], 1
jne 0x1783f
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0x40
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x24]
push ecx
push 0x20019
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x177fa
jmp 0x1783f
push str.pefwabc
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [ebp - 0x28]
push ecx
push 0x14
lea edx, [ebp - 0x40]
push edx
push 2
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x17835
mov edx, dword [ebp - 0x34]
mov dword [0x1ad38], edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov esp, ebp
pop ebp
ret 4

Function at 0x17850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0x40
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push ecx
push 0x20019
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x178a6
xor eax, eax
jmp 0x178eb
push str.Start
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [ebp - 0x2c]
push ecx
push 0x14
lea edx, [ebp - 0x44]
push edx
push 2
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x178de
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x17b60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
push 0x17900
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x1fffff
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x17be0
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x17be0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov esp, ebp
pop ebp
ret

Function at 0x17bf0
Capabilities:
Find process by pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x17c11
mov eax, dword [ebp - 0xc]
jmp 0x17c44
mov ecx, dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov edx, dword [ebp - 4]
add edx, dword [0x1b9f8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x1d000
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x64], 0xc0000001
mov word [ebp - 0x54], 0
xor eax, eax
mov dword [ebp - 0x52], eax
mov word [ebp - 0x4e], ax
mov word [ebp - 0x5c], 0
xor ecx, ecx
mov dword [ebp - 0x5a], ecx
mov word [ebp - 0x56], cx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x48], 0
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x68], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00017850
cmp eax, 1
jae 0x1d05d
mov eax, 0xc0000001
jmp 0x1d242
push 0x40
push 0x1ac38
lea ecx, [ebp - 0x40]
push ecx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
push 0x40
lea edx, [ebp - 0x40]
push edx
call fcn.00012ae0
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00013600
cmp dword [ebp - 0x68], 0
je 0x1d098
mov eax, 0xc0000001
jmp 0x1d242
mov edx, dword [ebp + 0xc]
push edx
call fcn.000177a0
push str.DosDevicesPEFireWall
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push str.DevicePEFireWall
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea edx, [ebp - 0x60]
push edx
push 0
push 0
push 0x22
lea eax, [ebp - 0x5c]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jge 0x1d0e7
jmp 0x1d214
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jge 0x1d103
jmp 0x1d214
call fcn.00015dc0
push 0x1b7f0
call fcn.00011000
push 0
push 0x46576570
push 0x1c
push 0
push 0
push 0
push 0x1bac0
call dword [sym.imp.ntoskrnl.exe_ExInitializeNPagedLookasideList]
push 0x1b844
call fcn.00011000
push 0
push 0x46576570
push 0x10
push 0
push 0
push 0
push 0x1ba00
call dword [sym.imp.ntoskrnl.exe_ExInitializeNPagedLookasideList]
push 0x1b858
call fcn.00011000
push 0
push 0x46576570
push 0x10
push 0
push 0
push 0
push 0x1ba60
call dword [sym.imp.ntoskrnl.exe_ExInitializeNPagedLookasideList]
push 0x14b50
push 0
push 0x88
push 0x1b920
call fcn.00012a60
push 0x14b80
push 0
push 0x2c
push 0x1b988
call fcn.00012a60
push 0x1b854
call fcn.00011020
push 0x1b868
call fcn.00011020
push 0x1b80c
call dword [sym.imp.ntoskrnl.exe_ExInitializeResourceLite]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jge 0x1d1c7
jmp 0x1d214
call fcn.00014490
test eax, eax
jge 0x1d1d2
jmp 0x1d214
push 0x1b880
call fcn.00013e80
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jge 0x1d1e7
jmp 0x1d214
call fcn.00011460
call fcn.00016360
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x38], 0x1c030
mov edx, dword [ebp + 8]
mov dword [edx + 0x40], 0x1c000
mov eax, dword [ebp + 8]
mov dword [eax + 0x70], 0x1c060
call fcn.00017b60
cmp dword [ebp - 0x64], 0
jge 0x1d23f
push 0x1bac0
call dword [sym.imp.ntoskrnl.exe_ExDeleteNPagedLookasideList]
cmp dword [ebp - 0x60], 0
je 0x1d23f
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoDeleteSymbolicLink]
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [ebp - 0x64]
mov esp, ebp
pop ebp
ret 8