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

Disassembly:
jmp 0x1400128f0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x238
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x258]
mov rax, qword [0x140020038]
xor rax, rbp
mov qword [rbp + 0x1e0], rax
lea rcx, [0x1400260a7]
call fcn.140011406
cmp dword [rbp + 0x230], 0
je 0x1400129de
mov rax, qword [rbp + 0x220]
mov rax, qword [rax]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x228]
mov rax, qword [rax]
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x24], 0x2000
mov dword [rbp + 0x84], 0
jmp 0x140012990
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0x1000
jge 0x1400129c8
movsxd rax, dword [rbp + 0x84]
mov rcx, qword [rbp + 0x48]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rax, dword [rbp + 0x84]
mov rcx, qword [rbp + 0x68]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140012982
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll_free]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ucrtbased.dll_free]
jmp 0x1400129e5
mov dword [rbp + 0x24], 0x1000
movsxd rax, dword [rbp + 0x24]
mov qword [rbp + 0x1d8], rax
mov eax, 8
mov rcx, qword [rbp + 0x1d8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0xa8], rax
movsxd rax, dword [rbp + 0x24]
mov qword [rbp + 0x1d8], rax
mov eax, 8
mov rcx, qword [rbp + 0x1d8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0xc8], rax
mov dword [rbp + 0xe4], 0
jmp 0x140012a69
mov eax, dword [rbp + 0xe4]
inc eax
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 0xe4], eax
jge 0x140012b72
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov eax, dword [rbp + 0x210]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x210]
mov dword [rsp + 0x20], eax
mov r9d, 0xff
xor r8d, r8d
mov edx, 3
lea rcx, str..pipeinnocent
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
movsxd rcx, dword [rbp + 0xe4]
mov rdx, qword [rbp + 0xa8]
mov qword [rdx + rcx*8], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, str..pipeinnocent
call qword [sym.imp.KERNEL32.dll_CreateFileW]
movsxd rcx, dword [rbp + 0xe4]
mov rdx, qword [rbp + 0xc8]
mov qword [rdx + rcx*8], rax
movsxd rax, dword [rbp + 0xe4]
mov qword [rsp + 0x20], 0
lea r9, [rbp + 4]
mov r8d, dword [rbp + 0x210]
mov rdx, qword [rbp + 0x218]
mov rcx, qword [rbp + 0xc8]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0x104], eax
cmp dword [rbp + 0x104], 0
jne 0x140012b6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_writeFile_payloadMid__d
call fcn.1400111c7
mov eax, 0xffffffff
jmp 0x140012b96
jmp 0x140012a5b
mov rax, qword [rbp + 0x220]
mov rcx, qword [rbp + 0xa8]
mov qword [rax], rcx
mov rax, qword [rbp + 0x228]
mov rcx, qword [rbp + 0xc8]
mov qword [rax], rcx
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001cc80]
call fcn.14001137a
mov rax, rdi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rbp
call fcn.1400111e0
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret