joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4492d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48bed3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0047d502
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00482c74
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004841cc
test eax, eax
je 0x4493ec
mov ecx, dword [esp + 0x3c]
call fcn.00482ca1
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4493b0
push edi
mov ecx, esi
call fcn.00480264
mov ecx, esi
call fcn.00449550
cmp dword [esp + 0x38], 1
jne 0x4493e5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004803ce
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44be20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44be53
push esi
call fcn.0044ef20
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44be4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44bed9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44bec2
mov eax, dword [esi + 8]
test eax, eax
je 0x44be77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44bebe
cmp eax, 2
je 0x44bec2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44be6a
cmp eax, 3
je 0x44be9d
cmp eax, 1
jne 0x44be6a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44be6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44be6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044bf00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44bee8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044bf00
add esp, 4
pop esi
ret

Function at 0x45a900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48c648
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x45a943
mov eax, dword [esi]
jmp 0x45a945
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
push edi
call dword [ecx + 0x74]
test eax, eax
jge 0x45a966
push 0x4f9588
push edi
push eax
call fcn.00478c81
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
test esi, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov word [esp + 0xc], 0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
je 0x45a9c6
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x45a9c6
mov eax, dword [esi]
test eax, eax
je 0x45a9ad
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x45a9bd
push eax
call fcn.0047bc71
add esp, 4
push esi
call fcn.0047bc71
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x45bd80
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x45be23
test eax, eax
jbe 0x45be23
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45be23
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45bdce
xor esi, esi
jmp 0x45bdd4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45bdff
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040dd90
add esi, eax
push esi
mov ebx, esi
call fcn.0040dd90
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45bde0
pop ebp
test edi, edi
pop edi
jne 0x45be23
test ebx, ebx
je 0x45be23
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0046ba40
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x45bf65
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45c07d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45c07d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0047d954
mov esi, eax
test esi, esi
je 0x45c07d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45c07d
mov ecx, esi
call fcn.0045bed0
cmp edi, eax
jge 0x45c07d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45c003
mov dword [esp + 0x34], 1
jmp 0x45c05e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45c07d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0045b470
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x47e2f7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47e32f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047c3ae
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047c386
jmp 0x47e33b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47f9e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47fa2a
call fcn.004856ce
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47fa2a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47fa21
xor eax, eax
jmp 0x47fa32
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047fa38
pop edi
pop esi
pop ebx
ret 4

