joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cbb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c2ea9
mov eax, dword fs:[0]
push eax
sub esp, 0x534
mov eax, dword [0x503040]
xor eax, esp
mov dword [esp + 0x52c], eax
push esi
push edi
mov eax, dword [0x503040]
xor eax, esp
push eax
lea eax, [esp + 0x540]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x84]
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x42cc21
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [esi + 0x84]
test ecx, ecx
je 0x42cc21
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x84], 0
push 0x104
lea eax, [esp + 0x30]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea edi, [esi + 0x1ac]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42cc4f
test al, 0x10
jne 0x42cd41
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
lea edx, [esp + 0x14]
mov dword [esp + 0x548], 0
mov ecx, edi
call fcn.0045e730
test al, al
jne 0x42cd22
cmp dword [esp + 0x28], 0x10
lea esi, [esp + 0x14]
mov eax, dword [0x50d6e0]
cmovae esi, dword [esp + 0x14]
test al, 1
jne 0x42ccd7
or eax, 1
mov dword [0x50d6e0], eax
push 0x57c
push 0
push 0x50d6f0
mov byte [esp + 0x554], 1
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.004574c0
push 0x4d0fa0
call fcn.004b7531
add esp, 4
mov byte [esp + 0x548], 0
cmp dword [0x50da30], 3
jg 0x42cd00
mov eax, dword [0x50d738]
test eax, eax
je 0x42cd00
mov eax, dword [0x50d738]
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x42cd00
push 3
push esi
call fcn.00464770
mov ecx, esi
call fcn.00437030
cmp dword [esp + 0x28], 0x10
jb 0x42cd1b
push dword [esp + 0x14]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x42ce01
mov dword [esp + 0x548], 0xffffffff
cmp dword [esp + 0x28], 0x10
jb 0x42cd41
push dword [esp + 0x14]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
push dword [esp + 0x10]
lea eax, [esp + 0x30]
push edi
push str._s_s.txt
push eax
call fcn.004150a0
push 0x18
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 0x14
test eax, eax
je 0x42cd7b
xorps xmm0, xmm0
mov ecx, eax
movdqu xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
call fcn.0046ccc0
mov ecx, eax
jmp 0x42cd7d
xor ecx, ecx
mov dword [esi + 0x84], ecx
test ecx, ecx
je 0x42cdfc
mov eax, dword [ecx]
lea edx, [esp + 0x2c]
push 0x3041
push edx
mov eax, dword [eax + 4]
call eax
test eax, eax
jne 0x42cdfc
push 0x400
push eax
lea eax, [esp + 0x13c]
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [esi + 0x84]
lea ecx, [esp + 0x140]
add esp, 0xc
push 0
push 0x400
push ecx
push 0x400
push dword [eax + 0x14]
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x30]
push eax
push 3
push str._s_open_failed__s_.
call fcn.0045ac10
add esp, 0x10
xor eax, eax
jmp 0x42ce01
mov eax, 1
mov ecx, dword [esp + 0x540]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x52c]
xor ecx, esp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 4
Function at 0x42d230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x42d29b
movdqa xmm0, xmmword [0x4e25f0]
xor ecx, ecx
mov dword [ebp - 0xc], 5
mov dword [ebp - 8], 6
mov dword [ebp - 4], 7
movdqu xmmword [ebp - 0x1c], xmm0
test edi, edi
jle 0x42d29b
lea esp, [esp]
mov eax, 0x24924925
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
lea edx, [eax*8]
sub edx, eax
mov eax, ecx
sub eax, edx
mov al, byte [ebp + eax*4 - 0x1c]
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x42d270
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43d240
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x503040]
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 0x43d2b0
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.004a56a0
mov dword [esp + 0x1c], eax
test esi, esi
jne 0x43d396
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 0x43d2fc
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.004a56a0
mov dword [esp + 0x1c], eax
test esi, esi
jne 0x43d3a5
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0
push ebx
push 0x43d3d0
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 0x43d372
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 0x43d346
push edi
call esi
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x43d354
push eax
call esi
mov ebx, dword [esp + 0x14]
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], ebx
call fcn.004a56a0
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x43d3b4
test edi, edi
je 0x43d382
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.004b73db
mov esp, ebp
pop ebp
ret 8
push str.thread.entry_event
lea eax, [esp + 0x1c]
push eax
call fcn.0040ab00
push str.thread.exit_event
lea eax, [esp + 0x1c]
push eax
call fcn.0040ab00
push str.thread
lea eax, [esp + 0x1c]
push eax
call fcn.0040ab00
int3
Function at 0x43d550
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c4630
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x503040]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
mov eax, dword [0x503040]
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 0x43d5b8
mov ecx, edi
call fcn.0043d780
call fcn.004a56a0
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx], 0
jmp 0x43d658
mov dword [esp + 0x10], 0
mov dword [esp + 0x30], 0
lea eax, [esp + 0x10]
push dword [0x50d504]
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 [0x50d504]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
push 1
mov ecx, edi
mov byte [esp + 0x38], 1
xor esi, esi
call fcn.0043d900
test eax, eax
je 0x43d634
jmp 0x43d620
cmp esi, 0xffffffff
je 0x43d626
inc esi
push ebx
push 1
mov ecx, edi
call fcn.0043d900
test eax, eax
jne 0x43d620
push dword [esp + 0x1c]
push dword [0x50d504]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x43d656
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.004b73db
mov esp, ebp
pop ebp
ret 4
Function at 0x43d690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4670
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x503040]
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 0x43d6e8
mov ecx, edi
call fcn.0043d780
call fcn.004a56a0
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx], 0
jmp 0x43d75f
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push dword [0x50d504]
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 [0x50d504]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
push 1
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0043d900
push dword [ebp - 0x1c]
mov edi, eax
push dword [0x50d504]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x43d75d
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.004b73db
mov esp, ebp
pop ebp
ret 4
Function at 0x43de20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x503040]
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 0x43df37
cmp byte [ebp + 0x10], bl
je 0x43de9f
test byte [esi], 8
je 0x43de9f
xor eax, eax
mov dword [esp + 0x10], eax
call fcn.004a56a0
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.004a56a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x43dea2
call fcn.004a56a0
jmp 0x43dea2
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.004a56a0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x43df37
call fcn.004a56a0
cmp dword [edi + 4], eax
jne 0x43dedb
cmp dword [edi], 0x2733
je 0x43deed
call fcn.004a56a0
cmp dword [edi + 4], eax
jne 0x43df33
cmp dword [edi], 0x4d5
jne 0x43df33
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.004a56a0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x43df45
call fcn.004a56a0
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.004b73db
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x503040]
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.004a56a0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
cmp eax, 0x40
jne 0x43e036
call fcn.004a56a0
mov dword [edi], 0x2746
jmp 0x43e048
cmp eax, 0x4d2
jne 0x43e04b
call fcn.004a56a0
mov dword [edi], 0x274d
mov dword [edi + 4], eax
test ebx, ebx
je 0x43e063
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
call fcn.004a56a0
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.004b73db
mov esp, ebp
pop ebp
ret
Function at 0x43e090
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x503040]
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.004a56a0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp edi, 0xffffffff
jne 0x43e0ef
or eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0x17
jne 0x43e10d
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.004a56a0
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.004b73db
mov esp, ebp
pop ebp
ret

Function at 0x43e280
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 0x43e297
cmp byte [esi], 0
jne 0x43e299
xor esi, esi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x43e2a5
cmp byte [edi], 0
jne 0x43e2a7
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.0043e130
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 0x43f070
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x503040]
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 0x43f0ce
mov ecx, dword [edi + 4]
push 0x2719
push ebx
call fcn.0043d880
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
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 0x43f12f
cmp eax, 0x3e5
je 0x43f12f
push dword [ebp - 8]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.0043d880
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [edi + 4]
push ebx
call fcn.0043d810
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b73db
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x441fe0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
call fcn.004a56a0
mov esi, dword [esi]
cmp esi, 0xffffffff
jne 0x44200b
mov ebx, 0x2719
jmp 0x442044
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.004a56a0
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 0x44204f
xor ebx, ebx
call fcn.004a56a0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x442066
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b73db
mov esp, ebp
pop ebp
ret 4
push str.set_option
lea eax, [ebp - 0x10]
push eax
call fcn.0040ab00
int3

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x503040]
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 0x444b90
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.004b73db
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.004b73db
mov esp, ebp
pop ebp
ret 8

Function at 0x444f90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x503040]
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 0x444fd1
call fcn.004a56a0
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.004b73db
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.004a56a0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
js 0x444fbe
call fcn.004a56a0
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.004b73db
mov esp, ebp
pop ebp
ret
Function at 0x445030
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 0x445059
call fcn.004a56a0
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.004a56a0
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 0x445091
call fcn.004a56a0
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 0x4450a0
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 0x4450e5
je 0x4450d8
cmp eax, 0x79
je 0x4450cb
cmp eax, 0x4c9
jne 0x4450fa
call fcn.004a56a0
mov dword [ebx], 0x274d
jmp 0x4450f7
call fcn.004a56a0
mov dword [ebx], 0x274c
jmp 0x4450f7
call fcn.004a56a0
mov dword [ebx], 0x2743
jmp 0x4450f7
cmp eax, 0x4d0
jne 0x4450fa
call fcn.004a56a0
mov dword [ebx], 0x2751
mov dword [ebx + 4], eax
cmp dword [ebx], 0
jne 0x445155
cmp esi, 0xffffffff
jne 0x445116
call fcn.004a56a0
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.004a56a0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x445155
call fcn.004a56a0
mov dword [ebx], edi
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x503040]
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.004a56a0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp eax, 0x40
jne 0x44536d
call fcn.004a56a0
mov dword [ebx], 0x2746
jmp 0x44537f
cmp eax, 0x4d2
jne 0x445382
call fcn.004a56a0
mov dword [ebx], 0x274d
mov dword [ebx + 4], eax
test edi, edi
je 0x44539a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
call fcn.004a56a0
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.004b73db
mov esp, ebp
pop ebp
ret
Function at 0x4455b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x503040]
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 0x4455f7
call fcn.004a56a0
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.004b73db
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.004a56a0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x44563c
call fcn.004a56a0
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.004b73db
mov esp, ebp
pop ebp
ret

Function at 0x445650
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 0x44567c
call fcn.004a56a0
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.004a56a0
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 0x4456d7
call fcn.004a56a0
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx], 0
cmp dword [eax], 0
je 0x4456d4
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