joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417560
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x460f78
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
lea ebx, [edi + 0x30]
mov eax, ebx
mov byte [esp + 0xf], 0
call fcn.00411eb0
mov dword [esp + 0x14], vtable.base_hash_obj_unsigned_int_.0
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], 0
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
mov edx, dword [eax]
push 0xa
call edx
lea ecx, [esp + 0x10]
lea edx, [eax + eax*2]
push ecx
lea eax, [edi + edx*4 + 0x40]
call fcn.00417af0
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x18]
call edx
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x14]
call edx
mov edi, eax
test edi, edi
je 0x41761b
cmp byte [edi + 5], 7
je 0x41761b
mov ecx, dword [edi + 0x50]
mov eax, dword [ecx]
mov edx, dword [eax + 0x68]
push esi
call edx
test al, al
je 0x41761b
push esi
call fcn.00415e90
mov byte [esp + 0xf], 1
mov eax, dword [ebx + 8]
add dword [eax + 0xc], 0xffffffff
mov eax, dword [ebx + 8]
cmp dword [eax + 0xc], 0
jle 0x41764d
mov ecx, eax
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, eax
mov dword [edx + 8], 0
mov eax, dword [ebx + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jle 0x417670
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4178b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45fb88
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea esi, [ebx + 0x30]
mov eax, esi
call fcn.00411eb0
mov dword [esp + 8], vtable.base_hash_obj_unsigned_int_.0
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], 0
mov eax, dword [edi]
mov edx, dword [eax]
push 0xa
mov ecx, edi
call edx
lea ecx, [esp + 8]
lea edx, [eax + eax*2]
push ecx
lea eax, [ebx + edx*4 + 0x40]
call fcn.00417b70
mov eax, dword [esi + 8]
add dword [eax + 0xc], 0xffffffff
mov eax, dword [esi + 8]
cmp dword [eax + 0xc], 0
jle 0x41793c
mov ecx, eax
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
mov edx, eax
mov dword [edx + 8], 0
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jle 0x41795f
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x4185e0
Capabilities:
Access peb ldr_data
Check os version
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x46066b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
push esi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov eax, dword [esp + 0x240]
push eax
mov byte [esp + 0x30], 5
mov byte [esp + 0x31], 3
mov byte [esp + 0x32], 0
mov byte [esp + 0x33], 1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0xc], eax
push 4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
push 5
push ecx
call fcn.00445a61
mov edx, dword [esp + 0x254]
add esp, 0x10
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x34], ax
mov eax, dword [edi + 0xac]
cmp eax, 0xffffffff
je 0x418687
push 0
push 0xa
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x418696
add dword [edi + 0x80], 0x1a00
jmp 0x4187a4
mov eax, dword [edi + 0xac]
cmp eax, 0xffffffff
je 0x4186b8
push 0
push 0x200
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x4186c7
add dword [edi + 0x80], 0x1b00
jmp 0x4187a4
cmp eax, 0xa
jge 0x4186db
mov dword [edi + 0x80], 0xf00
jmp 0x4187a4
cmp byte [esp + 0x2c], 5
jne 0x41879a
cmp byte [esp + 0x2e], 0
jne 0x41879a
cmp byte [esp + 0x2d], 0
jne 0x4187a4
mov al, byte [esp + 0x2f]
cmp al, 3
mov byte [edi + 0x85], al
jne 0x41875d
movzx ebp, byte [esp + 0x30]
push ebp
lea ecx, [esp + 0x35]
lea esi, [esp + 0x14]
call fcn.004034d0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [edi + 0x88]
mov dword [esp + 0x244], 0
call fcn.00401bb0
mov ecx, esi
call fcn.00401b20
movzx eax, word [esp + ebp + 0x31]
push eax
mov word [edi + 0x86], ax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [edi + 0x86], ax
mov al, 1
jmp 0x4187a6
cmp al, 1
jne 0x418796
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [edi + 0x88]
call fcn.00401b50
mov edx, dword [esp + 0x34]
mov cx, word [esp + 0x34]
push edx
mov word [edi + 0x86], cx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [edi + 0x86], ax
mov al, 1
jmp 0x4187a6
mov dword [edi + 0x80], 0x1000
xor al, al
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00445276
add esp, 0x230
ret 8
Function at 0x419c10
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x419c4e
xor al, al
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00445276
add esp, 0x19c
ret
mov ecx, dword [esp + 0x194]
mov al, 1
xor ecx, esp
mov byte [esi + 0xc8], al
call fcn.00445276
add esp, 0x19c
ret