Function at 0x485bfe
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x485c2c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x485c4a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00485b64
jmp 0x485c4a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x485c4a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00485b64
test edi, edi
mov eax, edi
jne 0x485c34
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x11920
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x22
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x11955
mov eax, dword [ebp - 0x10]
jmp 0x119cf
jmp 0x11967
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x1198d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [ebp - 0x10]
jmp 0x119cf
call fcn.00011810
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x119b4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoDeleteSymbolicLink]
mov eax, dword [ebp - 0x10]
jmp 0x119cf
mov edx, dword [ebp - 4]
mov dword [0x1767c], edx
jmp 0x119cd
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x11b10
Capabilities:
Complete processing asynchronous io request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
jmp 0x11b28
mov eax, dword [ebp + 0xc]
push eax
call fcn.00012410
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 0xc], cl
cmp byte [ebp - 0xc], 0xe
je 0x11b4d
jmp 0x11b7a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x222188
je 0x11b61
jmp 0x11b7a
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 1
je 0x11b71
jmp 0x11b7a
mov eax, dword [ebp - 4]
push eax
call fcn.00011a20
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x18], 0
xor dl, dl
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
jmp 0x11b9f
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x11d30
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
mov ecx, dword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
push ecx
push 0
push 0
push 0x40
lea edx, [ebp - 0x10]
push edx
call sub.ntoskrnl.exe_ObReferenceObjectByName
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x11d8a
mov eax, dword [ebp - 0x20]
jmp 0x11e74
mov ecx, dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x11e71
lea edx, [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x2c]
push eax
push 0
push 0x24
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x11dd9
mov eax, dword [ebp - 0x20]
jmp 0x11e74
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStack]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x11e06
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
jmp 0x11e74
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x28]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00011cd0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 8]
movsx eax, byte [edx + 0x30]
add eax, 1
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 0x30], al
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
and eax, 0x2014
mov ecx, dword [ebp - 0x1c]
or eax, dword [ecx + 0x1c]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
jmp 0x11d9c
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret 8
Function at 0x12920
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], 0
jmp 0x1293f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
add edx, 0x10
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 8], ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x129c2
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
mov byte [ebp - 0x29], al
mov byte [ebp - 0x35], 1
mov cl, byte [ebp - 0x35]
call dword [sym.imp.HAL.dll_KfLowerIrql]
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov cl, byte [ebp - 0x29]
call dword [sym.imp.HAL.dll_KfRaiseIrql]
mov byte [ebp - 0x35], al
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
mov dword [edx + 0xc], eax
jmp 0x129db
mov eax, dword [ebp - 0x34]
mov esp, ebp
pop ebp
ret 4
Function at 0x13ed0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00013e90
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x13f17
cmp dword [ebp + 8], 0xb
jne 0x13f17
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
cmp eax, 4
jne 0x13f17
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
push eax
push 0x175e8
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x13f20
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x16190
push 0x152dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x2c], 0
jmp 0x13f5c
mov dword [ebp - 0x38], 0xc000000d
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edx, dword [ebp - 0x2c]
push edx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x13f96
jmp 0x140da
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x13fb6
jmp 0x140da
mov edx, dword [ebp - 0x30]
add edx, 4
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], 0xc000000d
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0xffffffff
jne 0x13ff6
push 0x11c
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov dword [ebp - 0x38], 0
jmp 0x140da
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
jne 0x14070
mov dword [ebp - 0x24], 0
jmp 0x14011
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax]
jae 0x1406e
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x1a]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x1c
push ecx
mov edx, dword [ebp - 0x28]
movzx eax, word [edx + 0x1a]
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x1c
push ecx
call fcn.00014130
test eax, eax
je 0x14060
push 0x11c
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov dword [ebp - 0x38], 0
jmp 0x1406e
mov ecx, dword [ebp - 0x28]
add ecx, 0x11c
mov dword [ebp - 0x28], ecx
jmp 0x14008
jmp 0x140da
mov dword [ebp - 0x24], 0
jmp 0x14082
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax]
jae 0x140da
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
mov ecx, dword [edx + 8]
cmp ecx, dword [eax + 8]
jb 0x140cc
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0xc]
mov edx, dword [ebp + 8]
cmp dword [edx + 8], eax
ja 0x140cc
push 0x11c
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov dword [ebp - 0x38], 0
jmp 0x140da
mov edx, dword [ebp - 0x28]
add edx, 0x11c
mov dword [ebp - 0x28], edx
jmp 0x14079
mov dword [ebp - 4], 0xffffffff
call fcn.000140e8
jmp 0x140fb
jmp 0x1410b
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x143d0
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
jmp 0x143e8
mov dword [ebp - 0x48], 0x18
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0x240
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push 0
push 0
push 0x800
push 1
push 0
push 0x80
push 0
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x48]
push eax
push 0x80000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jge 0x14458
mov edx, dword [ebp + 8]
mov dword [edx], 0
xor eax, eax
jmp 0x1452e
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0x200
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0x8000000
push 2
push 0
lea edx, [ebp - 0x2c]
push edx
push 4
mov eax, dword [ebp + 8]
add eax, 4
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jge 0x144bb
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
xor eax, eax
jmp 0x1452e
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x5c], 0
push 2
push 0
push 1
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
push 0
mov edx, dword [ebp + 8]
add edx, 8
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jge 0x14518
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0
xor eax, eax
jmp 0x1452e
jmp 0x14528
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x14540
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], 0
mov dword [ebp - 8], 0
mov byte [ebp - 0x2e], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x3c]
add edx, dword [ebp - 0x38]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 0xf8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x18
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [0x1772c]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x20], ecx
lea edx, [ebp - 8]
push edx
push 4
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x145df
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0xc]
jmp 0x1466d
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
mov byte [ebp - 0x2d], al
movzx eax, byte [ebp - 0x2d]
test eax, eax
je 0x14615
mov byte [ebp - 0x2f], 0
mov cl, byte [ebp - 0x2f]
call dword [sym.imp.HAL.dll_KfLowerIrql]
mov byte [ebp - 0x2e], 1
mov cl, byte [ebp - 0x2d]
mov byte [ebp - 0x2f], cl
mov edx, dword [0x17750]
push edx
mov eax, dword [0x1772c]
push eax
call dword [ebp - 4]
mov dword [ebp - 0xc], eax
movzx ecx, byte [ebp - 0x2e]
test ecx, ecx
je 0x1463c
mov cl, byte [ebp - 0x2f]
call dword [sym.imp.HAL.dll_KfRaiseIrql]
mov byte [ebp - 0x2d], al
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [ebp + 0xc], 0
je 0x1466a
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x3c]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8