Function at 0x140003d40
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbx, rdx
mov qword [r11 - 0x20], rdx
xor esi, esi
mov rdi, qword [0x14000cac8]
cmp byte [0x14000cac1], sil
je 0x140003ee4
mov dword [r11 - 0x18], esi
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x18]
cmp rcx, rdx
jae 0x140003daf
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140003da7
mov rax, qword [rbx]
mov word [rax + rcx], 0xa
jmp 0x140003dba
mov r9b, 0xa
mov rcx, rbx
call fcn.140003420
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140003dc7
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x90]
mov r8d, dword [rbx + 0x10]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140003f64
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0x18
jb 0x140003fd5
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140003e12
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x18
lea r9, str.Couldnt_write_command_
lea rcx, [rsp + 0x68]
call fcn.1400041f0
nop
mov r8d, reloc.WS2_32.dll_inet_addr
lea rdx, str._to_stdIn.
lea rcx, [rsp + 0x68]
call fcn.140003fe0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], send
mov byte [rax], 0
mov r8d, 2
lea rdx, [rsp + 0x40]
mov rcx, qword [0x14000cab8]
call fcn.140005d70
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0x10
jb 0x140003f64
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003eda
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003eda
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400060ac
jmp 0x140003f64
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], send
mov ecx, 0x30
call fcn.140006070
mov rdx, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0x23
mov qword [rsp + 0x58], 0x2f
movups xmm0, xmmword [str.Couldnt_write_to_CMD:_CMD_not_open]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400087d0]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x1400087e0]
mov word [rax + 0x20], cx
movzx eax, byte [0x1400087e2]
mov byte [rdx + 0x22], al
mov byte [rdx + 0x23], 0
mov r8d, 2
lea rdx, [rsp + 0x40]
mov rcx, qword [0x14000cab8]
call fcn.140005d70
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140003f9a
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140003f95
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003fce
mov rcx, r8
call fcn.1400060ac
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], send
mov byte [rbx], 0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140006050
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400014c0
nop
int3