Function at 0x419c70
Capabilities:
Create udp socket

Disassembly:
push 0xffffffffffffffff
push 0x460f48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
cmp byte [edi + 0xc8], 0
jne 0x419cb2
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret
mov esi, edi
mov byte [edi + 0x18], 1
call fcn.00413030
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x419cec
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [edi + 0xc]
test eax, eax
mov dword [edi + 8], 0xffffffff
mov byte [edi + 4], 1
je 0x419cec
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [edi + 0xc], 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi + 8], eax
je 0x419d08
mov byte [edi + 0x18], 2
mov bl, 1
jmp 0x419d0a
xor bl, bl
push edi
call fcn.00419da0
test bl, bl
mov word [edi + 0xca], ax
je 0x419c9e
call fcn.00412090
test al, al
je 0x419c9e
lea esi, [esp + 0xc]
mov eax, edi
call fcn.00419e10
mov ebx, 0x10
mov dword [esp + 0x30], 0
cmp dword [eax + 0x18], ebx
jb 0x419d4a
mov esi, dword [eax + 4]
jmp 0x419d4d
lea esi, [eax + 4]
push edi
call fcn.00419da0
movzx eax, ax
push eax
push esi
push str.ip:_s_port_d_n
push 1
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
add esp, 0x10
cmp dword [esp + 0x24], ebx
jb 0x419d81
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0042a2ef
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret

Function at 0x419da0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x25], 0
je 0x419dd6
cmp byte [eax + 0x24], 0
je 0x419dd6
mov ax, word [eax + 0x86]
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00445276
add esp, 0x18
ret 4
mov eax, dword [eax + 8]
lea ecx, [esp]
push ecx
lea edx, [esp + 8]
push edx
push eax
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [esp + 6]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00445276
add esp, 0x18
ret 4
Function at 0x41ffd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x41ffdf
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x4200c7
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x46af70]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46af70]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x46af70]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46af70]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46af70]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46af70]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46af70]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46af70]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x41fff0
pop ebp
test edi, edi
je 0x4200ec
jmp 0x4200d0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x46af70]
add ecx, 1
sub edi, 1
jne 0x4200d0
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x4207f0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x420822
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420818
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x420835
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
push esi
add eax, ecx
push eax
push edx
call fcn.0044e1a0
add dword [edi + 0x18], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret

Function at 0x420850
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x420883
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42087d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x4208af
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x18]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x420895
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x10]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.0044e1a0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x18], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x4208c6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x4208c0
cmp byte [esi + 8], 0
je 0x4208c0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x4209b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x4209f5
cmp byte [esi + 1], 0
je 0x4209fd
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x420a11
cmp byte [esi + 1], 0
je 0x420a03
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x420a1a
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x4209ce
xor eax, eax
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x420a1a
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
cmp ebp, edi
mov dword [esp + 0xc], edi
jae 0x420a2e
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.00445610
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x420a49
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
mov eax, 4
cmp edi, eax
mov dword [esp + 0x18], 0
jbe 0x420b5e
jmp 0x420a6c
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
cmp eax, edi
mov dword [esp + 0x14], edi
ja 0x420a7d
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
cmp ebp, 0x404
mov dword [esp + 0x20], eax
jbe 0x420a96
mov ebp, 0x404
cmp byte [esi], 0
je 0x420abb
cmp byte [esi + 1], 0
je 0x420b5e
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x420abe
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebp
je 0x420ae6
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420ae0
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x420b0c
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x420af7
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0044e1a0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x420b5e
lea eax, [ebp - 3]
test eax, eax
jle 0x420b50
lea esp, [esp]
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x420b3e
cmp byte [eax + ebx + 1], 0x4b
jne 0x420b3e
cmp byte [eax + ebx + 2], 5
jne 0x420b3e
cmp byte [eax + ebx + 3], 6
je 0x420b44
test eax, eax
jg 0x420b20
jmp 0x420b50
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
jne 0x420b5e
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x420a60
push ebx
call fcn.004453d6
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x421860
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x4218c0
cmp dword [esi + 4], 0xffffffff
jne 0x4218c0
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x421882
mov ax, word [0x468b14]
mov word [edi], ax
mov eax, dword [esp + 0xc]
lea edi, [esp + 0xc]
call fcn.00420750
test eax, eax
jne 0x4218af
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.00420b80
mov dword [esi], eax
mov eax, dword [0x47f7e8]
pop edi
pop ecx
ret 4
mov eax, 0x1000000
pop edi
pop ecx
ret 4

