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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov rax, qword [0x140010200]
xor rax, rsp
mov qword [rbp + 8], rax
mov r14, rdx
xor edx, edx
mov rsi, r8
mov r15, rcx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x70]
mov dword [rbp], 0
mov word [rbp + 4], 0x500
call sub.MSVCR120.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 0x140005304
lea rdx, str.CreateRestrictedToken
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140005304
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 0x1400050f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._s:_could_not_open_process_token:_error_code__lu_n
mov edi, eax
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r9d, edi
lea rcx, [rax + 0x60]
mov r8, rsi
mov rdx, rbx
call fcn.140006620
xor eax, eax
jmp 0x1400052a5
xor eax, eax
mov qword [rsp + 0x110], r12
xor r12d, r12d
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
lea rax, [rsp + 0x70]
lea r8d, [r12 + 0x20]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
lea rcx, [rbp]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400052d2
lea rax, [rbp - 0x80]
lea r8d, [r12 + 0x20]
lea rcx, [rbp]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov r9d, 0x223
mov dl, 2
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400052d2
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
lea edx, [r12 + 1]
lea r8d, [r12 + 2]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
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 0x140005219
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._s:_could_not_create_restricted_token:_error_code__lu_n
jmp 0x1400052df
mov rcx, qword [rsp + 0x60]
call fcn.140004160
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x50], r14
lea rax, [rbp - 0x70]
xor r9d, r9d
mov r8, r15
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 4
xor edx, edx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x1400052c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._s:_could_not_start_process_for_command___s_:_error_code__lu_n
mov ebx, eax
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rdi, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r9, r15
lea rcx, [rax + 0x60]
mov r8, rsi
mov rdx, rdi
mov dword [rsp + 0x20], ebx
call fcn.140006620
xor eax, eax
mov r12, qword [rsp + 0x110]
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1400096d0
add rsp, 0x118
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rsp + 0x60]
jmp 0x14000529d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._s:_could_not_allocate_SIDs:_error_code__lu_n
mov edi, eax
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r9d, edi
lea rcx, [rax + 0x60]
mov r8, rsi
mov rdx, rbx
call fcn.140006620
jmp 0x14000529b
lea rcx, str._s:_WARNING:_cannot_create_restricted_tokens_on_this_platform_n
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, rsi
lea rcx, [rax + 0x60]
mov rdx, rbx
call fcn.140006620
test rdi, rdi
je 0x140005337
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x1400052a5