Function at 0x140007c10
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140040090]
xor rax, rsp
mov qword [rbp], rax
mov rax, qword [rbp + 0x68]
lea rcx, [rbp - 0x70]
xor r15d, r15d
mov qword [rbp - 0x80], rax
mov r14, rdx
mov qword [rsp + 0x78], r15
xor edx, edx
mov qword [rsp + 0x60], r15
mov rsi, r9
mov qword [rsp + 0x70], r15
lea r8d, [r15 + 0x70]
mov qword [rsp + 0x68], r15
mov edi, r15d
lea ebx, [r15 + 1]
call fcn.14000d6c0
mov dword [rbp - 0x70], 0x70
lea rax, str.winsta0default
mov qword [rbp - 0x60], rax
test rsi, rsi
jne 0x140007c90
mov ebx, r15d
jmp 0x140007dce
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x78]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140007dbb
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], ebx
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140007dbb
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x70]
mov r8d, ebx
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x140007dbb
lea r9, [rsp + 0x68]
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x68]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140007dbb
lea r9, [rsp + 0x68]
xor r8d, r8d
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x140007dbb
mov qword [rsp + 0x30], r15
lea r9, [rbp - 0x80]
mov qword [rsp + 0x28], r15
xor edx, edx
mov r8d, 0x20000
mov qword [rsp + 0x20], 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x140007dbb
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rsi
xor r9d, r9d
mov qword [rsp + 0x48], rax
mov r8, r14
mov rax, qword [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x80410
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r15
mov qword [rbp - 8], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x140007dbe
mov ebx, r15d
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140007dce
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140007de8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140007df8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140007e1a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x140007e23
mov rax, qword [rsi]
jmp 0x140007e26
mov rax, r15
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14000b5d0
mov rbx, qword [rsp + 0x140]
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret