joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x506040]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 1
mov esi, ecx
mov dword [esp + 0x20], eax
push 0
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x4400a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], esi
call fcn.004a8940
mov dword [esp + 0x1c], eax
test esi, esi
jne 0x440186
mov esi, dword [esp + 0x10]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], 0
jne 0x4400ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], esi
call fcn.004a8940
mov dword [esp + 0x1c], eax
test esi, esi
jne 0x440195
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0
push ebx
push 0x4401c0
push dword [esp + 0x24]
push 0
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x440162
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [esp + 0x18], eax
call dword [edx]
test edi, edi
je 0x440136
push edi
call esi
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x440144
push eax
call esi
mov ebx, dword [esp + 0x14]
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], ebx
call fcn.004a8940
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x4401a4
test edi, edi
je 0x440172
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 8
push str.thread.entry_event
lea eax, [esp + 0x1c]
push eax
call fcn.0040ad10
push str.thread.exit_event
lea eax, [esp + 0x1c]
push eax
call fcn.0040ad10
push str.thread
lea eax, [esp + 0x1c]
push eax
call fcn.0040ad10
int3
Function at 0x440340
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c7c30
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x506040]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
mov eax, dword [0x506040]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x4403a8
mov ecx, edi
call fcn.00440570
call fcn.004a8940
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx], 0
jmp 0x440448
mov dword [esp + 0x10], 0
mov dword [esp + 0x30], 0
lea eax, [esp + 0x10]
push dword [0x510720]
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push dword [0x510720]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
push 1
mov ecx, edi
mov byte [esp + 0x38], 1
xor esi, esi
call fcn.004406f0
test eax, eax
je 0x440424
jmp 0x440410
cmp esi, 0xffffffff
je 0x440416
inc esi
push ebx
push 1
mov ecx, edi
call fcn.004406f0
test eax, eax
jne 0x440410
push dword [esp + 0x1c]
push dword [0x510720]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x440446
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 4
Function at 0x440480
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7c70
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x506040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x4404d8
mov ecx, edi
call fcn.00440570
call fcn.004a8940
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx], 0
jmp 0x44054f
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push dword [0x510720]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x510720]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
push 1
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004406f0
push dword [ebp - 0x1c]
mov edi, eax
push dword [0x510720]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x44054d
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 4
Function at 0x440c10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x506040]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 8], 0xffffffff
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0xc], esi
je 0x440d27
cmp byte [ebp + 0x10], bl
je 0x440c8f
test byte [esi], 8
je 0x440c8f
xor eax, eax
mov dword [esp + 0x10], eax
call fcn.004a8940
or byte [esi], 8
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x10]
push 4
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.004a8940
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x440c92
call fcn.004a8940
jmp 0x440c92
mov ebx, dword [ebp + 8]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.004a8940
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x440d27
call fcn.004a8940
cmp dword [edi + 4], eax
jne 0x440ccb
cmp dword [edi], 0x2733
je 0x440cdd
call fcn.004a8940
cmp dword [edi + 4], eax
jne 0x440d23
cmp dword [edi], 0x4d5
jne 0x440d23
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
push 0x8004667e
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esp + 0xc]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.004a8940
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x440d35
call fcn.004a8940
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x14]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x506040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call fcn.004a8940
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
cmp eax, 0x40
jne 0x440e26
call fcn.004a8940
mov dword [edi], 0x2746
jmp 0x440e38
cmp eax, 0x4d2
jne 0x440e3b
call fcn.004a8940
mov dword [edi], 0x274d
mov dword [edi + 4], eax
test ebx, ebx
je 0x440e53
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret
call fcn.004a8940
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
mov dword [edi], 0
pop edi
pop esi
pop ebx
call fcn.004ba66b
mov esp, ebp
pop ebp
ret
Function at 0x440e80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x506040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
call fcn.004a8940
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp edi, 0xffffffff
jne 0x440edf
or eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0x17
jne 0x440efd
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x1b
push 0x29
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
call fcn.004a8940
mov ecx, dword [ebp - 4]
mov dword [ebx + 4], eax
xor ecx, ebp
mov eax, edi
mov dword [ebx], 0
pop edi
pop esi
pop ebx
call fcn.004ba66b
mov esp, ebp
pop ebp
ret

Function at 0x441070
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x441087
cmp byte [esi], 0
jne 0x441089
xor esi, esi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x441095
cmp byte [edi], 0
jne 0x441097
xor edi, edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00440f20
mov edx, dword [ebp + 0x1c]
mov esi, eax
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, dword [esi]
mov dword [edx], ecx
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [esi]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
pop edi
mov dword [eax + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x441e60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x506040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi]
push 0
cmp eax, 0xffffffff
jne 0x441ebe
mov ecx, dword [edi + 4]
push 0x2719
push ebx
call fcn.00440670
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 0x1c
push ebx
push dword [ebp + 0x18]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push dword [ebp - 0xc]
push 0
push ecx
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push eax
call dword [sym.imp.WS2_32.dll_WSASendTo]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x441f1f
cmp eax, 0x3e5
je 0x441f1f
push dword [ebp - 8]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.00440670
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [edi + 4]
push ebx
call fcn.00440600
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x444dc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x506040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
call fcn.004a8940
mov esi, dword [esi]
cmp esi, 0xffffffff
jne 0x444deb
mov ebx, 0x2719
jmp 0x444e24
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
push edi
push 0x1002
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.004a8940
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], esi
mov ebx, eax
mov dword [ebp - 0x10], ebx
test edi, edi
jne 0x444e2f
xor ebx, ebx
call fcn.004a8940
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x444e46
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 4
push str.set_option
lea eax, [ebp - 0x10]
push eax
call fcn.0040ad10
int3

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x506040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0x10
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push dword [edi]
movdqu xmmword [ebp - 0x18], xmm0
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x447970
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x14], eax
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov dword [edi], eax
xor ecx, ebp
pop edi
mov eax, 1
pop esi
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 8

