joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401180
Capabilities:
Create udp socket

Disassembly:
push 0xffffffffffffffff
push 0x4266fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
push 0
push eax
mov esi, ecx
push 2
call sub.WSOCK32.dll_socket
mov dword [esi + 4], eax
cmp eax, 0xffffffff
pop esi
jne 0x4011f5
push 0x10
call fcn.0041b4b9
add esp, 4
mov dword [esp], eax
test eax, eax
mov dword [esp + 0xc], 0
je 0x4011d8
push 0x432194
mov ecx, eax
call fcn.00401010
jmp 0x4011da
xor eax, eax
lea ecx, [esp + 0x14]
push 0x42d750
push ecx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x1c], eax
call fcn.0040bbe3
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4014b0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x4267aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
mov esi, ecx
push edi
mov ecx, 0x3f
mov eax, dword [esi + 4]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], 1
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x134]
xor edi, edi
push edx
lea eax, [esp + 0x1c]
push edi
push eax
push edi
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edi
call sub.WSOCK32.dll_select
test eax, eax
jne 0x401559
push 0x10
call fcn.0041b4b9
add esp, 4
mov dword [esp + 8], eax
cmp eax, edi
mov dword [esp + 0x124], edi
je 0x401539
push 0x432204
mov ecx, eax
call fcn.00401010
jmp 0x40153b
xor eax, eax
lea ecx, [esp + 0xc]
push 0x42d750
push ecx
mov dword [esp + 0x12c], 0xffffffff
mov dword [esp + 0x14], eax
call fcn.0040bbe3
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x12c]
mov ecx, dword [esi + 4]
push edi
push edx
push eax
push ecx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x4015c3
push 0x10
call fcn.0041b4b9
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov dword [esp + 0x124], 1
je 0x4015a3
push 0x4321f4
mov ecx, eax
call fcn.00401010
jmp 0x4015a5
xor eax, eax
lea edx, [esp + 8]
push 0x42d750
push edx
mov dword [esp + 0x12c], 0xffffffff
mov dword [esp + 0x10], eax
call fcn.0040bbe3
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret 0xc
Function at 0x4015e0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x4267da
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
mov esi, ecx
push edi
mov ecx, 0x3f
mov eax, dword [esi + 4]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], 1
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x134]
xor edi, edi
push edx
push edi
lea eax, [esp + 0x20]
push edi
push eax
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edi
call sub.WSOCK32.dll_select
test eax, eax
jne 0x401689
push 0x10
call fcn.0041b4b9
add esp, 4
mov dword [esp + 8], eax
cmp eax, edi
mov dword [esp + 0x124], edi
je 0x401669
push 0x432230
mov ecx, eax
call fcn.00401010
jmp 0x40166b
xor eax, eax
lea ecx, [esp + 0xc]
push 0x42d750
push ecx
mov dword [esp + 0x12c], 0xffffffff
mov dword [esp + 0x14], eax
call fcn.0040bbe3
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x12c]
mov ecx, dword [esi + 4]
push edi
push edx
push eax
push ecx
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x4016f3
push 0x10
call fcn.0041b4b9
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov dword [esp + 0x124], 1
je 0x4016d3
push 0x43221c
mov ecx, eax
call fcn.00401010
jmp 0x4016d5
xor eax, eax
lea edx, [esp + 8]
push 0x42d750
push edx
mov dword [esp + 0x12c], 0xffffffff
mov dword [esp + 0x10], eax
call fcn.0040bbe3
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret 0xc

Function at 0x4015fb
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x4267da
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
mov esi, ecx
push edi
mov ecx, 0x3f
mov eax, dword [esi + 4]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], 1
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x134]
xor edi, edi
push edx
push edi
lea eax, [esp + 0x20]
push edi
push eax
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edi
call sub.WSOCK32.dll_select
test eax, eax
jne 0x401689
push 0x10
call fcn.0041b4b9
add esp, 4
mov dword [esp + 8], eax
cmp eax, edi
mov dword [esp + 0x124], edi
je 0x401669
push 0x432230
mov ecx, eax
call fcn.00401010
jmp 0x40166b
xor eax, eax
lea ecx, [esp + 0xc]
push 0x42d750
push ecx
mov dword [esp + 0x12c], 0xffffffff
mov dword [esp + 0x14], eax
call fcn.0040bbe3
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x12c]
mov ecx, dword [esi + 4]
push edi
push edx
push eax
push ecx
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x4016f3
push 0x10
call fcn.0041b4b9
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov dword [esp + 0x124], 1
je 0x4016d3
push 0x43221c
mov ecx, eax
call fcn.00401010
jmp 0x4016d5
xor eax, eax
lea edx, [esp + 8]
push 0x42d750
push edx
mov dword [esp + 0x12c], 0xffffffff
mov dword [esp + 0x10], eax
call fcn.0040bbe3
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret 0xc
Function at 0x401930
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
mov ecx, esi
mov dl, byte [esi]
test dl, dl
je 0x40194d
xor dl, bl
inc ebx
mov byte [ecx], dl
mov dl, byte [ecx + 1]
inc ecx
test dl, dl
jne 0x401940
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4023f6
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x426858
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [esp + 8], esi
call fcn.00422cb0
mov dword [esp + 0x10], 0
mov dword [esi], method.CWinApp.virtual_0
call fcn.00401ff0
test eax, eax
je 0x402423
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, 0x4366a0
jmp 0x4023e0

Function at 0x403190
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x426a98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x432898]
push ebp
push esi
push edi
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
push str._m__d__y__H:_M:_S_GMT
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x2c], 0
call fcn.0041a490
mov ecx, eax
call fcn.0041a4a3
mov byte [esp + 0x20], 1
mov eax, dword [0x43688c]
push eax
lea ecx, [esp + 0x10]
push 0x4324f0
push ecx
call fcn.00419e8d
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0xc
mov eax, dword [esi + 0x1c]
push edx
push 0
push 0x180
push eax
call edi
mov ecx, dword [esp + 0x32]
push ecx
call sub.WSOCK32.dll_ntohs
lea edx, [esp + 0x28]
lea ecx, [esp + 0x30]
push edx
mov ebp, eax
call fcn.004032f0
mov eax, dword [eax]
and ebp, 0xffff
push ebp
push eax
lea ecx, [esp + 0x14]
push str._____IP
push ecx
mov byte [esp + 0x30], 2
call fcn.00419e8d
add esp, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 1
call fcn.0041b081
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0x1c]
push edx
push 0
push 0x180
push eax
call edi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push str._____
push edx
call fcn.00419e8d
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x1c]
add esp, 0xc
push eax
push 0
push 0x180
push ecx
call edi
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push edx
push 0x4324b4
push eax
call fcn.00419e8d
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x1c]
add esp, 0xc
push ecx
push 0
push 0x180
push edx
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.0041b081
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.0041b081
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x403320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x426b02
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0041ad79
mov eax, dword [0x432898]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], eax
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 1
mov dword [esp + 0x14], vtable.CFileException.0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xffffffff
call fcn.0041b1c6
push 0x10
mov dword [esp + 0x30], 2
call fcn.0041b4b9
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x2c], 3
je 0x4033a6
mov ecx, eax
call fcn.00420092
mov esi, eax
jmp 0x4033a8
xor esi, esi
mov eax, dword [esp + 0x34]
mov byte [esp + 0x2c], 2
cmp byte [eax], 0x2f
jne 0x4033b7
inc eax
push eax
lea ecx, [esp + 0xc]
call fcn.0041b0ab
push 0x5c
push 0x2f
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 4
call fcn.004199a0
lea ecx, [esp + 8]
lea edx, [esp + 0x34]
push ecx
push 0x436888
push edx
call fcn.0041b26c
mov eax, dword [eax]
mov edx, dword [esi]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 5
push ecx
push 0
push eax
mov ecx, esi
call dword [edx + 0x20]
lea ecx, [esp + 0x34]
mov edi, eax
mov byte [esp + 0x2c], 4
call fcn.0041b081
test edi, edi
je 0x40344b
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call fcn.0041b081
mov dword [esp + 0x10], vtable.CFileException.0
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 6
call fcn.0041b081
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov eax, dword [esp + 0x18]
cmp eax, 5
je 0x40345d
cmp eax, 3
jne 0x403501
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 8]
cmp eax, 1
jle 0x40347b
cmp byte [eax + ecx - 1], 0x5c
je 0x40347b
push 0x5c
lea ecx, [esp + 0xc]
call fcn.0041b3a5
push 0x436880
lea ecx, [esp + 0xc]
call fcn.0041b3ba
lea edx, [esp + 8]
lea eax, [esp + 0x34]
push edx
push 0x436888
push eax
call fcn.0041b26c
mov eax, dword [eax]
mov edx, dword [esi]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 7
push ecx
push 0
push eax
mov ecx, esi
call dword [edx + 0x20]
lea ecx, [esp + 0x34]
mov edi, eax
mov byte [esp + 0x2c], 4
call fcn.0041b081
test edi, edi
je 0x403501
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call fcn.0041b081
mov dword [esp + 0x10], vtable.CFileException.0
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 8
call fcn.0041b081
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
test esi, esi
je 0x40350e
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call fcn.0041b081
mov dword [esp + 0x10], vtable.CFileException.0
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 9
call fcn.0041b081
mov ecx, dword [esp + 0x24]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x419260
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040d5c0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41932b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41932b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4192de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4192e9
or bh, 8
and edi, 0x8000000
je 0x419304
mov eax, dword [0x43a07c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41932b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41972b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41974f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41976a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41f138
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 0x41f17a
call fcn.004236f4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41f17a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41f171
xor eax, eax
jmp 0x41f182
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041f188
pop edi
pop esi
pop ebx
ret 4
Function at 0x11080
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [str.SystemRootSystem32_]
mov dword [ebp - 0x108], eax
mov ecx, dword [0x13038]
mov dword [ebp - 0x104], ecx
mov edx, dword [0x1303c]
mov dword [ebp - 0x100], edx
mov eax, dword [0x13040]
mov dword [ebp - 0xfc], eax
mov ecx, dword [0x13044]
mov dword [ebp - 0xf8], ecx
mov dx, word [0x13048]
mov word [ebp - 0xf4], dx
push 0xea
push 0
lea eax, [ebp - 0xf2]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea ecx, [ebp - 0x314]
push ecx
lea edx, [ebp - 0x10c]
push edx
call section..text
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x10c]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov edx, dword [ebp - 0x314]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov ecx, dword [ebp - 0x314]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push str.__c:windows_system32_ntdll.dll
call fcn.000112c0
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0
jge 0x11167
mov eax, dword [ebp - 0x318]
jmp 0x112b5
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.000113f0
mov dword [ebp - 0x318], eax
cmp dword [ebp - 4], 0
je 0x11193
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x318], 0
jge 0x111a7
mov eax, dword [ebp - 0x318]
jmp 0x112b5
lea ecx, [ebp - 0x31c]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0
call fcn.00011680
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0
jge 0x111d6
mov eax, dword [ebp - 0x318]
jmp 0x112b5
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x310]
push ecx
call fcn.00011760
lea edx, [ebp - 0x108]
push edx
push str._c..
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x310]
push ecx
call fcn.000112c0
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0
jge 0x11227
mov eax, dword [ebp - 0x318]
jmp 0x112b5
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.000115a0
mov dword [ebp - 0x318], eax
cmp dword [ebp - 4], 0
je 0x11253
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x318], 0
jl 0x11293
mov dword [ebp - 8], 0
jmp 0x1126e
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [0x13128]
jae 0x11293
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4]
add eax, dword [ebp - 0x31c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov dword [edx + ecx*4], eax
jmp 0x11265
mov eax, dword [0x13128]
shl eax, 2
push eax
mov ecx, dword [0x1312c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x318]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x112c0
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0x40
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0
push 0
push 0x20
push 1
push 1
push 0x80
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0x80000000
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x11336
mov eax, dword [ebp - 0x30]
jmp 0x113e0
push 5
push 0x18
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x11357
jmp 0x113be
push 0x446c6c20
mov eax, dword [ebp - 0x50]
push eax
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x1137a
mov dword [ebp - 0x30], 0xc0000001
jmp 0x113be
push 0
push 0
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x34]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x113b6
push 0
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [ebp - 0x34], 0
xor eax, eax
jne 0x11336
cmp dword [ebp - 0xc], 0
je 0x113d5
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x34]
mov dword [edx], eax
mov eax, dword [ebp - 0x30]
mov esp, ebp
pop ebp
ret 8
Function at 0x113f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.ntoskrnl.exe_RtlImageDirectoryEntryToData
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
push edx
push str.pImageExportDir_0x_0x_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
lea eax, [ebp - 0x2c]
push eax
push 0
push 1
mov ecx, dword [ebp + 8]
push ecx
call sub.ntoskrnl.exe_RtlImageDirectoryEntryToData
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
push str.MappedExpBase_0x_0x_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
cmp dword [ebp - 0x30], 0
je 0x1144c
cmp dword [ebp - 8], 0
jne 0x11456
mov eax, 0xc0000001
jmp 0x1159a
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 8]
sub eax, dword [ebp - 8]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x20]
add edx, dword [ebp + 8]
sub edx, dword [ebp - 8]
add edx, dword [ebp - 0x30]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp + 8]
sub ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0
jmp 0x114a7
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jae 0x11598
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
movzx eax, word [edx + ecx*2]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp + 8]
sub ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x10], ecx
mov edx, 0xb8
test edx, edx
je 0x11517
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 5]
cmp ecx, 0xba
jne 0x11517
mov edx, dword [ebp - 0x10]
cmp dword [edx + 6], 0x7ffe0300
jne 0x11517
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0xa]
cmp ecx, 0x12ff
jne 0x11517
mov dword [ebp - 0x34], 1
jmp 0x1151e
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x10]
mov al, byte [ebp - 0x34]
mov byte [edx], al
movzx ecx, byte [ebp - 0x34]
test ecx, ecx
je 0x11593
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 1]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp + 8]
sub ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x10], ecx
push 0x32
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x32
add eax, dword [ebp + 0xc]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0x32
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], 0x4e
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x32
mov ecx, dword [ebp + 0xc]
mov byte [ecx + eax + 1], 0x74
mov edx, dword [ebp - 0x1c]
imul edx, edx, 0x32
mov eax, dword [ebp + 0xc]
mov byte [eax + edx + 0x31], 0
jmp 0x1149e
xor eax, eax
mov esp, ebp
pop ebp
ret 8