joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459f86
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
xor ecx, ecx
lea eax, [esi + edx]
mov edx, 0x1505
mov edi, eax
sub edi, esi
cmp esi, eax
cmova edi, ecx
test edi, edi
je 0x459fb2
movsx ecx, byte [esi]
imul edx, edx, 0x21
xor edx, ecx
inc esi
inc ebx
cmp ebx, edi
jb 0x459fa4
pop edi
pop esi
mov eax, edx
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
xor eax, eax
cmp edx, dword [edi + 0xa4]
sete al
cmp byte [eax + edi + 0xb0], 0
jne 0x45dc4b
cmp dword [edi + 0x168], 0
je 0x45dc28
or esi, 0xffffffff
jmp 0x45dc3e
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45dc68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x45dc4f
xor esi, esi
jmp 0x45dc68
mov edx, eax
mov ecx, edi
call fcn.0046a99b
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0045dab8
add esp, 0xc
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push 0x37
cmp esi, 0xffffffff
mov dword [eax], esi
pop eax
pop edi
cmovne eax, ecx
pop esi
pop ecx
pop ebp
ret

Function at 0x45dd5c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x88]
test eax, eax
je 0x45dd7e
push dword [esi + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push esi
call eax
add esp, 0x14
jmp 0x45ddab
cmp edx, 2
ja 0x45dda9
push dword [esi + 0x10]
push 1
push 2
push dword [edx*4 + 0x4b3a1c]
call fcn.0047d221
push dword [esi + 0x10]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047d221
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4612c1
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
push esi
push edi
mov esi, dword [eax]
mov ebx, dword [eax + 0xa4]
mov dword [ebp - 0x18], eax
call fcn.00468cba
push edx
push eax
call fcn.00468cba
push edx
push eax
call fcn.00468cdc
mov ecx, 0x3e8
cdq
idiv ecx
mov ecx, dword [esi + 0x9c]
add esp, 0x10
test ecx, ecx
jne 0x461313
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x46132d
sub ecx, eax
test ecx, ecx
jg 0x46132d
push str.Timed_out_before_server_could_connect_to_us
push esi
call fcn.0045dab8
pop ecx
pop ecx
push 0x1c
jmp 0x4613d8
push 0x3c
test ecx, ecx
pop eax
cmovne eax, ecx
or edx, 0xffffffff
imul eax, eax, 0x3e8
mov ecx, ebx
push eax
call fcn.00468e1c
pop ecx
cmp eax, 0xffffffff
je 0x4613c9
test eax, eax
je 0x4613c2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
push eax
lea eax, [ebp - 0x14]
or edi, 0xffffffff
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x46137e
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xffffffff
jne 0x461391
push str.Error_accept__ing_server_connect
jmp 0x4613ce
push str.Connection_accepted_from_server_n
push esi
call fcn.0045da49
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
mov dword [ebp - 0x18], 1
mov dword [eax + 0xa4], edi
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
jmp 0x4613d9
push str.Timeout_while_waiting_for_server_connect
jmp 0x4613ce
push str.Error_while_waiting_for_server_connect
push esi
call fcn.0045dab8
pop ecx
pop ecx
push 0x1e
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
Function at 0x4629e9
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], 0x64
mov eax, ebx
cdq
idiv dword [ebp - 4]
push esi
push edi
mov edi, ecx
xor esi, esi
mov ecx, dword [edi]
cmp eax, 2
je 0x462a1d
push str.Couldnt_set_desired_mode
push ecx
call fcn.0045dab8
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x462a71
cmp ebx, 0xc8
je 0x462a34
push ebx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.0045da49
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x10
jne 0x462a45
mov ecx, edi
call fcn.00461fb4
jmp 0x462a6d
cmp eax, 0x11
jne 0x462a53
mov ecx, edi
call fcn.00461ff4
jmp 0x462a6d
cmp eax, 0x12
jne 0x462a5c
push 0xa
jmp 0x462a63
cmp eax, 0x13
jne 0x462a6f
push 0xb
mov dl, 1
mov ecx, edi
call fcn.004622a4
pop ecx
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46514e
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x4d3a00]
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 0x465188
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0045dab8
add esp, 0xc
jmp 0x4651b0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x4651a3
shr eax, 8
test al, al
jne 0x4651a3
xor eax, eax
jmp 0x4651b3
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0045dab8
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047aabf
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x918
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push esi
mov dword [ebp - 0x90c], eax
push edi
mov esi, dword [eax + 0x16c]
mov ecx, dword [eax]
mov dword [ebp - 0x910], ecx
mov eax, dword [esi + 0x1ab0]
sub eax, dword [esi + 0x1aac]
add eax, 2
push eax
lea eax, [esi + 0x18ac]
push eax
push 0x3c
pop edx
call fcn.00465615
mov eax, dword [esi + 0x1aac]
pop ecx
pop ecx
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x1aac], eax
cmp ecx, 0x18
je 0x465b87
cmp ecx, 0x23
je 0x465b65
cmp ecx, 0x27
jne 0x465bfd
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x908]
push 0x800
push eax
call fcn.0046109f
mov esi, dword [esi + 0x18a8]
add esp, 0x1c
push 4
pop edi
jmp 0x465b34
push dword [esi]
call fcn.00483680
inc eax
add eax, edi
mov dword [ebp - 0x914], eax
pop ecx
cmp eax, 0x7fa
jae 0x465b31
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x108]
push eax
push str._127_____127s
push dword [esi]
call fcn.0047db99
lea eax, [ebp - 0x88]
push eax
push 1
lea eax, [ebp - 0x108]
push eax
push 0
mov eax, 0x800
sub eax, edi
push str._c_s_c_s
push eax
lea eax, [ebp - 0x908]
add eax, edi
push eax
call fcn.0046109f
mov edi, dword [ebp - 0x914]
add esp, 0x2c
mov esi, dword [esi + 4]
test esi, esi
jne 0x465ac9
push 0xf0
push 0xff
mov eax, 0x800
sub eax, edi
push 0x4beb38
push eax
lea eax, [ebp - 0x908]
add eax, edi
push eax
call fcn.0046109f
add esp, 0x14
add edi, 2
jmp 0x465bc6
add esi, 0x1828
push esi
call fcn.00483680
pop ecx
push 0xf0
lea edi, [eax + 6]
mov eax, 0xff
push eax
push esi
push 0
push 0x23
jmp 0x465ba7
add esi, 0x1808
push esi
call fcn.00483680
pop ecx
push 0xf0
lea edi, [eax + 6]
mov eax, 0xff
push eax
push esi
push 0
push 0x18
push 0xfa
push eax
push str._c_c_c_c_s_c_c
lea eax, [ebp - 0x908]
push 0x800
push eax
call fcn.0046109f
add esp, 0x28
push 0
push edi
lea eax, [ebp - 0x908]
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0xa0]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 0x910]
lea eax, [edi - 2]
push eax
lea eax, [ebp - 0x906]
push eax
push 0x3e
pop edx
call fcn.00465615
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
Function at 0x4663c1
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x124], edx
push esi
push edi
mov dword [ebp - 0x128], ebx
mov edi, dword [ebx]
push dword [edi + 0x74]
call fcn.00483680
pop ecx
mov ecx, 0xff
cmp eax, ecx
jae 0x466534
xor eax, eax
push ecx
push eax
mov dword [ebp - 0x11c], eax
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x107]
push eax
call fcn.00482250
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
add esp, 0xc
push dword [edi + 0x74]
call esi
mov edx, dword [edi + 0x74]
lea eax, [ebp - 0x11c]
push eax
push 0
mov ecx, ebx
call fcn.00459dc4
pop ecx
pop ecx
cmp eax, 1
jne 0x46644e
lea edx, [ebp - 0x11c]
mov ecx, ebx
call fcn.00468273
mov ebx, dword [ebp - 0x11c]
test ebx, ebx
je 0x466469
push dword [edi + 0x74]
lea eax, [ebp - 0x108]
push eax
call fcn.0049ba10
pop ecx
pop ecx
cmp byte [ebp - 0x108], 0
jne 0x46647f
push dword [edi + 0x74]
push str.Couldnt_bind_to__s
jmp 0x46652b
lea eax, [ebp - 0x108]
push eax
push str.We_bind_local_end_to__s_n
push edi
call fcn.0045da49
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call esi
cmp eax, 0xffffffff
je 0x46651f
test ebx, ebx
je 0x46651f
mov esi, dword [ebx]
mov edx, ebx
mov ecx, edi
call fcn.00459f14
push dword [esi + 0x10]
push dword [esi + 0x14]
mov esi, dword [ebp - 0x124]
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x4664fe
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x10
push eax
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x4664fa
push str.getsockname___failed
push edi
call fcn.0045dab8
pop ecx
pop ecx
jmp 0x466534
xor eax, eax
jmp 0x466537
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x128]
mov edx, eax
mov dword [edi + 0x8318], eax
call fcn.0046a99b
push eax
push str.bind_failure:__s
jmp 0x46652b
lea eax, [ebp - 0x108]
push eax
push str.couldnt_find_my_own_IP_address___s_
push edi
call fcn.0045dab8
add esp, 0xc
push 0x2d
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047aabf
mov esp, ebp
pop ebp
ret

