Function at 0x140008e50
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x1d8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x150], 0xfffffffffffffffe
mov rsi, rcx
mov rbx, qword [0x1400de040]
mov rax, qword [rbx]
cmp rax, 3
jb 0x140008ef8
lea rax, str.Attempting_to_launch_terminal_as_SYSTEM...
mov qword [rbp], rax
mov qword [rbp + 8], 1
mov qword [rbp + 0x10], 8
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
lea rcx, [0x1400b0438]
call fcn.14001b160
lea rcx, str.elevate_INFO__Service_binary_path:
mov qword [rbp + 0x118], rcx
mov qword [rbp + 0x120], 7
mov qword [rbp + 0x128], rcx
mov qword [rbp + 0x130], 7
mov qword [rbp + 0x138], rax
mov rcx, rbp
lea r8, [rbp + 0x118]
mov edx, 3
xor r9d, r9d
call fcn.14001b070
lea rax, str.C:WindowsSystem32cmd.exewinsta0defaultActive_session_ID:
mov qword [rbp - 0x20], rax
lea rax, [0x1400b046b]
mov qword [rbp - 0x18], rax
mov word [rbp - 0x10], 0
mov dword [rbp - 8], 1
lea rcx, [rbp + 0x90]
lea rdx, [rbp - 0x20]
call fcn.1400115f0
xorps xmm0, xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp + 0x50], xmm0
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x60], 0
mov dword [rbp], 0x68
lea rax, [0x1400b046b]
mov qword [rbp + 0x118], rax
lea rax, [0x1400b047a]
mov qword [rbp + 0x120], rax
mov word [rbp + 0x128], 0
mov dword [rbp + 0x130], 1
lea rcx, [rbp + 0xf0]
lea rdx, [rbp + 0x118]
call fcn.1400115f0
mov rdx, qword [rbp + 0xf0]
mov rdi, qword [rbp + 0xf8]
test rdx, rdx
je 0x140008fbb
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.140018860
mov qword [rbp + 0x10], rdi
mov dword [rbp + 0x3c], 1
mov word [rbp + 0x40], 5
xorps xmm0, xmm0
movaps xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], 0
call qword [sym.imp.kernel32.dll_WTSGetActiveConsoleSessionId]
mov dword [rbp + 0xac], eax
mov rcx, qword [rbx]
cmp eax, 0xffffffff
je 0x1400093e2
cmp rcx, 3
jb 0x1400090b2
lea rax, [rbp + 0xac]
mov qword [rbp + 0xe0], rax
lea rax, [0x1400a9070]
mov qword [rbp + 0xe8], rax
lea rax, [0x1400b0490]
mov qword [rbp + 0x118], rax
mov qword [rbp + 0x120], 1
mov qword [rbp + 0x138], 0
lea rax, [rbp + 0xe0]
mov qword [rbp + 0x128], rax
mov qword [rbp + 0x130], 1
lea rcx, [0x1400b04a0]
call fcn.14001b160
lea rcx, str.elevate_INFO__Service_binary_path:
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], 7
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], 7
mov qword [rbp + 0x110], rax
lea rcx, [rbp + 0x118]
lea r8, [rbp + 0xf0]
mov edx, 3
xor r9d, r9d
call fcn.14001b070
call fcn.140002b60
mov qword [rbp + 0xc8], rax
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
lea r8, [rbp + 0xc8]
mov rcx, rax
mov edx, 0xb
call qword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
je 0x1400094b3
call fcn.140002b60
mov qword [rbp + 0xc0], rax
mov rcx, qword [rbp + 0xc8]
lea rax, [rbp + 0xc0]
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 0x1400095b2
mov eax, dword [rbp + 0xac]
mov dword [rbp + 0xa8], eax
mov rcx, qword [rbp + 0xc0]
lea r8, [rbp + 0xa8]
mov edx, 0xc
mov r9d, 4
call qword [sym.imp.advapi32.dll_SetTokenInformation]
test eax, eax
je 0x140009720
mov dword [rbp + 0xb8], 0
mov rax, qword [rbx]
cmp rax, 3
jb 0x140009203
lea rax, str.Creating_process_in_users_session...
mov qword [rbp + 0x118], rax
mov qword [rbp + 0x120], 1
mov qword [rbp + 0x128], 8
xorps xmm0, xmm0
movups xmmword [rbp + 0x130], xmm0
mov byte [rbp + 0x14f], 1
lea rcx, [0x1400b0548]
call fcn.14001b160
lea rcx, str.elevate_INFO__Service_binary_path:
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], 7
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], 7
mov qword [rbp + 0x110], rax
mov byte [rbp + 0x14f], 1
lea rcx, [rbp + 0x118]
lea r8, [rbp + 0xf0]
mov edx, 3
xor r9d, r9d
call fcn.14001b070
mov rcx, qword [rbp + 0xc0]
mov rdi, qword [rbp + 0x98]
lea rax, [rbp + 0x70]
mov qword [rsp + 0x50], rax
mov rax, rbp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
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 0x140009899
mov rax, qword [rbx]
cmp rax, 3
jb 0x1400092fb
lea rax, str.Successfully_launched_terminal_as_SYSTEM.
mov qword [rbp + 0x118], rax
mov qword [rbp + 0x120], 1
mov qword [rbp + 0x128], 8
xorps xmm0, xmm0
movups xmmword [rbp + 0x130], xmm0
mov byte [rbp + 0x14f], 1
lea rcx, [0x1400b05a0]
call fcn.14001b160
lea rcx, str.elevate_INFO__Service_binary_path:
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], 7
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], 7
mov qword [rbp + 0x110], rax
mov byte [rbp + 0x14f], 1
lea rcx, [rbp + 0x118]
lea r8, [rbp + 0xf0]
mov edx, 3
xor r9d, r9d
call fcn.14001b070
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x140009347
mov byte [rbp + 0x14f], 1
call fcn.140077b00
mov qword [rbp + 0x118], rax
mov dword [rbp + 0x120], edx
test edx, edx
sete cl
test rax, rax
sete al
or al, cl
jne 0x140009347
mov byte [rbp + 0x14f], 1
lea rcx, [rbp + 0x118]
call fcn.140077590
mov rcx, qword [rbp + 0xc0]
call qword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x140009393
mov byte [rbp + 0x14f], 1
call fcn.140077b00
mov qword [rbp + 0x118], rax
mov dword [rbp + 0x120], edx
test edx, edx
sete cl
test rax, rax
sete al
or al, cl
jne 0x140009393
mov byte [rbp + 0x14f], 1
lea rcx, [rbp + 0x118]
call fcn.140077590
mov eax, dword [rbp + 0x80]
mov dword [rsi], eax
mov dword [rsi + 8], 0
cmp dword [rbp + 0xb8], 0
je 0x1400093c1
cmp qword [rbp + 0xb0], 0
je 0x1400093c1
lea rcx, [rbp + 0xb0]
call fcn.140077590
mov rdx, qword [rbp + 0x90]
test rdx, rdx
je 0x140009711
add rdx, rdx
mov r8d, 2
mov rcx, rdi
jmp 0x14000970c
test rcx, rcx
je 0x1400094a9
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rbp + 0xd0], eax
lea rax, [rbp + 0xd0]
mov qword [rbp + 0xe0], rax
lea rax, [0x140077430]
mov qword [rbp + 0xe8], rax
lea rax, str.Failed_to_get_active_session_ID._Error:
mov qword [rbp + 0x118], rax
mov qword [rbp + 0x120], 1
mov qword [rbp + 0x138], 0
lea rax, [rbp + 0xe0]
mov qword [rbp + 0x128], rax
mov qword [rbp + 0x130], 1
lea rcx, [0x1400b06f0]
call fcn.14001b160
lea rcx, str.elevate_INFO__Service_binary_path:
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], 7
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], 7
mov qword [rbp + 0x110], rax
lea rcx, [rbp + 0x118]
lea r8, [rbp + 0xf0]
mov edx, 1
xor r9d, r9d
call fcn.14001b070
call fcn.140077b00
jmp 0x1400096ea
call fcn.140077b00
mov qword [rbp + 0x118], rax
mov dword [rbp + 0x120], edx
test edx, edx
je 0x1400090e1
test rax, rax
je 0x1400094de
lea rcx, [rbp + 0x118]
call fcn.140077590
mov rax, qword [rbx]
test rax, rax
je 0x1400095a8
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rbp + 0xd0], eax
lea rax, [rbp + 0xd0]
mov qword [rbp + 0xe0], rax
lea rax, [0x140077430]
mov qword [rbp + 0xe8], rax
lea rax, str.Failed_to_open_SYSTEM_token._Error:
mov qword [rbp + 0x118], rax
mov qword [rbp + 0x120], 1
mov qword [rbp + 0x138], 0
lea rax, [rbp + 0xe0]
mov qword [rbp + 0x128], rax
mov qword [rbp + 0x130], 1
lea rcx, [0x1400b06a0]
call fcn.14001b160
lea rcx, str.elevate_INFO__Service_binary_path:
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], 7
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], 7
mov qword [rbp + 0x110], rax
lea rcx, [rbp + 0x118]
lea r8, [rbp + 0xf0]
mov edx, 1
xor r9d, r9d
call fcn.14001b070
call fcn.140077b00
jmp 0x1400096ea
call fcn.140077b00
mov qword [rbp + 0x118], rax
mov dword [rbp + 0x120], edx
test edx, edx
je 0x140009124
test rax, rax
je 0x1400095dd
lea rcx, [rbp + 0x118]
call fcn.140077590
mov rax, qword [rbx]
test rax, rax
je 0x1400096a7
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rbp + 0xd0], eax
lea rax, [rbp + 0xd0]
mov qword [rbp + 0xe0], rax
lea rax, [0x140077430]
mov qword [rbp + 0xe8], rax
lea rax, str.Failed_to_duplicate_SYSTEM_token._Error:
mov qword [rbp + 0x118], rax
mov qword [rbp + 0x120], 1
mov qword [rbp + 0x138], 0
lea rax, [rbp + 0xe0]
mov qword [rbp + 0x128], rax
mov qword [rbp + 0x130], 1
lea rcx, [0x1400b0650]
call fcn.14001b160
lea rcx, str.elevate_INFO__Service_binary_path:
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], 7
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], 7
mov qword [rbp + 0x110], rax
lea rcx, [rbp + 0x118]
lea r8, [rbp + 0xf0]
mov edx, 1
xor r9d, r9d
call fcn.14001b070
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x1400096e5
call fcn.140077b00
mov qword [rbp + 0x118], rax
mov dword [rbp + 0x120], edx
test edx, edx
sete cl
test rax, rax
sete al
or al, cl
jne 0x1400096e5
lea rcx, [rbp + 0x118]
call fcn.140077590
call fcn.140077b00
mov qword [rsi], rax
mov dword [rsi + 8], edx
mov rdx, qword [rbp + 0x90]
test rdx, rdx
je 0x140009711
mov rcx, qword [rbp + 0x98]
add rdx, rdx
mov r8d, 2
call fcn.140018860
mov rax, rsi
add rsp, 0x1d8
pop rbx
pop rdi
pop rsi
pop rbp
ret
call fcn.140077b00
mov qword [rbp + 0xb0], rax
mov dword [rbp + 0xb8], edx
test edx, edx
je 0x140009161
mov qword [rbp + 0xd0], rax
mov dword [rbp + 0xd8], edx
mov rax, qword [rbx]
test rax, rax
je 0x140009805
lea rax, [rbp + 0xd0]
mov qword [rbp + 0xe0], rax
lea rax, [0x140077f10]
mov qword [rbp + 0xe8], rax
lea rax, str.Failed_to_set_session_ID_on_the_token._Error:
mov qword [rbp + 0x118], rax
mov qword [rbp + 0x120], 1
mov qword [rbp + 0x138], 0
lea rax, [rbp + 0xe0]
mov qword [rbp + 0x128], rax
mov qword [rbp + 0x130], 1
lea rcx, [0x1400b04f8]
call fcn.14001b160
lea rcx, str.elevate_INFO__Service_binary_path:
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], 7
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], 7
mov qword [rbp + 0x110], rax
lea rcx, [rbp + 0x118]
lea r8, [rbp + 0xf0]
mov edx, 1
xor r9d, r9d
call fcn.14001b070
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x140009843
call fcn.140077b00
mov qword [rbp + 0x118], rax
mov dword [rbp + 0x120], edx
test edx, edx
sete cl
test rax, rax
sete al
or al, cl
jne 0x140009843
lea rcx, [rbp + 0x118]
call fcn.140077590
mov rcx, qword [rbp + 0xc0]
call qword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x140009881
call fcn.140077b00
mov qword [rbp + 0x118], rax
mov dword [rbp + 0x120], edx
test edx, edx
sete cl
test rax, rax
sete al
or al, cl
jne 0x140009881
lea rcx, [rbp + 0x118]
call fcn.140077590
mov rax, qword [rbp + 0xd0]
mov ecx, dword [rbp + 0xd8]
mov qword [rsi], rax
mov dword [rsi + 8], ecx
jmp 0x1400096f0
mov byte [rbp + 0x14f], 1
call fcn.140077b00
mov qword [rbp + 0x118], rax
mov dword [rbp + 0x120], edx
test edx, edx
je 0x140009259
test rax, rax
je 0x1400098d2
mov byte [rbp + 0x14f], 1
lea rcx, [rbp + 0x118]
call fcn.140077590
mov rax, qword [rbx]
test rax, rax
je 0x1400099aa
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rbp + 0xd0], eax
lea rax, [rbp + 0xd0]
mov qword [rbp + 0xe0], rax
lea rax, [0x140077430]
mov qword [rbp + 0xe8], rax
lea rax, str.Failed_to_create_terminal_process._Error:
mov qword [rbp + 0x118], rax
mov qword [rbp + 0x120], 1
mov qword [rbp + 0x138], 0
lea rax, [rbp + 0xe0]
mov qword [rbp + 0x128], rax
mov qword [rbp + 0x130], 1
mov byte [rbp + 0x14f], 1
lea rcx, [0x1400b05f8]
call fcn.14001b160
lea rcx, str.elevate_INFO__Service_binary_path:
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], 7
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], 7
mov qword [rbp + 0x110], rax
mov byte [rbp + 0x14f], 1
lea rcx, [rbp + 0x118]
lea r8, [rbp + 0xf0]
mov edx, 1
xor r9d, r9d
call fcn.14001b070
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x1400099f6
mov byte [rbp + 0x14f], 1
call fcn.140077b00
mov qword [rbp + 0x118], rax
mov dword [rbp + 0x120], edx
test edx, edx
sete cl
test rax, rax
sete al
or al, cl
jne 0x1400099f6
mov byte [rbp + 0x14f], 1
lea rcx, [rbp + 0x118]
call fcn.140077590
mov rcx, qword [rbp + 0xc0]
call qword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x140009a42
mov byte [rbp + 0x14f], 1
call fcn.140077b00
mov qword [rbp + 0x118], rax
mov dword [rbp + 0x120], edx
test edx, edx
sete cl
test rax, rax
sete al
or al, cl
jne 0x140009a42
mov byte [rbp + 0x14f], 1
lea rcx, [rbp + 0x118]
call fcn.140077590
mov byte [rbp + 0x14f], 1
call fcn.140077b00
mov qword [rsi], rax
mov dword [rsi + 8], edx
cmp dword [rbp + 0xb8], 0
je 0x1400096f0
cmp qword [rbp + 0xb0], 0
je 0x1400096f0
lea rcx, [rbp + 0xb0]
call fcn.140077590
jmp 0x1400096f0