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

Disassembly:
push 0x68
mov eax, 0x71df85
call fcn.0054dced
mov esi, ecx
xor edi, edi
push 0x10
mov dword [esi + 8], edi
call fcn.005416ba
cmp eax, edi
pop ecx
je 0x435cf9
mov ecx, dword [ebp + 8]
mov dword [eax], vtable.boost::asio::detail::win_thread::func_class_boost::asio::detail::resolver_service_class_boost::asio::ip::udp_::work_io_service_runner_.0
mov dword [eax + 0xc], ecx
mov ebx, eax
jmp 0x435cfb
xor ebx, ebx
mov dword [ebp - 0x70], ebx
push edi
push edi
push 1
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [ebp - 0x64], eax
mov dword [ebx + 4], eax
jne 0x435d3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.006598d0
push str.thread.entry_event
push eax
push esi
lea esi, [ebp - 0x60]
call fcn.0042dc71
mov byte [ebp - 4], 1
lea eax, [ebp - 0x60]
push eax
call fcn.0042df7b
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], edi
jne 0x435d80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x64]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.006598d0
push str.thread.exit_event
push eax
push esi
lea esi, [ebp - 0x60]
call fcn.0042dc71
mov byte [ebp - 4], 2
jmp 0x435d36
lea eax, [ebp - 0x6c]
push eax
push edi
push ebx
push 0x4398bd
push edi
push edi
mov dword [ebp - 0x6c], edi
call fcn.0054e25d
add esp, 0x18
cmp eax, edi
mov dword [esi + 4], eax
jne 0x435ddc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x64]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x68], eax
call ebx
mov esi, dword [esi + 8]
cmp esi, edi
je 0x435dbd
push esi
call ebx
call fcn.006598d0
push str.thread
push eax
push dword [ebp - 0x68]
lea esi, [ebp - 0x60]
call fcn.0042dc71
mov byte [ebp - 4], 3
jmp 0x435d36
push 0xffffffffffffffff
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.0054dd70
ret 4

Function at 0x439140
Capabilities:
Resolve dns

Disassembly:
push esi
push edi
mov esi, eax
call fcn.00438a2d
cmp dword [esp + 0x10], 2
je 0x439163
mov edi, 0x273f
call fcn.006598d0
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
jmp 0x43919c
push ebx
push dword [esp + 0x10]
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
call fcn.006598d0
mov edi, eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], edi
jne 0x43918a
xor eax, eax
jmp 0x43919b
call fcn.00438a2d
mov eax, dword [esp + 0x18]
mov esi, ebx
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ebx
pop edi
pop esi
ret
Function at 0x43a5e0
Capabilities:
Terminate thread

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [esi + 8]
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x8b67b0
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
push 0
je 0x43a615
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
ret
push dword [esi + 4]
push method.boost::detail::lexical_stream_limited_src_wchar_t__class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____struct_std::char_traits_wchar_t__.virtual_52
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call edi
pop edi
ret
Function at 0x43e1a1
Capabilities:
Send data
Send data on socket

Disassembly:
push 0x228
mov eax, 0x725c41
call fcn.0054dc84
mov esi, ecx
mov edi, edx
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x43e1f4
and dword [ebp + 8], 0
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 8]
mov dword [ebp - 0x18], esp
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x14], 0x2719
call fcn.0043e9f5
pop ecx
pop ecx
push dword [ebx + 4]
call fcn.0043ea13
jmp 0x43e37d
lea eax, [ebp + 0xc]
push eax
push 0x48
mov dword [ebp - 0x20], eax
call fcn.0042f861
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [edi + 0x8c]
push eax
mov byte [ebp - 4], 1
push dword [ebx + 0x14]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0043ebb3
and dword [ebp + 8], 0
and dword [ebp - 0x14], 0
lea ecx, [esi + 8]
cmp esi, ecx
mov eax, esi
mov dword [ebp - 0x18], ecx
je 0x43e26f
cmp dword [ebp + 8], 0x40
jae 0x43e268
mov ecx, dword [eax + 4]
mov esi, dword [ebp + 8]
mov edx, dword [eax]
add dword [ebp - 0x14], ecx
shl esi, 3
add eax, 8
inc dword [ebp + 8]
cmp eax, dword [ebp - 0x18]
mov dword [ebp + esi - 0x234], ecx
mov dword [ebp + esi - 0x230], edx
jne 0x43e23b
xor eax, eax
cmp dword [ebp - 0x14], eax
jne 0x43e2ca
mov eax, dword [ebx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [eax + 0xc]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0043e667
and dword [ebp - 0x30], 0
call fcn.006598d0
and dword [ebp + 8], 0
mov dword [ebp - 0x2c], eax
sub esp, 0x20
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
lea edi, [ebp - 0x30]
lea eax, [ebp + 0xc]
call fcn.0043eacd
pop ecx
mov ecx, dword [ebx + 0x14]
call fcn.0043eaed
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
jmp 0x43e350
mov edi, dword [edi]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test esi, esi
mov edi, eax
je 0x43e35a
cmp edi, 0x3e5
je 0x43e35a
mov eax, dword [ebx + 4]
mov dword [ebp + 8], eax
mov eax, dword [eax + 0xc]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0043e667
call fcn.006598d0
mov dword [ebp - 0x2c], eax
sub esp, 0x20
lea eax, [ebp - 0x34]
mov ecx, esp
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x18], esp
push eax
lea edi, [ebp - 0x30]
lea eax, [ebp + 0xc]
call fcn.0043eacd
pop ecx
mov ecx, dword [ebx + 0x14]
call fcn.0043eaed
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0xc]
call fcn.0042f892
jmp 0x43e35e
and dword [ebp - 0x24], 0
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0043e667
cmp dword [ebp - 0x1c], 0
je 0x43e37d
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call fcn.0042f85c
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x43e38d
call fcn.0040a6bb
call fcn.0054dd5c
ret 0x14
Function at 0x43ecf7
Capabilities:
Create thread

