Function at 0x140011550
Capabilities:
Check for protected handle exception
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe78]
sub rsp, 0xf78
mov rax, qword [0x1400d1608]
xor rax, rsp
mov qword [rbp + 0xe60], rax
mov rbx, qword [rbp + 0xee0]
mov r12, qword [rbp + 0xee8]
mov r15, qword [rbp + 0xef0]
xor edi, edi
xor eax, eax
mov qword [rsp + 0x70], r8
mov r13, rcx
mov r14, rdx
lea r8d, [rdi + 0x68]
lea rcx, [rbp - 0x60]
xor edx, edx
mov rsi, r9
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
mov dword [rbp - 0x70], edi
mov qword [rbp - 0x68], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call fcn.140070680
mov dword [rbp - 0x60], 0x68
mov dword [rbp - 0x24], 0x101
mov word [rbp - 0x20], di
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [rsi]
mov rdi, rax
call fcn.140082984
mov dword [rsp + 0x30], 2
lea r9, [rbp - 0x10]
mov r8, rdi
mov rcx, rdi
mov rdx, rax
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, dword [rbx + 4]
call fcn.140082984
mov dword [rsp + 0x30], 2
lea r9, [rbp - 8]
mov r8, rdi
mov rcx, rdi
mov rdx, rax
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, dword [r12 + 4]
call fcn.140082984
mov dword [rsp + 0x30], 2
lea r9, [rbp]
mov r8, rdi
mov rcx, rdi
mov rdx, rax
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, dword [rsi + 4]
call fcn.140082984
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov ecx, dword [rbx]
call fcn.140082984
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov ecx, dword [r12]
call fcn.140082984
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rdx, qword [r13 + 0x8d0]
mov rdi, qword [rdx + 0x98]
test rdi, rdi
jne 0x1400117f5
lea rax, [0x1400a36f0]
mov qword [rsp + 0x30], r14
lea r8, [rbp + 0x320]
lea rdx, [rsp + 0x50]
mov r9d, 0x30c
mov rcx, r13
mov qword [rsp + 0x28], r15
mov word [rbp + 0x10], di
mov qword [rsp + 0x20], rax
call fcn.140011520
cmp dword [rsp + 0x50], edi
jne 0x14001190c
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0x320]
mov rcx, r13
mov qword [rbp - 0x68], rdi
call fcn.140009340
test eax, eax
je 0x1400117a7
lea r8, [rbp + 0x940]
lea rdx, [rbp + 0x320]
mov r9d, 0x104
mov rcx, r13
call fcn.1400090c0
lea rdx, [0x1400a2764]
lea rcx, [rbp + 0x940]
call fcn.14007e750
xor ecx, ecx
test rax, rax
mov rdi, rax
setne cl
test ecx, ecx
je 0x1400117a7
test rax, rax
je 0x1400117a0
lea rcx, [rbp + 0x10]
mov r8, rax
mov edx, 0x30c
call fcn.14007ec64
mov rcx, rdi
call fcn.14007e7e0
mov byte [rbp + 0x31b], 0
cmp byte [rbp + 0x10], 0x23
jne 0x1400117ed
cmp byte [rbp + 0x11], 0x21
jne 0x1400117ed
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x12]
repne scasb al, byte [rdi]
lea rax, [rbp + 0x12]
not rcx
lea rdi, [rbp + rcx + 0x10]
cmp rdi, rax
jbe 0x1400117f1
movzx ecx, byte [rdi]
call fcn.140074650
test eax, eax
je 0x1400117f1
lea rax, [rbp + 0x12]
mov byte [rdi], 0
dec rdi
cmp rdi, rax
ja 0x1400117d0
jmp 0x1400117f1
mov byte [rbp + 0x12], 0
lea rdi, [rbp + 0x12]
cmp byte [rdi], 0
je 0x140011819
lea r8, [rbp + 0xb50]
xor r9d, r9d
mov edx, 0x30c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea rdi, [rbp + 0xb50]
lea r8, [rbp + 0x630]
xor r9d, r9d
mov edx, 0x30c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp byte [rdi], 0
lea rax, [rbp + 0x630]
mov r9d, 0x30c
lea r8, [rbp + 0x320]
lea rdx, [rsp + 0x50]
mov rcx, r13
je 0x140011874
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rax
lea rax, str.__s____s_s_
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140011520
jmp 0x14001188f
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
lea rax, str.__s_s_
mov qword [rsp + 0x20], rax
call fcn.140011520
cmp dword [rsp + 0x50], 0
jne 0x14001190c
lea rax, [rsp + 0x58]
lea rdx, [rbp + 0x320]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140011915
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [rbp + 0x320]
lea r8, str.spawn_process
lea rdx, str._s:_CreateProcess__s_:__ld
mov rcx, r13
mov dword [rsp + 0x20], eax
call fcn.14000e440
mov qword [rsp + 0x58], 0xffffffffffffffff
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140011943
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rbp + 0xe60]
xor rcx, rsp
call fcn.14006f1f0
add rsp, 0xf78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret