Function at 0x14012aa20
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
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1402b3030]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r15, qword [rcx + 0x10]
lea rax, str.netascii
xor edi, edi
movsxd rsi, edx
mov rbx, rcx
lea rcx, str.octet
cmp byte [r15 + 0x12de], dil
cmove rax, rcx
mov qword [rsp + 0x48], rax
cmp esi, 7
ja case.0x14012aa94.1
lea rdx, [0x140000000]
mov ecx, dword [rdx + rsi*4 + 0x12b11c]
add rcx, rdx
jmp rcx
inc dword [rbx + 0x20]
mov eax, dword [rbx + 0x20]
cmp eax, dword [rbx + 0x28]
jle 0x14012aab5
mov dword [rbx + 8], 0xffffff9e
xor eax, eax
mov dword [rbx], 3
jmp 0x14012b0f0
mov rax, qword [rbx + 0x158]
cmp byte [r15 + 0xaa6], dil
mov byte [rax], dil
mov rax, qword [rbx + 0x158]
je 0x14012ab28
mov byte [rax + 1], 2
mov rcx, qword [rbx + 0x158]
mov rax, qword [rbx + 0x10]
add rcx, 4
mov qword [rax + 0x1a8], rcx
mov rcx, qword [r15 + 0x1158]
cmp rcx, 0xffffffffffffffff
je 0x14012ab2c
mov eax, dword [r15 + 0xb14]
test rcx, rcx
js 0x14012ab15
or eax, 0x20
mov qword [r15 + 0xaf0], rcx
mov dword [r15 + 0xb14], eax
jmp 0x14012ab2c
and eax, 0xffffffdf
mov qword [r15 + 0xaf0], rdi
mov dword [r15 + 0xb14], eax
jmp 0x14012ab2c
mov byte [rax + 1], 1
mov rax, qword [rbx + 0x10]
mov r13, 0xffffffffffffffff
mov rdi, r13
mov rsi, qword [rax + 0x11a8]
inc rsi
xor r12d, r12d
inc rdi
cmp byte [rsi + rdi], r12b
jne 0x14012ab47
lea rcx, [rdi + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
jne 0x14012ab6b
lea eax, [r14 + 0x1b]
jmp 0x14012b0f0
test rdi, rdi
je 0x14012abfe
movzx ecx, byte [rsi]
cmp cl, 0x25
jne 0x14012abe6
cmp rdi, 2
jbe 0x14012abea
movzx edx, byte [rsi + 1]
lea eax, [rdx - 0x30]
cmp al, 9
jbe 0x14012ab9b
lea eax, [rdx - 0x61]
cmp al, 5
jbe 0x14012ab9b
lea eax, [rdx - 0x41]
cmp al, 5
ja 0x14012abea
movzx r8d, byte [rsi + 2]
lea eax, [r8 - 0x30]
cmp al, 9
jbe 0x14012abb8
lea eax, [r8 - 0x61]
cmp al, 5
jbe 0x14012abb8
lea eax, [r8 - 0x41]
cmp al, 5
ja 0x14012abea
mov byte [rsp + 0x58], dl
lea rcx, [rsp + 0x58]
mov byte [rsp + 0x59], r8b
lea rdx, [rsp + 0x50]
mov r8d, reloc.WS2_32.dll_recv
mov byte [rsp + 0x5a], 0
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
add rsi, 2
mov ecx, eax
sub rdi, 2
test cl, cl
je 0x14012ac66
mov byte [r14 + r12], cl
inc rsi
inc r12
sub rdi, 1
jne 0x14012ab74
mov rsi, qword [rsp + 0x48]
mov rax, r13
mov byte [r14 + r12], 0
xor r12d, r12d
movsxd rdx, dword [rbx + 0x144]
mov edi, r12d
nop dword [rax + rax]
inc rax
cmp byte [rsi + rax], dil
jne 0x14012ac20
mov rcx, rdx
sub rcx, rax
mov rax, r13
sub rcx, 4
inc rax
cmp byte [r14 + rax], dil
jne 0x14012ac36
cmp rax, rcx
jbe 0x14012ac79
lea rdx, str.TFTP_file_name_too_long
mov rcx, r15
call fcn.140100cb0
mov rcx, r14
call qword [0x1402b30c8]
mov eax, Ordinal_73
jmp 0x14012b0f0
mov rcx, r14
call qword [0x1402b30c8]
mov eax, 3
jmp 0x14012b0f0
mov rcx, qword [rbx + 0x158]
lea r8, str._s_c_s_c
mov qword [rsp + 0x30], r12
add rcx, 2
mov qword [rsp + 0x28], rsi
mov r9, r14
mov qword [rsp + 0x20], r12
call sym.CheraxLoader.exe_curl_msnprintf
mov rcx, r13
inc rcx
cmp byte [rsi + rcx], dil
jne 0x14012aca5
mov rax, r13
cmp byte [r14 + rax + 1], dil
lea rax, [rax + 1]
jne 0x14012acb1
lea rsi, [rax + 4]
add rsi, rcx
cmp byte [r15 + 0xa8b], dil
jne 0x14012afb5
cmp byte [r15 + 0xaa6], dil
je 0x14012acfd
mov r9, qword [r15 + 0x1158]
cmp r9, r13
je 0x14012acfd
lea r8, str._I64d
mov edx, 0x40
lea rcx, [rsp + 0x60]
call sym.CheraxLoader.exe_curl_msnprintf
jmp 0x14012ad07
mov eax, 0x30
mov word [rsp + 0x60], ax
movsxd rax, dword [rbx + 0x144]
lea r8, [rsi + 6]
cmp r8, rax
jbe 0x14012ad1e
lea rcx, [rsp + 0x60]
jmp 0x14012ad73
mov rdx, qword [rbx + 0x158]
lea rcx, str.tsize
add rdx, rsi
nop
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14012ad30
lea rcx, [rsp + 0x60]
mov rax, r13
nop dword [rax]
cmp byte [rcx + rax + 1], dil
lea rax, [rax + 1]
jne 0x14012ad50
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x144]
add rcx, r8
cmp rcx, rax
lea rcx, [rsp + 0x60]
jbe 0x14012adb1
mov r9d, dword [rbx + 0x148]
lea r8, [0x14028455c]
mov edx, 0x40
call sym.CheraxLoader.exe_curl_msnprintf
mov r9d, dword [rbx + 0x24]
lea r8, [0x14028455c]
mov edx, 0x40
lea rcx, [rsp + 0x60]
call sym.CheraxLoader.exe_curl_msnprintf
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x14012ac4b
mov rdx, qword [rbx + 0x158]
add rdx, r8
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14012adc0
lea rcx, [rsp + 0x60]
mov rax, r13
nop dword [rax]
cmp byte [rcx + rax + 1], dil
lea rax, [rax + 1]
jne 0x14012ade0
mov r9d, dword [rbx + 0x148]
lea rdi, [rax + 1]
add rdi, r8
lea rcx, [rsp + 0x60]
lea r8, [0x14028455c]
mov edx, 0x40
call sym.CheraxLoader.exe_curl_msnprintf
movsxd rax, dword [rbx + 0x144]
lea r8, [rdi + 8]
cmp r8, rax
ja 0x14012ad8b
mov rdx, qword [rbx + 0x158]
lea rcx, str.blksize
add rdx, rdi
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 0x14012ae40
lea rcx, [rsp + 0x60]
mov rax, r13
nop dword [rax]
cmp byte [rcx + rax + 1], r12b
lea rax, [rax + 1]
jne 0x14012ae60
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x144]
add rcx, r8
cmp rcx, rax
lea rcx, [rsp + 0x60]
jbe 0x14012aea4
mov r9d, dword [rbx + 0x24]
lea r8, [0x14028455c]
mov edx, 0x40
call sym.CheraxLoader.exe_curl_msnprintf
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x14012ac4b
mov rdx, qword [rbx + 0x158]
add rdx, r8
nop
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14012aeb0
lea rcx, [rsp + 0x60]
mov rax, r13
nop dword [rax]
cmp byte [rcx + rax + 1], r12b
lea rax, [rax + 1]
jne 0x14012aed0
mov r9d, dword [rbx + 0x24]
lea rdi, [rax + 1]
add rdi, r8
lea rcx, [rsp + 0x60]
lea r8, [0x14028455c]
mov edx, 0x40
call sym.CheraxLoader.exe_curl_msnprintf
movsxd rax, dword [rbx + 0x144]
lea r8, [rdi + 8]
cmp r8, rax
ja 0x14012af5e
mov rdx, qword [rbx + 0x158]
lea rcx, str.timeout
add rdx, rdi
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14012af20
lea rcx, [rsp + 0x60]
mov rax, r13
nop dword [rax]
cmp byte [rcx + rax + 1], r12b
lea rax, [rax + 1]
jne 0x14012af40
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x144]
add rcx, r8
cmp rcx, rax
jbe 0x14012af6a
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x14012ac4b
mov rdx, qword [rbx + 0x158]
lea rcx, [rsp + 0x60]
add rdx, r8
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14012af80
lea rax, [rsp + 0x60]
nop word [rax + rax]
cmp byte [rax + r13 + 1], r12b
lea r13, [r13 + 1]
jne 0x14012afa0
lea rsi, [r13 + 1]
mov edi, r12d
add rsi, r8
mov rax, qword [r15 + 0x18]
xor r9d, r9d
mov rcx, qword [rbx + 0x18]
mov r8d, esi
mov rax, qword [rax + 0x58]
lea rdx, [rax + 0x10]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, qword [rbx + 0x158]
call qword [sym.imp.WS2_32.dll_sendto]
movsxd rcx, eax
cmp rcx, rsi
je 0x14012b00f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp - 0x60]
call fcn.1400e24e0
mov r8, rax
lea rdx, [0x140284558]
mov rcx, r15
call fcn.140100cb0
mov rcx, r14
call qword [0x1402b30c8]
jmp 0x14012b0ee
lea rdx, [0x140284558]
mov rcx, r15
cmp byte [r15 + 0xaa6], dil
je 0x14012b065
lea r8, str.Connected_for_transmit
call fcn.140100de0
mov rcx, rbx
mov dword [rbx], 2
call fcn.14012a5a0
mov edi, eax
test eax, eax
jne 0x14012b0ee
mov edx, esi
mov rcx, rbx
call fcn.14012b470
mov edi, eax
jmp 0x14012b0ee
lea r8, str.Connected_for_receive
call fcn.140100de0
mov rcx, rbx
mov dword [rbx], 1
call fcn.14012a5a0
mov edi, eax
test eax, eax
jne 0x14012b0ee
mov edx, esi
mov rcx, rbx
call fcn.14012b140
mov edi, eax
jmp 0x14012b0ee
lea r8, str.Connected_for_transmit
mov rcx, r15
lea rdx, [0x140284558]
call fcn.140100de0
mov rcx, rbx
mov dword [rbx], 2
call fcn.14012a5a0
mov edi, eax
test eax, eax
jne 0x14012b0ee
mov edx, esi
mov rcx, rbx
call fcn.14012b470
mov edi, eax
jmp 0x14012b0ee
lea rdx, [0x140284558]
mov rcx, r15
jmp 0x14012b065
mov dword [rbx], 3
jmp 0x14012b0ee
lea rdx, str.tftp_send_first:_internal_error
mov rcx, r15
call fcn.140100cb0
mov eax, edi
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14014d450
mov rbx, qword [rsp + 0x200]
add rsp, 0x1b0
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 0x14012b9a7
sub r8d, 1
je 0x14012b99e
sub r8d, 1
je 0x14012b995
lea rdx, [0x140284558]
mov rcx, r9
cmp r8d, 1
je 0x14012b982
lea r8, str.Internal_state_machine_error
call fcn.140100cb0
mov eax, Ordinal_73
add rsp, 0x28
ret
lea r8, str.TFTP_finished
call fcn.140100de0
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14012b470
add rsp, 0x28
jmp fcn.14012b140
add rsp, 0x28
jmp 0x14012aa20