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

Disassembly:
push esi
xor eax, eax
push 0x40
lea esi, [ecx + 0x5c]
push eax
push esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.00419137
mov byte [esi], 0x80
pop esi
ret

Function at 0x41c699
Capabilities:
Terminate thread

Disassembly:
push 0x34
mov eax, 0x46d3ed
call fcn.004489fc
mov esi, ecx
lea ecx, [ebp - 0x40]
call fcn.0041c2d9
and dword [ebp - 4], 0
lea edi, [esi + 0x20]
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add esi, 4
push esi
push dword [esi + 0x14]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0041c1b7
mov eax, dword [esi + 0x14]
push esi
push dword [eax]
lea ecx, [ebp - 0x24]
call fcn.0041c1b7
push dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.0041c67e
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x2c]
push dword [eax]
lea ecx, [ebp - 0x14]
call fcn.0041c1b7
jmp 0x41c749
lea ecx, [ebp - 0x14]
call fcn.0041c0f5
push 0x1388
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41c741
cmp eax, 0x102
jne 0x41c741
lea ecx, [ebp - 0x14]
call fcn.0041c0f5
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ecx, [ebp - 0x14]
call fcn.0041c02a
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
call fcn.0041c1b7
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407d66
test al, al
je 0x41c70f
lea ecx, [ebp - 0x40]
call fcn.0041c16c
push dword [ebp - 0x40]
call fcn.0044674d
pop ecx
call fcn.00448ad4
ret

Function at 0x41c7c7
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x48a9f8]
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 0x41c80b
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x41c805
shr eax, 8
cmp al, 2
jne 0x41c805
xor eax, eax
jmp 0x41c80e
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004463b6
leave
ret
Function at 0x424f9e
Capabilities:
Receive data
Receive data on socket

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

Function at 0x4250dd
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x4250fd
push dword [esi + 0x134]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x425136
cmp eax, 2
jg 0x425136
push dword [esi + 0x130]
imul eax, eax, 3
push 1
add eax, 0x471b80
push 2
push eax
call fcn.0044962b
push dword [esi + 0x130]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0044962b
add esp, 0x20
xor eax, eax
ret

Function at 0x42538a
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 0x4253fc
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4253d6
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x4253fb
push ebx
push esi
call fcn.004297f1
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.00425257
mov eax, dword [esi]
mov dword [eax + 0x85fc], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret

Function at 0x426d00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
xor eax, eax
xor edi, edi
cmp dword [esi + 0x464], edi
push 4
setne al
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 8
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x426d40
push ebx
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004251ed
add esp, 0xc
jmp 0x426dab
push dword [esi + 0x468]
mov dword [ebp - 0x14], 1
call fcn.0043c07d
imul eax, eax, 0x3e8
push dword [esi + 0x46c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
call fcn.0043c07d
imul eax, eax, 0x3e8
pop ecx
pop ecx
push edi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x98000004
push ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x426dab
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.004251ed
add esp, 0x10
pop edi
leave
ret
Function at 0x427291
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x48a9f8]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x8c], 2
mov ebx, dword [esi]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
je 0x4273de
cmp dword [esi + 0x1d0], 0
push edi
jne 0x4273d6
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x42730f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004297f1
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
jmp 0x42734f
push edi
lea eax, [ebp + 0xc]
push 0
push eax
mov dword [ebp - 0x7c], edi
call fcn.004463d0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x427352
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004297f1
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
jmp 0x4273c9
lea ebx, [esi + 0xb8]
lea edi, [esi + 0xe8]
lea esi, [ebp - 0x74]
call fcn.00427258
test eax, eax
jne 0x427384
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004297f1
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x4273c6
mov esi, dword [ebp - 0x78]
push 0x2e
lea eax, [esi + 0x58]
push ebx
push eax
call fcn.0044b130
lea edi, [esi + 0x11c]
lea ebx, [esi + 0xec]
add esp, 0xc
lea esi, [ebp + 0xc]
call fcn.00427258
test eax, eax
jne 0x4273d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004297f1
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
call fcn.00425257
add esp, 0x18
jmp 0x4273dd
mov esi, dword [ebp - 0x78]
push esi
call fcn.00427206
pop ecx
pop edi
mov ecx, dword [ebp + 0x8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004463b6
add ebp, 0x90
leave
ret

Function at 0x4273f5
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
jge 0x42743a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004297f1
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004251ed
add esp, 0x14
jmp 0x427447
push str.TCP_NODELAY_set_n
push esi
call fcn.004251ed
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x42744a
Capabilities:
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xac
mov eax, dword [0x48a9f8]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
xor edi, edi
push 2
mov dword [ebp - 0x30], 0x4020
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 4
pop ebx
cmp dword [0x48c6c0], edi
jne 0x4274cb
mov esi, 0x9c
push esi
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.004463d0
add esp, 0xc
push 3
push ebx
push edi
push edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 6
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x4274c1
mov dword [0x48c6c0], ebx
jmp 0x42750d
mov dword [0x48c6c0], 1
cmp dword [0x48c6c0], ebx
je 0x42750d
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
mov edi, 0x1001
push edi
mov esi, 0xffff
push esi
push dword [ebp + 0x7c]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4274fc
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x30]
jg 0x42750d
push 4
lea eax, [ebp - 0x30]
push eax
push edi
push esi
push dword [ebp + 0x7c]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004463b6
add ebp, 0x74
leave
ret

Function at 0x427535
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 + 0x5c0]
test esi, esi
je 0x427578
mov eax, dword [edi + 0x44]
test eax, eax
je 0x427578
and dword [ebp - 4], 0
push 0x42751f
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], esi
push dword [eax + 0x34]
call fcn.0043c69d
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x42757f
and dword [edi + 0x5c0], 0
or eax, 0xffffffff
pop edi
pop esi
leave
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x427588
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
jne 0x427578
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x427578
mov eax, edi
jmp 0x42757b
Function at 0x427d73
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 0x427ed2
push edi
mov edi, dword [ebp - 0xc]
cmp edi, ebx
je 0x427eb7
push esi
cmp dword [edi + 4], 2
jne 0x427e51
cmp dword [edi + 0x18], ebx
je 0x427e51
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x427e51
cmp eax, 0x10
jb 0x427e51
push 0x20
call dword [0x48a9dc]
mov esi, eax
pop ecx
cmp esi, ebx
je 0x427e5e
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 [0x48a9dc]
pop ecx
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x427e67
push 0x10
push dword [edi + 0x18]
push eax
call fcn.0044b130
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp eax, ebx
je 0x427e3c
push eax
call dword [0x48a9e8]
pop ecx
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x427e77
cmp dword [ebp - 4], ebx
jne 0x427e44
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x427e4e
mov dword [eax + 0x1c], esi
mov dword [ebp - 0x10], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x427db2
jmp 0x427e90
mov dword [ebp - 8], 8
jmp 0x427e90
push esi
mov dword [ebp - 8], 8
call dword [0x48a9e0]
jmp 0x427e8f
push dword [esi + 0x18]
mov dword [ebp - 8], 8
call dword [0x48a9e0]
push esi
call dword [0x48a9e0]
pop ecx
pop ecx
pop esi
cmp dword [ebp - 0xc], ebx
je 0x427e9f
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x427eb2
push dword [ebp - 4]
call fcn.00427d37
pop ecx
mov dword [ebp - 4], ebx
jmp 0x427ec6
cmp dword [ebp - 4], ebx
jne 0x427ec6
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 0x4312ad
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 0x4313e5
dec eax
dec eax
je 0x4313a7
dec eax
je 0x431354
dec eax
je 0x4312f4
push str.tftp_rx:_internal_error
push 0x46e6b8
push edx
call fcn.00425257
add esp, 0xc
push 0x47
jmp 0x431482
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.004251ed
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x431327
mov dword [esi + 8], 0xffffff9d
jmp 0x4313de
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
jge 0x4314bb
jmp 0x431460
xor eax, eax
and dword [esi + 0x18], eax
mov word [esi + 0x40], ax
lea edi, [esi + 0x160]
push 4
pop ecx
mov eax, edi
call fcn.00431025
mov cx, word [esi + 0x40]
mov eax, edi
call fcn.00431036
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [edi]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jl 0x431460
mov dword [esi], 1
jmp 0x43149f
lea edi, [esi + 0x160]
push 5
pop ecx
mov eax, edi
call fcn.00431025
mov cx, word [esi + 0x40]
mov eax, edi
call fcn.00431036
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [edi]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], ebx
jmp 0x4314bb
lea eax, [esi + 0x15c]
call fcn.00431057
movzx edi, ax
movzx eax, word [esi + 0x40]
lea ecx, [eax + 1]
and ecx, 0xffff
cmp ecx, edi
jne 0x43140a
and dword [esi + 0x18], 0
jmp 0x431421
cmp eax, edi
jne 0x4314ab
push edi
push str.Received_last_DATA_packet_block__d_again._n
push edx
call fcn.004251ed
add esp, 0xc
mov word [esi + 0x40], di
lea edi, [esi + 0x160]
push 4
pop ecx
mov eax, edi
call fcn.00431025
mov cx, word [esi + 0x40]
mov eax, edi
call fcn.00431036
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [edi]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x431485
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.004297f1
push eax
push 0x46e6b8
push dword [ebp - 4]
call fcn.00425257
add esp, 0x14
push 0x37
pop eax
jmp 0x4314bd
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.0044ab99
pop ecx
jmp 0x4314bb
push ecx
push edi
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push edx
call fcn.004251ed
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431a8c
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
push str.Connected_for_receive
push 0x471d94
push dword [eax]
call fcn.004251ed
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00430ee2
test eax, eax
jne 0x431abb
mov eax, esi
jmp fcn.004312ad
ret
Function at 0x431dc5
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x8c
mov eax, dword [0x48a9f8]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [eax + 0x400]
push edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0x80
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
lea edi, [esi + 0x15c]
push dword [edi]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x431e45
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.0044b130
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x431e78
push str.Received_too_short_packet
push ebx
call fcn.00425257
pop ecx
pop ecx
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004463b6
add ebp, 0x74
leave
ret
mov eax, edi
call fcn.00431048
movzx eax, ax
mov dword [esi + 0xc], eax
sub eax, 3
je 0x431ee8
dec eax
je 0x431f4b
dec eax
je 0x431ec8
dec eax
je 0x431eac
push str.Internal_error:_Unexpected_packet
push 0x46e6b8
push ebx
call fcn.00425257
jmp 0x431f48
mov eax, dword [edi]
add edx, 0xfffffffe
inc eax
push edx
inc eax
push eax
push esi
call fcn.004310d5
add esp, 0xc
test eax, eax
je 0x431f4b
jmp 0x431e66
mov eax, edi
call fcn.00431057
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [edi]
add eax, 4
push eax
push 0x471d94
push ebx
call fcn.004251ed
jmp 0x431f48
cmp edx, 4
jle 0x431f4b
mov eax, edi
call fcn.00431057
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne 0x431f4b
mov eax, dword [edi]
add edx, 0xfffffffc
push edx
add eax, 4
push eax
push 1
push dword [ebp - 0x18]
call fcn.0042561e
mov edi, eax
add esp, 0x10
test edi, edi
je 0x431f2c
push 5
mov eax, esi
call fcn.00431d57
pop ecx
mov eax, edi
jmp 0x431e66
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.0043e512
add esp, 0xc
push dword [ebp - 0x18]
call fcn.0043e5cc
pop ecx
test eax, eax
je 0x431e64
push 5
mov eax, esi
call fcn.00431d57
pop ecx
push 0x2a
pop eax
jmp 0x431e66

Function at 0x4334f7
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x48a9f8]
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 0x43352e
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.00425257
add esp, 0xc
jmp 0x433556
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x433549
shr eax, 8
test al, al
jne 0x433549
xor eax, eax
jmp 0x433559
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.00425257
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004463b6
leave
ret
Function at 0x433691
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
jge 0x4336d8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00425257
add esp, 0xc
mov edx, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, ebx
mov ebx, str.SENT
call fcn.004335c7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433e83
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x890]
sub esp, 0x910
mov eax, dword [0x48a9f8]
xor eax, ebp
mov dword [ebp + 0x88c], eax
push esi
push edi
push 0x7f
xor edi, edi
lea eax, [ebp + 0x78d]
push edi
push eax
mov byte [ebp + 0x78c], 0
call fcn.004463d0
push 0x7f
lea eax, [ebp + 0x80d]
push edi
push eax
mov byte [ebp + 0x80c], 0
call fcn.004463d0
mov ecx, dword [ebx]
mov esi, dword [ecx + 0x128]
mov eax, dword [esi + 0x1eb4]
sub eax, dword [esi + 0x1eb0]
mov dword [ebp - 0x78], ecx
inc eax
inc eax
push eax
push 0x3c
lea eax, [esi + 0x1cb0]
push ecx
call fcn.0043394b
mov eax, dword [esi + 0x1eb0]
movzx ecx, byte [eax]
add esp, 0x24
inc eax
mov dword [esi + 0x1eb0], eax
cmp ecx, 0x18
je 0x434016
cmp ecx, 0x23
je 0x433ff5
cmp ecx, 0x27
jne 0x434098
push edi
push ecx
push 0xfa
mov edi, 0xff
push edi
push 0x474eb0
lea eax, [ebp - 0x74]
push 0x800
push eax
call fcn.00428762
mov esi, dword [esi + 0x1cac]
add esp, 0x1c
mov dword [ebp - 0x80], 4
jmp 0x433fc7
push dword [esi]
call fcn.004480c0
pop ecx
mov ecx, dword [ebp - 0x80]
inc eax
add eax, ecx
mov dword [ebp - 0x7c], eax
cmp eax, 0x7fa
jae 0x433fc4
lea eax, [ebp + 0x80c]
push eax
lea eax, [ebp + 0x78c]
push eax
push str._127_____127s
push dword [esi]
call fcn.0044ac54
add esp, 0x10
test eax, eax
je 0x433fc4
lea eax, [ebp + 0x80c]
push eax
push 1
lea eax, [ebp + 0x78c]
push eax
mov eax, dword [ebp - 0x80]
push 0
mov ecx, 0x800
sub ecx, eax
push str._c_s_c_s
push ecx
lea eax, [ebp + eax - 0x74]
push eax
call fcn.00428762
mov eax, dword [ebp - 0x7c]
add esp, 0x1c
mov dword [ebp - 0x80], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x433f56
mov eax, dword [ebp - 0x80]
push pe_nt_image_headers32
push edi
mov ecx, 0x800
sub ecx, eax
push 0x474e8c
push ecx
lea eax, [ebp + eax - 0x74]
push eax
call fcn.00428762
mov esi, dword [ebp - 0x80]
add esp, 0x14
inc esi
inc esi
jmp 0x434056
add esi, 0x1c28
push esi
mov dword [ebp - 0x7c], esi
call fcn.004480c0
push pe_nt_image_headers32
mov edi, 0xff
push edi
push esi
push 0
push 0x23
jmp 0x434035
add esi, 0x1c08
push esi
mov dword [ebp - 0x7c], esi
call fcn.004480c0
push pe_nt_image_headers32
mov edi, 0xff
push edi
push esi
push 0
push 0x18
push 0xfa
push edi
push str._c_c_c_c_s_c_c
mov esi, eax
lea eax, [ebp - 0x74]
push 0x800
push eax
add esi, 6
call fcn.00428762
add esp, 0x2c
push 0
push esi
lea eax, [ebp - 0x74]
push eax
push dword [ebx + 0x154]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x434084
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 0x78]
call fcn.00425257
add esp, 0xc
add esi, 0xfffffffe
push esi
push 0x3e
push dword [ebp - 0x78]
lea eax, [ebp - 0x72]
call fcn.0043394b
add esp, 0xc
mov ecx, dword [ebp + 0x88c]
pop edi
xor ecx, ebp
pop esi
call fcn.004463b6
add ebp, 0x890
leave
ret