Function at 0x46661a
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 + 0x1b6]
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 0x466664
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, edi
call fcn.0046a99b
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0045da49
add esp, 0xc
jmp 0x466671
push str.TCP_NODELAY_set_n
push esi
call fcn.0045da49
pop ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x466677
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [edx + 0xc]
mov eax, ecx
mov dword [ebp - 0x8c], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x94], ecx
push dword [eax + 0x28]
mov edi, dword [eax]
push dword [edx + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x466848
mov eax, dword [ebp - 0x94]
lea edx, [ebp - 0x88]
mov ecx, dword [ebp - 0x8c]
xor ebx, ebx
push 0x80
mov byte [eax], bl
call fcn.00459c8c
pop ecx
lea eax, [ebp - 0x88]
push eax
push str.__Trying__s...
push edi
call fcn.0045da49
add esp, 0xc
cmp byte [edi + 0x1b6], bl
je 0x46670b
mov ecx, dword [ebp - 0x90]
mov edx, esi
call fcn.0046661a
mov ecx, dword [ebp - 0x90]
mov eax, dword [ecx]
cmp dword [eax + 0x74], ebx
je 0x466727
mov edx, esi
call fcn.004663c1
test eax, eax
jne 0x466841
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 0x90]
cmp dword [eax + 0x28], 1
jne 0x466765
mov eax, dword [ebp - 0x8c]
push dword [eax + 0x10]
push dword [eax + 0x14]
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4667f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
cmp eax, 0xb
je 0x4667e9
cmp eax, 0x2732
jle 0x46678d
cmp eax, 0x2734
jle 0x4667e9
mov ecx, dword [ebp - 0x90]
mov edx, eax
call fcn.0046a99b
push eax
lea eax, [ebp - 0x88]
push eax
push str.Failed_to_connect_to__s:__s
push edi
call fcn.0045dab8
mov eax, dword [ebp - 0x8c]
add esp, 0x10
mov dword [edi + 0x8318], eax
lea edx, [ebp - 0x8c]
mov ecx, esi
call fcn.00466548
test ebx, ebx
jne 0x466807
test al, al
je 0x46681b
mov eax, dword [ebp - 0x94]
push str.connected_n
push edi
mov byte [eax], 1
call fcn.0045da49
pop ecx
pop ecx
jmp 0x466803
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.0046639e
mov ebx, eax
cmp ebx, 1
jne 0x4667bc
cmp dword [edi + 0x2d8], 2
jne 0x4667bc
mov eax, esi
jmp 0x46684b
cmp ebx, 1
jne 0x46681b
push str.Timeout_n
push edi
call fcn.0045da49
pop ecx
pop ecx
jmp 0x466841
mov edx, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x90]
mov dword [edi + 0x8318], edx
call fcn.0046a99b
push eax
push 0x4bd23c
push edi
call fcn.0045da49
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
Function at 0x466b57
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov esi, str.netascii
push 3
mov eax, dword [edi + 0xc]
mov ebx, dword [eax]
mov ecx, dword [eax + 0x50]
mov eax, str.octet
mov dword [ebp - 4], ecx
pop ecx
cmp byte [ebx + 0x18c], 0
cmove esi, eax
mov dword [ebp - 8], esi
sub edx, 0
je 0x466c11
sub edx, ecx
je 0x466be2
dec edx
je 0x466bb3
dec edx
je 0x466c23
dec edx
je 0x466c11
push str.tftp_send_first:_internal_error_n
push ebx
call fcn.0045dab8
pop ecx
pop ecx
jmp 0x466d0b
push str.Connected_for_transmit
push 0x4bd23c
push ebx
call fcn.0045da49
add esp, 0xc
mov dword [edi], 2
mov ecx, edi
call fcn.00466a28
push 4
pop edx
mov ecx, edi
call fcn.00466e87
jmp 0x466d0b
push str.Connected_for_receive
push 0x4bd23c
push ebx
call fcn.0045da49
add esp, 0xc
mov dword [edi], 1
mov ecx, edi
call fcn.00466a28
push 3
pop edx
mov ecx, edi
call fcn.00466d12
jmp 0x466d0b
inc dword [edi + 0x14]
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 0x1c]
jle 0x466c2a
mov dword [edi + 8], 9
mov dword [edi], ecx
jmp 0x466d0b
cmp byte [ebx + 0x199], 0
je 0x466c8a
push 2
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 4]
mov word [edi + 0x268], ax
call fcn.00483680
pop ecx
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.00468d60
mov dword [ebp - 4], eax
lea ecx, [edi + 0x26c]
mov eax, dword [edi + 0xc]
mov dword [eax + 0x1fc], ecx
mov ecx, dword [ebx + 0xa8]
mov eax, ecx
mov edx, dword [ebx + 0xac]
and eax, edx
cmp eax, 0xffffffff
je 0x466c99
push edx
push ecx
mov ecx, ebx
call fcn.00467741
add esp, 8
jmp 0x466c99
push 1
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 0x268], ax
push 0
push esi
mov esi, dword [ebp - 4]
lea eax, [edi + 0x26a]
push 0
push esi
push str._s_c_s_c
push eax
call fcn.0046120b
push esi
call fcn.00483680
add esp, 0x1c
mov esi, eax
push dword [ebp - 8]
call fcn.00483680
pop ecx
lea ecx, [eax + 4]
mov eax, dword [edi + 0xc]
add ecx, esi
mov eax, dword [eax + 0x10]
push dword [eax + 0x10]
push dword [eax + 0x14]
lea eax, [edi + 0x268]
push 0
push ecx
push eax
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x466d0b
call fcn.0047f65f
push dword [eax]
call fcn.0048345b
pop ecx
push eax
push 0x4bd23c
push ebx
call fcn.0045dab8
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x466d12
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
push 3
pop edi
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
mov dword [ebp - 4], esi
sub edx, edi
je 0x466da6
dec edx
dec edx
je 0x466d5b
dec edx
je 0x466d38
push str.tftp_rx:_internal_error
jmp 0x466d93
inc dword [ebx + 0x14]
push dword [ebx + 0x14]
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push esi
call fcn.0045da49
mov eax, dword [ebx + 0x14]
add esp, 0xc
cmp eax, dword [ebx + 0x1c]
jle 0x466d62
mov dword [ebx + 8], 8
mov dword [ebx], edi
jmp 0x466e68
push dword [ebx + 0x58]
lea eax, [ebx + 0x48]
push eax
push 0
push 4
lea eax, [ebx + 0x268]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x466e68
call fcn.0047f65f
push dword [eax]
call fcn.0048345b
pop ecx
push eax
push 0x4bd23c
push esi
call fcn.0045dab8
add esp, 0xc
jmp 0x466e68
movzx eax, word [ebx + 0x66]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
movzx eax, word [ebx + 0x30]
inc eax
cmp eax, edi
je 0x466df0
push edi
push str.Received_unexpected_DATA_packet_block__d_n
push esi
call fcn.0045da49
add esp, 0xc
inc dword [ebx + 0x14]
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x1c]
jle 0x466df0
movzx eax, word [ebx + 0x30]
inc eax
push eax
push str.tftp_rx:_giving_up_waiting_for_block__d_n
push esi
call fcn.0045dab8
add esp, 0xc
jmp 0x466e80
and dword [ebx + 0x14], 0
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov word [ebx + 0x30], di
lea edi, [ebx + 0x268]
push 4
call esi
mov word [edi], ax
movzx eax, word [ebx + 0x30]
push eax
call esi
push dword [ebx + 0x58]
mov word [ebx + 0x26a], ax
lea eax, [ebx + 0x48]
push eax
push 0
push 4
push edi
push dword [ebx + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x466e53
call fcn.0047f65f
push dword [eax]
call fcn.0048345b
mov esi, dword [ebp - 4]
pop ecx
push eax
push 0x4bd23c
push esi
call fcn.0045dab8
add esp, 0xc
jmp 0x466e56
mov esi, dword [ebp - 4]
xor eax, eax
inc eax
cmp dword [ebx + 0x5c], 0x204
push 3
pop ecx
cmovl eax, ecx
mov dword [ebx], eax
movzx eax, word [ebx + 0x30]
cdq
shld edx, eax, 9
shl eax, 9
mov dword [esi + 0x1f8], eax
mov dword [esi + 0x1fc], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x466e87
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
mov ebx, dword [eax]
sub edx, 4
je 0x466ee3
dec edx
je 0x466ec9
dec edx
je 0x466ea6
push str.tftp_tx:_internal_error
jmp 0x466fb8
inc dword [edi + 0x14]
push dword [edi + 0x14]
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.0045da49
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp eax, dword [edi + 0x1c]
jle 0x466ed4
mov dword [edi + 8], 8
mov dword [edi], 3
jmp 0x466fc6
push dword [edi + 0x58]
lea eax, [edi + 0x48]
push eax
mov eax, dword [edi + 0x60]
jmp 0x466f90
movzx eax, word [edi + 0x66]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, word [edi + 0x30]
movzx eax, ax
mov ecx, edx
cmp eax, ecx
je 0x466f37
push ecx
push eax
push str.Received_ACK_for_block__d__expecting__d_n
push ebx
call fcn.0045da49
add esp, 0x10
inc dword [edi + 0x14]
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 0x1c]
jle 0x466fde
movzx eax, word [edi + 0x30]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
push 0x4bd23c
push ebx
call fcn.0045dab8
add esp, 0x10
jmp 0x466fde
and dword [edi + 0x14], 0
lea eax, [edx + 1]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 3
mov word [edi + 0x30], ax
call esi
mov word [edi + 0x268], ax
movzx eax, word [edi + 0x30]
push eax
call esi
cmp word [edi + 0x30], 1
mov edx, 0x200
mov word [edi + 0x26a], ax
jbe 0x466f7a
cmp dword [edi + 0x60], edx
jge 0x466f7a
mov dword [edi], 3
jmp 0x466fde
mov ecx, dword [edi + 0xc]
lea esi, [edi + 0x60]
push esi
call fcn.0045a2a1
pop ecx
push dword [edi + 0x58]
lea eax, [edi + 0x48]
push eax
mov eax, dword [esi]
push 0
add eax, 4
push eax
lea eax, [edi + 0x268]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x466fc6
call fcn.0047f65f
push dword [eax]
call fcn.0048345b
pop ecx
push eax
push 0x4bd23c
push ebx
call fcn.0045dab8
add esp, 0xc
movzx eax, word [edi + 0x30]
cdq
shld edx, eax, 9
shl eax, 9
mov dword [ebx + 0x200], eax
mov dword [ebx + 0x204], edx
pop edi
pop esi
pop ebx
ret
Function at 0x468108
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 1
push 0x28
mov dword [ebp - 4], edx
mov ebx, ecx
call dword [0x4d4bd8]
and dword [ebp - 0xc], 0
mov esi, eax
and dword [ebp - 8], 0
pop ecx
pop ecx
test esi, esi
jne 0x46813e
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x46826d
push edi
lea edi, [ebx + 0x320]
mov ecx, dword [edi]
call fcn.00456981
push dword [ebp - 4]
call dword [0x4d4bdc]
mov dword [edi], eax
pop ecx
test eax, eax
jne 0x46816b
push esi
call dword [0x4d4be0]
pop ecx
push 0xc
jmp 0x4681fb
mov eax, dword [ebp + 8]
mov dword [ebx + 0x324], eax
xor eax, eax
push eax
push 1
mov byte [ebx + 0x32c], al
mov dword [ebx + 0x330], eax
mov dword [ebx + 0x328], eax
mov dword [ebx + 0x334], esi
or dword [esi + 0xc], 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x14], eax
test eax, eax
je 0x4681f2
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x18], eax
test eax, eax
je 0x4681f2
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x20], eax
test eax, eax
je 0x4681f2
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x24], eax
test eax, eax
je 0x4681f2
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x468203
mov ecx, edi
call fcn.00468042
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x468240
call fcn.0047f9c7
add eax, 0x40
mov dword [esi + 0x10], eax
lea eax, [esi + 4]
push eax
push 0
push ebx
push 0x467e99
xor ebx, ebx
push ebx
push ebx
call fcn.0047d3f2
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x468244
call fcn.0047f65f
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, edi
call fcn.00468042
xor al, al
jmp 0x46826c
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x1c]
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
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret