Function at 0x140012160
Capabilities:
Create pipe
Create process on windows
Create process suspended
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x9d0
mov rax, qword [0x140057080]
xor rax, rsp
mov qword [rsp + 0x9c0], rax
lea rdx, [rsp + 0x248]
lea rcx, [rsp + 0x60]
call fcn.140012c40
mov rcx, rax
call fcn.140017a40
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x1b8]
lea rcx, [rsp + 0x61]
call fcn.140012c10
mov rcx, rax
call fcn.140017a00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0xe8], rax
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe8]
call fcn.140011f40
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x238]
lea rcx, [rsp + 0x62]
call fcn.140012ca0
mov rcx, rax
call fcn.140017a20
mov qword [rsp + 0xf0], rax
lea rdx, [rsp + 0x1c8]
lea rcx, [rsp + 0x63]
call fcn.140012c70
mov rcx, rax
call fcn.140017a00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0xf8], rax
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
call fcn.140011f40
mov qword [rsp + 0x150], rax
lea rdx, [rsp + 0x290]
lea rcx, [rsp + 0x64]
call fcn.140012d00
mov rcx, rax
call fcn.140017a60
mov qword [rsp + 0x100], rax
lea rdx, [rsp + 0x1d8]
lea rcx, [rsp + 0x65]
call fcn.140012cd0
mov rcx, rax
call fcn.140017a00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x108], rax
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x108]
call fcn.140011f40
mov qword [rsp + 0xc0], rax
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x66]
call fcn.140012d60
mov rcx, rax
call fcn.140017a40
mov qword [rsp + 0x110], rax
lea rdx, [rsp + 0x1e8]
lea rcx, [rsp + 0x67]
call fcn.140012d30
mov rcx, rax
call fcn.140017a00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x118], rax
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x118]
call fcn.140011f40
mov qword [rsp + 0x180], rax
lea rdx, [rsp + 0x278]
lea rcx, [rsp + 0x68]
call fcn.140012dc0
mov rcx, rax
call fcn.140017a40
mov qword [rsp + 0x120], rax
lea rdx, [rsp + 0x1f8]
lea rcx, [rsp + 0x69]
call fcn.140012d90
mov rcx, rax
call fcn.140017a00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x128], rax
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x128]
call fcn.140011f40
mov qword [rsp + 0x190], rax
lea rdx, [rsp + 0x228]
lea rcx, [rsp + 0x6a]
call fcn.140012e20
mov rcx, rax
call fcn.140017aa0
mov qword [rsp + 0x130], rax
lea rdx, [rsp + 0x208]
lea rcx, [rsp + 0x6b]
call fcn.140012df0
mov rcx, rax
call fcn.140017a00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x138], rax
mov rdx, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x138]
call fcn.140011f40
mov qword [rsp + 0x1a0], rax
lea rdx, [rsp + 0x2a8]
lea rcx, [rsp + 0x6c]
call fcn.140012e80
mov rcx, rax
call fcn.140017a80
mov qword [rsp + 0x140], rax
lea rdx, [rsp + 0x218]
lea rcx, [rsp + 0x6d]
call fcn.140012e50
mov rcx, rax
call fcn.140017a00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x148], rax
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x148]
call fcn.140011f40
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x2c0], 0
mov dword [rsp + 0x308], 0x18
mov dword [rsp + 0x318], 1
mov qword [rsp + 0x310], 0
xor r9d, r9d
lea r8, [rsp + 0x308]
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1400124d1
xor eax, eax
jmp 0x140012bf0
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x1400124f2
xor eax, eax
jmp 0x140012bf0
mov dword [rsp + 0x3a8], 0x30
lea rax, [rsp + 0x3b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
lea rax, [rsp + 0x320]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x320], 0x68
mov rax, qword [rsp + 0x2c0]
mov qword [rsp + 0x380], rax
mov rax, qword [rsp + 0x2c0]
mov qword [rsp + 0x378], rax
mov eax, dword [rsp + 0x35c]
bts eax, 8
mov dword [rsp + 0x35c], eax
lea rax, [rsp + 0x2d8]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0x2d8]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x320]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x9e0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400125ef
mov rcx, qword [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140012bf0
mov qword [rsp + 0x2f0], 0
mov eax, dword [rsp + 0x9f0]
mov dword [rsp + 0x390], eax
lea rax, [rsp + 0x394]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x158], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0x40
lea r9, [rsp + 0x390]
xor r8d, r8d
mov edx, 0xf001f
lea rcx, [rsp + 0x2f0]
call qword [rsp + 0x158]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x1400126af
mov rcx, qword [rsp + 0x2d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140012bf0
mov qword [rsp + 0x2f8], 0
mov qword [rsp + 0x398], 0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x170], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x2f0]
mov qword [rsp + 0x168], rax
mov dword [rsp + 0x48], 0x40
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
lea rax, [rsp + 0x398]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x9f0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x2f8]
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x168]
call qword [rsp + 0x170]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14001279c
mov rcx, qword [rsp + 0x2d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140012bf0
mov r8, qword [rsp + 0x9f0]
mov rdx, qword [rsp + 0x9e8]
mov rcx, qword [rsp + 0x2f8]
call fcn.140010940
mov qword [rsp + 0x300], 0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x178], rax
mov dword [rsp + 0x48], 0x40
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
lea rax, [rsp + 0x398]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x9f0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x300]
mov rdx, qword [rsp + 0x2d8]
mov rcx, qword [rsp + 0x2f0]
call qword [rsp + 0x178]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14001287c
mov rcx, qword [rsp + 0x2d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140012bf0
mov dword [rsp + 0x410], 0x10000b
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x188], rax
lea rdx, [rsp + 0x3e0]
mov rcx, qword [rsp + 0x2e0]
call qword [rsp + 0x188]
mov rax, qword [rsp + 0x300]
mov qword [rsp + 0x4d8], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x198], rax
lea rdx, [rsp + 0x3e0]
mov rcx, qword [rsp + 0x2e0]
call qword [rsp + 0x198]
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x1a8], rax
xor edx, edx
mov rcx, qword [rsp + 0x2e0]
call qword [rsp + 0x1a8]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140012950
mov rcx, qword [rsp + 0x2d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140012bf0
cmp qword [rsp + 0x2e0], 0
je 0x140012b6a
mov eax, 0xffffffff
mov qword [rsp + 0x3a0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
lea r8, [rsp + 0x3a0]
xor edx, edx
mov rcx, qword [rsp + 0x2e0]
call qword [rsp + 0xa8]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x70], 0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x1b0], rax
mov ecx, 1
call fcn.140029554
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400129e0
xor eax, eax
jmp 0x140012bf0
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
mov byte [rcx + rax], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c8]
mov r8d, 0x103
lea rdx, [rsp + 0x8b0]
mov rcx, qword [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
je 0x140012a34
cmp dword [rsp + 0x2c8], 0
jne 0x140012a39
jmp 0x140012b18
mov eax, dword [rsp + 0x2c8]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0x104
jae 0x140012a58
jmp 0x140012a5d
call fcn.1400203c4
mov rax, qword [rsp + 0x90]
mov byte [rsp + rax + 0x8b0], 0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x78], 0xffffffffffffffff
inc qword [rsp + 0x78]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
cmp byte [rax + rcx], 0
jne 0x140012a83
mov rax, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x2c8]
add rax, rcx
add rax, 2
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call fcn.14002955c
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jne 0x140012aea
mov rcx, qword [rsp + 0x58]
call fcn.140027138
xor eax, eax
jmp 0x140012bf0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x2c8]
mov r8d, eax
lea rdx, [rsp + 0x8b0]
mov rcx, qword [rsp + 0x58]
call fcn.140029580
jmp 0x1400129f2
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x80], 0xffffffffffffffff
inc qword [rsp + 0x80]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x80]
cmp byte [rax + rcx], 0
jne 0x140012b31
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
mov byte [rcx + rax], 0
mov rcx, qword [rsp + 0x58]
call fcn.140027138
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x2f8]
mov qword [rsp + 0xc8], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
call qword [rsp + 0xd8]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x2d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x9c0]
xor rcx, rsp
call fcn.1400206d0
add rsp, 0x9d0
pop rdi
ret