Function at 0x421cc0
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
push edi
mov edi, dword [esp + 0x21c]
test edi, edi
je 0x421d9b
mov al, byte [edi]
test al, al
je 0x421d9b
push esi
mov esi, edi
mov ecx, edi
jmp 0x421d00
cmp al, 0x2f
je 0x421d08
cmp al, 0x5c
jne 0x421d0a
mov esi, ecx
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x421d00
cmp esi, edi
je 0x421d39
sub esi, edi
push esi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.0044964d
lea ecx, [esp + 0x18]
push ecx
push ebx
mov byte [esp + esi + 0x20], 0
call fcn.00421cc0
add esp, 0x14
lea edx, [esp + 0x110]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x421d44
mov eax, edi
mov edx, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x421d54
lea edi, [esp + 0x110]
sub eax, edx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x421d70
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea edx, [esp + 0x114]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
mov ecx, dword [esp + 0x210]
pop edi
pop ebx
xor ecx, esp
call fcn.00445276
add esp, 0x20c
ret
Function at 0x4226f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [esi + 0x18], 0
je 0x4227ac
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
add eax, edi
cmp eax, ecx
jb 0x42278b
add ecx, ecx
cmp ecx, eax
mov ebp, ecx
ja 0x422718
mov ebp, eax
push 0
push ebp
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x42274d
push ebp
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x422759
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov eax, 0x300
pop ebx
pop ecx
ret 8
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
push ecx
push edx
push edi
call fcn.0044e1a0
mov eax, dword [esi + 0x18]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], edi
mov edi, dword [esp + 0x18]
mov dword [esi + 0x20], ebp
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 0x14]
add eax, dword [esi + 0x18]
push edi
push edx
push eax
call fcn.0044e1a0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
pop edi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [esi]
test eax, eax
je 0x4227d9
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp]
pop ecx
ret 8
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop ecx
ret 8
Function at 0x422910
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push esi
push edi
push 0x50
call fcn.0042a2c4
push 8
mov esi, eax
call fcn.0042a2c4
push 0x50
xor edi, edi
push edi
push esi
call fcn.0044bc10
add esp, 0x14
push eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
pop eax
push 0x5c
push ebx
call fcn.00449a7d
add esp, 8
cmp eax, edi
jne 0x42296f
mov eax, 2
mov edx, 0x47f8b0
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x422960
mov edx, 0x47fa40
mov eax, ebx
sub edx, ebx
jmp 0x422980
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x422980
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
mov dword [esp + 8], eax
mov ecx, dword [eax + 0x2c]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x2c], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
mov eax, 0x47f8b0
mov word [esi + 0x2e], di
mov word [esi + 0x2c], di
mov dword [esi + 0x30], 0x47f8b0
lea edx, [eax + 2]
jmp 0x4229d0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4229d0
sub eax, edx
sar eax, 1
add eax, eax
mov word [esi + 0x2c], ax
add eax, 2
mov word [esi + 0x2e], ax
mov eax, 0x47fa40
mov word [esi + 0x26], di
mov word [esi + 0x24], di
mov dword [esi + 0x28], 0x47fa40
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x422a03
sub eax, edx
sar eax, 1
add eax, eax
mov word [esi + 0x24], ax
add eax, 2
mov word [esi + 0x26], ax
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [eax], esi
mov eax, dword [esp + 8]
pop edi
mov dword [eax + 4], esi
pop esi
pop ecx
ret 0xc

Function at 0x422a40
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
pop eax
mov eax, dword [esp]
mov ecx, eax
mov eax, dword [eax + 4]
mov dword [esp], eax
mov edi, edi
cmp dword [eax + 0x18], esi
jne 0x422a6a
cmp edx, dword [eax + 0x20]
je 0x422a76
mov eax, dword [eax + 4]
cmp eax, ecx
mov dword [esp], eax
jne 0x422a60
pop ecx
ret
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov edx, dword [esp]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
pop ecx
ret
Function at 0x422a90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, dword [esp + 8]
cmp dword [ebp + 8], 0
je 0x422aa1
xor eax, eax
pop ebp
ret 0xc
mov eax, dword [esp + 0xc]
push esi
mov esi, ecx
mov ecx, ebp
call fcn.00422ed0
test eax, eax
jne 0x422ab8
pop esi
pop ebp
ret 0xc
push ebx
mov eax, ebp
call fcn.00422f60
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x422ad0
pop ebx
pop esi
pop ebp
ret 0xc
push edi
push 0x40
push 0x3000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x422ba4
mov eax, dword [esp + 0x18]
push eax
push edi
mov esi, ebp
call fcn.00422fe0
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0xa0], 0
jbe 0x422b13
cmp dword [eax + 0xa4], 0
jbe 0x422b13
push ebp
call fcn.00422ce0
push ebp
mov ecx, edi
call fcn.00422d60
test eax, eax
jne 0x422b35
push 0x8000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp + 0x10]
mov esi, dword [esp + 0x1c]
test esi, esi
mov dword [edx + 0x34], edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x28]
lea eax, [ecx + edi]
mov dword [ebp + 4], eax
je 0x422b6c
push eax
push ebx
push edi
mov ebx, esi
call fcn.00422910
mov ebx, dword [esp + 0x14]
mov edx, dword [ebp + 4]
push 0
push 1
push edi
call edx
test eax, eax
jne 0x422bad
push eax
push eax
mov eax, dword [ebp + 4]
push edi
call eax
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test esi, esi
je 0x422b9d
mov edx, ebx
mov esi, edi
call fcn.00422a40
mov dword [ebp + 4], 0
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret 0xc
mov dword [ebp + 8], edi
pop edi
pop ebx
pop esi
mov dword [ebp], 1
mov eax, 1
pop ebp
ret 0xc

Function at 0x422ed0
Capabilities:
Parse pe header

Disassembly:
cmp esi, 0x40
jae 0x422ed8
xor eax, eax
ret
mov dword [ecx + 0xc], eax
cmp word [eax], 0x5a4d
jne 0x422ed5
mov edx, dword [eax + 0x3c]
push edi
lea edi, [edx + 0xf8]
cmp esi, edi
jb 0x422f51
add eax, edx
mov dword [ecx + 0x10], eax
cmp dword [eax], 0x4550
jne 0x422f51
movzx edx, word [eax + 0x16]
test edx, 0x2000
je 0x422f51
test dl, 2
je 0x422f51
cmp word [eax + 0x14], 0xe0
jne 0x422f51
mov edi, dword [ecx + 0x10]
lea edx, [eax + 0xf8]
xor eax, eax
mov dword [ecx + 0x14], edx
cmp word [edi + 6], ax
jbe 0x422f4a
add edx, 0x10
lea ecx, [ecx]
mov edi, dword [edx + 4]
add edi, dword [edx]
cmp edi, esi
ja 0x422f51
mov edi, dword [ecx + 0x10]
movzx edi, word [edi + 6]
add eax, 1
add edx, 0x28
cmp eax, edi
jl 0x422f30
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x422fe0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esi + 0x10]
movzx ecx, word [eax + 6]
mov edx, dword [eax + 0x54]
push ebx
lea ecx, [ecx + ecx*4]
push ebp
mov ebp, dword [esp + 0xc]
lea eax, [edx + ecx*8]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebp
call fcn.0044e1a0
mov edx, dword [esi + 0x10]
xor ebx, ebx
add esp, 0xc
cmp word [edx + 6], bx
jbe 0x42304d
push edi
xor edi, edi
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + edi + 0xc]
add eax, edi
test ecx, ecx
je 0x42303b
mov edx, dword [eax + 0x10]
test edx, edx
je 0x42303b
push edx
mov edx, dword [eax + 0x14]
add edx, dword [esp + 0x18]
add ecx, ebp
push edx
push ecx
call fcn.0044e1a0
add esp, 0xc
mov eax, dword [esi + 0x10]
movzx ecx, word [eax + 6]
add ebx, 1
add edi, 0x28
cmp ebx, ecx
jl 0x423013
pop edi
mov dword [esi + 0xc], ebp
mov edx, dword [ebp + 0x3c]
lea eax, [edx + ebp]
mov dword [esi + 0x10], eax
add eax, 0xf8
pop ebp
mov dword [esi + 0x14], eax
pop ebx
ret 8