joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c700
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.0041c740
movzx eax, al
test eax, eax
jne 0x41c72a
mov ecx, dword [ebp - 4]
push ecx
push 2
call sub.WS2_32.dll_WSAStartup
mov edx, dword [ebp - 4]
mov dword [edx + 0x190], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp dword [eax + 0x190], 0
sete cl
mov al, cl
mov esp, ebp
pop ebp
ret

Function at 0x41ca80
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
movzx ecx, byte [eax + 0x44]
test ecx, ecx
je 0x41ca9b
mov al, 1
jmp 0x41cb56
mov byte [ebp - 1], 1
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x40], 0xffffffff
jne 0x41caaf
xor al, al
jmp 0x41cb56
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x41cb4a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x2733
je 0x41caf1
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x48], edx
mov byte [ebp - 1], 0
jmp 0x41cb4a
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41cb46
push 0x2c
push 0
lea ecx, [ebp - 0x34]
push ecx
call fcn.00453b10
add esp, 0xc
lea edx, [ebp - 0x34]
push edx
push 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp dword [ebp - 0x20], 0
je 0x41cb44
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x48], eax
mov byte [ebp - 1], 0
jmp 0x41cb4a
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 0x38]
mov dl, byte [ebp - 1]
mov byte [ecx + 0x44], dl
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8
Function at 0x41cb60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41cb92
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x48], 0x2749
xor al, al
jmp 0x41cc98
push 0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41cbb9
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x48], 0x2734
xor al, al
jmp 0x41cc98
mov byte [ebp - 1], 1
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x28
call fcn.00423d90
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x41cc28
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3e5
je 0x41cc28
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x48], ecx
mov byte [ebp - 1], 0
movzx edx, byte [ebp - 1]
test edx, edx
je 0x41cc8a
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41cc86
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x41cc74
mov byte [ebp - 1], 1
jmp 0x41cc84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x48], eax
mov byte [ebp - 1], 0
jmp 0x41cc8a
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x28
call fcn.00423d70
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41ccd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41cd02
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x48], 0x2749
xor al, al
jmp 0x41ce2a
push 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
jne 0x41cd29
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x48], 0x2734
xor al, al
jmp 0x41ce2a
mov byte [ebp - 9], 1
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov dword [ebp - 0x10], 0
push 0x14
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.00453b10
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
add ecx, 0x10
call fcn.00423d90
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x41cdbd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3e5
je 0x41cdbd
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x48], edx
mov byte [ebp - 9], 0
movzx eax, byte [ebp - 9]
test eax, eax
je 0x41ce1c
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41ce18
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x41ce06
mov byte [ebp - 9], 1
jmp 0x41ce16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x48], eax
mov byte [ebp - 9], 0
jmp 0x41ce1c
mov byte [ebp - 9], 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x10
call fcn.00423d70
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret 8

Function at 0x433cc5
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x4a7740]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x433d03
cmp byte [esp], 1
jne 0x433cfe
cmp byte [esp + 1], 1
je 0x433d06
call sub.WS2_32.dll_WSACleanup
push 2
pop eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret

Function at 0x433db6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test edx, edx
jne 0x433dbe
push 0x2b
pop eax
ret
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
jmp fcn.0043457a
Function at 0x43417c
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esi + 0x88]
test eax, eax
je 0x434199
push dword [esi + 0x14]
push dword [esp + 0xc]
push dword [esp + 0xc]
push ecx
push esi
call eax
add esp, 0x14
ret
test ecx, ecx
jl 0x4341ca
cmp ecx, 2
jg 0x4341ca
push dword [esi + 0x10]
push 1
push 2
push dword [ecx*4 + 0x48ff50]
call fcn.0045752d
push dword [esi + 0x10]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0045752d
add esp, 0x20
xor eax, eax
ret
Function at 0x437794
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
lea edx, [ecx + eax]
cmp ecx, edx
mov eax, 0x1505
jae 0x4377af
push esi
movsx esi, byte [ecx]
imul eax, eax, 0x21
xor eax, esi
inc ecx
cmp ecx, edx
jb 0x4377a1
pop esi
ret
Function at 0x43bbfc
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
push dword [esi + 0x74]
mov dword [ebp - 0x124], edi
call fcn.00450e60
pop ecx
mov ecx, 0xff
cmp eax, ecx
jae 0x43bd5f
and dword [ebp - 0x120], 0
push ecx
lea eax, [ebp - 0x10b]
push 0
push eax
mov byte [ebp - 0x10c], 0
call fcn.00453b10
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
add esp, 0xc
push dword [esi + 0x74]
call ebx
lea eax, [ebp - 0x120]
push eax
push 0
push dword [esi + 0x74]
push edi
call fcn.004375e7
add esp, 0x10
cmp eax, 1
jne 0x43bc86
lea eax, [ebp - 0x120]
push eax
push edi
call fcn.0043f750
pop ecx
pop ecx
mov edi, dword [ebp - 0x120]
test edi, edi
je 0x43bca1
push dword [esi + 0x74]
lea eax, [ebp - 0x10c]
push eax
call fcn.00455760
pop ecx
pop ecx
cmp byte [ebp - 0x10c], 0
jne 0x43bcb7
push dword [esi + 0x74]
push str.Couldnt_bind_to__s
jmp 0x43bd58
lea eax, [ebp - 0x10c]
push eax
push str.We_bind_local_end_to__s_n
call fcn.00433eb5
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x43bd4c
test edi, edi
je 0x43bd4c
mov ebx, dword [edi]
call fcn.00437733
push dword [ebx + 0x10]
push dword [ebx + 0x14]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x43bd27
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x128], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x43bd48
push str.getsockname___failed
call fcn.00433f1e
jmp 0x43bd5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x8318], eax
mov ebx, eax
mov eax, dword [ebp - 0x124]
call fcn.0043c53c
push eax
push str.bind_failure:__s
jmp 0x43bd58
xor eax, eax
jmp 0x43bd62
lea eax, [ebp - 0x10c]
push eax
push str.couldnt_find_my_own_IP_address___s_
call fcn.00433f1e
pop ecx
pop ecx
push 0x2d
pop eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450ba2
leave
ret
Function at 0x43be90
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, edx
push dword [ebx + 0xc]
mov edi, ecx
push dword [edi + 0x28]
mov eax, dword [edi]
push dword [ebx + 4]
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x90], eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 0x8c], eax
je 0x43c074
lea eax, [ebp - 0x88]
push 0x80
push eax
mov ecx, ebx
mov byte [esi], 0
call fcn.004374c8
mov esi, dword [ebp - 0x90]
lea eax, [ebp - 0x88]
push eax
push str.__Trying__s...
call fcn.00433eb5
mov eax, esi
add esp, 0x10
cmp byte [eax + 0x1b6], 0
je 0x43bf26
push dword [ebp - 0x8c]
call fcn.0043be3a
pop ecx
mov eax, dword [edi]
cmp dword [eax + 0x74], 0
je 0x43bf44
push dword [ebp - 0x8c]
mov ecx, edi
call fcn.0043bbfc
test eax, eax
pop ecx
jne 0x43c068
push dword [ebp - 0x8c]
xor eax, eax
inc eax
call fcn.0043bbc2
cmp dword [edi + 0x28], 1
pop ecx
jne 0x43bf6f
push dword [ebx + 0x10]
push dword [ebx + 0x14]
push dword [ebp - 0x8c]
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
jmp 0x43bf71
xor edi, edi
cmp edi, 0xffffffff
jne 0x43c009
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb
mov dword [ebp - 0x94], ebx
je 0x43bff9
cmp ebx, 0x2732
jle 0x43bf9d
cmp ebx, 0x2734
jle 0x43bff9
mov eax, dword [ebp - 0x98]
call fcn.0043c53c
push eax
lea eax, [ebp - 0x88]
push eax
push str.Failed_to_connect_to__s:__s
call fcn.00433f1e
add esp, 0xc
mov dword [esi + 0x8318], ebx
push dword [ebp - 0x8c]
lea esi, [ebp - 0x94]
call fcn.0043bd71
test edi, edi
pop ecx
jne 0x43c021
test al, al
je 0x43c038
mov eax, dword [ebp - 0x9c]
mov esi, dword [ebp - 0x90]
push str.connected_n
mov byte [eax], 1
call fcn.00433eb5
pop ecx
jmp 0x43c019
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x8c]
call fcn.0043bbdd
mov edi, eax
cmp edi, 1
jne 0x43bfc3
mov eax, esi
cmp dword [eax + 0x2d8], 2
jne 0x43bfc3
mov eax, dword [ebp - 0x8c]
jmp 0x43c077
cmp edi, 1
jne 0x43c038
mov esi, dword [ebp - 0x90]
push str.Timeout_n
call fcn.00433eb5
jmp 0x43c067
mov ebx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
mov dword [eax + 0x8318], ebx
mov eax, dword [ebp - 0x98]
call fcn.0043c53c
mov esi, dword [ebp - 0x90]
push eax
push 0x4991e0
call fcn.00433eb5
pop ecx
pop ecx
push dword [ebp - 0x8c]
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450ba2
leave
ret
Function at 0x43f5f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 1
push 0x28
call dword [0x4a87ec]
mov esi, eax
xor ebx, ebx
xor eax, eax
cmp esi, ebx
pop ecx
lea edi, [ebp - 8]
mov dword [ebp - 0xc], ebx
pop ecx
stosd dword es:[edi], eax
jne 0x43f625
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x43f74b
mov edi, dword [ebp + 8]
lea eax, [edi + 0x320]
push dword [eax]
mov dword [ebp - 4], eax
call fcn.004342a3
push dword [ebp + 0xc]
call dword [0x4a87e8]
cmp eax, ebx
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jne 0x43f656
push esi
call dword [0x4a87e0]
pop ecx
jmp 0x43f616
mov eax, dword [ebp + 0x10]
push ebx
push 1
mov dword [edi + 0x324], eax
mov byte [edi + 0x32c], bl
mov dword [edi + 0x330], ebx
mov dword [edi + 0x328], ebx
mov dword [edi + 0x334], esi
or dword [esi + 0xc], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x14], eax
jne 0x43f69c
push dword [ebp - 4]
call fcn.0043f537
pop ecx
push 0xb
jmp 0x43f618
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x43f68c
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x43f68c
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [esi + 0x24], eax
je 0x43f68c
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [esi + 0x1c], eax
je 0x43f68c
call fcn.00457d6a
add eax, 0x40
mov dword [esi + 0x10], eax
lea eax, [esi + 4]
push eax
push ebx
push edi
push 0x43f3a2
push ebx
push ebx
call fcn.00457a01
add esp, 0x18
cmp eax, ebx
mov dword [esi], eax
jne 0x43f723
call fcn.00456f2b
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
call fcn.0043f537
pop ecx
jmp 0x43f61e
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x1c]
push 0xffffffffffffffff
mov dword [ebp - 8], eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push ebx
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0xc], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43f750
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
mov ebx, dword [eax + 0x9c]
test ebx, ebx
push esi
push edi
mov edi, dword [ebp + 0x334]
mov dword [esp + 0x18], eax
jne 0x43f781
mov eax, dword [eax + 0x98]
test eax, eax
mov ebx, eax
jne 0x43f781
mov ebx, 0x12c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul ebx, ebx, 0x3e8
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [edi + 0x18]
call esi
push dword [edi + 0x14]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [edi + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [edi + 0x18]
and dword [edi + 0x14], 0
call ebx
xor ebx, ebx
cmp dword [esp + 0x10], ebx
mov dword [edi + 0x18], ebx
jne 0x43f7de
push 0x1388
push dword [edi]
call esi
cmp eax, 0x102
jne 0x43f829
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebx, [edi + 8]
mov byte [ebp + 0x32c], 1
or dword [ebx], 0xffffffff
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, edi
je 0x43f7fd
mov ecx, dword [ebp + 0x328]
mov dword [eax], ecx
cmp dword [ebp + 0x328], edi
jne 0x43f895
mov ebx, dword [ebx]
push 0x1b
pop edi
cmp ebx, edi
jne 0x43f843
mov esi, dword [esp + 0x18]
push str.out_of_memory
push str.Could_not_resolve_host:__s
call fcn.00433f1e
pop ecx
pop ecx
jmp 0x43f895
push dword [ebp + 0x330]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea ebx, [edi + 8]
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x43f7eb
cmp ebx, 0xffffffff
je 0x43f87f
mov ebx, dword [ebp + 0x330]
cmp ebx, 0x2afc
je 0x43f87f
cmp byte [ebp + 0x32c], 0
je 0x43f892
mov eax, ebp
call fcn.0043c53c
mov esi, dword [esp + 0x18]
push eax
push dword [ebp + 0x34]
push str.Could_not_resolve_host:__s___s
call fcn.00433f1e
add esp, 0xc
push 6
jmp 0x43f894
push dword [ebp + 0x34]
mov esi, dword [esp + 0x1c]
push str.Resolving_host_timed_out:__s
call fcn.00433f1e
pop ecx
pop ecx
push 0x1c
pop edi
lea eax, [ebp + 0x320]
push eax
call fcn.0043f537
cmp dword [ebp + 0x328], 0
pop ecx
jne 0x43f8b2
mov byte [ebp + 0xe4], 1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x43f8eb
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 8]
mov esi, dword [edi]
mov ebx, eax
and dword [ebx], 0
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
push dword [ebp + 0xc]
push dword [ebp + 8]
je 0x43f916
push eax
call fcn.0044644b
add esp, 0xc
jmp 0x43f989
push edi
call fcn.0043f5f0
add esp, 0xc
test al, al
je 0x43f92d
mov dword [ebx], 1
xor eax, eax
jmp 0x43f989
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, edi
call fcn.0043c53c
push eax
push dword [ebp + 8]
push str.init_resolve_thread___failed_for__s___s_n
call fcn.00433eb5
add esp, 0xc
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x43f97e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov eax, edi
call fcn.0043c53c
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.gethostbyname_2__failed_for__s:_d___s_n
call fcn.00433eb5
add esp, 0x10
jmp 0x43f929
push dword [ebp + 0xc]
mov ebx, eax
call fcn.004464b6
pop ecx
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [ebx + 0xa4]
mov dword [ebp - 0x18], edi
call fcn.0043cf91
push edx
push eax
call fcn.0043cf91
push edx
push eax
call fcn.0043cfb7
cdq
mov ecx, 0x3e8
idiv ecx
mov ecx, dword [esi + 0x9c]
add esp, 0x10
test ecx, ecx
jne 0x43fa54
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x43fa70
sub ecx, eax
test ecx, ecx
jg 0x43fa6c
push str.Timed_out_before_server_could_connect_to_us
call fcn.00433f1e
pop ecx
push 0x1c
jmp 0x43fb05
mov eax, ecx
jmp 0x43fa73
push 0x3c
pop eax
imul eax, eax, 0x3e8
push edi
or edi, 0xffffffff
call fcn.00444e8f
or edi, 0xffffffff
cmp eax, edi
pop ecx
je 0x43faf8
test eax, eax
je 0x43faf1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x43fabd
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xffffffff
jne 0x43fad2
push str.Error_accept__ing_server_connect
jmp 0x43fafd
push str.Connection_accepted_from_server_n
call fcn.00433eb5
pop ecx
xor eax, eax
push edi
inc eax
mov dword [ebx + 0xa4], edi
call fcn.0043bbc2
pop ecx
xor eax, eax
jmp 0x43fb06
push str.Timeout_while_waiting_for_server_connect
jmp 0x43fafd
push str.Error_while_waiting_for_server_connect
call fcn.00433f1e
pop ecx
push 0x1e
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00450ba2
leave
ret
Function at 0x440f46
Capabilities:
Check http status code

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push esi
push 0x64
cdq
pop ecx
idiv ecx
mov esi, dword [edi]
xor ebx, ebx
cmp eax, 2
je 0x440f6c
push str.Couldnt_set_desired_mode
call fcn.00433f1e
pop ecx
push 0x11
pop eax
jmp 0x440fc7
cmp dword [esp + 0x10], 0xc8
je 0x440f86
push dword [esp + 0x10]
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.00433eb5
pop ecx
pop ecx
mov eax, dword [esp + 0x14]
cmp eax, 0x10
jne 0x440f98
mov eax, edi
call fcn.00440636
jmp 0x440fc3
cmp eax, 0x11
jne 0x440fa6
mov esi, edi
call fcn.00440670
jmp 0x440fc3
cmp eax, 0x12
jne 0x440fb1
push 1
push 0xa
jmp 0x440fba
cmp eax, 0x13
jne 0x440fc5
push 1
push 0xb
pop ebx
mov eax, edi
call fcn.004408f9
pop ecx
mov ebx, eax
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
Function at 0x4438a4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x198]
push eax
push 2
mov esi, ecx
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4438da
push eax
push str.WSAStartup_failed___d_
call fcn.00433f1e
pop ecx
jmp 0x4438ff
call sub.WS2_32.dll_WSACleanup
cmp byte [ebp - 0x198], 2
jne 0x4438f5
cmp byte [ebp - 0x197], 0
jne 0x4438f5
xor eax, eax
jmp 0x443903
push str.insufficient_winsock_version_to_support_telnet
call fcn.00433f1e
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00450ba2
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x890]
sub esp, 0x910
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp + 0x88c], eax
push ebx
mov ebx, ecx
mov ecx, dword [ebx]
push esi
mov esi, dword [ebx + 0x16c]
mov eax, dword [esi + 0x1ab0]
sub eax, dword [esi + 0x1aac]
push edi
inc eax
inc eax
push eax
lea eax, [esi + 0x18ac]
push 0x3c
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ecx
call fcn.00443ce4
mov eax, dword [esi + 0x1aac]
pop ecx
pop ecx
movzx ecx, byte [eax]
inc eax
cmp ecx, 0x18
mov dword [esi + 0x1aac], eax
je 0x444231
cmp ecx, 0x23
je 0x444210
cmp ecx, 0x27
jne 0x444297
push 0
push ecx
push 0xfa
mov edi, 0xff
push edi
push str._c_c_c_c
lea eax, [ebp - 0x74]
push 0x800
push eax
call fcn.0043ba1d
mov esi, dword [esi + 0x18a8]
add esp, 0x1c
push 4
pop ebx
jmp 0x4441cf
push dword [esi]
call fcn.00450e60
inc eax
add eax, ebx
cmp eax, 0x7fa
pop ecx
mov dword [ebp - 0x80], eax
jae 0x4441cc
lea eax, [ebp + 0x80c]
push eax
lea eax, [ebp + 0x78c]
push eax
push str._127_____127s
push dword [esi]
call fcn.00459329
lea eax, [ebp + 0x80c]
push eax
push 1
lea eax, [ebp + 0x78c]
push eax
push 0
mov eax, 0x800
sub eax, ebx
push str._c_s_c_s
push eax
lea eax, [ebp + ebx - 0x74]
push eax
call fcn.0043ba1d
mov ebx, dword [ebp - 0x80]
add esp, 0x2c
mov esi, dword [esi + 4]
test esi, esi
jne 0x44416e
push 0xf0
push edi
mov eax, 0x800
sub eax, ebx
push 0x49b0fc
push eax
lea eax, [ebp + ebx - 0x74]
push eax
call fcn.0043ba1d
add esp, 0x14
push esi
inc ebx
inc ebx
push ebx
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x78]
push dword [eax + 0xa0]
call dword [sym.imp.WS2_32.dll_send]
add ebx, 0xfffffffe
push ebx
jmp 0x444288
add esi, 0x1828
push esi
mov dword [ebp - 0x78], esi
call fcn.00450e60
push 0xf0
mov edi, 0xff
push edi
push esi
push 0
push 0x23
jmp 0x444250
add esi, 0x1808
push esi
mov dword [ebp - 0x78], esi
call fcn.00450e60
push 0xf0
mov edi, 0xff
push edi
push esi
push 0
push 0x18
push 0xfa
push edi
mov esi, eax
push str._c_c_c_c_s_c_c
lea eax, [ebp - 0x74]
push 0x800
push eax
add esi, 6
call fcn.0043ba1d
add esp, 0x2c
push 0
push esi
lea eax, [ebp - 0x74]
push eax
push dword [ebx + 0xa0]
call dword [sym.imp.WS2_32.dll_send]
add esi, 0xfffffffe
push esi
mov ecx, dword [ebp - 0x7c]
push 0x3e
lea eax, [ebp - 0x72]
call fcn.00443ce4
pop ecx
pop ecx
mov ecx, dword [ebp + 0x88c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450ba2
add ebp, 0x890
leave
ret