Function at 0x140001000
Capabilities:
Create process on windows
Resume thread

Disassembly:
push rbp
push rbx
push rdi
push r14
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x140083018]
xor rax, rsp
mov qword [rbp + 0x130], rax
xor eax, eax
mov dword [rbp], r8d
xor ebx, ebx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rbx
mov r15, rdx
mov qword [rsp + 0x60], rbx
mov r14, rcx
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x68]
lea edx, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea edi, [rbx + 1]
test eax, eax
je 0x1400011c9
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14000119d
mov rcx, qword [rsp + 0x60]
lea r9d, [rbx + 4]
lea r8, [rbp]
lea edx, [rbx + 0xc]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x1400010d5
xor ecx, ecx
call fcn.1400045d0
test al, al
je 0x1400010d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetTokenInformation_failed__error:0x_08lx._n
call fcn.140003f90
xor edx, edx
mov qword [rbp + 0x10], 0x11c
mov r8d, 0x100
mov qword [rbp + 0x18], rbx
lea rcx, [rbp + 0x24]
mov dword [rbp + 0x20], ebx
call fcn.140007030
xor eax, eax
mov word [rbp + 0x124], bx
mov r8b, 3
mov dword [rbp + 0x126], eax
xor ecx, ecx
mov word [rbp + 0x12a], ax
lea edx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov edx, 0x23
mov dword [rbp + 0x14], 6
mov r8, rax
mov dword [rbp + 0x18], 2
lea rcx, [rbp + 0x10]
mov word [rbp + 0x124], bx
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x1400011bc
mov rcx, qword [rsp + 0x60]
lea r8, [rbp + 8]
mov r9d, 4
mov dword [rbp + 8], edi
lea edx, [r9 + 0x16]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x1400011bc
xor ecx, ecx
call fcn.1400045d0
test al, al
je 0x1400011bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetTokenInformation_for_UIAccess_failed__error:0x_08lx._n
jmp 0x1400011b5
xor ecx, ecx
call fcn.1400045d0
test al, al
je 0x1400011bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.DuplicateTokenEx_failed__error:0x_08lx._n
mov edx, eax
call fcn.140003f90
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400011e8
xor ecx, ecx
call fcn.1400045d0
test al, al
je 0x1400011e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenProcessToken_failed__error:0x_08lx._n
call fcn.140003f90
cmp qword [rsp + 0x60], rbx
jne 0x14000120d
xor ecx, ecx
call fcn.1400045d0
test al, al
je 0x140001206
lea rcx, str.Unable_to_create_token_for_new_VM3DService._n
call fcn.140003f90
xor eax, eax
jmp 0x140001324
xor edx, edx
lea rcx, [rbp - 0x70]
lea r8d, [rdx + 0x68]
call fcn.140007030
mov rcx, qword [rsp + 0x60]
lea rax, str.winsta0Winlogon
mov qword [rbp - 0x60], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
mov dword [rbp - 0x70], 0x68
mov qword [rsp + 0x50], rax
mov r8, r15
lea rax, [rbp - 0x70]
mov rdx, r14
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x8c
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x140001295
xor ecx, ecx
call fcn.1400045d0
test al, al
je 0x140001293
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_launch_a_process_with_a_user_token__error:0x_08lx._n
call fcn.140003f90
mov edi, ebx
xor ecx, ecx
call fcn.1400045d0
test edi, edi
je 0x140001303
test al, al
je 0x1400012b3
mov edx, dword [rbp]
lea rcx, str.Created_new_VM3DService_in_session__d._n
call fcn.140003f90
mov rbx, qword [rsp + 0x70]
mov rcx, qword [0x140083c08]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x1400012eb
xor ecx, ecx
call fcn.1400045d0
test al, al
je 0x1400012eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_assign_process_to_job_object__error:0x_08lx._n
call fcn.140003f90
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001316
test al, al
je 0x140001316
mov edx, dword [rbp]
lea rcx, str.Failed_to_create_VM3DService_in_session__d._n
call fcn.140003f90
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140005bf0
add rsp, 0x240
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret