joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470520
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 0x470550
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 0x470660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x470682
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 0x4706b9
cmp eax, 2
jg 0x4706b9
push dword [esi + 0x130]
imul eax, eax, 3
push 1
add eax, 0x4dabb0
push 2
push eax
call fcn.0049c458
push dword [esi + 0x130]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0049c458
add esp, 0x20
xor eax, eax
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
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 0x470987
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x470961
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x470986
push ebx
push esi
call fcn.004750b3
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.004707df
mov eax, dword [esi]
mov dword [eax + 0x85f4], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret

Function at 0x472330
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
xor edi, edi
cmp dword [esi + 0x45c], edi
push 4
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x47237a
push ebx
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00470775
add esp, 0xc
jmp 0x4723e5
push dword [esi + 0x460]
mov dword [ebp - 0x10], 1
call fcn.00488781
imul eax, eax, 0x3e8
push dword [esi + 0x464]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.00488781
imul eax, eax, 0x3e8
pop ecx
pop ecx
push edi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4723e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00470775
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004959f8
leave
ret
Function at 0x472929
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x8c], 2
mov ebx, dword [esi]
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
je 0x472a86
cmp dword [esi + 0x1d0], 0
push edi
jne 0x472a7e
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
mov edi, 0x80
mov dword [ebp - 0x10c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4729a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004750b3
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
jmp 0x4729df
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4729e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004750b3
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
jmp 0x472a6e
lea ebx, [esi + 0xb8]
lea edi, [esi + 0xe8]
lea esi, [ebp - 0x104]
call fcn.004728f0
test eax, eax
jne 0x472a1d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x108]
call fcn.004750b3
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x472a68
mov esi, dword [ebp - 0x108]
push 0x2e
lea eax, [esi + 0x58]
push ebx
push eax
call fcn.00495100
lea edi, [esi + 0x11c]
lea ebx, [esi + 0xec]
add esp, 0xc
lea esi, [ebp - 0x84]
call fcn.004728f0
test eax, eax
jne 0x472a78
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x108]
call fcn.004750b3
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x110]
call fcn.004707df
add esp, 0x18
jmp 0x472a85
mov esi, dword [ebp - 0x108]
push esi
call fcn.0047289b
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004959f8
leave
ret

Function at 0x472a94
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x35c]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x472ad9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004750b3
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00470775
add esp, 0x14
jmp 0x472ae6
push str.TCP_NODELAY_set_n
push esi
call fcn.00470775
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x472ae9
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 2
mov dword [ebp - 0xa4], 0x4020
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xac], 4
pop ebx
cmp dword [0x5034d4], edi
jne 0x472b7d
mov esi, 0x9c
push esi
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00495b20
add esp, 0xc
push 3
push ebx
push edi
push edi
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x9c], 6
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
push ebx
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.DLL_VerifyVersionInfoA]
test eax, eax
je 0x472b73
mov dword [0x5034d4], ebx
jmp 0x472bce
mov dword [0x5034d4], 1
cmp dword [0x5034d4], ebx
je 0x472bce
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xa8]
push eax
mov edi, 0x1001
push edi
mov esi, 0xffff
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x472bba
mov eax, dword [ebp - 0xa8]
cmp eax, dword [ebp - 0xa4]
jg 0x472bce
push 4
lea eax, [ebp - 0xa4]
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004959f8
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x5b8]
test esi, esi
je 0x472c39
mov eax, dword [edi + 0x44]
test eax, eax
je 0x472c39
and dword [ebp - 4], 0
push 0x472bdd
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], esi
push dword [eax + 0x34]
call fcn.00486d51
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x472c40
and dword [edi + 0x5b8], 0
or eax, 0xffffffff
pop edi
pop esi
leave
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x472c49
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
jne 0x472c39
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x472c39
mov eax, edi
jmp 0x472c3c
Function at 0x472d7a
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0xd4], 0
push esi
mov esi, dword [eax]
or dword [edx], 0xffffffff
mov dword [ebp - 0xd8], edx
lea edx, [ebp - 0xc8]
push edx
lea edx, [ebp - 0xc4]
push edx
push ecx
push eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xd0], esi
call fcn.00472cc1
add esp, 0x10
test eax, eax
je 0x472dd2
xor eax, eax
jmp 0x472fdc
push ebx
push edi
lea edi, [ebp - 0xdc]
lea ebx, [ebp - 0x34]
lea esi, [ebp - 0xb4]
call fcn.004728f0
test eax, eax
jne 0x472e31
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0xcc]
call fcn.004750b3
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0xd0]
call fcn.004707df
add esp, 0x18
xor esi, esi
push dword [ebp - 0xc8]
push dword [ebp - 0xcc]
call fcn.00472c6f
pop ecx
pop ecx
mov eax, esi
jmp 0x472fda
mov esi, dword [ebp - 0xd0]
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s..._n
push esi
call fcn.00470775
mov ebx, dword [ebp - 0xcc]
add esp, 0xc
cmp dword [esi + 0x35c], 0
je 0x472e66
push dword [ebp - 0xc8]
mov edi, ebx
call fcn.00472a94
pop ecx
push dword [ebp - 0xc8]
call fcn.00472ae9
cmp dword [esi + 0x45c], 0
pop ecx
je 0x472e8c
mov ebx, dword [ebp - 0xc8]
call fcn.00472330
mov ebx, dword [ebp - 0xcc]
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x472eb8
push 0
push dword [ebp - 0xc8]
push dword [esi + 0x1b4]
call eax
add esp, 0xc
cmp eax, 2
jne 0x472eed
mov dword [ebp - 0xd4], 1
push dword [ebp - 0xc4]
push dword [ebp - 0xc8]
call fcn.004724a0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x472ef9
push dword [ebp - 0xc8]
push ebx
call fcn.00472c6f
lea eax, [edi - 1]
neg eax
pop ecx
sbb eax, eax
pop ecx
and eax, edi
jmp 0x472fda
test eax, eax
je 0x472eb8
push 0x2a
pop esi
jmp 0x472e17
push 1
push dword [ebp - 0xc8]
call fcn.0048c928
pop ecx
pop ecx
call fcn.00470414
cmp dword [ebx + 0x238], 1
mov dword [ebx + 0x230], eax
mov dword [ebx + 0x234], edx
jle 0x472f30
push dword [ebx + 0x23c]
push esi
call fcn.0046ef35
pop ecx
pop ecx
cmp dword [ebp - 0xd4], 0
jne 0x472fca
cmp dword [ebx + 0x8c], 1
jne 0x472fca
push dword [ebp - 0xb8]
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0xc8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x472fb8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x472fb6
cmp edi, 0x2732
jle 0x472f85
cmp edi, 0x2734
jle 0x472fb6
push edi
push ebx
call fcn.004750b3
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.00470775
push dword [ebp - 0xc8]
mov dword [esi + 0x85f4], edi
push ebx
call fcn.00472c6f
add esp, 0x20
push 7
pop edi
jmp 0x472fc6
xor edi, edi
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xc8]
mov dword [eax], ecx
mov eax, edi
jmp 0x472fda
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xc8]
mov dword [eax], ecx
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004959f8
leave
ret
Function at 0x473455
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 0x4735b4
push edi
mov edi, dword [ebp - 0xc]
cmp edi, ebx
je 0x473599
push esi
cmp dword [edi + 4], 2
jne 0x473533
cmp dword [edi + 0x18], ebx
je 0x473533
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x473533
cmp eax, 0x10
jb 0x473533
push 0x20
call dword [0x4ff380]
mov esi, eax
pop ecx
cmp esi, ebx
je 0x473540
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 [0x4ff380]
pop ecx
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x473549
push 0x10
push dword [edi + 0x18]
push eax
call fcn.00495100
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp eax, ebx
je 0x47351e
push eax
call dword [0x4ff38c]
pop ecx
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x473559
cmp dword [ebp - 4], ebx
jne 0x473526
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x473530
mov dword [eax + 0x1c], esi
mov dword [ebp - 0x10], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x473494
jmp 0x473572
mov dword [ebp - 8], 8
jmp 0x473572
push esi
mov dword [ebp - 8], 8
call dword [0x4ff384]
jmp 0x473571
push dword [esi + 0x18]
mov dword [ebp - 8], 8
call dword [0x4ff384]
push esi
call dword [0x4ff384]
pop ecx
pop ecx
pop esi
cmp dword [ebp - 0xc], ebx
je 0x473581
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x473594
push dword [ebp - 4]
call fcn.00473416
pop ecx
mov dword [ebp - 4], ebx
jmp 0x4735a8
cmp dword [ebp - 4], ebx
jne 0x4735a8
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 0x474941
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.0049a38c
add esp, 0x18
test eax, eax
je 0x474963
cmp eax, 0xffffffff
jne 0x474965
xor eax, eax
pop ebp
ret
Function at 0x47b8d2
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
push edi
push 3
pop ebx
sub eax, ebx
mov dword [ebp - 4], edx
je 0x47ba16
dec eax
dec eax
je 0x47b9d2
dec eax
je 0x47b979
dec eax
je 0x47b919
push str.tftp_rx:_internal_error
push 0x4cdf5c
push edx
call fcn.004707df
add esp, 0xc
push 0x47
jmp 0x47bab9
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 edx
call fcn.00470775
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x47b94c
mov dword [esi + 8], 0xffffff9d
jmp 0x47ba0f
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 0x47baf2
jmp 0x47ba97
xor eax, eax
and dword [esi + 0x18], eax
mov word [esi + 0x40], ax
push 4
pop ecx
lea eax, [esi + 0x160]
call fcn.0047b649
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.0047b65a
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 0x47ba97
mov dword [esi], 1
jmp 0x47bad6
push 5
pop ecx
lea eax, [esi + 0x160]
call fcn.0047b649
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.0047b65a
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 0x47baf2
lea eax, [esi + 0x15c]
call fcn.0047b67b
movzx edi, ax
movzx eax, word [esi + 0x40]
lea ecx, [eax + 1]
and ecx, 0xffff
cmp ecx, edi
jne 0x47ba3b
and dword [esi + 0x18], 0
jmp 0x47ba52
cmp eax, edi
jne 0x47bae2
push edi
push str.Received_last_DATA_packet_block__d_again._n
push edx
call fcn.00470775
add esp, 0xc
push 4
pop ecx
lea eax, [esi + 0x160]
mov word [esi + 0x40], di
call fcn.0047b649
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.0047b65a
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 0x47babc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.004750b3
push eax
push 0x4cdf5c
push dword [ebp - 4]
call fcn.004707df
add esp, 0x14
push 0x37
pop eax
jmp 0x47baf4
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.00496768
pop ecx
jmp 0x47baf2
push ecx
push edi
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push edx
call fcn.00470775
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47c0dc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x10]
push str.Connected_for_receive
push 0x4dadbc
push dword [eax]
call fcn.00470775
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.0047b506
test eax, eax
jne 0x47c10f
mov eax, esi
pop ebp
jmp fcn.0047b8d2
pop ebp
ret
Function at 0x47c41c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [eax + 0x400]
push edi
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
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 0x47c4ad
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.00495100
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x47c4dd
push str.Received_too_short_packet
push ebx
call fcn.004707df
pop ecx
pop ecx
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004959f8
leave
ret
lea eax, [esi + 0x15c]
call fcn.0047b66c
movzx eax, ax
mov dword [esi + 0xc], eax
sub eax, 3
je 0x47c55e
dec eax
je 0x47c5cc
dec eax
je 0x47c536
dec eax
je 0x47c515
push str.Internal_error:_Unexpected_packet
push 0x4cdf5c
push ebx
call fcn.004707df
jmp 0x47c5c9
mov eax, dword [esi + 0x15c]
add edx, 0xfffffffe
push edx
add eax, 2
push eax
push esi
call fcn.0047b6fa
add esp, 0xc
test eax, eax
je 0x47c5cc
jmp 0x47c4ce
lea eax, [esi + 0x15c]
call fcn.0047b67b
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [esi + 0x15c]
add eax, 4
push eax
push 0x4dadbc
push ebx
call fcn.00470775
jmp 0x47c5c9
cmp edx, 4
jle 0x47c5cc
lea eax, [esi + 0x15c]
call fcn.0047b67b
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne 0x47c5cc
mov eax, dword [esi + 0x15c]
add edx, 0xfffffffc
push edx
add eax, 4
push eax
push 1
push dword [ebp - 0x8c]
call fcn.00470a35
mov edi, eax
add esp, 0x10
test edi, edi
je 0x47c5ad
push 5
mov eax, esi
call fcn.0047c3ad
pop ecx
mov eax, edi
jmp 0x47c4ce
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x70], eax
adc dword [ebx + 0x74], edx
push dword [ebx + 0x74]
push dword [ebx + 0x70]
push ebx
call fcn.00488ea4
add esp, 0xc
push dword [ebp - 0x8c]
call fcn.00488f62
pop ecx
test eax, eax
je 0x47c4cc
push 5
mov eax, esi
call fcn.0047c3ad
pop ecx
push 0x2a
pop eax
jmp 0x47c4ce

Function at 0x47daac
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x47dae3
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.004707df
add esp, 0xc
jmp 0x47db10
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp byte [ebp - 0x194], 2
jne 0x47db03
mov eax, dword [ebp - 0x194]
shr eax, 8
test al, al
jne 0x47db03
xor eax, eax
jmp 0x47db13
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.004707df
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004959f8
leave
ret
Function at 0x47dc4d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
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 0x47dc94
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004707df
add esp, 0xc
mov edx, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, ebx
mov ebx, str.SENT
call fcn.0047db84
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47e473
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x910
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x7f
xor edi, edi
lea eax, [ebp - 0x103]
push edi
push eax
mov byte [ebp - 0x104], 0
call fcn.00495b20
push 0x7f
lea eax, [ebp - 0x83]
push edi
push eax
mov byte [ebp - 0x84], 0
call fcn.00495b20
mov ecx, dword [ebx]
mov esi, dword [ecx + 0x128]
mov eax, dword [esi + 0x1eb4]
sub eax, dword [esi + 0x1eb0]
mov dword [ebp - 0x908], ecx
add eax, 2
push eax
push 0x3c
lea eax, [esi + 0x1cb0]
push ecx
call fcn.0047df0d
mov eax, dword [esi + 0x1eb0]
movzx ecx, byte [eax]
add esp, 0x24
inc eax
mov dword [esi + 0x1eb0], eax
cmp ecx, 0x18
je 0x47e62c
cmp ecx, 0x23
je 0x47e608
cmp ecx, 0x27
jne 0x47e6be
push edi
push ecx
push 0xfa
mov edi, 0xff
push edi
push str._c_c_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.00473e4e
mov esi, dword [esi + 0x1cac]
add esp, 0x1c
mov dword [ebp - 0x910], 4
jmp 0x47e5cc
push dword [esi]
call fcn.00495f10
inc eax
add eax, dword [ebp - 0x910]
pop ecx
mov dword [ebp - 0x90c], eax
cmp eax, 0x7fa
jae 0x47e5c9
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127_____127s
push dword [esi]
call fcn.0049b126
add esp, 0x10
test eax, eax
je 0x47e5c9
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 0x910]
push 0
mov ecx, 0x800
sub ecx, eax
push str._c_s_c_s
push ecx
lea eax, [ebp + eax - 0x904]
push eax
call fcn.00473e4e
mov eax, dword [ebp - 0x90c]
add esp, 0x1c
mov dword [ebp - 0x910], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x47e54b
mov eax, dword [ebp - 0x910]
push 0xf0
push edi
mov ecx, 0x800
sub ecx, eax
push 0x4ddd88
push ecx
lea eax, [ebp + eax - 0x904]
push eax
call fcn.00473e4e
mov esi, dword [ebp - 0x910]
add esp, 0x14
add esi, 2
jmp 0x47e670
add esi, 0x1c28
push esi
mov dword [ebp - 0x90c], esi
call fcn.00495f10
push 0xf0
mov edi, 0xff
push edi
push esi
push 0
push 0x23
jmp 0x47e64e
add esi, 0x1c08
push esi
mov dword [ebp - 0x90c], esi
call fcn.00495f10
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 - 0x904]
push 0x800
push eax
call fcn.00473e4e
add esp, 0x2c
push 0
push esi
lea eax, [ebp - 0x904]
push eax
push dword [ebx + 0x154]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x47e6a4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 0x908]
call fcn.004707df
add esp, 0xc
add esi, 0xfffffffe
push esi
push 0x3e
push dword [ebp - 0x908]
lea eax, [ebp - 0x902]
call fcn.0047df0d
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004959f8
leave
ret