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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x190
mov rax, qword [0x1402e1040]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r15, qword [rcx + 0x10]
lea rax, str.octet
xor esi, esi
movsxd rbx, edx
lea r12, str.netascii
mov rdi, rcx
cmp byte [r15 + 0x12a8], sil
cmove r12, rax
cmp ebx, 7
ja case.0x14014f049.1
lea r13, [0x140000000]
mov eax, dword [r13 + rbx*4 + 0x14f6c4]
add rax, r13
jmp rax
inc dword [rcx + 0x20]
mov eax, dword [rcx + 0x20]
cmp eax, dword [rcx + 0x28]
jle 0x14014f06a
mov dword [rcx + 8], 0xffffff9e
xor eax, eax
mov dword [rcx], 3
jmp 0x14014f697
mov rax, qword [rcx + 0x158]
cmp byte [r15 + 0x12ad], sil
mov byte [rax], sil
mov rax, qword [rcx + 0x158]
je 0x14014f0c7
mov byte [rax + 1], 2
mov rcx, qword [r15 + 0x10d8]
cmp rcx, 0xffffffffffffffff
je 0x14014f0cb
mov eax, dword [r15 + 0xac4]
test rcx, rcx
js 0x14014f0b4
or eax, 0x20
mov qword [r15 + 0xaa0], rcx
mov dword [r15 + 0xac4], eax
jmp 0x14014f0cb
and eax, 0xffffffdf
mov qword [r15 + 0xaa0], rsi
mov dword [r15 + 0xac4], eax
jmp 0x14014f0cb
mov byte [rax + 1], 1
mov rax, qword [rdi + 0x10]
mov r14, 0xffffffffffffffff
mov rbx, r14
mov rsi, qword [rax + 0x1128]
inc rsi
inc rbx
cmp byte [rsi + rbx], 0
jne 0x14014f0e3
lea rcx, [rbx + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rax
test rax, rax
jne 0x14014f108
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14014f697
mov rbp, rax
test rbx, rbx
je 0x14014f18e
movzx edx, byte [rsi]
cmp dl, 0x25
jne 0x14014f179
cmp rbx, 2
jbe 0x14014f179
movzx ecx, byte [rsi + 1]
lea eax, [rcx - 0x30]
cmp al, 9
jbe 0x14014f13c
lea eax, [rcx - 0x61]
cmp al, 5
jbe 0x14014f13c
sub cl, 0x41
cmp cl, 5
ja 0x14014f179
movsx rcx, byte [rsi + 2]
lea eax, [rcx - 0x30]
cmp al, 9
jbe 0x14014f156
lea eax, [rcx - 0x61]
cmp al, 5
jbe 0x14014f156
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x14014f179
movsx rax, byte [rsi + 1]
add rsi, 3
movzx edx, byte [rax + r13 + 0x26ff98]
shl dl, 4
or dl, byte [rcx + r13 + 0x26ff98]
sub rbx, 3
jmp 0x14014f17f
inc rsi
dec rbx
test dl, dl
je 0x14014f1f0
mov byte [r8], dl
inc r8
test rbx, rbx
jne 0x14014f114
xor r13d, r13d
mov byte [r8], 0
movsxd rdx, dword [rdi + 0x144]
mov esi, r13d
mov rax, r14
inc rax
cmp byte [r12 + rax], sil
jne 0x14014f1a2
mov rcx, rdx
sub rcx, rax
mov rax, r14
sub rcx, 4
nop dword [rax + rax]
inc rax
cmp byte [rax + rbp], sil
jne 0x14014f1c0
cmp rax, rcx
jbe 0x14014f203
lea rdx, str.TFTP_filename_too_long
mov rcx, r15
call fcn.140101e00
mov rcx, rbp
call qword [0x1402e1138]
mov eax, Ordinal_73
jmp 0x14014f697
mov rcx, rbp
call qword [0x1402e1138]
mov eax, 3
jmp 0x14014f697
mov rcx, qword [rdi + 0x158]
lea r8, str._s_c_s_c
mov qword [rsp + 0x30], r13
add rcx, 2
mov qword [rsp + 0x28], r12
mov r9, rbp
mov qword [rsp + 0x20], r13
call sym.CheraxLoader.exe_curl_msnprintf
mov rcx, r14
nop
inc rcx
cmp byte [rcx + rbp], sil
jne 0x14014f230
mov rax, r14
nop dword [rax]
cmp byte [r12 + rax + 1], sil
lea rax, [rax + 1]
jne 0x14014f240
lea rbx, [rax + 4]
add rbx, rcx
cmp byte [r15 + 0xa3c], sil
jne 0x14014f558
cmp byte [r15 + 0x12ad], sil
je 0x14014f28c
mov r9, qword [r15 + 0x10d8]
cmp r9, r14
je 0x14014f28c
lea r8, str._lld
mov edx, 0x40
lea rcx, [rsp + 0x40]
call sym.CheraxLoader.exe_curl_msnprintf
jmp 0x14014f296
mov eax, 0x30
mov word [rsp + 0x40], ax
movsxd rax, dword [rdi + 0x144]
lea rcx, [rbx + 6]
cmp rcx, rax
jbe 0x14014f2e9
mov r9d, dword [rdi + 0x148]
lea r8, [0x1402acbd0]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call sym.CheraxLoader.exe_curl_msnprintf
mov r9d, dword [rdi + 0x24]
lea r8, [0x1402acbd0]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call sym.CheraxLoader.exe_curl_msnprintf
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x14014f1d5
mov rdx, qword [rdi + 0x158]
lea rcx, str.tsize
add rdx, rbx
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14014f300
add rbx, 6
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
cmp byte [rcx + rax + 1], sil
lea rax, [rax + 1]
jne 0x14014f320
lea rcx, [rax + 1]
movsxd rax, dword [rdi + 0x144]
add rcx, rbx
cmp rcx, rax
jbe 0x14014f345
mov esi, Ordinal_73
jmp 0x14014f38f
mov rdx, qword [rdi + 0x158]
lea rcx, [rsp + 0x40]
add rdx, rbx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14014f360
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
inc rax
cmp byte [rcx + rax], sil
jne 0x14014f380
inc rbx
add rbx, rax
mov r9d, dword [rdi + 0x148]
lea r8, [0x1402acbd0]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call sym.CheraxLoader.exe_curl_msnprintf
test esi, esi
jne 0x14014f472
movsxd rcx, dword [rdi + 0x144]
lea rax, [rbx + 8]
cmp rax, rcx
jbe 0x14014f3cb
mov esi, Ordinal_73
jmp 0x14014f3f8
mov rdx, qword [rdi + 0x158]
lea rcx, str.blksize
add rdx, rbx
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14014f3e0
add rbx, 8
mov esi, r13d
test esi, esi
jne 0x14014f472
lea rcx, [rsp + 0x40]
mov rax, r14
cmp byte [rcx + rax + 1], r13b
lea rax, [rax + 1]
jne 0x14014f404
lea rcx, [rax + 1]
movsxd rax, dword [rdi + 0x144]
add rcx, rbx
cmp rcx, rax
jbe 0x14014f429
mov esi, Ordinal_73
jmp 0x14014f472
mov rdx, qword [rdi + 0x158]
lea rcx, [rsp + 0x40]
add rdx, rbx
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14014f440
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
inc rax
cmp byte [rcx + rax], r13b
jne 0x14014f460
inc rbx
mov esi, r13d
add rbx, rax
mov r9d, dword [rdi + 0x24]
lea r8, [0x1402acbd0]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call sym.CheraxLoader.exe_curl_msnprintf
test esi, esi
jne 0x14014f54c
movsxd rcx, dword [rdi + 0x144]
lea rax, [rbx + 8]
cmp rax, rcx
ja 0x14014f54c
mov rdx, qword [rdi + 0x158]
lea rcx, str.timeout
add rdx, rbx
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14014f4c0
add rbx, 8
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
cmp byte [rcx + rax + 1], r13b
lea rax, [rax + 1]
jne 0x14014f4e0
lea rcx, [rax + 1]
movsxd rax, dword [rdi + 0x144]
add rcx, rbx
cmp rcx, rax
jbe 0x14014f505
mov esi, Ordinal_73
jmp 0x14014f548
mov rdx, qword [rdi + 0x158]
lea rcx, [rsp + 0x40]
add rdx, rbx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14014f520
lea rax, [rsp + 0x40]
inc r14
cmp byte [rax + r14], r13b
jne 0x14014f536
inc rbx
mov esi, r13d
add rbx, r14
test esi, esi
je 0x14014f558
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x14014f1d5
mov rax, qword [r15 + 0x20]
xor r9d, r9d
mov rcx, qword [rdi + 0x18]
mov r8d, ebx
mov rax, qword [rax + 0x38]
lea rdx, [rax + 0x10]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, qword [rdi + 0x158]
call qword [sym.imp.WS2_32.dll_sendto]
movsxd rcx, eax
cmp rcx, rbx
je 0x14014f5b6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rsp + 0x80]
call fcn.1400fae60
mov r8, rax
lea rdx, [0x1402acbcc]
mov rcx, r15
call fcn.140101e00
mov rcx, rbp
call qword [0x1402e1138]
jmp 0x14014f695
lea rdx, [0x1402acbcc]
mov rcx, r15
cmp byte [r15 + 0x12ad], sil
je 0x14014f60c
lea r8, str.Connected_for_transmit
call fcn.140101ff0
mov rcx, rdi
mov dword [rdi], 2
call fcn.14014eb40
mov esi, eax
test eax, eax
jne 0x14014f695
mov edx, ebx
mov rcx, rdi
call fcn.14014fa30
mov esi, eax
jmp 0x14014f695
lea r8, str.Connected_for_receive
call fcn.140101ff0
mov rcx, rdi
mov dword [rdi], 1
call fcn.14014eb40
mov esi, eax
test eax, eax
jne 0x14014f695
mov edx, ebx
mov rcx, rdi
call fcn.14014f6f0
mov esi, eax
jmp 0x14014f695
lea r8, str.Connected_for_transmit
mov rcx, r15
lea rdx, [0x1402acbcc]
call fcn.140101ff0
mov rcx, rdi
mov dword [rdi], 2
call fcn.14014eb40
mov esi, eax
test eax, eax
jne 0x14014f695
mov edx, ebx
mov rcx, rdi
call fcn.14014fa30
mov esi, eax
jmp 0x14014f695
lea rdx, [0x1402acbcc]
mov rcx, r15
jmp 0x14014f60c
mov dword [rcx], 3
jmp 0x14014f695
lea rdx, str.tftp_send_first:_internal_error
mov rcx, r15
call fcn.140101e00
mov eax, esi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140171bd0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
sub rsp, 0x28
mov r8d, dword [rcx]
mov r9, qword [rcx + 0x10]
test r8d, r8d
je 0x140150007
sub r8d, 1
je 0x14014fffe
sub r8d, 1
je 0x14014fff5
lea rdx, [0x1402acbcc]
mov rcx, r9
cmp r8d, 1
je 0x14014ffe2
lea r8, str.Internal_state_machine_error
call fcn.140101e00
mov eax, Ordinal_73
add rsp, 0x28
ret
lea r8, str.TFTP_finished
call fcn.140101ff0
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14014fa30
add rsp, 0x28
jmp fcn.14014f6f0
add rsp, 0x28
jmp 0x14014efe0