Function at 0x140069e50
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x520]
sub rsp, 0x620
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x678], rbx
mov rax, qword [0x1404680d8]
xor rax, rsp
mov qword [rbp + 0x510], rax
mov r12, r8
mov r15, rdx
mov r14d, ecx
xor r13d, r13d
mov dword [rsp + 0x60], r13d
lea rcx, [rbp + 0xd8]
call fcn.14007ed70
mov rbx, rax
lea rdx, str.Starting_app_in_session
lea rcx, [0x14047aa00]
call fcn.140036d30
mov rcx, rax
mov edx, r14d
call fcn.1400283a0
mov rcx, rax
lea rdx, str.__appPath
call fcn.140036d30
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140069ee8
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400421f0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
nop
lea rcx, [rbp + 0xd8]
call fcn.14000bc00
xor sil, sil
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x40], r13
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x100]
call fcn.140286140
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x80], xmm0
movdqa xmm1, xmmword [0x1403e1a30]
movdqu xmmword [rbp + 0x80], xmm1
mov word [rbp + 0x70], r13w
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x38]
mov edx, 0x20028
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140069fb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.System_error_calling_OpenProcessToken:
mov ebx, eax
lea rcx, [0x14047aa00]
call fcn.140036d30
mov rcx, rax
mov edx, ebx
call fcn.1400283a0
jmp 0x14006a43b
lea r8, [rbp + 0xb0]
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edi, 1
test eax, eax
je 0x14006a020
mov dword [rbp + 0x90], edi
mov rax, qword [rbp + 0xb0]
mov qword [rbp + 0x94], rax
mov dword [rbp + 0x9c], 2
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, [rbp + 0x90]
xor edx, edx
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14006a06c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error_calling_AdjustTokenPrivileges:
jmp 0x14006a02d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error_calling_LookupPrivilegeValue:
mov ebx, eax
lea rcx, [0x14047aa00]
call fcn.140036d30
mov edx, ebx
mov rcx, rax
call fcn.1400283a0
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
mov rbx, rax
mov dl, 0xa
add rcx, rax
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp - 0x48]
mov ecx, r14d
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x14006a3f7
mov rbx, qword [rbp - 0x48]
test rbx, rbx
je 0x14006a3f7
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp]
call fcn.140286140
xor eax, eax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x20], r13
mov dword [rbp], 0x68
lea rax, str.winsta0default
mov qword [rbp + 0x10], rax
mov qword [rbp - 0x28], r13
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9d, 2
xor r8d, r8d
mov edx, 0xf01ff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x14006a10d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Unable_to_duplicate_primary_access_token_with_error:
jmp 0x140069f93
xor r8d, r8d
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x40]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x14006a386
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xc8], xmm0
movdqa xmm1, xmmword [0x1403e1a30]
movdqu xmmword [rbp + 0xc8], xmm1
mov word [rbp + 0xb8], r13w
movdqu xmmword [rbp + 0xe8], xmm0
movdqu xmmword [rbp + 0xe8], xmm1
mov word [rbp + 0xd8], r13w
lea r8, [rbp + 0xd8]
lea rdx, [rbp + 0xb8]
mov rcx, r15
call fcn.140099660
mov r8, r15
lea rdx, [0x1403bfb3c]
lea rcx, [rbp - 0x70]
call fcn.14000d510
nop
mov r8d, 2
lea rdx, [0x1403bfb34]
mov rcx, rax
call fcn.14000d710
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xa0], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x90], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xa0], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
mov dword [rsp + 0x60], edi
mov r8, r12
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x70]
call fcn.14002f8a0
mov rbx, rax
lea rax, [rbp + 0x70]
cmp rax, rbx
je 0x14006a21f
lea rcx, [rbp + 0x70]
call fcn.14000c340
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x70], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x80], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
lea rcx, [rsp + 0x70]
call fcn.14000c340
and edi, 0xfffffffe
mov dword [rsp + 0x60], edi
lea rcx, [rbp + 0x90]
call fcn.14000c340
nop
lea rcx, [rbp - 0x70]
call fcn.14000c340
lea r8, [rbp + 0x70]
cmp qword [rbp + 0x88], 8
cmovae r8, qword [rbp + 0x70]
mov edx, 0x208
lea rcx, [rbp + 0x100]
call fcn.140290cf4
lea rax, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 8
cmovae rax, qword [rbp + 0xb8]
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x430
mov dword [rsp + 0x28], r13d
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
lea r8, [rbp + 0x100]
xor edx, edx
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14006a2e9
mov sil, 1
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14006a344
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.System_error
lea rcx, [0x14047aa00]
call fcn.140036d30
mov rcx, rax
mov edx, ebx
call fcn.1400283a0
mov rcx, rax
lea rdx, str._calling_CreateProcessAsUser
call fcn.140036d30
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14006a353
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0xd8]
call fcn.14000c340
nop
lea rcx, [rbp + 0xb8]
call fcn.14000c340
jmp 0x14006a465
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.System_error
lea rcx, [0x14047aa00]
call fcn.140036d30
mov rcx, rax
mov edx, ebx
call fcn.1400283a0
mov rcx, rax
lea rdx, str._calling_CreateEnvironmentBlock
call fcn.140036d30
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14006a462
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [0x14047aa00]
cmp eax, 0x3f0
jne 0x14006a416
lea rdx, str.WTSQueryUserToken_returned_1008___No_user_logged_on.
jmp 0x14006a436
lea rdx, str.System_error
call fcn.140036d30
mov rcx, rax
mov edx, ebx
call fcn.1400283a0
mov rcx, rax
lea rdx, str._calling_WTSQueryUserToken
call fcn.140036d30
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
mov rbx, rax
mov dl, 0xa
add rcx, rax
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
xor sil, sil
lea rcx, [rbp + 0x70]
call fcn.14000c340
movzx eax, sil
mov rcx, qword [rbp + 0x510]
xor rcx, rsp
call fcn.140282c10
mov rbx, qword [rsp + 0x678]
add rsp, 0x620
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret