Function at 0x180004660
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 [0x18000e010]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbx, rdx
mov qword [r11 - 0x20], rdx
xor esi, esi
mov rdi, qword [0x18000eac8]
cmp byte [0x18000eac1], sil
je 0x180004804
mov dword [r11 - 0x18], esi
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x18]
cmp rcx, rdx
jae 0x1800046cf
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1800046c7
mov rax, qword [rbx]
mov word [rax + rcx], 0xa
jmp 0x1800046da
mov r9b, 0xa
mov rcx, rbx
call fcn.180003a60
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1800046e7
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 0x180004884
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0x18
jb 0x1800048f5
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x180004732
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.180004900
nop
mov r8d, reloc.WS2_32.dll_inet_addr
lea rdx, str._to_stdIn.
lea rcx, [rsp + 0x68]
call fcn.180003590
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], recv
mov byte [rax], 0
mov r8d, 2
lea rdx, [rsp + 0x40]
mov rcx, qword [0x18000eab8]
call fcn.180008080
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0x10
jb 0x180004884
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800047fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800047fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800083bc
jmp 0x180004884
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], recv
mov ecx, 0x30
call fcn.180008380
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 [0x18000a850]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x18000a860]
mov word [rax + 0x20], cx
movzx eax, byte [0x18000a862]
mov byte [rdx + 0x22], al
mov byte [rdx + 0x23], 0
mov r8d, 2
lea rdx, [rsp + 0x40]
mov rcx, qword [0x18000eab8]
call fcn.180008080
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1800048ba
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1800048b5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800048ee
mov rcx, r8
call fcn.1800083bc
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], recv
mov byte [rbx], 0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.180008360
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.180001460
nop
int3