joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00445a80
mov eax, dword [0x4635a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x2000
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x200c], 0
push eax
push 0
call dword [sym.imp.MSVCR120.dll__read]
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x2008], esi
test esi, esi
jg 0x40d26e
jns 0x40d1c8
cmp dword [0x463c14], 0
je 0x40d1c6
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push str.Error_reading_from_stdin:__s_n
call fcn.004011ea
mov esi, dword [ebp - 0x2008]
add esp, 0xc
test esi, esi
jne 0x40d1e6
cmp dword [0x463c18], 0
je 0x40d1e6
push str.EOF_on_stdin_n
call fcn.004011ea
mov esi, dword [ebp - 0x2008]
add esp, 4
mov edx, dword [0x463ee0]
xor ecx, ecx
test edx, edx
je 0x40d253
cmp dword [ecx*4 + 0x463ee4], 0
je 0x40d21c
inc ecx
cmp ecx, edx
jb 0x40d1f2
mov eax, esi
mov dword [0x463ed0], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
lea eax, [edx - 1]
cmp ecx, eax
jae 0x40d24c
jmp 0x40d230
mov eax, dword [ecx*4 + 0x463ee8]
mov dword [ecx*4 + 0x463ee4], eax
inc ecx
mov edx, dword [0x463ee0]
lea eax, [edx - 1]
cmp ecx, eax
jb 0x40d230
dec edx
mov dword [0x463ee0], edx
mov eax, esi
mov dword [0x463ed0], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
cmp dword [0x463c68], 0
je 0x40d29f
push 0x463ed4
lea eax, [ebp - 0x200c]
push eax
lea eax, [ebp - 0x2008]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.00401032
mov esi, dword [ebp - 0x2008]
add esp, 0x10
mov eax, dword [0x463c44]
test eax, eax
je 0x40d2b7
push eax
call fcn.004010af
mov esi, dword [ebp - 0x2008]
add esp, 4
mov eax, dword [ebp - 0x200c]
push esi
test eax, eax
je 0x40d2f6
push eax
push 0x46430c
push 0x4640f0
call fcn.0040101e
push dword [ebp - 0x200c]
call dword [sym.imp.MSVCR120.dll_free]
mov eax, dword [ebp - 0x2008]
add esp, 0x14
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2004]
push eax
push 0x46430c
push 0x4640f0
call fcn.0040101e
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, dword [ebp - 0x2008]
xor ecx, ebp
pop esi
call fcn.0044590e
mov esp, ebp
pop ebp
ret
Function at 0x40dc20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
mov edi, dword [sym.imp.MSVCR120.dll_strchr]
cmp byte [esi], 0x5b
jne 0x40dc4a
push 0x5d
push esi
call edi
add esp, 8
test eax, eax
je 0x40dcfe
inc esi
mov byte [eax], 0
inc eax
push ebx
push 0x3a
push eax
call edi
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40dc86
lea eax, [ebx + 1]
push 0x3a
push eax
call edi
add esp, 8
test eax, eax
jne 0x40dc86
push str.proxy_port
mov byte [ebx], al
lea eax, [ebx + 1]
push 0xffff
push eax
call fcn.0040dba0
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov word [ecx], ax
push dword [0x463c20]
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
movzx eax, word [eax]
push eax
push esi
call fcn.00401299
add esp, 0x14
pop ebx
test eax, eax
je 0x40dcf8
push 0
push 0x400
push 0x464410
push 0x400
push eax
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x464410
push esi
push str.Could_not_resolve_proxy___s_:__s._n
call fcn.00401186
add esp, 0xc
cmp dword [0x463c20], 0x17
jne 0x40dcf0
push str.Did_you_specify_the_port_number__Its_required_for_IPv6._n
call fcn.00401186
add esp, 4
push 1
call dword [sym.imp.MSVCR120.dll_exit]
mov eax, dword [edi]
pop edi
pop esi
pop ebp
ret
push esi
push str.Invalid_proxy_IPv6_address___s_.
call fcn.004010f0
int3
Function at 0x410890
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 4
call fcn.0041e970
mov ecx, dword [ebp + 0xc]
add esp, 4
mov esi, eax
push 0
push 0
push esi
push 0x411040
push 0
push 0
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4108e6
cmp dword [0x463c14], eax
je 0x4108d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_CreateThread:__d_n
call fcn.004011ea
add esp, 8
push esi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
pop esi
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret
Function at 0x410da0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x4635a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, str.http
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x320], 0x80
mov edi, dword [esi + 4]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x410df0
test dl, dl
je 0x410dec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x410df0
add eax, 2
add ecx, 2
test dl, dl
jne 0x410dd0
xor eax, eax
jmp 0x410df5
sbb eax, eax
or eax, 1
test eax, eax
je 0x410e26
cmp dword [0x463c14], 0
je 0x410e10
push edi
push str.Unknown_scheme_in_URI:__s._n
call fcn.004011ea
add esp, 8
pop edi
pop esi
mov eax, 0x190
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xc], 0xffffffff
jne 0x410e58
cmp dword [0x463c14], 0
je 0x410e42
push str.Unknown_port_in_URI._n
call fcn.004011ea
add esp, 4
pop edi
pop esi
mov eax, 0x190
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
push dword [0x463c20]
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x84]
push eax
movzx eax, word [esi + 0xc]
push eax
push dword [esi + 8]
call fcn.00401299
add esp, 0x14
test eax, eax
je 0x410eb9
cmp dword [0x463c18], 0
je 0x410ea3
push eax
call fcn.00401249
push eax
push dword [esi + 0xc]
push dword [esi + 8]
push str.Cant_resolve_name__s:_d:__s._n
call fcn.004011ea
add esp, 0x14
pop edi
pop esi
mov eax, 0x1f8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
cmp eax, dword [0x463c10]
jne 0x410f09
lea eax, [ebp - 0x84]
push eax
call fcn.00401163
add esp, 4
test eax, eax
je 0x410f09
cmp dword [0x463c14], 0
je 0x410ef3
push dword [esi + 0xc]
push dword [esi + 8]
push str.Proxy_loop_detected:__s:_d_n
call fcn.004011ea
add esp, 0xc
pop edi
pop esi
mov eax, 0x193
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp - 0x84]
push 6
push 1
push eax
call fcn.00401005
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x84]
push dword [ebp - 0x320]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x410f7a
cmp dword [0x463c18], 0
je 0x410f5b
lea eax, [ebp - 0x84]
push eax
call fcn.0040100a
push eax
push str.Cant_connect_to__s._n
call fcn.004011ea
add esp, 0xc
push edi
call fcn.004011c2
add esp, 4
mov eax, 0x1f8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x31c]
push edi
push eax
call fcn.00401037
lea eax, [ebp - 0x31c]
push eax
push ebx
push esi
call fcn.00410280
mov esi, eax
lea eax, [ebp - 0x31c]
push eax
call fcn.004011c7
mov ecx, dword [ebp - 4]
add esp, 0x18
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0044590e
mov esp, ebp
pop ebp
ret
Function at 0x413440
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4635a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
mov dword [ebp - 0x130], 0
movzx eax, word [ebx]
movq qword [ebp - 0x11c], xmm0
mov dword [ebp - 0x114], 0
movdqu xmmword [ebp - 0x12c], xmm0
cmp eax, 2
jne 0x4134be
push dword [ebx + 4]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
call esi
and eax, 0xff000000
cmp eax, 0x7f000000
je 0x4134a8
push dword [ebx + 4]
call esi
test eax, eax
jne 0x413517
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
cmp eax, 0x17
jne 0x413517
lea ecx, [ebx + 8]
mov esi, 0x45d890
mov edx, ecx
lea edi, [eax - 0xb]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4134e3
add edx, 4
add esi, 4
sub edi, 4
jae 0x4134d0
jmp 0x4134a8
mov edx, 0x45d810
mov esi, 0xc
lea ecx, [ecx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x413517
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4134f0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x413649
movzx eax, word [ebx]
mov dword [ebp - 0x12c], eax
mov eax, dword [0x463d80]
test eax, eax
jne 0x41354f
push eax
call fcn.004010fa
mov dword [0x463d80], eax
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x130]
push ecx
push 0
lea ecx, [ebp - 0x84]
push ecx
call eax
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
test esi, esi
jne 0x413649
mov eax, dword [ebp - 0x110]
mov edi, eax
mov dword [ebp - 0x10c], eax
test eax, eax
je 0x413649
movzx esi, word [ebx]
mov eax, esi
mov dword [ebp - 0x108], eax
lea ebx, [ebx]
cmp dword [edi + 4], eax
jne 0x41363e
mov eax, dword [edi + 0x10]
cmp eax, 0x80
ja 0x41365c
push eax
push dword [edi + 0x18]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
cmp si, 2
jne 0x41360e
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 0x100]
jne 0x413638
mov eax, dword [0x463d88]
test eax, eax
jne 0x4135f0
push 2
call fcn.004010fa
mov dword [0x463d88], eax
push dword [ebp - 0x10c]
call eax
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
cmp si, 0x17
jne 0x413638
lea ecx, [ebx + 8]
mov esi, 0xc
lea edx, [ebp - 0xfc]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x413635
add ecx, 4
add edx, 4
sub esi, 4
jae 0x413622
jmp 0x4135db
movzx esi, word [ebx]
mov eax, dword [ebp - 0x108]
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4135a0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044590e
mov esp, ebp
pop ebp
ret
push 0x80
push eax
push str.getaddrinfo_returned_oversized_address___lu____lu_
call fcn.004010f0
int3
Function at 0x418aa0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push 4
push eax
push 4
push 0xffff
push dword [esi]
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x418b0c
call sub.WS2_32.dll_WSAGetLastError
cmp dword [0x4630d8], 0
je 0x418b49
cmp dword [0x4630d4], 3
jg 0x418b0c
push eax
push eax
call fcn.0041fbf0
add esp, 4
push eax
push dword [esi + 0x154]
push str.Setting_of_SO_REUSEADDR_failed___li_:__s___d_
push str.mksock_bind_addr
push 0x4d
push 0x45b670
push 3
call fcn.00417ce0
add esp, 0x20
cmp dword [0x4630d8], 0
je 0x418b49
cmp dword [0x4630d4], 2
jg 0x418b49
push dword [esi + 0x154]
push esi
call fcn.0041a790
add esp, 4
push eax
push str.Binding_to__s__IOD__li_
push str.mksock_bind_addr
push 0x50
push 0x45b670
push 2
call fcn.00417ce0
add esp, 0x1c
push dword [esi + 0x130]
lea eax, [esi + 0xb0]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x418bb0
call sub.WS2_32.dll_WSAGetLastError
cmp dword [0x4630d8], 0
je 0x418bb0
cmp dword [0x4630d4], 3
jg 0x418bb0
push eax
push eax
call fcn.0041fbf0
add esp, 4
push eax
push dword [esi + 0x154]
push esi
call fcn.0041a790
add esp, 4
push eax
push str.Bind_to__s_failed__IOD__li_:__s___d_
push str.mksock_bind_addr
push 0x57
push 0x45b670
push 3
call fcn.00417ce0
add esp, 0x24
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418c80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push 4
push eax
push 0x20
push 0xffff
push dword [esi]
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x418cef
call sub.WS2_32.dll_WSAGetLastError
cmp dword [0x4630d8], 0
je 0x418cef
cmp dword [0x4630d4], 3
jg 0x418cef
push eax
push eax
call fcn.0041fbf0
add esp, 4
push eax
push dword [esi + 0x154]
push str.Setting_of_SO_BROADCAST_failed__IOD__li_:__s___d_
push str.mksock_set_broadcast
push 0x86
push 0x45b670
push 3
call fcn.00417ce0
add esp, 0x20
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418d00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
call dword [sym.imp.MSVCR120.dll__errno]
mov esi, dword [ebp + 0xc]
mov dword [eax], 0
push dword [esi + 0x168]
push dword [esi + 0x164]
push 1
push 0
push dword [esi]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x418d73
call sub.WS2_32.dll_WSAGetLastError
cmp dword [0x4630d8], 0
je 0x418d73
cmp dword [0x4630d4], 3
jg 0x418d73
push eax
push eax
call fcn.0041fbf0
add esp, 4
push eax
push dword [esi + 0x154]
push str.Setting_of_IP_options_failed__IOD__li_:__s___d_
push str.mksock_set_ipopts
push 0x66
push 0x45b670
push 3
call fcn.00417ce0
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4194b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x4635a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x8c], 0x80
push edi
mov edi, dword [ebp + 0x14]
test esi, esi
jne 0x419522
push 0x25e
push str.src_nsock_connect.c
push str.socklen___0
call dword [sym.imp.MSVCR120.dll__wassert]
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp - 0x90]
cmp dword [edx + 0x134], 0
jbe 0x419605
test ecx, ecx
je 0x419552
mov eax, dword [edx + 0x134]
cmp esi, eax
cmovb eax, esi
push eax
lea eax, [edx + 0x30]
push eax
push ecx
call sub.MSVCR120.dll_memcpy
mov edx, dword [ebp - 0x90]
add esp, 0xc
mov ecx, dword [ebp - 0x88]
test ecx, ecx
je 0x419564
mov eax, dword [edx + 0x138]
mov dword [ecx], eax
test ebx, ebx
je 0x41956e
movzx eax, word [edx + 0x30]
mov dword [ebx], eax
test edi, edi
je 0x4195ef
mov eax, dword [edx]
test eax, eax
js 0x419592
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x4195b1
push esi
push 0
push edi
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x8c]
test eax, eax
jg 0x4195d9
push 0x271
push str.src_nsock_connect.c
push str.slen___0
call dword [sym.imp.MSVCR120.dll__wassert]
mov eax, dword [ebp - 0x8c]
add esp, 0xc
cmp eax, esi
lea ecx, [ebp - 0x84]
cmovb esi, eax
push esi
push ecx
push edi
call sub.MSVCR120.dll_memcpy
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x419615
test ecx, ecx
jne 0x419619
test eax, eax
jne 0x419615
test ebx, ebx
je 0x4195ef
test ecx, ecx
je 0x419625
push esi
push 0
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
test edi, edi
je 0x419635
push esi
push 0
push edi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x88]
test ecx, ecx
je 0x419645
mov dword [ecx], 0xffffffff
test ebx, ebx
je 0x41964f
mov dword [ebx], 0xffffffff
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044590e
mov esp, ebp
pop ebp
ret

Function at 0x419fd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.MSVCR120.dll___iob_func]
call esi
add eax, 0x20
push eax
call dword [sym.imp.MSVCR120.dll_fflush]
add esp, 4
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR120.dll_vfprintf]
add esp, 0xc
push 0x455c1c
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR120.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR120.dll_exit]
int3
Function at 0x41c270
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4635a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 1
mov eax, dword [esi + 0xc0]
push esi
push ebx
mov edi, dword [eax]
mov dword [ebp - 0x14], 0x25a207b9
mov dword [ebp - 0x10], 0x4660ddf3
mov dword [ebp - 0xc], 0xe576e98e
mov dword [ebp - 8], 0x3e06748c
mov dword [ebp - 0x28], 0
call fcn.0041cfe0
mov ecx, dword [esi + 0xc0]
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ecx + 0x138], 6
lea eax, [ecx + 0x30]
mov edx, dword [ecx + 0x134]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], edx
je 0x41c320
push edx
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x41c305
call sub.WS2_32.dll_WSAGetLastError
jmp 0x41c3be
push esi
push ebx
call fcn.0041c5c0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0xc8000006
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x41c3e3
push 4
lea eax, [ebp - 0x34]
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x41c2fb
mov eax, dword [esi + 0xc0]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
cmp dword [eax + 0x130], 0
jne 0x41c39b
push 0x10
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x41c2fb
push dword [ebp - 0x2c]
push 0
push 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x30]
push edi
call dword [ebp - 0x28]
test eax, eax
jne 0x41c3d2
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x3e5
je 0x41c3d2
or dword [esi + 0xe0], 1
mov dword [esi + 0xbc], eax
mov dword [esi + 8], 2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044590e
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
push str.Error_initiating_event_type__d_
call fcn.00419fd0
int3
Function at 0x41c400
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
push edi
mov eax, dword [edi + 0xc0]
mov eax, dword [eax + 0x28]
push eax
mov ecx, dword [eax + 8]
mov dword [ebp + 8], ecx
call fcn.0041cfe0
mov ebx, eax
add esp, 8
lea esi, [ebx + 0x20]
mov dword [esi], 0x2000
mov ecx, dword [ebx + 0x28]
push 0
mov dword [ebx + 0x24], ecx
mov edx, dword [edi + 0xc0]
push ebx
lea ecx, [edx + 0x134]
push ecx
lea eax, [edx + 0x30]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 1
push esi
push dword [edx]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
je 0x41c4ab
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x41c4ab
cmp eax, 0x2733
je 0x41c4ab
cmp eax, 0x3e5
je 0x41c4ab
cmp eax, 0x40
je 0x41c4ab
cmp eax, 0x4d2
mov ecx, 0x274d
push ebx
cmove eax, ecx
mov dword [ebx + 0x14], eax
push dword [edi + 0xc0]
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x41c4b2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi + 4]
push str.Error_initiating_event_type__d_
call fcn.00419fd0
int3

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov eax, dword [edi + 0xc0]
mov eax, dword [eax + 0x28]
push eax
mov ecx, dword [eax + 8]
mov dword [ebp + 8], ecx
call fcn.0041cfe0
mov edx, dword [edi + 0xb4]
mov ebx, eax
mov ecx, dword [edi + 0x18]
lea eax, [ebx + 0x20]
mov esi, dword [edi + 0xc]
add esp, 8
add ecx, edx
sub esi, edx
mov dword [ebx + 0x24], ecx
lea ecx, [edi + 0x30]
mov dword [eax], esi
cmp word [ecx], 0
push 0
push ebx
jne 0x41c51f
push 0
push 0
push 1
push eax
mov eax, dword [edi + 0xc0]
push dword [eax]
call dword [sym.imp.WS2_32.dll_WSASend]
jmp 0x41c53b
push dword [edi + 0xb0]
push ecx
push 0
push 0
push 1
push eax
mov eax, dword [edi + 0xc0]
push dword [eax]
call dword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
je 0x41c579
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x41c579
cmp eax, 0x2733
je 0x41c579
cmp eax, 0x3e5
je 0x41c579
cmp eax, 0x40
je 0x41c579
push ebx
mov dword [ebx + 0x14], eax
push dword [edi + 0xc0]
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x41c57e
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [edi + 4]
push str.Error_initiating_event_type__d_
call fcn.00419fd0
int3
Function at 0x41c6b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4635a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x8c], 0
push esi
mov dword [ebp - 0x90], edx
mov esi, dword [eax + 4]
mov dword [ebp - 0x88], ecx
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x1c]
test eax, eax
je 0x41c790
cmp eax, 0x4cf
jg 0x41c76a
je 0x41c74b
cmp eax, 0x79
je 0x41c72c
cmp eax, 0x4c9
jne 0x41c776
mov eax, 0x274d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
mov eax, 0x274c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
mov eax, 0x2743
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
cmp eax, 0x4d0
jne 0x41c776
mov eax, 0x2751
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x8c]
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41c7ee
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x41c7ee
cmp eax, 0x2733
je 0x41c7ee
cmp eax, 0x3e5
je 0x41c7ee
cmp eax, 0x40
je 0x41c7ee
push eax
mov dword [esi + 0x34], 1
call fcn.0041cfa0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x88]
mov dword [esi + 0x34], 1
cmp dword [ebx + 4], 2
push edi
mov edi, dword [ebp - 0x8c]
jne 0x41c892
test eax, eax
je 0x41c823
push edi
push dword [esi + 0x24]
push eax
call sub.MSVCR120.dll_memcpy
mov eax, dword [ebp - 0x88]
add esp, 0xc
cmp dword [ebx + 4], 2
jne 0x41c892
cmp edi, dword [esi + 0x20]
jne 0x41c86a
cmp dword [0x464988], esi
jne 0x41c86a
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], 0x80
push ecx
lea ecx, [ebp - 0x84]
push ecx
push 0
push 0x2000
push eax
push dword [ebp - 0x90]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
mov dword [ebp - 0x8c], edi
cmp dword [ebx + 4], 2
jne 0x41c892
mov eax, dword [esi + 0x20]
cmp edi, eax
jb 0x41c892
jne 0x41c89c
mov eax, edi
mov dword [0x464988], esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
mov dword [0x464988], 0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044590e
mov esp, ebp
pop ebp
ret