Disassembly:
push 0x68
mov eax, 0x71df85
call fcn.0054dced
mov esi, ecx
xor edi, edi
push 0x10
mov dword [esi + 8], edi
call fcn.005416ba
cmp eax, edi
pop ecx
je 0x43ed26
mov ecx, dword [ebp + 8]
mov dword [eax], vtable.boost::asio::detail::win_thread::func_class_boost::asio::detail::resolver_service_class_boost::asio::ip::tcp_::work_io_service_runner_.0
mov dword [eax + 0xc], ecx
mov ebx, eax
jmp 0x43ed28
xor ebx, ebx
mov dword [ebp - 0x70], ebx
push edi
push edi
push 1
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [ebp - 0x64], eax
mov dword [ebx + 4], eax
jne 0x43ed6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.006598d0
push str.thread.entry_event
push eax
push esi
lea esi, [ebp - 0x60]
call fcn.0042dc71
mov byte [ebp - 4], 1
lea eax, [ebp - 0x60]
push eax
call fcn.0042df7b
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], edi
jne 0x43edad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x64]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.006598d0
push str.thread.exit_event
push eax
push esi
lea esi, [ebp - 0x60]
call fcn.0042dc71
mov byte [ebp - 4], 2
jmp 0x43ed63
lea eax, [ebp - 0x6c]
push eax
push edi
push ebx
push 0x4398bd
push edi
push edi
mov dword [ebp - 0x6c], edi
call fcn.0054e25d
add esp, 0x18
cmp eax, edi
mov dword [esi + 4], eax
jne 0x43ee09
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x64]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x68], eax
call ebx
mov esi, dword [esi + 8]
cmp esi, edi
je 0x43edea
push esi
call ebx
call fcn.006598d0
push str.thread
push eax
push dword [ebp - 0x68]
lea esi, [ebp - 0x60]
call fcn.0042dc71
mov byte [ebp - 4], 3
jmp 0x43ed63
push 0xffffffffffffffff
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.0054dd70
ret 4
Function at 0x440d5b
Capabilities:
Create thread

Disassembly:
push 0x64
mov eax, 0x71df40
call fcn.0054dced
mov esi, ecx
xor edi, edi
push 0x14
mov dword [esi + 8], edi
call fcn.005416ba
cmp eax, edi
pop ecx
je 0x440d90
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax], vtable.boost::asio::detail::win_thread::func_class_boost::asio::detail::binder1_void____cdecl___class_boost::asio::detail::select_reactor_1_____class_boost::asio::detail::select_reactor_1____.0
mov dword [eax + 0x10], ecx
mov ebx, eax
jmp 0x440d92
xor ebx, ebx
mov dword [ebp - 0x70], ebx
push edi
push edi
push 1
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [ebp - 0x64], eax
mov dword [ebx + 4], eax
jne 0x440dd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.006598d0
push str.thread.entry_event
push eax
push esi
lea esi, [ebp - 0x60]
call fcn.0042dc71
mov byte [ebp - 4], 1
lea eax, [ebp - 0x60]
push eax
call fcn.0042df7b
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], edi
jne 0x440e17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x64]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.006598d0
push str.thread.exit_event
push eax
push esi
lea esi, [ebp - 0x60]
call fcn.0042dc71
mov byte [ebp - 4], 2
jmp 0x440dcd
lea eax, [ebp - 0x6c]
push eax
push edi
push ebx
push 0x4398bd
push edi
push edi
mov dword [ebp - 0x6c], edi
call fcn.0054e25d
add esp, 0x18
cmp eax, edi
mov dword [esi + 4], eax
jne 0x440e73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x64]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x68], eax
call ebx
mov esi, dword [esi + 8]
cmp esi, edi
je 0x440e54
push esi
call ebx
call fcn.006598d0
push str.thread
push eax
push dword [ebp - 0x68]
lea esi, [ebp - 0x60]
call fcn.0042dc71
mov byte [ebp - 4], 3
jmp 0x440dcd
push 0xffffffffffffffff
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.0054dd70
ret 8
Function at 0x442f74
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, eax
mov edi, ecx
call fcn.00438a2d
cmp dword [ebp + 0xc], 0
jne 0x442fc7
cmp dword [ebp + 0x10], 0
jne 0x442fc7
cmp dword [ebp + 0x14], 0
jne 0x442fc7
test edi, edi
je 0x442fe3
mov eax, dword [edi + 4]
cdq
mov ecx, 0x3e8
idiv ecx
mov ecx, dword [edi]
imul ecx, ecx, 0x3e8
add eax, ecx
jne 0x442fb0
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
call fcn.006598d0
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
jmp 0x44300a
test edi, edi
je 0x442fe3
cmp dword [edi], 0
jne 0x442fe3
mov eax, dword [edi + 4]
test eax, eax
jle 0x442fe3
mov ecx, 0x3e8
cmp eax, ecx
jge 0x442fe3
mov dword [edi + 4], ecx
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_select]
push eax
call fcn.00439127
mov edi, eax
test edi, edi
pop ecx
jl 0x443008
call fcn.00438a2d
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x443653
Capabilities:
Connect socket

Disassembly:
push esi
push edi
mov esi, eax
call fcn.00438a2d
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.WSOCK32.dll_connect]
push eax
call fcn.00439127
mov edi, eax
test edi, edi
pop ecx
jne 0x443680
call fcn.00438a2d
mov eax, edi
pop edi
pop esi
ret

Function at 0x4440e8
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x820ac4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 6
xor ebx, ebx
inc ebx
push ebx
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x444113
xor al, al
jmp 0x444151
push 0x7b5df4
mov word [ebp - 0x14], 2
call dword [sym.imp.WSOCK32.dll_inet_addr]
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x444148
xor bl, bl
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0054ae61
leave
ret 4
Function at 0x444fe6
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0x34
mov eax, 0x72c79b
call fcn.0054dced
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [0x8b67a0]
xor esi, esi
push esi
push 0x2000
mov ebx, 0x9b70e0
push ebx
mov dword [ebp - 0x2c], 0x10
push dword [eax + 4]
call dword [sym.imp.WSOCK32.dll_recvfrom]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
je 0x445111
jmp 0x44502d
xor esi, esi
cmp dword [ebp - 0x28], esi
jle 0x445117
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
push 0x28
mov dword [ebp - 4], esi
call fcn.005416ba
pop ecx
mov dword [ebp - 0x40], eax
cmp eax, esi
mov byte [ebp - 4], 1
je 0x44505a
push eax
call fcn.00431775
jmp 0x44505c
xor eax, eax
mov edi, eax
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.0044511d
cmp dword [ebp - 0x28], 0
mov esi, dword [ebp - 0x34]
lea eax, [esi + 0x18]
je 0x44507f
push dword [ebp - 0x28]
push ebx
call fcn.00444e8e
push dword [ebp - 0x20]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
call fcn.0045c3a7
push dword [ebp - 0x22]
call dword [sym.imp.WSOCK32.dll_ntohs]
mov word [esi + 0x14], ax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x8b5ec8
mov byte [ebp - 0x38], 0
call fcn.0040d4f7
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
mov eax, dword [0x8b67a8]
add eax, 4
call fcn.004446f0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.0040d1d9
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4450e0
call fcn.0040a6bb
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [0x8b67a0]
push 0
push 0x2000
push ebx
mov dword [ebp - 0x2c], 0x10
push dword [eax + 4]
call dword [sym.imp.WSOCK32.dll_recvfrom]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
jne 0x44502b
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0054dd70
ret

Function at 0x445f00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x820ac4]
xor eax, ebp
mov dword [ebp - 8], eax
and word [ebp - 0x18], 0
push edi
xor eax, eax
test ecx, ecx
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x445f64
push ecx
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
mov word [ebp - 0x18], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x16], ax
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_bind]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop edi
call fcn.0054ae61
leave
ret 4
push ecx
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x445f2e
push 0x2726
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
xor eax, eax
jmp 0x445f55
Function at 0x446201
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x820ac4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x44622d
push dword [ebp + 0xc]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x24]
jmp 0x4462af
and word [ebp - 0x14], 0
push edi
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x44628e
mov edi, 0x400
push edi
call fcn.005416ea
pop ecx
mov ecx, dword [ebp + 0xc]
push edi
push eax
push ebx
mov dword [esi + 0x10], eax
push 0x502
mov eax, esi
mov dword [esi + 0x18], ecx
call fcn.004463ac
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncGetHostByName]
test eax, eax
mov dword [esi + 0x14], eax
je 0x4462ae
push 0x2733
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
xor eax, eax
inc eax
jmp 0x4462ae
push dword [ebp + 0xc]
mov word [ebp - 0x14], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.004462bf
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0054ae61
leave
ret 8

Function at 0x4462bf
Capabilities:
Connect socket

Disassembly:
cmp dword [ecx + 0x20], 0
je 0x4462cd
mov ecx, dword [ecx + 0x20]
mov eax, dword [ecx]
jmp dword [eax + 0x20]
push dword [esp + 8]
push dword [esp + 8]
push dword [ecx + 4]
call dword [sym.imp.WSOCK32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x4466ae
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x820ac4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
push ebx
mov ebx, dword [ebp + 0xc]
jne 0x4466d1
xor al, al
jmp 0x44671b
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
xor edi, edi
test eax, eax
jne 0x446715
push dword [ebp - 0x12]
inc edi
call dword [sym.imp.WSOCK32.dll_ntohs]
push dword [ebp - 0x10]
mov word [esi], ax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
mov ecx, ebx
call fcn.0040a368
test edi, edi
setne al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0054ae61
leave
ret 8
Function at 0x447649
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x447656
push ecx
jmp 0x4476a1
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x447664
push 0x2736
jmp 0x4476a1
cmp ecx, 1
je 0x44769c
cmp ecx, 2
je 0x44769c
cmp ecx, 3
je 0x44769c
cmp dword [eax + 0x10], 0
jne 0x447691
push dword [ebp + 0x10]
mov eax, dword [eax + 4]
push dword [ebp + 0xc]
mov eax, dword [eax + 4]
push dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_send]
jmp 0x4476aa
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
mov ecx, eax
pop ebp
jmp dword [edx + 0x3c]
push 0x2749
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
or eax, 0xffffffff
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4476bb
push ecx
jmp 0x447706
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4476c9
push 0x2736
jmp 0x447706
cmp ecx, 1
je 0x447701
cmp ecx, 2
je 0x447701
cmp ecx, 3
je 0x447701
cmp dword [eax + 0x10], 0
jne 0x4476f6
push dword [ebp + 0x10]
mov eax, dword [eax + 4]
push dword [ebp + 0xc]
mov eax, dword [eax + 4]
push dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_recv]
jmp 0x44770f
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
mov ecx, eax
pop ebp
jmp dword [edx + 0x38]
push 0x2749
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
or eax, 0xffffffff
pop ebp
ret 0xc

Function at 0x447713
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x820ac4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 0x10], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
je 0x44773e
push dword [ebp + 0xc]
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x24]
mov edi, eax
jmp 0x4477b0
and word [ebp - 0x14], 0
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x447780
push ebx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
jne 0x447776
push 0x2726
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
xor eax, eax
jmp 0x4477cd
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
mov word [ebp - 0x14], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edi, ecx
test edi, edi
jne 0x4477c1
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4477cb
push 2
pop ecx
mov eax, esi
call fcn.00447a92
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0054ae61
leave
ret 8
Function at 0x4477dd
Capabilities:
Connect socket

Disassembly:
cmp dword [esi + 0x10], 0
push edi
push dword [esp + 0xc]
push dword [esp + 0xc]
je 0x4477f8
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, eax
jmp 0x44780f
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.WSOCK32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edi, ecx
test edi, edi
jne 0x447820
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x44782a
push 2
pop ecx
mov eax, esi
call fcn.00447a92
mov eax, edi
pop edi
ret 8

Function at 0x4479d7
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [edi + 0x10], 0
push esi
je 0x4479fc
push dword [ebp + 0x14]
mov ecx, dword [edi + 0x10]
push dword [ebp + 0x10]
mov eax, dword [ecx]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [eax + 0x28]
mov esi, eax
jmp 0x447a7d
push 0
push dword [ebp + 0xc]
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov ecx, dword [edi + 4]
mov dword [ecx + 4], eax
mov eax, dword [edi + 4]
call fcn.00445f82
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
call fcn.00446314
test eax, eax
jne 0x447a2e
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [edi + 4]
cmp dword [ecx + 0x20], 0
je 0x447a60
mov eax, ecx
mov edx, dword [eax + 8]
push 0x3f
add edx, 0x503
push edx
call fcn.004463ac
push eax
push dword [ecx + 4]
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
test eax, eax
je 0x447a60
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
push dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov esi, dword [edi + 4]
call fcn.00445f00
test eax, eax
jne 0x447a7a
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
xor esi, esi
inc esi
test esi, esi
je 0x447a8b
xor ecx, ecx
inc ecx
mov eax, edi
call fcn.00447a92
mov eax, esi
pop esi
pop ebp
ret 0x10