Function at 0x14014cd10
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 [0x1402dc040]
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 + 0x130a], sil
cmove r12, rax
cmp ebx, 7
ja case.0x14014be19.1
lea r13, [0x140000000]
mov eax, dword [r13 + rbx*4 + 0x14c494]
add rax, r13
jmp rax
inc dword [rcx + 0x20]
mov eax, dword [rcx + 0x20]
cmp eax, dword [rcx + 0x28]
jle 0x14014be3a
mov dword [rcx + 8], 0xffffff9e
xor eax, eax
mov dword [rcx], 3
jmp 0x14014c467
mov rax, qword [rcx + 0x158]
cmp byte [r15 + 0x130f], sil
mov byte [rax], sil
mov rax, qword [rcx + 0x158]
je 0x14014be97
mov byte [rax + 1], 2
mov rcx, qword [r15 + 0x1138]
cmp rcx, 0xffffffffffffffff
je 0x14014be9b
mov eax, dword [r15 + 0xb24]
test rcx, rcx
js 0x14014be84
or eax, 0x20
mov qword [r15 + 0xb00], rcx
mov dword [r15 + 0xb24], eax
jmp 0x14014be9b
and eax, 0xffffffdf
mov qword [r15 + 0xb00], rsi
mov dword [r15 + 0xb24], eax
jmp 0x14014be9b
mov byte [rax + 1], 1
mov rax, qword [rdi + 0x10]
mov r14, 0xffffffffffffffff
mov rbx, r14
mov rsi, qword [rax + 0x1188]
inc rsi
inc rbx
cmp byte [rsi + rbx], 0
jne 0x14014beb3
lea rcx, [rbx + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rax
test rax, rax
jne 0x14014bed8
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14014c467
mov rbp, rax
test rbx, rbx
je 0x14014bf5e
movzx edx, byte [rsi]
cmp dl, 0x25
jne 0x14014bf49
cmp rbx, 2
jbe 0x14014bf49
movzx ecx, byte [rsi + 1]
lea eax, [rcx - 0x30]
cmp al, 9
jbe 0x14014bf0c
lea eax, [rcx - 0x61]
cmp al, 5
jbe 0x14014bf0c
sub cl, 0x41
cmp cl, 5
ja 0x14014bf49
movsx rcx, byte [rsi + 2]
lea eax, [rcx - 0x30]
cmp al, 9
jbe 0x14014bf26
lea eax, [rcx - 0x61]
cmp al, 5
jbe 0x14014bf26
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x14014bf49
movsx rax, byte [rsi + 1]
add rsi, 3
movzx edx, byte [rax + r13 + 0x26bf78]
shl dl, 4
or dl, byte [rcx + r13 + 0x26bf78]
sub rbx, 3
jmp 0x14014bf4f
inc rsi
dec rbx
test dl, dl
je 0x14014bfc0
mov byte [r8], dl
inc r8
test rbx, rbx
jne 0x14014bee4
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 0x14014bf72
mov rcx, rdx
sub rcx, rax
mov rax, r14
sub rcx, 4
nop dword [rax + rax]
inc rax
cmp byte [rax + rbp], sil
jne 0x14014bf90
cmp rax, rcx
jbe 0x14014bfd3
lea rdx, str.TFTP_file_name_too_long
mov rcx, r15
call fcn.140101f40
mov rcx, rbp
call qword [fcn.14016f1de]
mov eax, Ordinal_73
jmp 0x14014c467
mov rcx, rbp
call qword [fcn.14016f1de]
mov eax, 3
jmp 0x14014c467
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 0x14014c000
mov rax, r14
nop dword [rax]
cmp byte [r12 + rax + 1], sil
lea rax, [rax + 1]
jne 0x14014c010
lea rbx, [rax + 4]
add rbx, rcx
cmp byte [r15 + 0xa9c], sil
jne 0x14014c328
cmp byte [r15 + 0x130f], sil
je 0x14014c05c
mov r9, qword [r15 + 0x1138]
cmp r9, r14
je 0x14014c05c
lea r8, str._lld
mov edx, 0x40
lea rcx, [rsp + 0x40]
call sym.CheraxLoader.exe_curl_msnprintf
jmp 0x14014c066
mov eax, 0x30
mov word [rsp + 0x40], ax
movsxd rax, dword [rdi + 0x144]
lea rcx, [rbx + 6]
cmp rcx, rax
jbe 0x14014c0b9
mov r9d, dword [rdi + 0x148]
lea r8, [0x1402a8780]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call sym.CheraxLoader.exe_curl_msnprintf
mov r9d, dword [rdi + 0x24]
lea r8, [0x1402a8780]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call sym.CheraxLoader.exe_curl_msnprintf
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x14014bfa5
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 0x14014c0d0
add rbx, 6
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
cmp byte [rcx + rax + 1], sil
lea rax, [rax + 1]
jne 0x14014c0f0
lea rcx, [rax + 1]
movsxd rax, dword [rdi + 0x144]
add rcx, rbx
cmp rcx, rax
jbe 0x14014c115
mov esi, Ordinal_73
jmp 0x14014c15f
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 0x14014c130
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
inc rax
cmp byte [rcx + rax], sil
jne 0x14014c150
inc rbx
add rbx, rax
mov r9d, dword [rdi + 0x148]
lea r8, [0x1402a8780]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call sym.CheraxLoader.exe_curl_msnprintf
test esi, esi
jne 0x14014c242
movsxd rcx, dword [rdi + 0x144]
lea rax, [rbx + 8]
cmp rax, rcx
jbe 0x14014c19b
mov esi, Ordinal_73
jmp 0x14014c1c8
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 0x14014c1b0
add rbx, 8
mov esi, r13d
test esi, esi
jne 0x14014c242
lea rcx, [rsp + 0x40]
mov rax, r14
cmp byte [rcx + rax + 1], r13b
lea rax, [rax + 1]
jne 0x14014c1d4
lea rcx, [rax + 1]
movsxd rax, dword [rdi + 0x144]
add rcx, rbx
cmp rcx, rax
jbe 0x14014c1f9
mov esi, Ordinal_73
jmp 0x14014c242
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 0x14014c210
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
inc rax
cmp byte [rcx + rax], r13b
jne 0x14014c230
inc rbx
mov esi, r13d
add rbx, rax
mov r9d, dword [rdi + 0x24]
lea r8, [0x1402a8780]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call sym.CheraxLoader.exe_curl_msnprintf
test esi, esi
jne 0x14014c31c
movsxd rcx, dword [rdi + 0x144]
lea rax, [rbx + 8]
cmp rax, rcx
ja 0x14014c31c
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 0x14014c290
add rbx, 8
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
cmp byte [rcx + rax + 1], r13b
lea rax, [rax + 1]
jne 0x14014c2b0
lea rcx, [rax + 1]
movsxd rax, dword [rdi + 0x144]
add rcx, rbx
cmp rcx, rax
jbe 0x14014c2d5
mov esi, Ordinal_73
jmp 0x14014c318
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 0x14014c2f0
lea rax, [rsp + 0x40]
inc r14
cmp byte [rax + r14], r13b
jne 0x14014c306
inc rbx
mov esi, r13d
add rbx, r14
test esi, esi
je 0x14014c328
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x14014bfa5
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 0x14014c386
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rsp + 0x80]
call fcn.1400fb380
mov r8, rax
lea rdx, [0x1402a877c]
mov rcx, r15
call fcn.140101f40
mov rcx, rbp
call qword [fcn.14016f1de]
jmp 0x14014c465
lea rdx, [0x1402a877c]
mov rcx, r15
cmp byte [r15 + 0x130f], sil
je 0x14014c3dc
lea r8, str.Connected_for_transmit
call fcn.140102070
mov rcx, rdi
mov dword [rdi], 2
call fcn.14014b910
mov esi, eax
test eax, eax
jne 0x14014c465
mov edx, ebx
mov rcx, rdi
call fcn.14014c800
mov esi, eax
jmp 0x14014c465
lea r8, str.Connected_for_receive
call fcn.140102070
mov rcx, rdi
mov dword [rdi], 1
call fcn.14014b910
mov esi, eax
test eax, eax
jne 0x14014c465
mov edx, ebx
mov rcx, rdi
call fcn.14014c4c0
mov esi, eax
jmp 0x14014c465
lea r8, str.Connected_for_transmit
mov rcx, r15
lea rdx, [0x1402a877c]
call fcn.140102070
mov rcx, rdi
mov dword [rdi], 2
call fcn.14014b910
mov esi, eax
test eax, eax
jne 0x14014c465
mov edx, ebx
mov rcx, rdi
call fcn.14014c800
mov esi, eax
jmp 0x14014c465
lea rdx, [0x1402a877c]
mov rcx, r15
jmp 0x14014c3dc
mov dword [rcx], 3
jmp 0x14014c465
lea rdx, str.tftp_send_first:_internal_error
mov rcx, r15
call fcn.140101f40
mov eax, esi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14016dfe0
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 0x14014cd77
sub r8d, 1
je 0x14014cd6e
sub r8d, 1
je 0x14014cd65
lea rdx, [0x1402a877c]
mov rcx, r9
cmp r8d, 1
je 0x14014cd52
lea r8, str.Internal_state_machine_error
call fcn.140101f40
mov eax, Ordinal_73
add rsp, 0x28
ret
lea r8, str.TFTP_finished
call fcn.140102070
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14014c800
add rsp, 0x28
jmp fcn.14014c4c0
add rsp, 0x28
jmp 0x14014bdb0