Function at 0x14012fc90
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 [0x1402ba030]
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.0x14012fd04.1
lea rdx, [0x140000000]
mov ecx, dword [rdx + rsi*4 + 0x13038c]
add rcx, rdx
jmp rcx
inc dword [rbx + 0x20]
mov eax, dword [rbx + 0x20]
cmp eax, dword [rbx + 0x28]
jle 0x14012fd25
mov dword [rbx + 8], 0xffffff9e
xor eax, eax
mov dword [rbx], 3
jmp 0x140130360
mov rax, qword [rbx + 0x158]
cmp byte [r15 + 0xaa6], dil
mov byte [rax], dil
mov rax, qword [rbx + 0x158]
je 0x14012fd98
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 0x14012fd9c
mov eax, dword [r15 + 0xb14]
test rcx, rcx
js 0x14012fd85
or eax, 0x20
mov qword [r15 + 0xaf0], rcx
mov dword [r15 + 0xb14], eax
jmp 0x14012fd9c
and eax, 0xffffffdf
mov qword [r15 + 0xaf0], rdi
mov dword [r15 + 0xb14], eax
jmp 0x14012fd9c
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 0x14012fdb7
lea rcx, [rdi + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
jne 0x14012fddb
lea eax, [r14 + 0x1b]
jmp 0x140130360
test rdi, rdi
je 0x14012fe6e
movzx ecx, byte [rsi]
cmp cl, 0x25
jne 0x14012fe56
cmp rdi, 2
jbe 0x14012fe5a
movzx edx, byte [rsi + 1]
lea eax, [rdx - 0x30]
cmp al, 9
jbe 0x14012fe0b
lea eax, [rdx - 0x61]
cmp al, 5
jbe 0x14012fe0b
lea eax, [rdx - 0x41]
cmp al, 5
ja 0x14012fe5a
movzx r8d, byte [rsi + 2]
lea eax, [r8 - 0x30]
cmp al, 9
jbe 0x14012fe28
lea eax, [r8 - 0x61]
cmp al, 5
jbe 0x14012fe28
lea eax, [r8 - 0x41]
cmp al, 5
ja 0x14012fe5a
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 0x14012fed6
mov byte [r14 + r12], cl
inc rsi
inc r12
sub rdi, 1
jne 0x14012fde4
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 0x14012fe90
mov rcx, rdx
sub rcx, rax
mov rax, r13
sub rcx, 4
inc rax
cmp byte [r14 + rax], dil
jne 0x14012fea6
cmp rax, rcx
jbe 0x14012fee9
lea rdx, str.TFTP_file_name_too_long
mov rcx, r15
call fcn.140105f20
mov rcx, r14
call qword [0x1402ba0c8]
mov eax, Ordinal_73
jmp 0x140130360
mov rcx, r14
call qword [0x1402ba0c8]
mov eax, 3
jmp 0x140130360
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 0x14012ff15
mov rax, r13
cmp byte [r14 + rax + 1], dil
lea rax, [rax + 1]
jne 0x14012ff21
lea rsi, [rax + 4]
add rsi, rcx
cmp byte [r15 + 0xa8b], dil
jne 0x140130225
cmp byte [r15 + 0xaa6], dil
je 0x14012ff6d
mov r9, qword [r15 + 0x1158]
cmp r9, r13
je 0x14012ff6d
lea r8, str._I64d
mov edx, 0x40
lea rcx, [rsp + 0x60]
call sym.CheraxLoader.exe_curl_msnprintf
jmp 0x14012ff77
mov eax, 0x30
mov word [rsp + 0x60], ax
movsxd rax, dword [rbx + 0x144]
lea r8, [rsi + 6]
cmp r8, rax
jbe 0x14012ff8e
lea rcx, [rsp + 0x60]
jmp 0x14012ffe3
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 0x14012ffa0
lea rcx, [rsp + 0x60]
mov rax, r13
nop dword [rax]
cmp byte [rcx + rax + 1], dil
lea rax, [rax + 1]
jne 0x14012ffc0
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x144]
add rcx, r8
cmp rcx, rax
lea rcx, [rsp + 0x60]
jbe 0x140130021
mov r9d, dword [rbx + 0x148]
lea r8, [0x14028a6b0]
mov edx, 0x40
call sym.CheraxLoader.exe_curl_msnprintf
mov r9d, dword [rbx + 0x24]
lea r8, [0x14028a6b0]
mov edx, 0x40
lea rcx, [rsp + 0x60]
call sym.CheraxLoader.exe_curl_msnprintf
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x14012febb
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 0x140130030
lea rcx, [rsp + 0x60]
mov rax, r13
nop dword [rax]
cmp byte [rcx + rax + 1], dil
lea rax, [rax + 1]
jne 0x140130050
mov r9d, dword [rbx + 0x148]
lea rdi, [rax + 1]
add rdi, r8
lea rcx, [rsp + 0x60]
lea r8, [0x14028a6b0]
mov edx, 0x40
call sym.CheraxLoader.exe_curl_msnprintf
movsxd rax, dword [rbx + 0x144]
lea r8, [rdi + 8]
cmp r8, rax
ja 0x14012fffb
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 0x1401300b0
lea rcx, [rsp + 0x60]
mov rax, r13
nop dword [rax]
cmp byte [rcx + rax + 1], r12b
lea rax, [rax + 1]
jne 0x1401300d0
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x144]
add rcx, r8
cmp rcx, rax
lea rcx, [rsp + 0x60]
jbe 0x140130114
mov r9d, dword [rbx + 0x24]
lea r8, [0x14028a6b0]
mov edx, 0x40
call sym.CheraxLoader.exe_curl_msnprintf
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x14012febb
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 0x140130120
lea rcx, [rsp + 0x60]
mov rax, r13
nop dword [rax]
cmp byte [rcx + rax + 1], r12b
lea rax, [rax + 1]
jne 0x140130140
mov r9d, dword [rbx + 0x24]
lea rdi, [rax + 1]
add rdi, r8
lea rcx, [rsp + 0x60]
lea r8, [0x14028a6b0]
mov edx, 0x40
call sym.CheraxLoader.exe_curl_msnprintf
movsxd rax, dword [rbx + 0x144]
lea r8, [rdi + 8]
cmp r8, rax
ja 0x1401301ce
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 0x140130190
lea rcx, [rsp + 0x60]
mov rax, r13
nop dword [rax]
cmp byte [rcx + rax + 1], r12b
lea rax, [rax + 1]
jne 0x1401301b0
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x144]
add rcx, r8
cmp rcx, rax
jbe 0x1401301da
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x14012febb
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 0x1401301f0
lea rax, [rsp + 0x60]
nop word [rax + rax]
cmp byte [rax + r13 + 1], r12b
lea r13, [r13 + 1]
jne 0x140130210
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 0x14013027f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp - 0x60]
call fcn.1400e7750
mov r8, rax
lea rdx, [0x14028a6ac]
mov rcx, r15
call fcn.140105f20
mov rcx, r14
call qword [0x1402ba0c8]
jmp 0x14013035e
lea rdx, [0x14028a6ac]
mov rcx, r15
cmp byte [r15 + 0xaa6], dil
je 0x1401302d5
lea r8, str.Connected_for_transmit
call fcn.140106050
mov rcx, rbx
mov dword [rbx], 2
call fcn.14012f810
mov edi, eax
test eax, eax
jne 0x14013035e
mov edx, esi
mov rcx, rbx
call fcn.1401306e0
mov edi, eax
jmp 0x14013035e
lea r8, str.Connected_for_receive
call fcn.140106050
mov rcx, rbx
mov dword [rbx], 1
call fcn.14012f810
mov edi, eax
test eax, eax
jne 0x14013035e
mov edx, esi
mov rcx, rbx
call fcn.1401303b0
mov edi, eax
jmp 0x14013035e
lea r8, str.Connected_for_transmit
mov rcx, r15
lea rdx, [0x14028a6ac]
call fcn.140106050
mov rcx, rbx
mov dword [rbx], 2
call fcn.14012f810
mov edi, eax
test eax, eax
jne 0x14013035e
mov edx, esi
mov rcx, rbx
call fcn.1401306e0
mov edi, eax
jmp 0x14013035e
lea rdx, [0x14028a6ac]
mov rcx, r15
jmp 0x1401302d5
mov dword [rbx], 3
jmp 0x14013035e
lea rdx, str.tftp_send_first:_internal_error
mov rcx, r15
call fcn.140105f20
mov eax, edi
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1401526c0
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 0x140130c17
sub r8d, 1
je 0x140130c0e
sub r8d, 1
je 0x140130c05
lea rdx, [0x14028a6ac]
mov rcx, r9
cmp r8d, 1
je 0x140130bf2
lea r8, str.Internal_state_machine_error
call fcn.140105f20
mov eax, Ordinal_73
add rsp, 0x28
ret
lea r8, str.TFTP_finished
call fcn.140106050
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1401306e0
add rsp, 0x28
jmp fcn.1401303b0
add rsp, 0x28
jmp 0x14012fc90