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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x5df7e4]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [0x5e8220]
mov ecx, eax
inc eax
mov dword [0x5e8220], eax
push ebx
test ecx, ecx
jne 0x49c308
mov ebx, dword [ebp + 8]
mov dword [fcn.0052dbc5], 0x52dbc5
mov dword [fcn.0052dbc0], 0x52dbc0
mov dword [fcn.0052dbd0], 0x52dbd0
mov dword [0x5e025c], 0x5427ff
mov dword [fcn.0052dbb5], 0x52dbb5
test bl, 2
je 0x49c302
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x49c32a
mov eax, dword [esp + 8]
cmp al, 2
jne 0x49c31d
shr eax, 8
cmp al, 2
jne 0x49c31d
call fcn.0049db22
test eax, eax
jne 0x49c326
mov dword [0x5e8224], ebx
xor eax, eax
mov ecx, dword [esp + 0x19c]
pop ebx
xor ecx, esp
call fcn.005121be
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
test eax, eax
je 0x49c302
push 2
pop eax
jmp 0x49c30a

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
push dword [ebp + 0xc]
mov edi, ecx
push dword [ebp + 8]
push dword [edi + edx*4 + 0xd4]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49ddcc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x49ddb3
xor esi, esi
jmp 0x49ddcc
mov edx, eax
mov ecx, edi
call fcn.004a6e35
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0049dc37
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x49dfcc
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov eax, dword [esi]
mov eax, dword [eax + 8]
test eax, eax
je 0x49dfef
cmp byte [eax + 0x5c], 0
je 0x49dfef
mov al, 1
jmp 0x49dff1
xor al, al
mov ebx, dword [ebp + 0x10]
mov ecx, dword [esi + 0xd8]
mov byte [ebp - 1], al
mov dword [ebp - 0xc], ecx
and dword [ebx], 0
test al, al
je 0x49e05c
mov eax, dword [esi + 0x188]
mov ecx, dword [esi + 0x184]
sub eax, ecx
mov edi, dword [ebp + 0xc]
cmp eax, edi
mov edx, dword [esi + 0x180]
cmovb edi, eax
test edi, edi
je 0x49e04b
push edi
lea eax, [ecx + edx]
push eax
push dword [ebp + 8]
call fcn.00529780
add esp, 0xc
mov byte [esi + 0x13c], 0
add dword [esi + 0x184], edi
mov dword [ebx], edi
jmp 0x49e0ff
mov edi, dword [ebp - 8]
mov ecx, 0x4000
cmp dword [ebp + 0xc], ecx
cmovb ecx, dword [ebp + 0xc]
jmp 0x49e082
mov eax, dword [esi]
mov ecx, 0x4000
mov edx, dword [eax + 0x22c]
test edx, edx
mov eax, ecx
cmovne eax, edx
cmp dword [ebp + 0xc], eax
jge 0x49e07a
mov ecx, dword [ebp + 0xc]
jmp 0x49e07f
test edx, edx
cmovne ecx, edx
mov edx, dword [ebp + 8]
cmp edi, dword [ebp - 0xc]
mov eax, 0xe0
mov dword [ebp + 0x10], 0xe8
cmove eax, dword [ebp + 0x10]
cmp dword [eax + esi], 2
jne 0x49e0a0
or eax, 0xffffffff
jmp 0x49e101
cmp dword [esi + 0x16c], 0
jne 0x49e0ff
push 0
push ecx
push edx
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
jne 0x49e0d5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x38
pop ecx
cmp eax, 0x2733
push 0xffffffffffffffff
pop eax
cmove ecx, eax
mov eax, ecx
jmp 0x49e101
test edi, edi
js 0x49e0ff
cmp byte [ebp - 1], 0
je 0x49e0fd
push edi
push dword [esi + 0x180]
push dword [ebp + 8]
call fcn.00529780
add esp, 0xc
mov dword [esi + 0x188], edi
mov dword [esi + 0x184], edi
add dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x49e106
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x140]
test eax, eax
je 0x49e12b
push dword [esi + 0xe4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push esi
call eax
add esp, 0x14
jmp 0x49e160
cmp edx, 2
ja 0x49e15e
push dword [esi + 0xe0]
imul eax, edx, 3
push 1
push 2
add eax, 0x5b73f0
push eax
call fcn.00535c15
push dword [esi + 0xe0]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00535c15
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4a0a08
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a0
mov eax, dword [0x5df7e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.no_proxy
mov dword [ebp - 0x6a0], ecx
xor esi, esi
call fcn.0053c6a7
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov byte [ebp - 0x188], 0
pop ecx
test eax, eax
je 0x4a0a6c
push 0x104
lea ecx, [ebp - 0x188]
push ecx
push eax
call ebx
cmp byte [ebp - 0x188], 0
je 0x4a0a6c
lea eax, [ebp - 0x188]
push eax
call dword [0x5e025c]
pop ecx
mov edi, eax
jmp 0x4a0a6e
xor edi, edi
test edi, edi
jne 0x4a0ab4
push str.NO_PROXY
call fcn.0053c6a7
mov byte [ebp - 0x28c], 0
pop ecx
test eax, eax
je 0x4a0ab2
push 0x104
lea ecx, [ebp - 0x28c]
push ecx
push eax
call ebx
cmp byte [ebp - 0x28c], 0
je 0x4a0ab2
lea eax, [ebp - 0x28c]
push eax
call dword [0x5e025c]
pop ecx
mov edi, eax
jmp 0x4a0ab4
xor edi, edi
mov ecx, dword [ebp - 0x6a0]
mov edx, edi
mov ecx, dword [ecx + 0x8c]
call fcn.004a08f8
test al, al
jne 0x4a0c64
mov eax, dword [ebp - 0x6a0]
lea esi, [ebp - 0x84]
add eax, 0x70
mov cl, byte [eax]
test cl, cl
je 0x4a0b04
mov edx, esi
sub eax, edx
mov ebx, eax
movsx eax, cl
push eax
call fcn.005398a0
mov byte [esi], al
inc esi
pop ecx
mov cl, byte [ebx + esi]
test cl, cl
jne 0x4a0aea
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push str._proxy
push esi
call fcn.0053f1b0
lea eax, [ebp - 0x84]
push eax
call fcn.0053c6a7
add esp, 0xc
mov byte [ebp - 0x390], 0
test eax, eax
je 0x4a0b53
push 0x104
lea ecx, [ebp - 0x390]
push ecx
push eax
call ebx
cmp byte [ebp - 0x390], 0
je 0x4a0b53
lea eax, [ebp - 0x390]
push eax
call dword [0x5e025c]
pop ecx
mov esi, eax
jmp 0x4a0b55
xor esi, esi
test esi, esi
jne 0x4a0bd3
lea edx, [ebp - 0x84]
mov ecx, str.http_proxy
call fcn.004aec70
test eax, eax
jne 0x4a0bdc
mov esi, 0x80
lea edx, [ebp - 0x84]
mov cl, byte [edx]
call fcn.004aeba4
mov byte [edx], al
inc edx
test al, al
je 0x4a0b8b
sub esi, 1
jne 0x4a0b78
lea eax, [ebp - 0x84]
push eax
call fcn.0053c6a7
mov byte [ebp - 0x494], 0
pop ecx
test eax, eax
je 0x4a0bcd
push 0x104
lea ecx, [ebp - 0x494]
push ecx
push eax
call ebx
cmp byte [ebp - 0x494], 0
je 0x4a0bcd
lea eax, [ebp - 0x494]
push eax
call dword [0x5e025c]
pop ecx
mov esi, eax
jmp 0x4a0bcf
xor esi, esi
test esi, esi
je 0x4a0bdc
cmp byte [esi], 0
jne 0x4a0c64
push str.all_proxy
call fcn.0053c6a7
mov byte [ebp - 0x598], 0
pop ecx
test eax, eax
je 0x4a0c1c
push 0x104
lea ecx, [ebp - 0x598]
push ecx
push eax
call ebx
cmp byte [ebp - 0x598], 0
je 0x4a0c1c
lea eax, [ebp - 0x598]
push eax
call dword [0x5e025c]
pop ecx
mov esi, eax
jmp 0x4a0c1e
xor esi, esi
test esi, esi
jne 0x4a0c64
push str.ALL_PROXY
call fcn.0053c6a7
mov byte [ebp - 0x69c], 0
pop ecx
test eax, eax
je 0x4a0c62
push 0x104
lea ecx, [ebp - 0x69c]
push ecx
push eax
call ebx
cmp byte [ebp - 0x69c], 0
je 0x4a0c62
lea eax, [ebp - 0x69c]
push eax
call dword [0x5e025c]
pop ecx
mov esi, eax
jmp 0x4a0c64
xor esi, esi
test edi, edi
je 0x4a0c70
push edi
call dword [0x5e0258]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005121be
leave
ret
Function at 0x4a26c5
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
push 4
mov esi, dword [edi]
movzx eax, byte [esi + 0x27e]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4a270f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.004a6e35
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0049dbc9
add esp, 0xc
jmp 0x4a271c
push str.TCP_NODELAY_set_n
push esi
call fcn.0049dbc9
pop ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x4a2b03
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edx
mov edx, dword [ecx + 0x468]
cmp edx, 0xffffffff
je 0x4a2b56
mov eax, dword [ecx + 0x45c]
mov eax, dword [eax]
mov ecx, dword [eax + edx*4]
test ecx, ecx
je 0x4a2b56
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a2b2d
mov dword [eax], ecx
mov eax, dword [ecx + 0xd4]
mov dword [esi], eax
cmp byte [ecx + 0xdc], 0
jne 0x4a2b56
push 2
push 1
lea eax, [ebp - 1]
push eax
push dword [ecx + 0xd4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x4a2b59
or dword [esi], 0xffffffff
xor eax, eax
pop esi
leave
ret

Function at 0x4a946f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 1
push 0x24
mov dword [ebp - 4], edx
mov ebx, ecx
call dword [0x5e0260]
mov esi, eax
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
pop ecx
pop ecx
test esi, esi
jne 0x4a94a5
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x4a95d5
push edi
lea edi, [ebx + 0x31c]
mov ecx, dword [edi]
call fcn.0049e26c
push dword [ebp - 4]
call dword [0x5e025c]
mov dword [edi], eax
pop ecx
test eax, eax
jne 0x4a94d2
push esi
call dword [0x5e0258]
pop ecx
push 0xc
jmp 0x4a95cc
mov eax, dword [ebp + 8]
mov dword [ebx + 0x320], eax
xor eax, eax
push eax
push 1
mov byte [ebx + 0x328], al
mov dword [ebx + 0x32c], eax
mov dword [ebx + 0x324], eax
mov dword [ebx + 0x330], esi
or dword [esi + 0xc], 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x10], eax
test eax, eax
je 0x4a95c3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x14], eax
test eax, eax
je 0x4a95c3
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x4a95c3
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x20], eax
test eax, eax
je 0x4a95c3
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x18], eax
test eax, eax
je 0x4a95c3
lea eax, [esi + 4]
push eax
push 0
push ebx
push 0x4a922b
xor ebx, ebx
push ebx
push ebx
call fcn.00531215
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4a9599
call fcn.0052dba2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, edi
call fcn.004a93ab
jmp 0x4a95d2
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x18]
push ecx
push 2
mov dword [ebp - 8], eax
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
jmp 0x4a95d4
mov ecx, edi
call fcn.004a93ab
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a95d9
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
push esi
push edi
mov eax, dword [ebx]
mov esi, dword [ebx + 0x330]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
mov ecx, dword [eax + 0x174]
test ecx, ecx
jne 0x4a960f
mov eax, dword [eax + 0x170]
mov ecx, 0x493e0
test eax, eax
cmovne ecx, eax
push ecx
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x10]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
and dword [eax + 0x10], 0
call esi
mov esi, dword [ebp - 0xc]
and dword [esi + 0x14], 0
lea ecx, [esi + 8]
mov dword [ebp - 0xc], ecx
test edi, edi
jne 0x4a966c
push 0x1388
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4a96b9
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ecx, [esi + 8]
mov byte [ebx + 0x328], 1
or dword [ecx], 0xffffffff
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x4a9685
mov eax, dword [ebx + 0x324]
mov dword [edx], eax
xor esi, esi
cmp dword [ebx + 0x324], esi
jne 0x4a9763
mov eax, dword [ecx]
push 0x1b
pop esi
cmp eax, esi
jne 0x4a96d6
push esi
call sym.wwbizsrv.exe_curl_easy_strerror
pop ecx
push eax
push str.Could_not_resolve_host:__s
push dword [ebp - 8]
call fcn.0049dc37
add esp, 0xc
jmp 0x4a9763
push dword [ebx + 0x32c]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esi + 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp - 0xc]
jmp 0x4a9676
cmp byte [ebx + 0x328], 0
je 0x4a9739
mov al, byte [ebx + 0x12b]
mov ecx, ebx
mov edx, dword [ebx + 0x32c]
mov byte [ebp - 1], al
call fcn.004a6e35
mov cl, byte [ebp - 1]
test cl, cl
je 0x4a9704
mov edx, dword [ebx + 0xa0]
jmp 0x4a970a
mov edx, dword [ebx + 0x8c]
push eax
push edx
test cl, cl
mov edx, str.Could_not_resolve_proxy:__s___s
mov eax, str.Could_not_resolve_host:__s___s
cmovne eax, edx
push eax
push dword [ebp - 8]
call fcn.0049dc37
xor eax, eax
add esp, 0x10
cmp byte [ebp - 1], al
sete al
add eax, 5
mov dword [ebp - 0x10], eax
mov esi, eax
jmp 0x4a9763
cmp eax, 0xffffffff
je 0x4a974a
cmp dword [ebx + 0x32c], 0x2afc
jne 0x4a9760
push dword [ebx + 0x8c]
push str.Resolving_host_timed_out:__s
push dword [ebp - 8]
call fcn.0049dc37
add esp, 0xc
push 0x1c
pop esi
lea ecx, [ebx + 0x31c]
call fcn.004a93ab
cmp dword [ebx + 0x324], 0
jne 0x4a977e
mov byte [ebx + 0x128], 1
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a97de
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, edx
and dword [ebx], 0
lea edx, [ebp + 0xc]
mov ecx, esi
mov eax, dword [edi]
mov dword [ebp - 4], eax
call fcn.004b5c14
test eax, eax
jle 0x4a9812
push dword [ebp + 8]
lea edx, [ebp + 0xc]
push esi
call fcn.004b5edf
pop ecx
pop ecx
jmp 0x4a988a
push ecx
push dword [ebp + 8]
mov edx, esi
mov ecx, edi
call fcn.004a946f
pop ecx
pop ecx
test al, al
je 0x4a982f
mov dword [ebx], 1
xor eax, eax
jmp 0x4a988a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, edi
call fcn.004a6e35
mov ebx, dword [ebp - 4]
push eax
push esi
push str.init_resolve_thread___failed_for__s___s_n
push ebx
call fcn.0049dbc9
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4a9880
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.004a6e35
push eax
push dword [ebp + 8]
push esi
push str.gethostbyname_2__failed_for__s:_d___s_n
push ebx
call fcn.0049dbc9
add esp, 0x14
jmp 0x4a982b
mov edx, dword [ebp + 8]
mov ecx, eax
call fcn.004b5da6
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a988f
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
and dword [ebp - 4], 0
push ebx
push esi
and dword [eax], 0
mov ebx, ecx
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ebx
call fcn.004af5eb
push dword [ebx + 0xd0]
push dword [ebx + 0xcc]
push edx
push eax
call fcn.004af601
mov ecx, eax
add esp, 0x10
or esi, 0xffffffff
cmp ecx, dword [ebp + 0x14]
jg 0x4a9954
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov edx, esi
sub eax, ecx
mov ecx, dword [ebp - 8]
push eax
call fcn.004ae808
pop ecx
test eax, eax
jle 0x4a9954
push 0
push edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
je 0x4a9941
cmp edi, eax
je 0x4a9935
test eax, eax
je 0x4a9954
add dword [ebp - 4], eax
sub edi, eax
add ebx, eax
call fcn.004af5eb
mov ecx, dword [ebp - 0xc]
push dword [ecx + 0xd0]
push dword [ecx + 0xcc]
push edx
push eax
call fcn.004af601
mov ecx, eax
add esp, 0x10
cmp ecx, dword [ebp + 0x14]
jle 0x4a98d9
jmp 0x4a9954
mov ecx, dword [ebp + 0x10]
add eax, dword [ebp - 4]
xor esi, esi
mov dword [ecx], eax
jmp 0x4a9954
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x38
cmp eax, 0x2733
pop ecx
cmove ecx, esi
mov esi, ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4aabe5
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
push 3
pop ebx
mov eax, dword [esi + 0xc]
mov edi, dword [eax]
sub edx, ebx
je 0x4aace1
dec edx
sub edx, 1
je 0x4aadcc
sub edx, 1
je 0x4aac76
sub edx, 1
je 0x4aac1d
push str.tftp_rx:_internal_error
push 0x5b7acc
jmp 0x4aad2a
inc dword [esi + 0x14]
push dword [esi + 0x14]
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push edi
call fcn.0049dbc9
mov eax, dword [esi + 0x14]
add esp, 0xc
cdq
cmp edx, dword [esi + 0x24]
jl 0x4aac4d
jg 0x4aac41
cmp eax, dword [esi + 0x20]
jbe 0x4aac4d
mov dword [esi + 8], 0xffffff9d
jmp 0x4aadcc
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 0x4aacdb
jmp 0x4aad91
xor eax, eax
xor ebx, ebx
mov word [esi + 0x38], ax
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x158]
mov byte [eax], bl
mov eax, dword [esi + 0x158]
mov byte [eax + 1], 4
movzx edx, word [esi + 0x38]
mov eax, dword [esi + 0x158]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x158]
mov byte [eax + 3], dl
lea eax, [esi + 0xc0]
push dword [esi + 0x140]
push eax
push ebx
push 4
push dword [esi + 0x158]
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x4aad91
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x154]
movzx ebx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ebx, 8
or ebx, eax
movzx eax, word [esi + 0x38]
inc eax
cmp eax, ebx
je 0x4aad38
push ebx
push str.Received_unexpected_DATA_packet_block__d_n
push edi
call fcn.0049dbc9
add esp, 0xc
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
cdq
cmp edx, dword [esi + 0x24]
jl 0x4aad38
jg 0x4aad1f
cmp eax, dword [esi + 0x20]
jbe 0x4aad38
movzx eax, word [esi + 0x38]
inc eax
push eax
push str.tftp_rx:_giving_up_waiting_for_block__d
push edi
call fcn.0049dc37
add esp, 0xc
push 0x47
pop eax
jmp 0x4aacdd
mov word [esi + 0x38], bx
xor ebx, ebx
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x158]
mov byte [eax], bl
mov eax, dword [esi + 0x158]
mov byte [eax + 1], 4
movzx edx, word [esi + 0x38]
mov eax, dword [esi + 0x158]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x158]
mov byte [eax + 3], dl
lea eax, [esi + 0xc0]
push dword [esi + 0x140]
push eax
push ebx
push 4
push dword [esi + 0x158]
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4aadb4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0xc]
mov edx, eax
call fcn.004a6e35
push eax
push 0x5b7acc
push edi
call fcn.0049dc37
add esp, 0xc
push 0x37
jmp 0x4aad35
mov eax, dword [esi + 0x14c]
add eax, 4
cmp dword [esi + 0x144], eax
jge 0x4aacd5
push 3
pop ebx
mov dword [esi], ebx
jmp 0x4aacdb
Function at 0x4ab8a7
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x5df7e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x198]
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4ab8e1
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0049dc37
add esp, 0xc
jmp 0x4ab909
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x4ab8fc
shr eax, 8
test al, al
jne 0x4ab8fc
xor eax, eax
jmp 0x4ab90c
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0049dc37
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005121be
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov esi, ecx
mov byte [ebp - 2], al
push 3
lea eax, [ebp - 4]
mov byte [ebp - 4], 0xff
push eax
push dword [esi + 0xd4]
mov edi, dword [esi]
mov ebx, edx
mov byte [ebp - 3], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4abb4c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0049dc37
add esp, 0xc
push dword [ebp + 8]
mov ecx, dword [esi]
mov edx, str.SENT
push ebx
call fcn.004aba19
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ac1cb
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x914
mov eax, dword [0x5df7e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
push esi
push edi
mov dword [ebp - 0x910], eax
mov edi, dword [eax]
mov ecx, edi
mov dword [ebp - 0x914], edi
mov ebx, dword [edi + 0x8568]
mov eax, dword [ebx + 0x1ab0]
sub eax, dword [ebx + 0x1aac]
add eax, 2
push eax
lea eax, [ebx + 0x18ac]
push eax
push 0x3c
pop edx
call fcn.004abdc6
mov eax, dword [ebx + 0x1aac]
pop ecx
pop ecx
mov cl, byte [eax]
inc eax
mov dword [ebx + 0x1aac], eax
cmp cl, 0x18
je 0x4ac38b
cmp cl, 0x23
je 0x4ac368
cmp cl, 0x27
jne 0x4ac416
xor esi, esi
lea eax, [ebp - 0x908]
push esi
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
push 0x800
push eax
call sym.wwbizsrv.exe_curl_msnprintf
mov ebx, dword [ebx + 0x18a8]
add esp, 0x1c
mov dword [ebp - 0x90c], 4
test ebx, ebx
je 0x4ac2fd
push 4
pop edi
push dword [ebx]
call fcn.0053f120
inc eax
add eax, edi
mov dword [ebp - 0x90c], eax
pop ecx
cmp eax, 0x7fa
jae 0x4ac2ea
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x108]
push eax
push str._127_____127s
push dword [ebx]
call fcn.0049e253
lea eax, [ebp - 0x88]
push eax
push 1
lea eax, [ebp - 0x108]
push eax
push esi
mov eax, 0x800
sub eax, edi
push str._c_s_c_s
push eax
lea eax, [ebp - 0x908]
add eax, edi
push eax
call sym.wwbizsrv.exe_curl_msnprintf
mov edi, dword [ebp - 0x90c]
add esp, 0x2c
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x4ac283
mov dword [ebp - 0x90c], edi
mov edi, dword [ebp - 0x914]
mov ebx, dword [ebp - 0x90c]
mov eax, 0x800
push 0xf0
push 0xff
sub eax, ebx
push 0x5bac54
push eax
lea eax, [ebp - 0x908]
add eax, ebx
push eax
call sym.wwbizsrv.exe_curl_msnprintf
add esp, 0x14
lea eax, [ebx + 2]
push esi
push eax
lea eax, [ebp - 0x908]
push eax
mov eax, dword [ebp - 0x910]
push dword [eax + 0xd4]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4ac362
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0049dc37
add esp, 0xc
push ebx
jmp 0x4ac403
lea esi, [ebx + 0x1828]
push esi
call fcn.0053f120
pop ecx
push 0xf0
lea ebx, [eax + 6]
mov eax, 0xff
push eax
push esi
xor esi, esi
push esi
push 0x23
jmp 0x4ac3ac
lea esi, [ebx + 0x1808]
push esi
call fcn.0053f120
pop ecx
push 0xf0
lea ebx, [eax + 6]
mov eax, 0xff
push eax
push esi
xor esi, esi
push esi
push 0x18
push 0xfa
push eax
push str._c_c_c_c_s_c_c
lea eax, [ebp - 0x908]
push 0x800
push eax
call sym.wwbizsrv.exe_curl_msnprintf
add esp, 0x28
lea eax, [ebp - 0x908]
push esi
push ebx
push eax
mov eax, dword [ebp - 0x910]
push dword [eax + 0xd4]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4ac3ff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0049dc37
add esp, 0xc
lea eax, [ebx - 2]
push eax
lea eax, [ebp - 0x906]
mov ecx, edi
push eax
push 0x3e
pop edx
call fcn.004abdc6
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005121be
leave
ret