Function at 0x140083570
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x578]
sub rsp, 0x640
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x1404953c0]
xor rax, rsp
mov qword [rbp + 0x510], rax
mov r14, r8
mov rsi, rdx
mov r12d, ecx
xor r13d, r13d
mov dword [rsp + 0x60], r13d
lea rdx, str.Starting_app_in_session
lea rcx, [0x1404abb40]
call fcn.1400337c0
mov edx, r12d
mov rcx, rax
call fcn.140032140
mov rcx, rax
lea rdx, str.__appPath
call fcn.1400337c0
mov rbx, rax
mov rdx, rsi
lea rcx, [rbp - 0x78]
call fcn.14009c1c0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140083605
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400347d0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140034b90
movzx edx, al
mov rcx, rbx
call fcn.140034620
mov rcx, rbx
call fcn.14002ddd0
nop
lea rcx, [rbp - 0x78]
call fcn.140016400
xor r15b, r15b
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x48], r13
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x100]
call fcn.140306610
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x80], xmm1
movdqa xmm0, xmmword [0x14043ca90]
movdqu xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], r13w
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x40]
mov edx, 0x20028
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400836d2
lea rdx, str.System_error_calling_OpenProcessToken:
lea rcx, [0x1404abb40]
call fcn.1400337c0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140032140
jmp 0x140083c3a
lea r8, [rbp + 0xd0]
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edi, 1
test eax, eax
je 0x14008373c
mov dword [rbp + 0x90], edi
mov rax, qword [rbp + 0xd0]
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 - 0x40]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140083789
lea rdx, str.Error_calling_AdjustTokenPrivileges:
jmp 0x140083743
lea rdx, str.Error_calling_LookupPrivilegeValue:
lea rcx, [0x1404abb40]
call fcn.1400337c0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140032140
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
mov rbx, rax
mov dl, 0xa
add rcx, rax
call fcn.140034b90
movzx edx, al
mov rcx, rbx
call fcn.140034620
mov rcx, rbx
call fcn.14002ddd0
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp - 0x50]
mov ecx, r12d
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x140083bf6
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140083bf6
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x28], r13
mov dword [rbp], 0x68
lea rax, str.winsta0default
mov qword [rbp + 0x10], rax
mov qword [rbp - 0x30], r13
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9d, 2
xor r8d, r8d
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x14008382d
lea rdx, str.Unable_to_duplicate_primary_access_token_with_error:
jmp 0x1400836ae
xor r8d, r8d
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x48]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x140083b85
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xc0], xmm1
movdqa xmm0, xmmword [0x14043ca90]
movdqu xmmword [rbp + 0xc0], xmm0
mov word [rbp + 0xb0], r13w
xorps xmm0, xmm0
movups xmmword [rbp + 0xd8], xmm0
movdqu xmmword [rbp + 0xe8], xmm1
movdqa xmm0, xmmword [0x14043ca90]
movdqu xmmword [rbp + 0xe8], xmm0
mov word [rbp + 0xd8], r13w
lea r8, [rbp + 0xd8]
lea rdx, [rbp + 0xb0]
mov rcx, rsi
call fcn.1400b9d60
nop
mov rcx, qword [rsi + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 1
jb 0x140083cab
cmp qword [rsi + 0x18], 7
jbe 0x1400838d9
mov rsi, qword [rsi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
lea r9, [0x14041179c]
lea rcx, [rbp - 0x78]
call fcn.14002ac90
mov dword [rsp + 0x60], edi
mov r8d, 2
lea rdx, [0x140411794]
lea rcx, [rbp - 0x78]
call fcn.14002ac00
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
or edi, 2
mov dword [rsp + 0x60], edi
mov r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 7
jbe 0x140083959
mov r14, qword [r14]
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.14002ac00
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xa0], xmm0
movups xmm6, xmmword [rax]
movups xmmword [rbp + 0x90], xmm6
movups xmm7, xmmword [rax + 0x10]
movdqu xmmword [rbp + 0xa0], xmm7
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
or edi, 4
mov dword [rsp + 0x60], edi
mov rdx, qword [rbp + 0x88]
cmp rdx, 7
jbe 0x1400839e1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400839dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140083ca5
call fcn.1402b5c4c
movdqa xmm0, xmmword [0x14043ca90]
movdqu xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], r13w
movups xmmword [rbp + 0x70], xmm6
movups xmmword [rbp + 0x80], xmm7
movdqu xmmword [rbp + 0xa0], xmm0
mov word [rbp + 0x90], r13w
and edi, 0xfffffffb
mov dword [rsp + 0x60], edi
lea rcx, [rbp + 0x90]
call fcn.1400166f0
and edi, 0xfffffffd
mov dword [rsp + 0x60], edi
lea rcx, [rsp + 0x68]
call fcn.1400166f0
and edi, 0xfffffffe
mov dword [rsp + 0x60], edi
lea rcx, [rbp - 0x78]
call fcn.1400166f0
lea r8, [rbp + 0x70]
cmp qword [rbp + 0x88], 7
cmova r8, qword [rbp + 0x70]
mov edx, 0x208
lea rcx, [rbp + 0x100]
call fcn.1402c5e00
lea rax, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 7
cmova rax, qword [rbp + 0xb0]
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x430
mov dword [rsp + 0x28], r13d
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
lea r8, [rbp + 0x100]
xor edx, edx
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x140083ae8
mov r15b, 1
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140083b43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.System_error
lea rcx, [0x1404abb40]
call fcn.1400337c0
mov edx, ebx
mov rcx, rax
call fcn.140032140
mov rcx, rax
lea rdx, str._calling_CreateProcessAsUser
call fcn.1400337c0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140034b90
movzx edx, al
mov rcx, rbx
call fcn.140034620
mov rcx, rbx
call fcn.14002ddd0
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140083b52
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0xd8]
call fcn.1400166f0
nop
lea rcx, [rbp + 0xb0]
call fcn.1400166f0
jmp 0x140083c64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.System_error
lea rcx, [0x1404abb40]
call fcn.1400337c0
mov edx, ebx
mov rcx, rax
call fcn.140032140
mov rcx, rax
lea rdx, str._calling_CreateEnvironmentBlock
call fcn.1400337c0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140034b90
movzx edx, al
mov rcx, rbx
call fcn.140034620
mov rcx, rbx
call fcn.14002ddd0
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140083c61
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [0x1404abb40]
cmp eax, 0x3f0
jne 0x140083c15
lea rdx, str.WTSQueryUserToken_returned_1008___No_user_logged_on.
jmp 0x140083c35
lea rdx, str.System_error
call fcn.1400337c0
mov edx, ebx
mov rcx, rax
call fcn.140032140
mov rcx, rax
lea rdx, str._calling_WTSQueryUserToken
call fcn.1400337c0
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140034b90
movzx edx, al
mov rcx, rbx
call fcn.140034620
mov rcx, rbx
call fcn.14002ddd0
xor r15b, r15b
lea rcx, [rbp + 0x70]
call fcn.1400166f0
movzx eax, r15b
mov rcx, qword [rbp + 0x510]
xor rcx, rsp
call fcn.1402b5c00
lea r11, [rsp + 0x640]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1402c5d0c
nop
call fcn.140016040
int3