joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407150
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov word [ebp - 0x38], 0
mov esi, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4072b0
cmp ecx, esi
mov ebx, dword [eax + 0x1c]
jg 0x4072d3
test bl, 1
jne 0x4072de
xor edi, edi
mov dword [ebp - 0x1c], 0
mov esi, ecx
sub esi, 0x20
js 0x407208
lea esi, [esi]
lea edi, [edi]
movzx edx, word [ebx]
movzx eax, word [ebx + 2]
movzx ecx, word [ebx + 6]
add edx, edi
add edx, eax
movzx eax, word [ebx + 4]
add eax, ecx
movzx ecx, word [ebx + 8]
add edx, ecx
movzx ecx, word [ebx + 0xa]
add eax, ecx
movzx ecx, word [ebx + 0xc]
add edx, ecx
movzx ecx, word [ebx + 0xe]
add eax, ecx
movzx ecx, word [ebx + 0x10]
add edx, ecx
movzx ecx, word [ebx + 0x12]
add eax, ecx
movzx ecx, word [ebx + 0x14]
add edx, ecx
movzx ecx, word [ebx + 0x16]
add eax, ecx
movzx ecx, word [ebx + 0x18]
add edx, ecx
movzx ecx, word [ebx + 0x1a]
add eax, ecx
movzx ecx, word [ebx + 0x1c]
add edx, ecx
movzx ecx, word [ebx + 0x1e]
add ebx, 0x20
add eax, ecx
sub esi, 0x20
lea edi, [edx + eax]
jns 0x4071a0
add esi, 0x18
js 0x407230
lea esi, [esi]
movzx ecx, word [ebx]
movzx eax, word [ebx + 2]
movzx edx, word [ebx + 6]
add ecx, edi
add ecx, eax
movzx eax, word [ebx + 4]
add ebx, 8
add eax, edx
sub esi, 8
lea edi, [ecx + eax]
jns 0x407210
mov edx, dword [ebp - 0x1c]
lea eax, [esi + 8]
or edx, eax
je 0x407308
mov edx, edi
movzx eax, di
shr edx, 0x10
lea edi, [eax + edx]
cmp edi, 0xffff
jg 0x40730f
add esi, 6
js 0x40726d
lea esi, [esi]
movzx eax, word [ebx]
add ebx, 2
add edi, eax
sub esi, 2
jns 0x407260
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40731a
mov edx, edi
movzx eax, di
shr edx, 0x10
add eax, edx
cmp eax, 0xffff
jle 0x40728e
sub eax, 0xffff
mov edi, eax
shl edi, 8
inc esi
je 0x407339
mov eax, dword [ebp - 0x38]
mov ah, 0
mov word [ebp - 0x38], ax
movzx eax, ax
lea edx, [eax + edi]
lea esi, [esi]
movzx eax, dx
shr edx, 0x10
add eax, edx
cmp eax, 0xffff
jle 0x4072c4
sub eax, 0xffff
add esp, 0x2c
not eax
pop ebx
and eax, 0xffff
pop esi
pop edi
pop ebp
ret
test bl, 1
mov ecx, esi
je 0x407186
test ecx, ecx
jle 0x407186
mov eax, dword [ebp - 0x38]
xor edi, edi
dec ecx
movzx dx, byte [ebx]
inc ebx
mov dword [ebp - 0x1c], 1
and eax, 0xffffff00
or eax, edx
mov word [ebp - 0x38], ax
jmp 0x40718f
inc eax
mov edx, edi
jne 0x4072b0
jmp 0x40729a
sub edi, 0xffff
jmp 0x407255
inc esi
mov edx, edi
lea esi, [esi]
jne 0x4072b0
mov eax, dword [ebp - 0x38]
movzx dx, byte [ebx]
and eax, 0xffffff00
or eax, edx
mov word [ebp - 0x38], ax
jmp 0x40729a
movzx eax, byte [ebx]
mov edx, dword [ebp - 0x38]
mov dh, al
movzx eax, dx
lea edx, [edi + eax]
jmp 0x4072b0
Function at 0x407610
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov word [ebp - 0x1c], 2
mov ebx, dword [esi + 0x18]
push 0xffffff00
call sub.WS2_32.DLL_htonl
and ebx, eax
add esp, 0xc
cmp ebx, dword [0x413430]
je 0x4076a7
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x20]
sub esp, 8
push 0x10
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [edi + 0x20]
push eax
mov edi, dword [edi + 0x1c]
push edi
mov ebx, dword [esi + 8]
push ebx
call sub.WS2_32.DLL_sendto
pop edx
mov edx, 0xffffffff
test eax, eax
pop ecx
js 0x407689
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x407698
mov dword [esi + 0x28], 4
xor edx, edx
mov ebx, dword [ebp - 0xc]
mov eax, edx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x413580]
add eax, 0x3a980
mov dword [esi + 0x30], eax
jmp 0x407680
mov eax, dword [esi + 0x18]
sub esp, 0xc
push eax
call sub.WS2_32.DLL_ntohl
and eax, 0xff
add esp, 0xc
cmp eax, 3
je 0x4076ca
mov eax, dword [0x413520]
mov dword [ebp - 0x18], eax
jmp 0x40764b
call fcn.00408fb0
mov dword [ebp - 0x18], eax
jmp 0x40764b
Function at 0x407950
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
cmp dword [edi + 0x14], 0x800
lea esi, [edi + 0x3c]
jle 0x407978
mov dword [edi + 0x14], 0x800
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jae 0x4079c1
push 1
mov edx, dword [edi + 0x14]
push edx
push eax
mov ebx, dword [edi + 8]
push ebx
call sub.WS2_32.DLL_send
sub dword [edi + 0x14], eax
mov ecx, eax
mov ebx, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 0x10]
sub dword [esi], ecx
mov eax, ebx
add edx, ecx
add eax, edi
cmp edx, eax
mov dword [esi + 0xc], edx
jb 0x4079b2
sub edx, ebx
mov dword [esi + 0xc], edx
mov ebx, dword [ebp - 0xc]
mov eax, ecx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov edx, dword [edi + 0x14]
add ebx, ecx
sub ebx, eax
cmp ebx, edx
jg 0x407a10
sub esp, 4
push ebx
push eax
lea eax, [ebp - 0x80c]
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0x10
sub eax, ebx
test eax, eax
mov dword [edi + 0x14], eax
jne 0x407a14
push 1
push ebx
lea eax, [ebp - 0x80c]
push eax
mov eax, dword [edi + 8]
push eax
call sub.WS2_32.DLL_send
mov ecx, eax
jmp 0x407995
mov ebx, edx
jmp 0x4079d2
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 8]
mov dword [ebp - 0x810], eax
sub edx, ecx
cmp eax, edx
jle 0x407a2c
mov dword [ebp - 0x810], edx
mov edx, dword [ebp - 0x810]
sub esp, 4
lea eax, [ebp - 0x80c]
add eax, ebx
push edx
push ecx
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 0x810]
add esp, 0x10
sub dword [edi + 0x14], eax
add ebx, eax
jmp 0x4079f2
Function at 0x407a60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 8]
mov edx, dword [eax + 0x14]
add edi, 0x3c
test edx, edx
jne 0x407ba0
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
mov edx, dword [eax + 0x3c]
mov eax, dword [edi + 8]
cmp ecx, eax
jae 0x407b40
sub eax, ecx
mov esi, edx
cmp eax, edx
ja 0x407b80
mov esi, eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea esi, [esi]
lea edi, [edi]
push 0
push esi
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
push edx
call sub.WS2_32.DLL_send
cmp eax, 0
mov ebx, eax
jl 0x407bc6
je 0x407be0
cmp dword [ebp - 0x18], 2
je 0x407c30
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
sub dword [edi], ebx
mov eax, ecx
add edx, ebx
add eax, esi
cmp edx, eax
mov dword [edi + 0xc], edx
jb 0x407b08
sub edx, ecx
mov dword [edi + 0xc], edx
mov eax, dword [ebp + 8]
test byte [eax + 0x28], 0x40
je 0x407b30
mov ecx, dword [edi]
test ecx, ecx
jne 0x407b30
sub esp, 0xc
push eax
call fcn.00407430
add esp, 0x10
lea esi, [esi]
lea edi, [edi]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [edi + 0x10]
mov dword [ebp - 0x10], ebx
mov esi, ebx
mov ebx, dword [edi + 4]
add esi, ebx
sub esi, ecx
cmp esi, edx
jbe 0x407b70
mov esi, edx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x407ac0
sub edx, esi
jne 0x407c10
nop
lea esi, [esi]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x407ac0
sub esp, 0xc
push eax
call fcn.00407950
mov ebx, dword [ebp + 8]
add esp, 0x10
mov esi, dword [ebx + 0x3c]
test esi, esi
jne 0x407a7d
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.WS2_32.DLL_WSAGetLastError
cmp eax, 0xb
je 0x407bba
call sub.WS2_32.DLL_WSAGetLastError
cmp eax, 4
je 0x407bba
lea esi, [esi]
mov eax, dword [ebp + 8]
sub esp, 0xc
push eax
call fcn.00407430
mov ebx, dword [ebp + 8]
pop eax
mov eax, dword [ebx + 0x2c]
mov ebx, 0xffffffff
push eax
call fcn.004048a0
add esp, 0x10
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], 2
sub eax, ebx
cmp eax, edx
ja 0x407ac0
mov dword [ebp - 0x14], eax
jmp 0x407ac0
cmp eax, esi
jne 0x407aeb
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call sub.WS2_32.DLL_send
test eax, eax
jle 0x407aeb
add ebx, eax
jmp 0x407aeb
Function at 0x407c60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 8]
mov ebx, dword [eax + 0x50]
mov eax, dword [eax + 0x2c]
add edi, 0x50
mov edx, dword [edi + 4]
movzx eax, word [eax + 0x18]
mov ecx, edx
sub ecx, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x10], eax
mov ebx, dword [edi + 0xc]
cmp eax, ebx
jae 0x407d14
mov esi, ebx
sub esi, eax
cmp esi, ecx
ja 0x407d53
cmp esi, dword [ebp - 0x20]
ja 0x407db0
lea esi, [esi]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push esi
mov ecx, dword [ebp - 0x10]
push ecx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 8]
push edx
call sub.WS2_32.DLL_recv
cmp eax, 0
mov ebx, eax
jle 0x407e00
cmp dword [ebp - 0x1c], 2
je 0x407dd3
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov esi, dword [edi + 0x10]
add dword [edi], ebx
mov eax, ecx
add edx, ebx
add eax, esi
cmp edx, eax
mov dword [edi + 8], edx
jb 0x407d0a
sub edx, ecx
mov dword [edi + 8], edx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 0x10]
mov esi, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
add esi, edx
sub esi, eax
cmp esi, ecx
jbe 0x407d60
mov esi, ecx
cmp ecx, dword [ebp - 0x20]
jbe 0x407cb0
mov eax, ecx
xor edx, edx
div dword [ebp - 0x20]
mov esi, ecx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
sub esi, edx
jmp 0x407cc5
mov esi, ecx
cmp esi, dword [ebp - 0x20]
jbe 0x407cb0
jmp 0x407db0
mov edx, ecx
sub edx, esi
je 0x407e47
mov eax, dword [ebp - 0x14]
sub ebx, eax
cmp ebx, edx
mov dword [ebp - 0x18], ebx
jbe 0x407d79
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 2
add edx, esi
cmp dword [ebp - 0x20], edx
jge 0x407cc5
mov eax, edx
cdq
idiv dword [ebp - 0x20]
cmp dword [ebp - 0x18], edx
ja 0x407e55
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 1
sub edx, ebx
sub esi, edx
jmp 0x407cc5
mov eax, esi
xor edx, edx
div dword [ebp - 0x20]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
sub esi, edx
jmp 0x407cc5
cmp eax, esi
jne 0x407ced
push 0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call sub.WS2_32.DLL_recv
test eax, eax
jle 0x407ced
add ebx, eax
jmp 0x407ced
je 0x407e1c
call sub.WS2_32.DLL_WSAGetLastError
cmp eax, 4
lea esi, [esi]
je 0x407e4e
call sub.WS2_32.DLL_WSAGetLastError
cmp eax, 0xb
je 0x407e4e
mov eax, dword [ebp + 8]
sub esp, 0xc
mov ebx, 0xffffffff
push eax
call fcn.00407560
pop eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
push eax
call fcn.004048a0
add esp, 0x10
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, esi
jmp 0x407d29
xor ebx, ebx
jmp 0x407d0a
sub dword [ebp - 0x18], edx
jmp 0x407cc5
Function at 0x407f90
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [ebp - 0x10], 0x10
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x14], 1
call fcn.00407f50
test eax, eax
mov esi, eax
je 0x4080e5
sub esp, 0xc
push eax
call fcn.00404990
add esp, 0x10
test eax, eax
mov dword [esi + 0x2c], eax
je 0x40810a
sub esp, 8
push 0x413460
push esi
call fcn.00409490
add esp, 0x10
test bh, 2
jne 0x4080f0
or ebx, 0x100
sub esp, 4
mov dword [esi + 0x28], ebx
mov eax, dword [ebp + 0x10]
mov word [esi + 0x22], ax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 8]
mov word [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
mov word [ebp - 0x22], ax
push 0
push 1
push 2
call sub.WS2_32.DLL_socket
pop ecx
test eax, eax
mov edi, eax
js 0x4080c0
sub esp, 0xc
push 4
lea ebx, [ebp - 0x14]
push ebx
push 4
push 0xffff
push eax
call sub.WS2_32.DLL_setsockopt
add esp, 0xc
test eax, eax
js 0x4080c0
sub esp, 4
push 0x10
lea eax, [ebp - 0x24]
push eax
push edi
call sub.WS2_32.DLL_bind
pop edx
test eax, eax
js 0x4080c0
sub esp, 8
push 1
push edi
call sub.WS2_32.DLL_listen
pop edx
test eax, eax
pop ecx
js 0x4080c0
sub esp, 0xc
push 4
push ebx
push 0x100
push 0xffff
push edi
call sub.WS2_32.DLL_setsockopt
lea eax, [ebp - 0x10]
sub esp, 8
push eax
lea eax, [ebp - 0x24]
push eax
push edi
call sub.WS2_32.DLL_getsockname
movzx eax, word [ebp - 0x22]
mov word [esi + 0x20], ax
mov eax, dword [ebp - 0x20]
add esp, 0x14
test eax, eax
je 0x408100
cmp eax, dword [0x413520]
je 0x408100
mov dword [esi + 0x18], eax
mov dword [esi + 8], edi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.WS2_32.DLL_WSAGetLastError
sub esp, 0xc
push edi
mov ebx, eax
call sub.msvcrt.dll__close
mov dword [esp], esi
xor esi, esi
call fcn.00407eb0
mov dword [esp], ebx
call sub.WS2_32.DLL_WSASetLastError
add esp, 0xc
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x2c]
mov word [eax + 0xe], 0x12c
jmp 0x407fea
mov eax, dword [0x413410]
mov dword [esi + 0x18], eax
jmp 0x4080b3
sub esp, 0xc
push esi
xor esi, esi
call fcn.0040cb90
add esp, 0x10
jmp 0x4080e5
Function at 0x408f00
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x19c
lea eax, [ebp - 0x194]
push eax
push 2
call sub.WS2_32.DLL_WSAStartup
sub esp, 4
push 0x408fa0
call fcn.004012c0
mov ecx, 1
mov dword [0x413790], ecx
call fcn.00401410
call fcn.00405c20
call fcn.00409100
pop eax
pop edx
push 0x413520
push str.127.0.0.1
call fcn.004099d0
pop ecx
pop ebx
push 0x413430
push str.10.0.2.0
call fcn.004099d0
mov ebx, dword [0x413430]
mov dword [esp], 2
call sub.WS2_32.DLL_htonl
or ebx, eax
push 0xf
mov dword [0x413410], ebx
mov ebx, dword [0x413430]
call sub.WS2_32.DLL_htonl
or ebx, eax
add esp, 0xc
mov dword [0x413760], ebx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x408fb0
Capabilities:
Get networking parameters
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [0x4130b0]
test eax, eax
je 0x408fe0
mov eax, dword [0x4130a0]
cmp eax, dword [0x413580]
jb 0x408fe0
mov eax, dword [0x4130b0]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
sub esp, 8
push 0x248
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
pop ebx
test eax, eax
pop esi
je 0x40903f
sub esp, 8
mov ebx, eax
lea esi, [ebp - 0xc]
mov dword [ebp - 0xc], 0x248
push esi
push eax
call sub.IPHLPAPI.DLL_GetNetworkParams
pop edx
cmp eax, 0x6f
pop ecx
je 0x4090a0
sub esp, 8
push esi
push ebx
call sub.IPHLPAPI.DLL_GetNetworkParams
pop esi
test eax, eax
pop edx
je 0x409065
sub esp, 8
push eax
push str.GetNetworkParams_failed._ret___08x_n
call sub.msvcrt.dll_printf
mov dword [esp], ebx
call sub.KERNEL32.dll_GlobalFree
add esp, 0xc
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x1a
push 1
push str.Could_not_get_DNS_address_n
call sub.msvcrt.dll_fwrite
mov eax, dword [0x4130b0]
add esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
sub esp, 8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebx + 0x110]
push eax
call fcn.004099d0
mov eax, dword [ebp - 0x10]
mov dword [0x4130b0], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_GlobalFree
mov eax, dword [0x413580]
add eax, 0x2710
mov dword [0x4130a0], eax
add esp, 0xc
jmp 0x408fce
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_GlobalFree
mov ecx, dword [ebp - 0xc]
sub esp, 0xc
push ecx
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
add esp, 0x18
test eax, eax
je 0x40903f
mov ebx, eax
jmp 0x409016
Function at 0x40bf20
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x20
push 0
mov eax, dword [ebp + 8]
push pe_nt_image_headers32
mov esi, dword [ebp + 0x14]
push 3
push 0
push 1
push 0x80000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
pop eax
je 0x40c046
sub esp, 8
lea eax, [ebp - 0x14]
push eax
push edi
call sub.KERNEL32.dll_GetFileSize
test esi, esi
mov ebx, eax
pop eax
pop edx
jne 0x40bfe7
sub esp, 0xc
push ebx
call sub.msvcrt.dll_malloc
add esp, 0x10
mov dword [ebp - 0x20], 0x81c0c004
test eax, eax
mov esi, eax
je 0x40bfd0
sub esp, 0xc
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push edi
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
cmp ebx, dword [ebp - 0x10]
je 0x40c000
mov ecx, dword [ebp + 8]
sub esp, 0xc
push ecx
call fcn.00409bf0
add esp, 0x10
cmp dword [0x4130f0], 2
jg 0x40c013
sub esp, 0xc
push esi
call fcn.0040cb90
add esp, 0x10
mov dword [ebp - 0x20], 0x81c0ec01
lea esi, [esi]
sub esp, 0xc
push edi
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebx, esi
ja 0x40bff6
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40bf6c
mov ebx, esi
jmp 0x40bf6c
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov dword [ebp - 0x20], 0
jmp 0x40bfd0
mov edx, dword [ebp - 0x10]
sub esp, 8
mov eax, dword [ebp + 8]
push edx
push ebx
push eax
push str.Error_reading_file__s___lu____lu
push str.co_os_file_load
push 0x39
push str.src_colinux_os_winnt_user_file.c
push 3
push 0
push str.colinux_slirp_net_daemon
call fcn.0040ac30
add esp, 0x30
jmp 0x40bfb6
mov ebx, dword [ebp + 8]
sub esp, 0xc
push ebx
call fcn.00409bf0
add esp, 0x10
cmp dword [0x4130f0], 2
mov dword [ebp - 0x20], 0x81c09401
jle 0x40bfdc
mov ecx, dword [ebp + 8]
push ecx
push str.Error_opening_file___s_
push str.co_os_file_load
push 0x24
push str.src_colinux_os_winnt_user_file.c
push 3
push 0
push str.colinux_slirp_net_daemon
call fcn.0040ac30
add esp, 0x20
mov dword [ebp - 0x20], 0x81c09401
jmp 0x40bfdc
Function at 0x40c330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x10
lea eax, [eax + 0x40]
push eax
lea eax, [ebx + 0x10068]
push eax
push 0x10000
lea eax, [ebx + 0x68]
push eax
mov eax, dword [ebx + 0x3c]
push eax
call sub.KERNEL32.dll_ReadFile
mov edx, 0x1015c00
add esp, 0xc
test eax, eax
je 0x40c370
mov ebx, dword [ebp - 4]
mov eax, edx
leave
ret
call sub.KERNEL32.dll_GetLastError
cmp eax, 8
je 0x40c3c3
cmp eax, 0x3e5
mov edx, 0x1013000
je 0x40c362
cmp dword [0x4130f0], 2
mov edx, 0x81014c01
jle 0x40c362
push eax
push str.Error:_0x_lx
push str.packet_read_async
push 0x52
push str.src_colinux_os_winnt_user_reactor.c
push 3
push 0
push str.colinux_slirp_net_daemon
call fcn.0040ac30
add esp, 0x20
mov ebx, dword [ebp - 4]
leave
mov edx, 0x81014c01
mov eax, edx
ret
cmp dword [0x4130f0], 2
mov edx, 0x81014004
jle 0x40c362
mov ecx, dword [ebx + 0x3c]
push ecx
push str.Warn:_NOT_ENOUGH_MEMORY__handle_d_
push str.packet_read_async
push 0x4f
push str.src_colinux_os_winnt_user_reactor.c
push 3
push 0
push str.colinux_slirp_net_daemon
call fcn.0040ac30
mov edx, 0x81014004
add esp, 0x20
jmp 0x40c362
Function at 0x413130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd4
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
push esi
push 0x3e9
mov dword [esp + 0x38], 0x64
mov dword [esp + 0x24], esi
call fcn.00415710
mov ebp, eax
push esi
mov ebx, dword [esp + 0xec]
push esi
mov dword [esp + 0x58], ebp
lea edi, [ebx + 0x14]
mov ecx, edi
mov dword [esp + 0x1c], edi
call fcn.004102d0
cmp eax, esi
je 0x4136ca
cmp dword [esp + 0xec], esi
jne 0x4131c3
lea esi, [eax + 0x18]
push esi
call fcn.0044d790
add esi, eax
push esi
call fcn.0044d790
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x4131c1
mov eax, dword [esi + 0x1c]
push eax
call dword [0x46e3ec]
test eax, eax
je 0x4131c1
mov eax, dword [esi + 0x1b4]
test eax, eax
je 0x4131d6
push 0
push 0
mov ecx, esi
call fcn.00419780
xor esi, esi
cmp dword [esp + 0xf4], 1
jne 0x413221
mov dword [esp + 0xf8], esi
jmp 0x41323b
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x46e5b4]
test eax, eax
je 0x4131ff
push 9
mov ecx, esi
call fcn.00462d2c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd4
ret 0x14
mov edx, dword [esi + 0x1c]
push edx
call dword [0x46e414]
push eax
call fcn.00460353
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd4
ret 0x14
mov eax, dword [esp + 0xf8]
cmp eax, esi
je 0x41323b
push eax
call dword [0x46e3ec]
test eax, eax
je 0x4136ca
push esi
push esi
push 0x7d9
call fcn.00415710
lea ecx, [ebx + 0x34]
push edi
mov dword [esp + 0x24], ecx
call fcn.00410260
push ebx
mov ecx, ebp
call fcn.00410740
cmp eax, esi
mov dword [esp + 0x4c], eax
je 0x4136ca
lea eax, [esp + 0xb4]
mov ecx, edi
push eax
mov dword [esp + 0xa0], esi
mov dword [esp + 0x14], esi
call fcn.00410da0
cmp eax, esi
mov dword [esp + 0x28], esi
jle 0x4132b1
mov edx, dword [esp + 0xb4]
lea ecx, [esp + 0x28]
push esi
push ecx
push esi
push 0xffffffffffffffff
push eax
push esi
push edx
mov ecx, edi
call fcn.004102d0
push eax
call fcn.00420f60
add esp, 0x18
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x54]
call fcn.004015e0
mov esi, 0x4828dc
lea ecx, [esp + 0x7c]
mov dword [esp + 0x54], esi
call fcn.004015e0
lea ecx, [esp + 0x68]
mov dword [esp + 0x7c], esi
call fcn.004015e0
lea ecx, [esp + 0x34]
mov dword [esp + 0x68], esi
call fcn.004015e0
mov esi, dword [ebx + 0x18]
mov ebx, esi
mov dword [esp + 0x30], esi
test esi, esi
mov dword [esp + 0x1c], ebx
jle 0x4135b9
Function at 0x4134d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edx
call dword [esp + 0x5c]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
mov dword [0x4ad6c4], ebp
mov dword [esp + 0x18], esi
je 0x413645
mov eax, dword [esi + 0x1c]
cmp eax, ebp
mov dword [esp + 0x9c], eax
je 0x413645
push eax
call dword [0x46e3ec]
test eax, eax
je 0x413645
mov eax, dword [esp + 0xec]
mov dword [esp + 0x10], ebp
mov dword [esi + 0xd8], eax
jmp 0x41357d
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x413654
push eax
call dword [0x46e5c4]
cmp ebx, ebp
je 0x41365f
push ebx
call dword [0x46e3f0]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
call dword [edx + 8]
jmp 0x413691