Function at 0x140005470
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x198
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x110], 0xfffffffffffffffe
mov rsi, rcx
lea rbx, [rbp + 0x20]
mov rcx, rbx
call fcn.140005900
mov eax, dword [rbp + 0x28]
test eax, eax
je 0x1400054b3
mov rcx, qword [rbp + 0x20]
mov qword [rsi], rcx
mov dword [rsi + 8], eax
jmp 0x140005820
mov r8d, dword [rbp + 0x20]
mov ecx, 0x410
xor edx, edx
call qword [sym.imp.kernel32.dll_OpenProcess]
lea rcx, [rax + 1]
cmp rcx, 1
ja 0x1400054db
call fcn.140075a70
test edx, edx
jne 0x14000581a
mov rdi, rax
call fcn.140002b00
mov qword [rbp + 0xc8], rax
lea r8, [rbp + 0xc8]
mov rcx, rdi
mov edx, 0xb
call qword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
je 0x1400057b5
call fcn.140002b00
mov qword [rbp + 0x108], rax
mov rcx, qword [rbp + 0xc8]
lea rax, [rbp + 0x108]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov edx, 0x18b
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.advapi32.dll_DuplicateTokenEx]
test eax, eax
je 0x1400057c3
call qword [sym.imp.kernel32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x1400057d1
mov dword [rbp + 0x104], eax
mov rcx, qword [rbp + 0x108]
lea r8, [rbp + 0x104]
mov edx, 0xc
mov r9d, 4
call qword [sym.imp.advapi32.dll_SetTokenInformation]
test eax, eax
je 0x14000580d
lea rax, str.C:WindowsSystem32WindowsPowerShell_v1.0powershell.exewinsta0defaultSuccessfully_launched_terminal_as_TrustedInstaller.
mov qword [rbp - 0x20], rax
lea rax, [0x1400aa731]
mov qword [rbp - 0x18], rax
mov word [rbp - 0x10], 0
mov dword [rbp - 8], 1
lea rdi, [0x1400a9b58]
lea rcx, [rbp + 0xb0]
lea rdx, [rbp - 0x20]
mov r8, rdi
call fcn.14000d830
xorps xmm0, xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x70], xmm0
movaps xmmword [rbp + 0x60], xmm0
movaps xmmword [rbp + 0x50], xmm0
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x80], 0
mov dword [rbp + 0x20], 0x68
lea rax, [0x1400aa731]
mov qword [rbp + 0xd0], rax
lea rax, [0x1400aa740]
mov qword [rbp + 0xd8], rax
mov word [rbp + 0xe0], 0
mov dword [rbp + 0xe8], 1
lea rcx, [rbp + 0x88]
lea rdx, [rbp + 0xd0]
mov r8, rdi
call fcn.14000d830
mov rdx, qword [rbp + 0x88]
mov rdi, qword [rbp + 0x90]
test rdx, rdx
je 0x140005659
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.140013bf0
mov qword [rbp + 0x30], rdi
mov dword [rbp + 0x5c], 1
mov word [rbp + 0x60], 5
xorps xmm0, xmm0
movaps xmmword [rbp], xmm0
mov qword [rbp + 0x10], 0
mov rcx, qword [rbp + 0x108]
mov rdi, qword [rbp + 0xb8]
mov rax, rbp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], 0x400
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor edx, edx
mov r8, rdi
xor r9d, r9d
call qword [sym.imp.advapi32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14000582f
mov rax, qword [0x1400db040]
mov rax, qword [rax]
cmp rax, 3
jb 0x140005763
lea rax, [0x1400aa778]
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], 1
mov qword [rbp + 0xe0], 8
xorps xmm0, xmm0
movups xmmword [rbp + 0xe8], xmm0
lea rcx, [0x1400aa788]
call fcn.140016960
lea rcx, str.elevate_INFO__Service_binary_path:
mov qword [rbp + 0x88], rcx
mov qword [rbp + 0x90], 7
mov qword [rbp + 0x98], rcx
mov qword [rbp + 0xa0], 7
mov qword [rbp + 0xa8], rax
lea rcx, [rbp + 0xd0]
lea r8, [rbp + 0x88]
mov edx, 3
xor r9d, r9d
call fcn.140016870
mov rcx, qword [rbp + 0x108]
call fcn.140002cc0
mov qword [rbp + 0xd0], rax
mov dword [rbp + 0xd8], edx
test edx, edx
sete cl
test rax, rax
sete al
or al, cl
jne 0x140005797
lea rcx, [rbp + 0xd0]
call fcn.1400754c0
mov eax, dword [rbp + 0x10]
mov dword [rsi], eax
mov dword [rsi + 8], 0
mov rdx, qword [rbp + 0xb0]
test rdx, rdx
jne 0x1400058a9
jmp 0x140005820
call fcn.140075a70
test edx, edx
jne 0x14000581a
jmp 0x140005507
call fcn.140075a70
test edx, edx
jne 0x14000581a
jmp 0x14000554a
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x140005806
call fcn.140075a70
mov qword [rbp + 0x20], rax
mov dword [rbp + 0x28], edx
test edx, edx
sete cl
test rax, rax
sete al
or al, cl
jne 0x140005806
lea rcx, [rbp + 0x20]
call fcn.1400754c0
call fcn.140075a70
jmp 0x14000581a
call fcn.140075a70
test edx, edx
je 0x140005586
mov qword [rsi], rax
mov dword [rsi + 8], edx
mov rax, rsi
add rsp, 0x198
pop rbx
pop rdi
pop rsi
pop rbp
ret
call fcn.140075a70
mov qword [rbp + 0xd0], rax
mov dword [rbp + 0xd8], edx
test edx, edx
je 0x1400056c8
test rax, rax
je 0x14000585a
lea rcx, [rbp + 0xd0]
call fcn.1400754c0
mov rcx, qword [rbp + 0x108]
call fcn.140002cc0
mov qword [rbp + 0xd0], rax
mov dword [rbp + 0xd8], edx
test edx, edx
sete cl
test rax, rax
sete al
or al, cl
jne 0x14000588e
lea rcx, [rbp + 0xd0]
call fcn.1400754c0
call fcn.140075a70
mov qword [rsi], rax
mov dword [rsi + 8], edx
mov rdx, qword [rbp + 0xb0]
test rdx, rdx
je 0x140005820
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.140013bf0
jmp 0x140005820