Function at 0x447d70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x506040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
push edi
cmp esi, 0xffffffff
jne 0x447db1
call fcn.004a8940
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.004a8940
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
js 0x447d9e
call fcn.004a8940
mov ecx, dword [ebp - 4]
mov dword [ebx + 4], eax
xor ecx, ebp
mov eax, dword [ebp - 0xc]
pop edi
mov dword [ebx], 0
pop esi
or byte [eax], 2
mov al, 1
pop ebx
call fcn.004ba66b
mov esp, ebp
pop ebp
ret
Function at 0x447e10
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
jne 0x447e39
call fcn.004a8940
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
or eax, esi
mov dword [ecx], 0x2719
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call fcn.004a8940
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x447e71
call fcn.004a8940
mov dword [edi], ebx
mov dword [edi + 4], eax
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
pop ebp
ret

Function at 0x447e80
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, edx
push esi
push edi
mov esi, ecx
mov eax, dword [ebx]
cmp eax, 0x4cf
jg 0x447ec5
je 0x447eb8
cmp eax, 0x79
je 0x447eab
cmp eax, 0x4c9
jne 0x447eda
call fcn.004a8940
mov dword [ebx], 0x274d
jmp 0x447ed7
call fcn.004a8940
mov dword [ebx], 0x274c
jmp 0x447ed7
call fcn.004a8940
mov dword [ebx], 0x2743
jmp 0x447ed7
cmp eax, 0x4d0
jne 0x447eda
call fcn.004a8940
mov dword [ebx], 0x2751
mov dword [ebx + 4], eax
cmp dword [ebx], 0
jne 0x447f35
cmp esi, 0xffffffff
jne 0x447ef6
call fcn.004a8940
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebx
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0x7010
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.004a8940
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x447f35
call fcn.004a8940
mov dword [ebx], edi
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x506040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call fcn.004a8940
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp eax, 0x40
jne 0x44814d
call fcn.004a8940
mov dword [ebx], 0x2746
jmp 0x44815f
cmp eax, 0x4d2
jne 0x448162
call fcn.004a8940
mov dword [ebx], 0x274d
mov dword [ebx + 4], eax
test edi, edi
je 0x44817a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret
call fcn.004a8940
mov ecx, dword [ebp - 4]
pop edi
mov dword [ebx + 4], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
pop esi
mov dword [ebx], 0
pop ebx
call fcn.004ba66b
mov esp, ebp
pop ebp
ret
Function at 0x448390
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x506040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ebx
push edi
mov edi, dword [ebp + 0xc]
cmp esi, 0xffffffff
jne 0x4483d7
call fcn.004a8940
mov dword [edi + 4], eax
or eax, esi
mov dword [edi], 0x2719
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebx]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp - 8]
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], ecx
call fcn.004a8940
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x44841c
call fcn.004a8940
mov dword [edi], ebx
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ba66b
mov esp, ebp
pop ebp
ret

Function at 0x448430
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
jne 0x44845c
call fcn.004a8940
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
or eax, esi
mov dword [ecx], 0x2719
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0xc]
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 4], eax
call fcn.004a8940
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebp + 0x10]
mov dword [ebx + 4], esi
mov esi, dword [ebp - 4]
mov dword [ebx], eax
test esi, esi
js 0x4484b7
call fcn.004a8940
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx], 0
cmp dword [eax], 0
je 0x4484b4
or byte [edi], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
and byte [edi], 0xfc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4484c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov ebx, edx
mov dword [ebp - 4], ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
test ebx, ebx
jne 0x44852c
test ecx, ecx
jne 0x44852c
test edi, edi
jne 0x44852c
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x44854d
mov eax, 0x10624dd3
imul dword [esi + 4]
imul eax, dword [esi], 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
mov eax, 1
cmove ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004a8940
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x44854d
cmp dword [esi], 0
jne 0x44854d
mov eax, dword [esi + 4]
test eax, eax
jle 0x44854d
cmp eax, 0x3e8
jge 0x44854d
mov dword [esi + 4], 0x3e8
push esi
push edi
push ecx
push ebx
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.004a8940
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [ebp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
js 0x448583
call fcn.004a8940
mov dword [edi], 0
mov dword [edi + 4], eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x448590
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x506040]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x4485e0
call fcn.004a8940
mov dword [edi + 4], eax
or eax, esi
mov dword [edi], 0x2719
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret
push 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, 0
lea eax, [esp + 0x18]
and bl, 1
cmove eax, ecx
push eax
push ecx
lea eax, [esp + 0x28]
push eax
push ecx
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [esp + 0x10], eax
call fcn.004a8940
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 4], esi
mov esi, dword [esp + 0x10]
mov dword [edi], eax
test esi, esi
jne 0x448683
test bl, bl
je 0x448665
call fcn.004a8940
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x2733
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
jmp 0x448690
mov dword [esp + 0x10], 0
call fcn.004a8940
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
jmp 0x448690
jle 0x448693
call fcn.004a8940
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret