joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420930
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [edx + ecx]
mov ecx, 1
sub esp, 0x2c
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 0xc]
mov eax, ecx
mov dword [ebp - 0x20], edx
jmp 0x42097e
mov eax, dword [ebp + 8]
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov eax, ebx
sub eax, edi
cmp eax, esi
cmovg eax, esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
lea ecx, [edi + eax]
test eax, eax
cmovg edi, ecx
test eax, eax
jle 0x420986
cmp edi, ebx
jb 0x420950
mov ecx, eax
xor ebx, ebx
test eax, eax
js 0x4209e0
mov dword [esp + 4], 0x11a
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
mov dword [ebp - 0x1c], ecx
call fcn.00465a80
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0xc], ebx
mov eax, dword fs:[0x18]
not ecx
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str.do_synchronous_send___x_:_error__d_n
shr ecx, 0x1f
mov dword [esp + 8], eax
mov dword [esp], ecx
call fcn.00465cf0
mov eax, edi
sub eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x1c], eax
call sub.ws2_32.dll_WSAGetLastError
mov ecx, dword [ebp - 0x1c]
mov ebx, eax
jmp 0x42098e

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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
lea esi, [ebp - 0x118]
push ebx
xor ebx, ebx
sub esp, 0x11c
jmp 0x420a12
add ebx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x100
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.ws2_32.dll_recv
sub esp, 0x10
test eax, eax
jg 0x420a10
mov dword [esp + 4], 0x10e
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
setle al
mov dword [esp + 4], str.garbage_data_received:__d_bytes_n
mov dword [esp], eax
call fcn.00465cf0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x420a70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x478498]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
sub esp, 4
mov esi, eax
test eax, eax
jne 0x420b03
mov dword [esp + 4], 0x1a4
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov dword [esp + 0xc], edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str.closesocket_error___x_:__d_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
sete al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebx + 0x14]
mov esi, dword [sym.imp.kernel32.dll_LocalFree]
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp], ebx
call esi
sub esp, 4
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_ExitThread]
call sub.ws2_32.dll_WSAGetLastError
mov edi, eax
jmp 0x420aa1
Function at 0x420b10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x478498]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
lea ebx, [eax + 0x14]
lea edi, [eax + 0xd4]
mov esi, eax
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, dword [ebx]
sub esp, 4
cmp eax, 0xffffffff
je 0x420b56
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
sub esp, 4
add ebx, 0x30
cmp ebx, edi
jne 0x420b35
mov dword [esp + 4], 0x17f
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [esi]
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
sub esp, 4
test eax, eax
sete al
mov dword [esp + 4], str.closesocket_failed_n
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitThread]
Function at 0x4220e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
lea edi, [ebp - 0x11c]
sub esp, 0x140
mov dword [esp], 0
call sub.ws2_32.dll_WSASetLastError
sub esp, 4
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.ws2_32.dll_socket
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xb57
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.socket_failed_unexpectedly:__d_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], str.127.0.0.1
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x11c], 0xc1b0002
call sub.ws2_32.dll_inet_addr
sub esp, 4
mov dword [ebp - 0x118], eax
mov dword [esp + 4], edi
mov dword [esp + 8], 0x10
mov dword [esp], ebx
call sub.ws2_32.dll_connect
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0xb5e
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp edi, 0xffffffff
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.expected_SOCKET_ERROR__got:__d_n
mov dword [esp], eax
call fcn.00465cf0
cmp edi, 0xffffffff
je 0x4222c4
xor eax, eax
lea edi, [ebp - 0x10c]
mov ecx, 0x41
mov dword [ebp - 0x124], 0
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x124]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 1
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x120], 0xc350
call sub.ws2_32.dll_select
sub esp, 0x14
mov edi, eax
mov dword [esp + 4], 0xb6d
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.expected_0__timeout___got:__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], ebx
call sub.ws2_32.dll_closesocket
sub esp, 4
mov ebx, eax
mov dword [esp + 4], 0xb71
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.closesocket_failed_unexpectedly:__d_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
sete al
mov dword [esp], eax
call fcn.00465cf0
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], 0xb62
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
mov edi, eax
call fcn.00465a80
xor eax, eax
cmp edi, 0x274d
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.expected_WSAECONNREFUSED__got:__d_n
mov dword [esp], eax
call fcn.00465cf0
jmp 0x4221e5
Function at 0x422de0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov dword [ebp - 0x2c], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.ws2_32.dll_socket
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xe09
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.failed_to_create_connector_socket__d_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x422ea0
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp], ebx
call sub.ws2_32.dll_connect
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0xe10
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.connecting_to_accepting_socket_failed__d_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
sete al
mov dword [esp], eax
call fcn.00465cf0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x1c]
mov dword [esp + 4], 0x8004667e
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [ebp - 0x1c], 1
call sub.ws2_32.dll_ioctlsocket
sub esp, 0xc
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.ws2_32.dll_connect
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x422e96
mov dword [esp + 4], 0xe12
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], esi
cmp eax, 0x2733
mov dword [esp + 4], str.got_error__u_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x422f30
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
mov esi, eax
push ebx
sub esp, 0x2c
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.ws2_32.dll_socket
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x218a
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.failed_to_create_socket__error__u_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov edx, 2
xor eax, eax
mov dword [esi + 2], 0
mov word [esi], dx
mov dword [esi + 6], 0
mov dword [esi + 0xa], 0
mov word [esi + 0xe], ax
mov dword [esp], str.127.0.0.1
call sub.ws2_32.dll_inet_addr
sub esp, 4
mov dword [esi + 4], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], 0x10
call sub.ws2_32.dll_bind
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0x2190
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.failed_to_bind__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x20]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [ebp - 0x20], 0x10
call sub.ws2_32.dll_getsockname
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x2194
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.failed_to_get_address__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
sete al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8004667e
mov dword [ebp - 0x1c], 1
call sub.ws2_32.dll_ioctlsocket
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x2197
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.failed_to_make_socket_non_blocking__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], ebx
mov dword [esp + 4], 5
call sub.ws2_32.dll_listen
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x219a
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.failed_to_listen__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
sete al
mov dword [esp], eax
call fcn.00465cf0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x423110
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x22c
mov dword [esp], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xc
mov dword [esp + 4], str.Hello_World_
call sub.ws2_32.dll_send
sub esp, 0x10
mov ebx, eax
mov dword [esp + 4], 0x26cb
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp ebx, 0xc
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.send_returned__d_n
lea ebx, [ebp - 0x218]
mov dword [esp], eax
mov edi, ebx
call fcn.00465cf0
xor eax, eax
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x200
mov dword [esp + 4], ebx
call sub.ws2_32.dll_recv
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], 0x26cf
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 0xc
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.expected_12__got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x26d0
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
cmp dword [ebp - 0x218], 0x6c6c6548
je 0x423221
mov eax, 1
xor eax, 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], esi
mov dword [esp + 4], str.got__u_bytes___s__n
mov dword [esp], eax
call fcn.00465cf0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x214], 0x6f57206f
jne 0x4231f5
xor eax, eax
cmp dword [ebx + 8], 0x21646c72
jne 0x4231f5
jmp 0x4231fa
Function at 0x44f190
Capabilities:
Create udp socket
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], edx
mov edi, dword [sym.imp.kernel32.dll_LocalAlloc]
mov dword [esp + 4], 0x1c
mov dword [esp], 0x40
call edi
sub esp, 8
mov ebx, eax
mov dword [esp + 4], eax
mov eax, dword [0x478498]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [0x47846c]
sub esp, 8
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x1c]
sub esp, 8
mov eax, dword [edx]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp], 2
mov dword [esp + 4], eax
call sub.ws2_32.dll_WSASocketA
mov dword [ebx], eax
mov eax, 2
sub esp, 0x18
mov word [ebx + 4], ax
mov eax, dword [esi + 8]
mov dword [esp], eax
call sub.ws2_32.dll_inet_addr
mov dword [ebx + 8], eax
movzx eax, word [esi + 0xc]
sub esp, 4
rol ax, 8
mov word [ebx + 6], ax
mov dword [esp + 4], 0x196
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov dword [esp + 4], str.Client:_WSASocket_failed_n
xor eax, eax
cmp dword [ebx], 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [esi + 0x14]
imul eax, dword [esi + 0x10]
mov dword [esp], 0x40
add eax, eax
mov dword [esp + 4], eax
call edi
mov dword [ebx + 0x14], eax
mov edx, eax
mov eax, dword [esi + 0x14]
sub esp, 8
imul eax, dword [esi + 0x10]
add eax, edx
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
add eax, 0x40
mov dword [ebp - 0x1c], eax
cmp eax, 0x40
jle 0x44f2e4
mov edi, 0x41
mov dword [ebp - 0x20], esi
mov eax, 0x41
mov esi, edi
mov edi, edx
add esi, 1
mov dword [esp], edi
add edi, ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_memset]
mov eax, esi
movsx eax, al
cmp eax, dword [ebp - 0x1c]
jle 0x44f2c1
mov esi, dword [ebp - 0x20]
mov eax, dword [0x478458]
mov eax, dword [eax*4 + 0x47845c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov eax, 4
sub esp, 4
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 1
mov dword [esp + 4], 0x47845c
cmp dword [esi + 0x18], 4
cmovle eax, dword [esi + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x44fa90
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x24c
mov dword [ebp - 0x22c], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x230], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
sub esp, 0x10
lea esi, [esi]
lea eax, [ebp - 0x21c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x218]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x21c], 0
mov dword [esp + 8], 0x100
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
mov esi, eax
mov dword [esp + 4], edi
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov dword [esp + 4], str.Failed_to_read_from_file._n
mov dword [esp], esi
call fcn.00465cf0
test esi, esi
jne 0x44fb40
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x44fb36
mov dword [esp + 8], eax
lea eax, [ebp - 0x118]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x230]
mov dword [esp + 0xc], 0
mov dword [esp], eax
call sub.ws2_32.dll_recv
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], edi
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x21c]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], esi
cmp esi, eax
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str.Block__d_size_mismatch___d____d__n
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], edi
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
lea eax, [ebp - 0x118]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
mov dword [esp + 8], ebx
test eax, eax
mov dword [esp + 4], str.Block__d_failed_n
sete al
add ebx, 1
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
jmp 0x44fad0
Function at 0x451010
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
lea edi, [ebp - 0x3c]
push ebx
mov ebx, ecx
sub esp, 0x6c
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [ebp - 0x30], esi
lea edx, [ebp - 0x2c]
lea esi, [ebp - 0x38]
sub esp, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [ebp - 0x34], ebx
call sub.ws2_32.dll_WSARecv
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x4510e0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test ebx, ebx
jne 0x45119e
mov ebx, dword [ebp - 0x38]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x3e5
je 0x451105
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0x3e8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
mov dword [ebp - 0x50], eax
mov dword [esp + 4], 0x1410
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], str.wait_timed_out_n
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x2c]
mov dword [esp + 0x10], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.ws2_32.dll_WSAGetOverlappedResult
sub esp, 0x14
test eax, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
jne 0x451190
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x4510d6
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x4510d3
mov ebx, 0xffffffff
jmp 0x4510d6
Function at 0x451fa0
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
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x4c
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.ws2_32.dll_socket
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xdf1
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.failed_to_bind_socket__error__u_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x1c]
mov dword [esp], ebx
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 0xffff
mov dword [ebp - 0x1c], 1
call sub.ws2_32.dll_setsockopt
sub esp, 0x14
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0xdf5
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov edx, dword [ebp - 0x2c]
mov dword [esp + 4], str.failed_to_set_SO_REUSEADDR__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [edi]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.ws2_32.dll_bind
sub esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0xdf8
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov edx, dword [ebp - 0x2c]
mov dword [esp + 4], str.failed_to_bind_socket__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.ws2_32.dll_getsockname
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0xdfb
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.failed_to_get_address__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], ebx
mov dword [esp + 4], 5
call sub.ws2_32.dll_listen
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0xdfe
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.failed_to_listen__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
sete al
mov dword [esp], eax
call fcn.00465cf0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret