joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d477
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x4f9b3c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0xe4], 0
push ebx
push esi
mov esi, edx
mov edx, dword [esi]
or dword [eax], 0xffffffff
push edi
mov dword [ebp - 0xd4], edx
push ecx
lea ebx, [ebp - 0xdc]
lea edx, [ebp - 0xcc]
mov ecx, esi
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xe0], eax
call fcn.0040d8a1
pop ecx
test eax, eax
jne 0x40d6db
lea ebx, [ebp - 0xd0]
lea eax, [ebp - 0x38]
lea edi, [ebp - 0xbc]
call fcn.0040cebc
test eax, eax
jne 0x40d523
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00428f6a
pop ecx
push eax
push ebx
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0xd4]
call fcn.0040ec0a
add esp, 0x10
xor edi, edi
mov esi, dword [ebp - 0xdc]
mov eax, dword [ebp - 0xd8]
call fcn.0040d85b
mov eax, edi
jmp 0x40d6dd
mov ebx, dword [ebp - 0xd4]
lea eax, [ebp - 0x38]
push eax
push str.__Trying__s..._n
push ebx
call fcn.0040eb9d
add esp, 0xc
cmp dword [ebx + 0x35c], 0
je 0x40d552
push dword [ebp - 0xdc]
mov edi, esi
call fcn.0040d32a
pop ecx
mov edi, dword [ebp - 0xdc]
push edi
call fcn.0040d383
cmp dword [ebx + 0x45c], 0
pop ecx
je 0x40d581
mov esi, dword [ebp - 0xd4]
mov ebx, edi
call fcn.0040c892
mov esi, dword [ebp - 0xd8]
mov ebx, dword [ebp - 0xd4]
mov eax, dword [ebx + 0x1b0]
test eax, eax
je 0x40d5a8
push 0
push edi
push dword [ebx + 0x1b4]
call eax
add esp, 0xc
cmp eax, 2
jne 0x40d5e5
mov dword [ebp - 0xe4], 1
push dword [ebp - 0xcc]
push edi
push esi
call fcn.0040c9f1
add esp, 0xc
mov dword [ebp - 0xd0], eax
test eax, eax
je 0x40d5f1
mov eax, dword [ebp - 0xd8]
mov esi, edi
call fcn.0040d85b
mov eax, dword [ebp - 0xd0]
dec eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0xd0]
jmp 0x40d6dd
test eax, eax
je 0x40d5a8
push 0x2a
pop edi
jmp 0x40d50b
push 1
push edi
call fcn.004287f2
pop ecx
pop ecx
call fcn.0040f313
cmp dword [esi + 0x238], 1
mov dword [esi + 0x230], eax
mov dword [esi + 0x234], edx
jle 0x40d629
push dword [esi + 0x23c]
mov esi, ebx
call fcn.00407706
mov esi, dword [ebp - 0xd8]
pop ecx
cmp dword [ebp - 0xe4], 0
jne 0x40d6d3
cmp dword [esi + 0x8c], 1
jne 0x40d6d3
push dword [ebp - 0xc0]
lea eax, [ebp - 0xbc]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40d6c3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0xb
je 0x40d6bc
cmp ebx, 0x2732
jle 0x40d679
cmp ebx, 0x2734
jle 0x40d6bc
push esi
call fcn.00428f6a
mov esi, dword [ebp - 0xd4]
pop ecx
push eax
lea eax, [ebp - 0x38]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.0040eb9d
mov eax, dword [ebp - 0xd8]
mov dword [esi + 0x85f4], ebx
mov esi, dword [ebp - 0xdc]
add esp, 0x10
call fcn.0040d85b
mov dword [ebp - 0xd0], 7
jmp 0x40d6cb
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0xe0]
mov dword [eax], edi
mov eax, dword [ebp - 0xd0]
jmp 0x40d6dd
mov eax, dword [ebp - 0xe0]
mov dword [eax], edi
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004927bf
leave
ret
Function at 0x40d7e3
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, eax
mov esi, dword [edi + 0x5b8]
test esi, esi
je 0x40d825
mov eax, dword [edi + 0x44]
test eax, eax
je 0x40d825
and dword [ebp - 8], 0
lea ecx, [ebp - 0xc]
push 0x40d7ca
mov dword [ebp - 0xc], esi
push ecx
mov ecx, dword [eax + 0x34]
call fcn.00412e59
cmp dword [ebp - 8], 0
pop ecx
pop ecx
jne 0x40d82c
and dword [edi + 0x5b8], 0
or eax, 0xffffffff
pop edi
pop esi
leave
ret
mov eax, dword [ebp + 8]
test eax, eax
je 0x40d835
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
jne 0x40d825
push 2
push 1
lea eax, [ebp - 1]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x40d825
mov eax, edi
jmp 0x40d828
Function at 0x40ed78
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x40ede9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x40edc4
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x40ede9
push esi
call fcn.00428f6a
pop ecx
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.0040ec0a
mov eax, dword [esi]
mov dword [eax + 0x85f4], ebx
add esp, 0xc
mov dword [edi], 0x37
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x40f05a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x40f15d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x40f17f
push dword [esi + 0x134]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push esi
call ecx
add esp, 0x14
pop ebp
ret
test eax, eax
js 0x40f1b6
cmp eax, 2
jg 0x40f1b6
push dword [esi + 0x130]
imul eax, eax, 3
push 1
add eax, 0x4dd85c
push 2
push eax
call fcn.0049a034
push dword [esi + 0x130]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0049a034
add esp, 0x20
xor eax, eax
pop ebp
ret

Function at 0x4166d1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
call fcn.0047599f
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a0dd9
add esp, 0xc
pop ebp
ret
Function at 0x41c31d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
push edi
mov edi, dword [eax]
mov eax, dword [ebp + 8]
push 3
pop ebx
sub eax, ebx
je 0x41c45d
dec eax
dec eax
je 0x41c419
dec eax
je 0x41c3c0
dec eax
je 0x41c360
push str.tftp_rx:_internal_error
push 0x4de6ac
push edi
call fcn.0040ec0a
add esp, 0xc
push 0x47
jmp 0x41c500
movzx eax, word [esi + 0x40]
inc dword [esi + 0x18]
push dword [esi + 0x18]
inc eax
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push edi
call fcn.0040eb9d
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x41c393
mov dword [esi + 8], 0xffffff9d
jmp 0x41c456
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x41c539
jmp 0x41c4de
xor eax, eax
and dword [esi + 0x18], eax
mov word [esi + 0x40], ax
push 4
pop ecx
lea eax, [esi + 0x160]
call fcn.0041bd7d
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.0041bd8e
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x41c4de
mov dword [esi], 1
jmp 0x41c51d
push 5
pop ecx
lea eax, [esi + 0x160]
call fcn.0041bd7d
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.0041bd8e
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], ebx
jmp 0x41c539
lea eax, [esi + 0x15c]
call fcn.0041bdaf
movzx ebx, ax
movzx eax, word [esi + 0x40]
lea ecx, [eax + 1]
and ecx, 0xffff
cmp ecx, ebx
jne 0x41c482
and dword [esi + 0x18], 0
jmp 0x41c499
cmp eax, ebx
jne 0x41c529
push ebx
push str.Received_last_DATA_packet_block__d_again._n
push edi
call fcn.0040eb9d
add esp, 0xc
push 4
pop ecx
lea eax, [esi + 0x160]
mov word [esi + 0x40], bx
call fcn.0041bd7d
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.0041bd8e
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x41c503
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [esi + 0x10]
mov ebx, eax
call fcn.00428f6a
pop ecx
push eax
push 0x4de6ac
push edi
call fcn.0040ec0a
add esp, 0xc
push 0x37
pop eax
jmp 0x41c53b
mov eax, dword [esi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [esi + 0x14c], eax
setl cl
lea ecx, [ecx + ecx + 1]
mov dword [esi], ecx
add esi, 0x38
push esi
call fcn.00493ec8
pop ecx
jmp 0x41c539
push ecx
push ebx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push edi
call fcn.0040eb9d
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41ca7e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4f9b3c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [eax + 0x400]
push edi
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x90], 0x80
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x41cb0f
push dword [ebp - 0x90]
lea eax, [ebp - 0x8c]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.004927d0
mov eax, dword [ebp - 0x90]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x41cb3f
push str.Received_too_short_packet
push ebx
call fcn.0040ec0a
pop ecx
pop ecx
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004927bf
leave
ret
lea eax, [esi + 0x15c]
call fcn.0041bda0
movzx eax, ax
mov dword [esi + 0xc], eax
sub eax, 3
je 0x41cbc0
dec eax
je 0x41cc2e
dec eax
je 0x41cb95
dec eax
je 0x41cb74
push str.Internal_error:_Unexpected_packet
push 0x4de6ac
push ebx
call fcn.0040ec0a
jmp 0x41cbbb
mov eax, dword [esi + 0x15c]
add edx, 0xfffffffe
push edx
add eax, 2
push eax
push esi
call fcn.0041be2e
add esp, 0xc
test eax, eax
je 0x41cc2e
jmp 0x41cb30
lea eax, [esi + 0x15c]
call fcn.0041bdaf
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [esi + 0x15c]
add eax, 4
push eax
push 0x4de94c
push ebx
call fcn.0040eb9d
add esp, 0xc
jmp 0x41cc2e
cmp edx, 4
jle 0x41cc2e
lea eax, [esi + 0x15c]
call fcn.0041bdaf
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne 0x41cc2e
mov eax, dword [esi + 0x15c]
add edx, 0xfffffffc
push edx
add eax, 4
push eax
push 1
push dword [ebp - 0x94]
call fcn.0040eed8
mov edi, eax
add esp, 0x10
test edi, edi
je 0x41cc0f
push 5
mov eax, esi
call fcn.0041c82c
pop ecx
mov eax, edi
jmp 0x41cb30
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x70], eax
mov eax, ebx
adc dword [ebx + 0x74], edx
push dword [ebx + 0x74]
push dword [ebx + 0x70]
call fcn.00416b59
pop ecx
pop ecx
push dword [ebp - 0x94]
call fcn.00416c05
pop ecx
test eax, eax
je 0x41cb2e
push 5
mov eax, esi
call fcn.0041c82c
pop ecx
push 0x2a
pop eax
jmp 0x41cb30
Function at 0x420a90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4f9b3c]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x1c], 0xffffffff
push ebx
mov ebx, dword [edi]
push esi
mov esi, dword [edi + 0x158]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x420ae1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x1c], eax
mov eax, edi
call fcn.0040d85b
mov esi, dword [ebp - 0x1c]
cmp esi, 0xffffffff
jne 0x420b02
push str.Error_accept__ing_server_connect
push ebx
call fcn.0040ec0a
pop ecx
pop ecx
push 0x1e
pop eax
jmp 0x420b56
push str.Connection_accepted_from_server_n
push ebx
call fcn.0040eb9d
push 1
push esi
mov dword [edi + 0x158], esi
call fcn.004287f2
xor ecx, ecx
inc ecx
mov dword [edi + 0x168], ecx
mov eax, dword [ebx + 0x1b0]
add esp, 0x10
test eax, eax
je 0x420b54
push ecx
push esi
push dword [ebx + 0x1b4]
call eax
add esp, 0xc
test eax, eax
je 0x420b54
mov eax, edi
call fcn.0040d85b
or dword [edi + 0x158], 0xffffffff
push 0x2a
jmp 0x420aff
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004927bf
leave
ret
Function at 0x42267c
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
push 0x64
cdq
pop ebx
idiv ebx
mov ecx, dword [esi]
xor edi, edi
cmp eax, 2
je 0x4226a5
push str.Couldnt_set_desired_mode
push ecx
call fcn.0040ec0a
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x4226fb
cmp dword [ebp + 8], 0xc8
je 0x4226bf
push dword [ebp + 8]
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.0040eb9d
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp eax, 0x13
jne 0x4226d0
push esi
call fcn.004219ba
pop ecx
jmp 0x4226f7
cmp eax, 0x14
jne 0x4226dd
push esi
call fcn.00421a0f
jmp 0x4226cd
cmp eax, 0x15
jne 0x4226eb
mov eax, esi
call fcn.00421b19
jmp 0x4226f7
cmp eax, 0x16
jne 0x4226f9
mov eax, esi
call fcn.00421b25
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret

Function at 0x424a35
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 8]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x424a44
jmp dword [eax*4 + 0x424ab9]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, byte [ebp + 8]
pop ebp
ret

Function at 0x424bfa
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x4f9b3c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x424c31
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0040ec0a
add esp, 0xc
jmp 0x424c5e
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp byte [ebp - 0x198], 2
jne 0x424c51
mov eax, dword [ebp - 0x198]
shr eax, 8
test al, al
jne 0x424c51
xor eax, eax
jmp 0x424c61
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0040ec0a
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004927bf
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
mov al, byte [ebp + 8]
push 0
mov byte [ebp - 3], al
push 3
lea eax, [ebp - 4]
mov esi, ecx
mov edi, dword [esi]
push eax
push dword [esi + 0x154]
mov byte [ebp - 4], 0xff
mov byte [ebp - 2], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x424e28
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0040ec0a
add esp, 0xc
mov edx, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, ebx
mov ebx, str.SENT
call fcn.00424d17
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425649
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x918
mov eax, dword [0x4f9b3c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x7f
xor edi, edi
lea eax, [ebp - 0x107]
push edi
push eax
mov byte [ebp - 0x108], 0
call fcn.00492b40
add esp, 0xc
push 0x7f
lea eax, [ebp - 0x87]
push edi
push eax
mov byte [ebp - 0x88], 0
call fcn.00492b40
mov ecx, dword [ebx]
mov esi, dword [ecx + 0x128]
mov eax, dword [esi + 0x1eb4]
sub eax, dword [esi + 0x1eb0]
add esp, 0xc
add eax, 2
push eax
push 0x3c
lea eax, [esi + 0x1cb0]
push ecx
mov dword [ebp - 0x90c], ecx
call fcn.0042510e
mov eax, dword [esi + 0x1eb0]
movzx ecx, byte [eax]
add esp, 0xc
inc eax
mov dword [esi + 0x1eb0], eax
cmp ecx, 0x18
je 0x425809
cmp ecx, 0x23
je 0x4257e4
cmp ecx, 0x27
jne 0x42589c
push edi
push ecx
push 0xfa
mov edi, 0xff
push edi
push str._c_c_c_c
lea eax, [ebp - 0x908]
push 0x800
push eax
call fcn.004193e0
mov esi, dword [esi + 0x1cac]
add esp, 0x1c
mov dword [ebp - 0x914], 4
jmp 0x4257a8
push dword [esi]
call fcn.00493670
inc eax
add eax, dword [ebp - 0x914]
pop ecx
mov dword [ebp - 0x910], eax
cmp eax, 0x7fa
jae 0x4257a5
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x108]
push eax
push str._127_____127s
push dword [esi]
call fcn.004988e6
add esp, 0x10
test eax, eax
je 0x4257a5
lea eax, [ebp - 0x88]
push eax
push 1
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 0x914]
push 0
mov ecx, 0x800
sub ecx, eax
push str._c_s_c_s
push ecx
lea eax, [ebp + eax - 0x908]
push eax
call fcn.004193e0
mov eax, dword [ebp - 0x910]
add esp, 0x1c
mov dword [ebp - 0x914], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x425727
mov eax, dword [ebp - 0x914]
push 0xf0
push edi
mov ecx, 0x800
sub ecx, eax
push 0x4e2800
push ecx
lea eax, [ebp + eax - 0x908]
push eax
call fcn.004193e0
mov esi, dword [ebp - 0x914]
add esp, 0x14
add esi, 2
jmp 0x42584e
add esi, 0x1c28
push esi
mov dword [ebp - 0x910], esi
call fcn.00493670
pop ecx
push 0xf0
mov edi, 0xff
push edi
push esi
push 0
push 0x23
jmp 0x42582c
add esi, 0x1c08
push esi
mov dword [ebp - 0x910], esi
call fcn.00493670
pop ecx
push 0xf0
mov edi, 0xff
push edi
push esi
push 0
push 0x18
push 0xfa
push edi
push str._c_c_c_c_s_c_c
lea esi, [eax + 6]
lea eax, [ebp - 0x908]
push 0x800
push eax
call fcn.004193e0
add esp, 0x28
push 0
push esi
lea eax, [ebp - 0x908]
push eax
push dword [ebx + 0x154]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x425882
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 0x90c]
call fcn.0040ec0a
add esp, 0xc
add esi, 0xfffffffe
push esi
push 0x3e
push dword [ebp - 0x90c]
lea eax, [ebp - 0x906]
call fcn.0042510e
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004927bf
leave
ret
Function at 0x4258aa
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
mov edi, dword [eax + 0x128]
mov dword [ebp - 4], eax
jne 0x4259f5
lea ebx, [edi + 0x1cb0]
lea esi, [edi + 0x1eb0]
mov dword [esi], ebx
cmp ebx, esi
jae 0x4258e0
mov byte [ebx], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4258eb
mov byte [eax], 0xfa
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4258f6
mov byte [eax], 0x1f
inc dword [esi]
movzx eax, word [edi + 0x1ca8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [edi + 0x1caa]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov eax, dword [esi]
cmp eax, esi
jae 0x425928
mov dl, byte [ebp + 0xc]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x425935
mov dl, byte [ebp + 0xd]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x42593f
mov byte [eax], cl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x425949
mov byte [eax], ch
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x425954
mov byte [eax], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x42595f
mov byte [eax], 0xf0
inc dword [esi]
mov ecx, dword [esi]
mov eax, ecx
sub eax, ebx
sub eax, 2
push eax
push 0x3e
push dword [ebp - 4]
lea eax, [edi + 0x1cb2]
mov dword [edi + 0x1eb4], ecx
mov dword [esi], ebx
call fcn.0042510e
mov esi, dword [sym.imp.WS2_32.dll_send]
add esp, 0xc
push 0
push 3
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx + 0x154]
call esi
test eax, eax
jns 0x4259b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 4]
call fcn.0040ec0a
add esp, 0xc
lea eax, [edi + 0x1cb3]
push 4
push eax
call fcn.00425d46
pop ecx
pop ecx
push 0
push 2
add edi, 0x1cb7
push edi
mov eax, ebx
push dword [eax + 0x154]
call esi
test eax, eax
jns 0x4259f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 4]
call fcn.0040ec0a
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x429131
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x42928f
push edi
mov edi, dword [ebp - 0xc]
cmp edi, ebx
je 0x429274
push esi
cmp dword [edi + 4], 2
jne 0x42920f
cmp dword [edi + 0x18], ebx
je 0x42920f
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x42920f
cmp eax, 0x10
jb 0x42920f
push 0x20
call dword [0x4fb064]
mov esi, eax
pop ecx
cmp esi, ebx
je 0x42921c
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
pop eax
push eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x4fb064]
pop ecx
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x429225
push 0x10
push dword [edi + 0x18]
push eax
call fcn.004927d0
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp eax, ebx
je 0x4291fa
push eax
call dword [0x4fb070]
pop ecx
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x429235
cmp dword [ebp - 4], ebx
jne 0x429202
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x42920c
mov dword [eax + 0x1c], esi
mov dword [ebp - 0x10], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x429170
jmp 0x42924e
mov dword [ebp - 8], 8
jmp 0x42924e
push esi
mov dword [ebp - 8], 8
call dword [0x4fb068]
jmp 0x42924d
push dword [esi + 0x18]
mov dword [ebp - 8], 8
call dword [0x4fb068]
push esi
call dword [0x4fb068]
pop ecx
pop ecx
pop esi
cmp dword [ebp - 0xc], ebx
je 0x42925d
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x42926f
mov eax, dword [ebp - 4]
call fcn.004290f7
mov dword [ebp - 4], ebx
jmp 0x429283
cmp dword [ebp - 4], ebx
jne 0x429283
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret

Function at 0x429451
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 8]
push 0x40e0c7
push 0
push 0
call fcn.0049b2af
add esp, 0x18
test eax, eax
je 0x429475
cmp eax, 0xffffffff
jne 0x429477
xor eax, eax
pop ebp
ret