joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438920
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
or ebx, 0xffffffff
mov eax, dword [esi + 0x58]
test eax, 0x4000000
je 0x43895e
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x43894f
call fcn.0053fcd2
pop esi
mov dword [eax], 0x2746
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [esi + 0x5c], 0
push edi
je 0x438a03
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [esi + 0x6c]
call fcn.004466f0
mov ecx, dword [ebp + 8]
add esp, 0x10
cmp dword [ebp + 0x10], ecx
cmovb ecx, dword [ebp + 0x10]
push dword [ebp + 0x14]
push ecx
push dword [ebp - 4]
push dword [esi + 0x60]
call dword [sym.imp.WS2_32.dll_recv]
push eax
call fcn.00539b90
mov edi, eax
add esp, 4
test edi, edi
jns 0x438b0e
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x4389c5
call fcn.0053fcd2
cmp dword [eax], 0x2738
jne 0x438b0e
push edi
push dword [esi + 0x6c]
call fcn.00446730
add esp, 8
cmp dword [ebp + 0x18], 0
jne 0x4389fa
push edi
push dword [ebp + 0xc]
push dword [esi + 0x6c]
call fcn.00435270
push dword [esi + 0x6c]
call fcn.00446790
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, 0x4080
jne 0x438a65
test eax, 0x400
jne 0x438a45
push esi
call fcn.00435520
add esp, 4
test eax, eax
je 0x438a45
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x438a35
call fcn.0053fcd2
pop edi
pop esi
mov dword [eax], 0x2746
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x58]
test eax, 0x400
je 0x438a65
mov edi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0xffffffffffffffff
call edi
mov eax, dword [esi + 0x58]
test eax, 0x400
jne 0x438a55
test eax, 0x4000
je 0x438ad4
push dword [esi + 0x6c]
call fcn.00446930
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x438aaf
cmp dword [ebp + 0x18], 0
mov ebx, ecx
jne 0x438aaf
mov eax, dword [ebp + 0x10]
cmp ecx, eax
cmovb eax, ecx
push eax
push dword [ebp + 0xc]
push dword [esi + 0x6c]
call fcn.00435270
add esp, 0xc
mov ebx, eax
test byte [esi + 0x58], 0x20
jne 0x438ab5
push dword [esi + 0x6c]
call fcn.00446790
add esp, 4
test byte [esi + 0x58], 0x20
je 0x438ac4
push dword [esi + 0x6c]
call fcn.00446930
add esp, 4
test eax, eax
jne 0x438acb
and dword [esi + 0x58], 0xffffbfff
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
test al, al
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
jns 0x438aff
test eax, eax
jne 0x438aef
call fcn.0053fcd2
pop edi
pop esi
mov dword [eax], 0x2733
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x438b08
call fcn.0053fcd2
mov dword [eax], 0x2714
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438ef0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00446670
mov ecx, dword [ebp + 0x18]
mov edi, eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0x10
mov eax, dword [ecx + 4]
mov dword [ebp + 0x18], eax
movzx eax, word [ecx + 2]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x80]
mov dword [ebp + 8], eax
movzx eax, word [esi + 0x78]
test ax, ax
je 0x438f33
mov ebx, eax
jmp 0x438fbd
mov ebx, dword [esi + 0x74]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov eax, 2
mov dword [ebp - 8], 0x10
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push ebx
mov dword [ebp - 0x1c], 0
call dword [sym.imp.WS2_32.dll_bind]
push eax
call fcn.00539b90
add esp, 4
test eax, eax
je 0x438f84
push str.bind_failed__m
push 0x360003
call fcn.00422d60
add esp, 8
xor eax, eax
jmp 0x438fba
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
push eax
call fcn.00539b90
add esp, 4
test eax, eax
je 0x438fb6
push str.getsockname_failed__m
push 0x360003
call fcn.00422d60
add esp, 8
xor eax, eax
jmp 0x438fba
movzx eax, word [ebp - 0x1e]
movzx ebx, ax
push dword [ebp + 0x10]
mov word [esi + 0x78], bx
push dword [ebp + 0xc]
push edi
call fcn.00446580
push dword [ebp + 0x18]
push dword [ebp + 8]
push dword [ebp - 0xc]
push ebx
push edi
call fcn.00447080
push 0x11
push dword [ebp + 0x18]
push dword [ebp + 8]
push edi
call fcn.00446fd0
add esp, 0x30
cmp word [esi + 0x5c], 0
je 0x439011
mov eax, dword [esi + 0x58]
and eax, 0x200000
shl eax, 4
push eax
push edi
call fcn.00446610
add esp, 8
mov ebx, 0x20
jmp 0x439016
mov ebx, 0x1c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.004466b0
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp - 0x10]
push esi
call fcn.00438be0
mov esi, eax
add esp, 0x1c
test esi, esi
jle 0x43903e
sub esi, ebx
push edi
call fcn.00446550
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439050
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x5fe820
call fcn.00427d70
mov eax, dword [ebp + 8]
push 0x5fe820
lea edi, [eax*4]
mov eax, dword [0x5fe84c]
mov esi, dword [edi + eax]
call fcn.00427d80
add esp, 8
cmp dword [esi + 0x3c], 0
je 0x4390eb
cmp dword [esi + 0xc], 2
jne 0x4390eb
cmp word [esi + 0x5c], 0
je 0x4390eb
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x10
jae 0x4390bd
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x4390b0
call fcn.0053fcd2
pop edi
mov dword [eax], 0x16
or eax, 0xffffffff
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [eax], 0x10
mov eax, 2
pop edi
movups xmmword [ecx], xmm0
mov word [ecx], ax
mov eax, dword [esi + 0x80]
mov dword [ecx + 4], eax
mov ax, word [esi + 0x78]
mov word [ecx + 2], ax
xor eax, eax
pop esi
pop ebp
ret
push 0x5fe820
call fcn.00427d70
mov eax, dword [0x5fe84c]
push 0x5fe820
mov esi, dword [edi + eax]
call fcn.00427d80
add esp, 8
cmp dword [esi + 0x3c], 0
jne 0x43912c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x60]
call dword [sym.imp.WS2_32.dll_getsockname]
push eax
call fcn.00539b90
add esp, 4
pop edi
pop esi
pop ebp
ret
or eax, 0xffffffff
push eax
call fcn.00539b90
add esp, 4
pop edi
pop esi
pop ebp
ret

Function at 0x439180
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5fe820
call fcn.00427d70
mov ecx, dword [ebp + 8]
mov eax, dword [0x5fe84c]
push 0x5fe820
mov esi, dword [eax + ecx*4]
call fcn.00427d80
mov eax, dword [esi + 0x58]
add esp, 8
test al, 0x40
je 0x43925e
test al, 1
je 0x4391ec
cmp dword [esi + 0x3c], 0
je 0x4391c8
cmp dword [esi + 0xc], 2
jne 0x4391c8
cmp word [esi + 0x5c], 0
jne 0x4391ec
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x60]
call dword [sym.imp.WS2_32.dll_recvfrom]
push eax
call fcn.00539b90
add esp, 4
pop esi
pop ebp
ret
test eax, reloc.WS2_32.dll_connect
jne 0x439226
cmp dword [esi + 0x3c], 0
je 0x439206
cmp dword [esi + 0xc], 2
jne 0x439206
cmp word [esi + 0x5c], 0
jne 0x439226
push eax
push str.invalid_type:__d
push 0x76d
push str.vsock_recvfrom
push 0x360202
call fcn.004230d0
add esp, 0x14
pop esi
pop ebp
ret
cmp dword [esi + 0xc], 0
jne 0x439243
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00438920
add esp, 0x14
pop esi
pop ebp
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00438b20
add esp, 0x18
pop esi
pop ebp
ret
push str.recvfrom_from_non_packet_socket
push 0x360000
call fcn.004232c0
int3
Function at 0x439280
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5fe820
call fcn.00427d70
mov ecx, dword [ebp + 8]
mov eax, dword [0x5fe84c]
push 0x5fe820
mov esi, dword [eax + ecx*4]
call fcn.00427d80
mov eax, dword [esi + 0x58]
add esp, 8
test al, 0x40
jne 0x4392cd
push eax
push str.invalid_type:__d
push 0x72e
push str.vsock_send
push 0x360202
call fcn.004230d0
mov eax, dword [esi + 0x58]
add esp, 0x14
mov ecx, dword [esi + 0x3c]
test eax, reloc.WS2_32.dll_connect
jne 0x43932a
test ecx, ecx
je 0x4392e8
cmp dword [esi + 0xc], 2
jne 0x4392e8
cmp word [esi + 0x5c], 0
jne 0x43932a
test al, 1
je 0x43930a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x60]
call dword [sym.imp.WS2_32.dll_send]
push eax
call fcn.00539b90
add esp, 4
pop esi
pop ebp
push eax
push str.invalid_type:__d
push 0x733
push str.vsock_send
push 0x360202
call fcn.004230d0
add esp, 0x14
pop esi
pop ebp
ret
test ecx, ecx
je 0x439371
cmp dword [esi + 0xc], 2
jne 0x439371
cmp word [esi + 0x5c], 0
je 0x439371
test eax, 0x1000000
je 0x439386
cmp dword [esi + 0x14], 0x11
lea eax, [esi + 0x94]
push 0x10
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
jne 0x439366
call fcn.00438ef0
add esp, 0x18
pop esi
pop ebp
ret
call fcn.00438e40
add esp, 0x18
pop esi
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00438be0
add esp, 0x10
pop esi
pop ebp
ret
push str.cannot_use_send_when_socket_not_connected
push 0x360000
call fcn.004232c0
int3
Function at 0x4393a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5fe820
call fcn.00427d70
mov ecx, dword [ebp + 8]
mov eax, dword [0x5fe84c]
push 0x5fe820
mov esi, dword [eax + ecx*4]
call fcn.00427d80
mov eax, dword [esi + 0x58]
add esp, 8
test al, 0x40
je 0x4394ac
test eax, reloc.WS2_32.dll_connect
jne 0x439433
cmp dword [esi + 0x3c], 0
je 0x4393eb
cmp dword [esi + 0xc], 2
jne 0x4393eb
cmp word [esi + 0x5c], 0
jne 0x439433
test al, 1
je 0x439413
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x60]
call dword [sym.imp.WS2_32.dll_sendto]
push eax
call fcn.00539b90
add esp, 4
pop esi
pop ebp
ret
push eax
push str.invalid_type:__d
push 0x783
push str.vsock_sendto
push 0x360202
call fcn.004230d0
add esp, 0x14
pop esi
pop ebp
ret
push edi
mov edi, dword [ebp + 0x18]
test edi, edi
jne 0x439452
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi]
call fcn.00439280
add esp, 0x10
pop edi
pop esi
pop ebp
ret
cmp dword [esi + 0xc], 2
jne 0x4394bb
cmp dword [esi + 0x14], 0x11
jne 0x43948c
push esi
call fcn.00439870
add esp, 4
test eax, eax
je 0x439472
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00438ef0
add esp, 0x18
pop edi
pop esi
pop ebp
ret
cmp dword [esi + 0x10], 3
jne 0x4394bb
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00438e40
add esp, 0x18
pop edi
pop esi
pop ebp
ret
push str.sendto_to_non_packet_socket
push 0x360000
call fcn.004232c0
push str.invalid_socket_address
push 0x360000
call fcn.004232c0
int3
Function at 0x4394d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x5fe820
call fcn.00427d70
mov ecx, dword [ebp + 8]
mov eax, dword [0x5fe84c]
push 0x5fe820
mov esi, dword [eax + ecx*4]
call fcn.00427d80
mov ebx, dword [ebp + 0xc]
add esp, 8
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
cmp ebx, 0xffff
jne 0x439535
cmp edx, 0x20
jne 0x439554
cmp edi, 4
jne 0x4395e1
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi + 0x58]
mov ecx, dword [ecx]
neg ecx
sbb ecx, ecx
and eax, 0xffdfffff
and ecx, 0x200000
or ecx, eax
mov dword [esi + 0x58], ecx
jmp 0x43957f
test ebx, ebx
jne 0x439554
cmp edx, 0xc
jne 0x439554
cmp edi, 8
jne 0x4395f0
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
mov dword [esi + 0x8c], eax
jmp 0x439582
cmp edx, 0x19
jne 0x43957f
mov ecx, dword [esi + 0x58]
mov eax, ecx
and eax, reloc.WS2_32.dll_listen
cmp eax, 1
jne 0x43957f
test cl, 0x40
je 0x43957f
cmp dword [esi + 0xc], 2
jne 0x43957f
cmp dword [esi + 0x14], 0x11
je 0x4395b7
cmp dword [esi + 0x10], 3
je 0x4395b7
mov ecx, dword [ebp + 0x14]
cmp dword [esi + 0x3c], 0
je 0x4395c6
cmp dword [esi + 0xc], 2
jne 0x4395c6
cmp word [esi + 0x5c], 0
je 0x4395c6
cmp edx, 4
je 0x4395bf
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x4395b1
call fcn.0053fcd2
mov dword [eax], 0x16
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push edi
push ecx
push edx
push ebx
push dword [esi + 0x60]
call dword [sym.imp.WS2_32.dll_setsockopt]
push eax
call fcn.00539b90
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
push str.incorrect_SO_BROADCAST_parameters
push 0x360000
call fcn.004232c0
push str.incorrect_IP_ADD_MEMBERSHIP_parameters
push 0x360000
call fcn.004232c0
int3
Function at 0x439770
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0x5fe820
call fcn.00427d70
mov ecx, dword [ebp + 8]
mov eax, dword [0x5fe84c]
push 0x5fe820
mov edi, dword [eax + ecx*4]
call fcn.00427d80
add esp, 8
mov dword [ebp - 4], 0x10
test dword [edi + 0x58], 0x800000
lea esi, [edi + 0xec]
jne 0x439840
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x60]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4397d2
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
movzx eax, word [ebp - 0x12]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0x10
push eax
push dword [edi + 0x60]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x4397c9
cmp dword [edi + 0x48], eax
je 0x439808
movups xmm0, xmmword [edi + 0x44]
movups xmmword [ebp - 0x14], xmm0
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc], eax
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
cmp dword [ebp + 0xc], 0
mov dword [esi + 0x10], ecx
je 0x439826
mov eax, dword [esi + 8]
mov dword [esi + 8], ecx
mov dword [esi + 0x10], eax
push esi
mov dword [esi], 5
call fcn.00437950
add esp, 4
test eax, eax
jne 0x4397c9
or dword [edi + 0x58], 0x800000
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x441650
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.0041fa40
add esp, 8
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push eax
call fcn.00539bc0
xor ecx, ecx
add esp, 4
cmp eax, 0xffffffff
cmove eax, ecx
pop ebp
ret
Function at 0x4418a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x4c
push 0
push esi
call fcn.0053daa0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0xc]
push 0
push eax
push esi
mov dword [esi], eax
mov dword [esi + 4], ecx
call fcn.00441b80
push esi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
call fcn.00441a30
add esp, 0x1c
test eax, eax
jne 0x44194b
mov edi, dword [esi + 8]
lea eax, [ebp + 8]
push eax
push 0x40
push 0x32
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x44194b
test edi, edi
je 0x44194b
push dword [ebp + 0x10]
push dword [esi + 8]
push dword [esi + 0x18]
push edi
push esi
call fcn.00441cd0
movq xmm0, qword [edi]
lea edx, [ebp + 0x10]
mov ecx, dword [ebp + 8]
add esp, 0x14
movq qword [esi + 0x24], xmm0
movzx eax, word [edi + 8]
mov word [esi + 0x2c], ax
mov eax, dword [esi + 4]
push edx
push ecx
push 0x32
movq xmm0, qword [eax]
movq qword [esi + 0x42], xmm0
movzx eax, word [eax + 8]
push edi
mov word [esi + 0x4a], ax
mov dword [ebp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x441967
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 0x10], 0
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x441970
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x441a25
push edi
mov edi, dword [esi + 8]
lea eax, [ebp + 8]
push eax
push 0x40
push 0x32
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x441a02
test edi, edi
je 0x441a02
push dword [esi + 0x18]
push dword [esi + 0x10]
push edi
call fcn.0053dc00
lea eax, [ebp - 4]
push eax
push 0xf
lea eax, [ebp - 0xc34]
push eax
push dword [esi + 0x20]
push 0x32
push dword [esi + 0xc]
push 0
push dword [esi + 8]
call fcn.00407290
add esp, 0x2c
cmp eax, 3
je 0x4419ee
lea eax, [ebp - 0xc34]
push eax
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
push dword [esi + 8]
call fcn.00441c00
add esp, 0x14
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
push eax
push 0x32
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [ebp + 0xc], 0
pop edi
je 0x441a25
mov eax, dword [esi + 0x10]
test eax, eax
je 0x441a25
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 0x10], 0
pop esi
mov esp, ebp
pop ebp
Function at 0x441a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
lea eax, [ebp - 4]
push ebx
mov ebx, dword [ebp + 8]
push edi
push eax
push 0xf
lea eax, [ebp - 0xc34]
xor edi, edi
push eax
push dword [ebx + 0x20]
push 0x32
push dword [ebx + 0xc]
push edi
push dword [ebx + 8]
call fcn.00407290
add esp, 0x20
cmp eax, 3
je 0x441b77
push 0x40
push 0x1000
push 0x1e
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp + 8], eax
test eax, eax
je 0x441b77
cmp dword [ebx + 0x14], edi
jne 0x441a8d
mov dword [ebx + 0x14], eax
mov ecx, dword [ebx + 8]
mov eax, ecx
push esi
mov esi, dword [ebx + 4]
sub eax, esi
mov edx, esi
sub edx, ecx
cmp ecx, esi
mov esi, dword [ebp - 4]
cmovbe eax, edx
cmp eax, 0x80000000
sbb edx, edx
xor ecx, ecx
and edx, 0xfffffffb
add edx, 0xa
test esi, esi
je 0x441ad0
lea eax, [ebp - 0xb74]
nop dword [eax]
cmp edi, edx
jge 0x441ad0
add edi, dword [eax]
inc ecx
add eax, 0xd0
cmp ecx, esi
jb 0x441ac0
push edi
push dword [ebx + 0xc]
push dword [ebp + 8]
call fcn.0053dc00
mov esi, dword [ebx + 8]
mov ecx, esi
mov edx, dword [ebx + 0x14]
sub ecx, edx
lea eax, [esi + edi]
push eax
lea eax, [edx + edi]
push eax
mov eax, edx
sub eax, esi
cmp edx, esi
mov esi, dword [ebp + 8]
cmovbe eax, ecx
cmp eax, 0x80000000
sbb eax, eax
and eax, 0xfffffffb
add eax, 0xa
push eax
lea eax, [esi + edi]
push eax
push ebx
call fcn.00441cd0
lea eax, [ebp - 0xc34]
push eax
push dword [ebx + 8]
push edi
push esi
push esi
call fcn.00441c00
add esp, 0x34
test eax, eax
jne 0x441b5f
mov ecx, dword [ebx + 0x14]
mov eax, ecx
mov dword [ebx + 0x10], esi
mov esi, dword [ebx + 8]
mov edx, esi
sub eax, esi
mov dword [ebx + 0x18], edi
sub edx, ecx
cmp ecx, esi
pop esi
cmovbe eax, edx
cmp eax, 0x80000000
sbb eax, eax
and eax, 0xfffffffb
add eax, 0xa
add eax, edi
mov dword [ebx + 0x1c], eax
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442810
Capabilities:
Enumerate pe sections
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 0x18]
xorps xmm0, xmm0
push esi
xor esi, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], esi
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], esi
push edi
movups xmmword [ebp - 0x4c], xmm0
test ebx, ebx
je 0x442882
mov esi, dword [ebx]
test esi, esi
je 0x442882
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ecx]
test edi, edi
jle 0x44286f
nop word [eax + eax]
mov eax, dword [esi]
test eax, eax
je 0x442865
push eax
call fcn.0053fcf0
add esp, 4
mov dword [esi], 0
add esi, 0x10
sub edi, 1
jne 0x442850
mov esi, dword [ebx]
test esi, esi
je 0x442882
push esi
call fcn.0053fcf0
add esp, 4
mov dword [ebx], 0
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x44288f
mov dword [eax], 0
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x44289c
mov dword [eax], 0
call fcn.0053a170
cmp dword [ebp + 8], eax
jne 0x4428b0
cmp dword [ebp + 0xc], 0
je 0x4429d7
mov ebx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov esi, dword [ebp + 0x14]
or edi, 0xffffffff
push 0
push 0
push 3
push 0
push 1
push 0x1000a1
movq qword [ebx], xmm0
push esi
mov dword [ebp - 4], 0
mov dword [ebp + 8], 0
mov dword [ebx + 8], 0
call fcn.00441600
add esp, 0x1c
mov dword [ebp - 4], eax
push esi
test eax, eax
jne 0x44290c
push str.z_CreateFile_failed__s:__m
push 0x550003
call fcn.00422d60
add esp, 0xc
jmp 0x4429b1
call fcn.00422690
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], edx
push dword [ebp - 4]
push 0x8000000
push 0x20
push eax
push 0
push 0xf001f
lea eax, [ebp + 8]
push eax
call sub.ntdll.dll_NtCreateSection
push eax
call fcn.00539b90
add esp, 4
test eax, eax
je 0x44295a
push esi
push str.NtCreateSection_failed___s_:__m
push 0x550003
call fcn.00422d60
add esp, 0xc
jmp 0x4429b1
mov eax, dword [ebp - 0x20]
push 0x20
push 0
push 1
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp + 8]
call sub.ntdll.dll_NtMapViewOfSection
push eax
call fcn.00539b90
add esp, 4
test eax, eax
je 0x4429a2
push esi
push str.NtMapViewOfSection_failed___s_:__m
push 0x550003
invalid