Function at 0x1400086a0
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1400163a0]
xor rax, rsp
mov qword [rbp + 8], rax
mov rsi, rdx
mov dword [rbp], 0
xor edx, edx
mov word [rbp + 4], 0x500
mov r14, rcx
lea rcx, [rbp - 0x70]
lea r8d, [rdx + 0x68]
call sub.VCRUNTIME140.dll_memset
lea rcx, str.ADVAPI32.DLL
mov dword [rbp - 0x70], 0x68
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140008946
lea rdx, str.CreateRestrictedToken
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140008946
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14000876d
cmp dword [0x140017548], 4
jg 0x14000896e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.could_not_open_process_token:_error_code__lu
mov ecx, 4
mov r8d, eax
call fcn.140008210
jmp 0x14000896e
xor r15d, r15d
lea rcx, [rbp]
xor eax, eax
mov r9d, 0x220
mov qword [rsp + 0x70], rax
mov dl, 2
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
lea r8d, [r15 + 0x20]
mov qword [rbp - 0x78], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140008921
lea rax, [rbp - 0x80]
mov r9d, 0x223
mov qword [rsp + 0x50], rax
lea r8d, [r15 + 0x20]
mov dword [rsp + 0x48], r15d
lea rcx, [rbp]
mov dword [rsp + 0x40], r15d
mov dl, 2
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140008921
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x70]
mov qword [rsp + 0x38], r15
lea edx, [r15 + 1]
mov dword [rsp + 0x30], r15d
lea r8d, [r15 + 2]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
call rbx
mov rcx, qword [rbp - 0x80]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x14000889a
cmp dword [0x140017548], 4
jg 0x14000896e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.could_not_create_restricted_token:_error_code__lu
lea ecx, [rbx + 4]
call fcn.140008210
jmp 0x14000896e
mov rcx, qword [rsp + 0x60]
call fcn.1400068d0
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 qword [rsp + 0x40], r15
xor edx, edx
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x140008910
cmp dword [0x140017548], 4
jg 0x14000896e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r14
lea rdx, str.could_not_start_process_for_command___s_:_error_code__lu
mov r9d, eax
mov ecx, 4
call fcn.140008210
jmp 0x14000896e
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rsp + 0x60]
jmp 0x140008970
cmp dword [0x140017548], 4
jg 0x14000896e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.could_not_allocate_SIDs:_error_code__lu
mov ecx, 4
mov r8d, eax
call fcn.140008210
jmp 0x14000896e
cmp dword [0x140017548], 3
jg 0x140008960
lea rdx, str.cannot_create_restricted_tokens_on_this_platform
mov ecx, 3
call fcn.140008210
test rdi, rdi
je 0x14000896e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.14000e240
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret