joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426427
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret

Function at 0x426665
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
test ebx, ebx
je 0x426706
mov ecx, dword [0x498d08]
push esi
mov esi, dword [ebp + 8]
push edi
movzx edx, byte [esi]
shr edx, 2
mov dl, byte [edx + ecx]
mov byte [eax], dl
movzx edx, byte [esi]
and edx, 3
dec ebx
je 0x4266e1
lea edi, [esi + 1]
movzx esi, byte [edi]
shl edx, 4
shr esi, 4
or edx, esi
dec ebx
mov dl, byte [edx + ecx]
mov byte [eax + 1], dl
mov edx, edi
je 0x4266f1
lea esi, [edx + 1]
movzx edx, byte [edx]
movzx edi, byte [esi]
and edx, 0xf
shl edx, 2
shr edi, 6
or edx, edi
mov dl, byte [edx + ecx]
mov byte [eax + 2], dl
movzx edx, byte [esi]
and edx, 0x3f
mov dl, byte [edx + ecx]
mov byte [eax + 3], dl
add eax, 4
inc esi
dec ebx
jne 0x426685
jmp 0x426704
add edx, edx
mov cl, byte [ecx + edx*8]
mov byte [eax + 1], cl
mov word [eax + 2], 0x3d3d
jmp 0x426701
movzx edx, byte [edx]
and edx, 0xf
mov cl, byte [ecx + edx*4]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
add eax, 4
pop edi
pop esi
sub eax, dword [ebp + 0x10]
pop ebx
pop ebp
ret

Function at 0x427b17
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret
Function at 0x427cca
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x498d74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0x40
jle 0x427cfd
push 0x40
pop eax
mov dword [ebp + 0x10], eax
push ebx
push esi
xor esi, esi
push edi
test eax, eax
jle 0x427d3c
mov ecx, dword [ebp + 0xc]
lea edi, [ebp - 0x98]
lea edx, [ebp - 0x58]
sub edi, ecx
sub edx, ecx
mov dword [ebp - 0xf8], eax
mov esi, eax
mov al, byte [ecx]
mov bl, al
xor bl, 0x5c
xor al, 0x36
mov byte [edi + ecx], bl
mov byte [edx + ecx], al
inc ecx
dec dword [ebp - 0xf8]
jne 0x427d1e
cmp dword [ebp + 0x10], 0x40
jge 0x427d61
push 0x40
pop ebx
sub ebx, esi
push ebx
lea eax, [ebp + esi - 0x58]
push 0x36
push eax
lea edi, [ebp + esi - 0x98]
call fcn.004424b0
push ebx
push 0x5c
push edi
call fcn.004424b0
add esp, 0x18
lea eax, [ebp - 0xf4]
call fcn.00427b17
lea eax, [ebp - 0x58]
push eax
push 0x40
pop eax
lea ecx, [ebp - 0xf4]
call fcn.00427b42
push dword [ebp - 0xfc]
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0xf4]
call fcn.00427b42
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xf4]
call fcn.00427bdf
lea eax, [ebp - 0xf4]
call fcn.00427b17
lea eax, [ebp - 0x98]
push eax
push 0x40
pop eax
lea ecx, [ebp - 0xf4]
call fcn.00427b42
lea eax, [ebp - 0x18]
push eax
push 0x14
pop eax
lea ecx, [ebp - 0xf4]
call fcn.00427b42
push dword [ebp - 0x100]
lea ecx, [ebp - 0xf4]
call fcn.00427bdf
mov ecx, dword [ebp - 4]
add esp, 0x18
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044249e
leave
ret

Function at 0x427e60
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x498d74]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x427ea9
cmp byte [ebp - 0x194], 2
jne 0x427ea3
mov eax, dword [ebp - 0x194]
shr eax, 8
cmp al, 2
jne 0x427ea3
xor eax, eax
jmp 0x427eac
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044249e
leave
ret

Function at 0x428318
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
cmp dword [eax + 4], 2
push ebx
sete bl
push edi
test bl, bl
je 0x42833a
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x42836b
cmp dword [esi + 8], 0
jne 0x42835b
push 0x47e318
push dword [eax + 8]
call fcn.00447e10
pop ecx
pop ecx
mov dword [esi + 8], eax
test eax, eax
jne 0x42835b
or eax, 0xffffffff
jmp 0x428392
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.00446fd8
mov edi, eax
add esp, 0x10
test edi, edi
je 0x428379
cmp edi, dword [ebp + 0xc]
jbe 0x428390
test bl, bl
jne 0x42838a
push dword [esi + 8]
call fcn.00447ce0
and dword [esi + 8], 0
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x430419
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x140]
test ecx, ecx
je 0x43043b
push dword [esi + 0xe4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push esi
call ecx
add esp, 0x14
pop ebp
ret
test eax, eax
js 0x430472
cmp eax, 2
jg 0x430472
push dword [esi + 0xe0]
imul eax, eax, 3
push 1
add eax, 0x482870
push 2
push eax
call fcn.00447a48
push dword [esi + 0xe0]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00447a48
add esp, 0x20
xor eax, eax
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + eax*4 + 0xd4]
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43066f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x430658
xor edi, edi
jmp 0x43066f
push eax
push esi
call fcn.00440a93
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.00430598
add esp, 0x14
mov eax, edi
pop edi
pop ebp
ret
Function at 0x430d1b
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
movzx eax, byte [esi + 0x286]
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 0x430d61
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00440a93
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0043052e
add esp, 0x14
jmp 0x430d6e
push str.TCP_NODELAY_set_n
push esi
call fcn.0043052e
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x432877
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 1
push 0x24
call dword [0x498d20]
mov esi, eax
xor ebx, ebx
xor eax, eax
pop ecx
lea edi, [ebp - 8]
mov dword [ebp - 0xc], ebx
pop ecx
stosd dword es:[edi], eax
cmp esi, ebx
jne 0x4328ac
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x4329c7
mov edi, dword [ebp + 8]
lea eax, [edi + 0x2bc]
push dword [eax]
mov dword [ebp - 4], eax
call fcn.00428e77
push dword [ebp + 0xc]
call dword [0x498d1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
cmp eax, ebx
jne 0x4328dd
push esi
call dword [0x498d14]
pop ecx
jmp 0x43289d
mov eax, dword [ebp + 0x10]
push ebx
push 1
mov dword [edi + 0x2c0], eax
mov byte [edi + 0x2c8], bl
mov dword [edi + 0x2cc], ebx
mov dword [edi + 0x2c4], ebx
mov dword [edi + 0x2d0], esi
or dword [esi + 0xc], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x432923
push dword [ebp - 4]
call fcn.004327b9
pop ecx
push 0xb
jmp 0x43289f
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x432913
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x1c], eax
cmp eax, ebx
je 0x432913
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x20], eax
cmp eax, ebx
je 0x432913
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x432913
lea eax, [esi + 4]
push eax
push ebx
push edi
push 0x432708
push ebx
push ebx
call fcn.0044ba65
add esp, 0x18
mov dword [esi], eax
cmp eax, ebx
jne 0x43299f
call fcn.0044b957
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
call fcn.004327b9
pop ecx
jmp 0x4328a5
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x18]
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 0x4329cc
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, dword [eax + 0x174]
mov esi, dword [edi + 0x2d0]
mov dword [ebp + 8], eax
test ecx, ecx
je 0x4329ee
mov eax, ecx
jmp 0x4329fd
mov eax, dword [eax + 0x170]
test eax, eax
jne 0x4329fd
mov eax, 0x493e0
push ebx
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x10]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [esi + 0x14]
and dword [esi + 0x10], 0
call ebx
xor ebx, ebx
mov dword [esi + 0x14], ebx
cmp dword [ebp - 4], ebx
jne 0x432a63
push 0x1388
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x432a49
push ebx
jmp 0x432a75
push dword [edi + 0x2cc]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea ebx, [esi + 8]
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x432a8a
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x432a7d
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebx, [esi + 8]
mov byte [edi + 0x2c8], 1
or dword [ebx], 0xffffffff
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
je 0x432a9b
mov ecx, dword [edi + 0x2c4]
mov dword [eax], ecx
cmp dword [edi + 0x2c4], esi
jne 0x432b4f
mov ebx, dword [ebx]
push 0x1b
pop esi
cmp ebx, esi
jne 0x432acc
push esi
call fcn.004403d9
push eax
push str.Could_not_resolve_host:__s
push dword [ebp + 8]
call fcn.00430598
add esp, 0x10
jmp 0x432b4f
cmp byte [edi + 0x2c8], 0
je 0x432b25
cmp byte [edi + 0x12b], 0
push dword [edi + 0x2cc]
push edi
je 0x432b05
call fcn.00440a93
push eax
push dword [edi + 0xa0]
push str.Could_not_resolve_proxy:__s___s
push dword [ebp + 8]
call fcn.00430598
add esp, 0x18
push 5
jmp 0x432b4e
call fcn.00440a93
push eax
push dword [edi + 0x8c]
push str.Could_not_resolve_host:__s___s
push dword [ebp + 8]
call fcn.00430598
add esp, 0x18
push 6
jmp 0x432b4e
cmp ebx, 0xffffffff
je 0x432b36
cmp dword [edi + 0x2cc], 0x2afc
jne 0x432b4c
push dword [edi + 0x8c]
push str.Resolving_host_timed_out:__s
push dword [ebp + 8]
call fcn.00430598
add esp, 0xc
push 0x1c
pop esi
lea eax, [edi + 0x2bc]
push eax
call fcn.004327b9
cmp dword [edi + 0x2c4], 0
pop ecx
pop ebx
jne 0x432b6d
mov byte [edi + 0x128], 1
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x432c01
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
and dword [eax], 0
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
push edi
push 2
call fcn.00440c8b
add esp, 0xc
push dword [ebp + 0x10]
push edi
test eax, eax
jle 0x432c3c
lea eax, [ebp + 8]
push eax
push 2
call fcn.00432568
add esp, 0x10
jmp 0x432cab
push esi
call fcn.00432877
add esp, 0xc
test al, al
je 0x432c56
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
xor eax, eax
jmp 0x432cab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.00440a93
push eax
push edi
push str.init_resolve_thread___failed_for__s___s_n
push ebx
call fcn.0043052e
add esp, 0x18
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x432ca0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.00440a93
push eax
push dword [ebp + 0x10]
push edi
push str.gethostbyname_2__failed_for__s:_d___s_n
push ebx
call fcn.0043052e
add esp, 0x1c
jmp 0x432c52
push dword [ebp + 0x10]
push eax
call fcn.0043245a
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4330f2
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0xc]
push ebx
mov ebx, dword [eax]
mov eax, dword [ebp + 8]
push edi
push 3
pop edi
sub eax, edi
je 0x4331db
dec eax
dec eax
je 0x43314e
dec eax
je 0x433182
dec eax
je 0x433123
push str.tftp_rx:_internal_error
push 0x47eb8c
jmp 0x43321f
inc dword [esi + 0x14]
push dword [esi + 0x14]
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.0043052e
mov eax, dword [esi + 0x14]
cdq
add esp, 0xc
cmp edx, dword [esi + 0x24]
jl 0x433155
jg 0x433147
cmp eax, dword [esi + 0x20]
jbe 0x433155
mov dword [esi + 8], 0xffffff9d
mov dword [esi], edi
jmp 0x4332b5
push dword [esi + 0x140]
lea eax, [esi + 0xc0]
push eax
push 0
push 4
push dword [esi + 0x158]
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4332b5
jmp 0x433279
xor eax, eax
and dword [esi + 0x14], eax
mov word [esi + 0x38], ax
push 4
pop ecx
lea eax, [esi + 0x158]
call fcn.00432e7f
mov cx, word [esi + 0x38]
lea eax, [esi + 0x158]
call fcn.00432e90
push dword [esi + 0x140]
lea eax, [esi + 0xc0]
push eax
push 0
push 4
push dword [esi + 0x158]
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x433279
mov dword [esi], 1
jmp 0x4332b5
lea eax, [esi + 0x154]
call fcn.00432eb1
movzx edi, ax
movzx eax, word [esi + 0x38]
inc eax
cmp eax, edi
je 0x433230
push edi
push str.Received_unexpected_DATA_packet_block__d_n
push ebx
call fcn.0043052e
add esp, 0xc
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
cdq
cmp edx, dword [esi + 0x24]
jl 0x433230
jg 0x433214
cmp eax, dword [esi + 0x20]
jbe 0x433230
movzx eax, word [esi + 0x38]
inc eax
push eax
push str.tftp_rx:_giving_up_waiting_for_block__d
push ebx
call fcn.00430598
add esp, 0xc
push 0x47
pop eax
jmp 0x4332b7
and dword [esi + 0x14], 0
push 4
pop ecx
lea eax, [esi + 0x158]
mov word [esi + 0x38], di
call fcn.00432e7f
mov cx, word [esi + 0x38]
lea eax, [esi + 0x158]
call fcn.00432e90
push dword [esi + 0x140]
lea eax, [esi + 0xc0]
push eax
push 0
push 4
push dword [esi + 0x158]
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x43329b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0xc]
call fcn.00440a93
push eax
push 0x47eb8c
push ebx
call fcn.00430598
add esp, 0x14
push 0x37
jmp 0x43322a
mov eax, dword [esi + 0x14c]
xor ecx, ecx
add eax, 4
cmp dword [esi + 0x144], eax
setl cl
lea ecx, [ecx + ecx + 1]
mov dword [esi], ecx
xor eax, eax
pop edi
pop ebx
pop ebp
ret
Function at 0x4332bb
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0xc]
push ebx
push edi
mov edi, dword [eax]
mov eax, dword [ebp + 8]
xor ebx, ebx
sub eax, 4
je 0x43335f
dec eax
je 0x433320
dec eax
je 0x433406
dec eax
je 0x4332f5
push str.tftp_tx:_internal_error
push 0x47eb8c
push edi
call fcn.00430598
jmp 0x4334c6
inc dword [esi + 0x14]
push dword [esi + 0x14]
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push edi
call fcn.0043052e
mov eax, dword [esi + 0x14]
cdq
add esp, 0xc
cmp edx, dword [esi + 0x24]
jl 0x43332b
jg 0x433319
cmp eax, dword [esi + 0x20]
jbe 0x43332b
mov dword [esi + 8], 0xffffff9d
mov dword [esi], 3
jmp 0x4334c9
push dword [esi + 0x140]
lea eax, [esi + 0xc0]
push eax
mov eax, dword [esi + 0x148]
push ebx
add eax, 4
push eax
push dword [esi + 0x158]
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4334ba
jmp 0x43348b
lea eax, [esi + 0x154]
call fcn.00432eb1
movzx ecx, word [esi + 0x38]
movzx eax, ax
cmp eax, ecx
je 0x433406
push ecx
push eax
push str.Received_ACK_for_block__d__expecting__d_n
push edi
call fcn.0043052e
add esp, 0x10
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
cdq
cmp edx, dword [esi + 0x24]
jl 0x4333b1
jg 0x43339c
cmp eax, dword [esi + 0x20]
jbe 0x4333b1
movzx eax, word [esi + 0x38]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
push edi
call fcn.00430598
add esp, 0xc
jmp 0x4333fc
push dword [esi + 0x140]
lea eax, [esi + 0xc0]
push eax
mov eax, dword [esi + 0x148]
push 0
add eax, 4
push eax
lea eax, [esi + 0x158]
push eax
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4333ff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0xc]
call fcn.00440a93
push eax
push 0x47eb8c
push edi
call fcn.00430598
add esp, 0x14
push 0x37
pop ebx
mov eax, ebx
jmp 0x4334cb
inc word [esi + 0x38]
push 3
pop ecx
lea eax, [esi + 0x158]
mov dword [esi + 0x14], ebx
call fcn.00432e7f
mov cx, word [esi + 0x38]
lea eax, [esi + 0x158]
call fcn.00432e90
cmp word [esi + 0x38], 1
jbe 0x433443
mov eax, dword [esi + 0x148]
cmp eax, dword [esi + 0x14c]
jb 0x433320
lea eax, [ebp + 8]
push eax
push dword [esi + 0x14c]
push dword [esi + 0xc]
call fcn.0042cdc3
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0x148], ecx
test eax, eax
jne 0x4334cb
push dword [esi + 0x140]
lea eax, [esi + 0xc0]
push eax
push 0
add ecx, 4
push ecx
push dword [esi + 0x158]
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4334ae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0xc]
call fcn.00440a93
push eax
push 0x47eb8c
push edi
call fcn.00430598
add esp, 0x14
push 0x37
pop eax
jmp 0x4334cb
mov eax, dword [esi + 0x148]
add dword [edi + 0x40], eax
adc dword [edi + 0x44], ebx
push dword [edi + 0x44]
push dword [edi + 0x40]
push edi
call fcn.0043e5bb
add esp, 0xc
xor eax, eax
pop edi
pop ebx
pop ebp
ret
Function at 0x43507d
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x498d74]
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 0x4350b4
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.00430598
add esp, 0xc
jmp 0x4350e1
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp byte [ebp - 0x194], 2
jne 0x4350d4
mov eax, dword [ebp - 0x194]
shr eax, 8
test al, al
jne 0x4350d4
xor eax, eax
jmp 0x4350e4
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.00430598
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044249e
leave
ret

Function at 0x435212
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 + 0xd4]
mov byte [ebp - 4], 0xff
mov byte [ebp - 2], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x435259
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00430598
add esp, 0xc
mov edx, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, ebx
mov ebx, str.SENT
call fcn.00435149
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43597f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x910
mov eax, dword [0x498d74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov ecx, dword [ebx]
push esi
mov esi, dword [ecx + 0x8558]
mov eax, dword [esi + 0x1ab0]
sub eax, dword [esi + 0x1aac]
push edi
add eax, 2
push eax
push 0x3c
lea eax, [esi + 0x18ac]
push ecx
mov dword [ebp - 0x90c], ebx
mov dword [ebp - 0x908], ecx
call fcn.00435555
mov eax, dword [esi + 0x1aac]
movzx ecx, byte [eax]
add esp, 0xc
inc eax
mov dword [esi + 0x1aac], eax
cmp ecx, 0x18
je 0x435b23
cmp ecx, 0x23
je 0x435aff
cmp ecx, 0x27
jne 0x435bb5
push 0
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.004317b4
mov esi, dword [esi + 0x18a8]
add esp, 0x1c
push 4
pop ebx
jmp 0x435a93
push dword [esi]
call fcn.00444890
inc eax
add eax, ebx
pop ecx
mov dword [ebp - 0x910], eax
cmp eax, 0x7fa
jae 0x435a90
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127_____127s
push dword [esi]
call fcn.004492f6
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, 0x800
sub eax, ebx
push str._c_s_c_s
push eax
lea eax, [ebp + ebx - 0x904]
push eax
call fcn.004317b4
mov ebx, dword [ebp - 0x910]
add esp, 0x2c
mov esi, dword [esi + 4]
test esi, esi
jne 0x435a29
push 0xf0
push edi
mov eax, 0x800
sub eax, ebx
push 0x483944
push eax
lea eax, [ebp + ebx - 0x904]
push eax
call fcn.004317b4
add esp, 0x14
push esi
add ebx, 2
push ebx
lea eax, [ebp - 0x904]
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0xd4]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x435af6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 0x908]
call fcn.00430598
add esp, 0xc
add ebx, 0xfffffffe
push ebx
jmp 0x435b9f
add esi, 0x1828
push esi
mov dword [ebp - 0x90c], esi
call fcn.00444890
push 0xf0
mov edi, 0xff
push edi
push esi
push 0
push 0x23
jmp 0x435b45
add esi, 0x1808
push esi
mov dword [ebp - 0x90c], esi
call fcn.00444890
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.004317b4
add esp, 0x2c
push 0
push esi
lea eax, [ebp - 0x904]
push eax
push dword [ebx + 0xd4]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x435b9b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 0x908]
call fcn.00430598
add esp, 0xc
add esi, 0xfffffffe
push esi
push 0x3e
push dword [ebp - 0x908]
lea eax, [ebp - 0x902]
call fcn.00435555
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044249e
leave
ret
Function at 0x43649f
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x498d74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [esi]
push edi
mov edi, dword [esi + 0xd8]
push 1
push 0
push esi
mov dword [ebp - 0x1c], ebx
call fcn.004308cc
add esp, 0xc
test eax, eax
jns 0x4364e1
push str.Timed_out_before_server_could_connect_to_us
push ebx
call fcn.00430598
pop ecx
pop ecx
push 0x1c
jmp 0x436579
push eax
push 0xffffffffffffffff
push edi
call fcn.0043c8c6
add esp, 0xc
cmp eax, 0xffffffff
je 0x43656a
test eax, eax
je 0x436563
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
or ebx, 0xffffffff
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x43652b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
jne 0x436541
push str.Error_accept__ing_server_connect
push dword [ebp - 0x1c]
jmp 0x436570
push str.Connection_accepted_from_server_n
push dword [ebp - 0x1c]
call fcn.0043052e
push 1
push ebx
mov dword [esi + 0xd8], ebx
call fcn.00440cb7
add esp, 0x10
xor eax, eax
jmp 0x43657a
push str.Timeout_while_waiting_for_server_connect
jmp 0x43656f
push str.Error_while_waiting_for_server_connect
push ebx
call fcn.00430598
pop ecx
pop ecx
push 0x1e
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0044249e
leave
ret