Function at 0x140063530
Capabilities:
Acquire debug privileges
Create process on windows
Enumerate processes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x418], rbx
mov rax, qword [0x1400bb008]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov r15, r8
mov r13, rdx
mov r12, rcx
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x80], rdx
mov qword [rbp - 0x78], r8
mov rax, qword [r8]
mov qword [rsp + 0x28], rax
mov rax, qword [rdx]
mov qword [rsp + 0x20], rax
mov r9, qword [rcx]
mov r8d, 0x30
lea rdx, str.CWin32AppMgr::LaunchAppIntoDifferentSession
lea rcx, str._s__d_sFile_s_sArgs_s_sAppNameForClonePrivilege_s
call fcn.140026f80
xor esi, esi
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rsi
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_WTSGetActiveConsoleSessionId]
mov ebx, eax
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14006363a
mov rdx, qword [r12]
or rsi, 0xffffffffffffffff
sub rdx, 0x18
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400635fb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r13]
sub rdx, 0x18
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140063619
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140063633
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140063a43
mov dword [rbp + 0x70], 0x238
lea rdx, [rbp + 0x70]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_Process32FirstW]
test eax, eax
jne 0x140063670
test r14, r14
je 0x1400635d9
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x1400635d9
mov rdx, qword [r15]
lea rcx, [rbp + 0x9c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400636a1
mov dword [rbp + 0x40], esi
lea rdx, [rbp + 0x40]
mov ecx, dword [rbp + 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ProcessIdToSessionId]
test eax, eax
je 0x1400636a1
cmp dword [rbp + 0x40], ebx
je 0x14006386d
lea rdx, [rbp + 0x70]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_Process32NextW]
test eax, eax
jne 0x140063670
mov edi, dword [rsp + 0x60]
lea rdx, [rbp - 0x58]
mov ecx, ebx
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x30]
call fcn.14006d020
mov dword [rbp - 0x30], 0x68
lea rax, str.winsta0default
mov qword [rbp - 0x20], rax
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov r8d, edi
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
mov qword [rsp + 0x68], rax
lea r8, [rbp - 0x68]
mov edx, 0x201eb
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
jne 0x140063744
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
mov r8d, 0x72
lea rdx, str.CWin32AppMgr::LaunchAppIntoDifferentSession
lea rcx, str._s__d_Process_token_open_Error:__u
call fcn.140026f80
lea r8, [rbp + 0x50]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x14006377d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
mov r8d, 0x77
lea rdx, str.CWin32AppMgr::LaunchAppIntoDifferentSession
lea rcx, str._s__d_Lookup_Privilege_value_Error:__u
call fcn.140026f80
mov dword [rbp + 0x58], 1
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x5c], rax
mov dword [rbp + 0x64], 2
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_DuplicateTokenEx]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8, rbx
mov edx, 0xc
lea r9d, [rdx - 8]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetTokenInformation]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9d, 0x10
lea r8, [rbp + 0x58]
xor edx, edx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140063824
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
mov r8d, 0x8a
lea rdx, str.CWin32AppMgr::LaunchAppIntoDifferentSession
lea rcx, str._s__d_Adjust_Privilege_value_Error:__u
call fcn.140026f80
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x514
jne 0x14006384a
mov r8d, 0x8f
lea rdx, str.CWin32AppMgr::LaunchAppIntoDifferentSession
lea rcx, str._s__d_Token_does_not_have_the_provilege
call fcn.140026f80
mov qword [rbp - 0x60], rsi
mov r8d, 1
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x60]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x140063875
mov ebx, 0x430
jmp 0x14006387e
mov edi, dword [rbp + 0x78]
jmp 0x1400636b6
mov qword [rbp - 0x60], rsi
mov ebx, 0x30
mov rcx, qword [r12]
sub rcx, 0x18
call fcn.140004bb0
add rax, 0x18
mov qword [rbp + 0x48], rax
lea rdx, [0x140089154]
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400638a1
mov r8d, eax
lea rcx, [rbp + 0x48]
call fcn.14000bcf0
mov rdx, qword [r13]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x48]
call fcn.14000bcf0
lea rax, [rbp - 0x50]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rbx, qword [rbp + 0x48]
mov r8, rbx
xor edx, edx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessAsUserW]
mov edi, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x60], eax
test edi, edi
je 0x140063955
mov rcx, qword [rbp - 0x50]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140063939
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor edi, edi
mov qword [rbp - 0x50], rdi
jmp 0x14006393b
xor edi, edi
mov rcx, qword [rbp - 0x48]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140063957
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbp - 0x48], rdi
jmp 0x140063957
xor edi, edi
mov r9d, dword [rsp + 0x60]
mov r8d, 0xbe
lea rdx, str.CWin32AppMgr::LaunchAppIntoDifferentSession
lea rcx, str._s__d_iResultOfCreateProcessAsUser___d
call fcn.140026f80
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140063985
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140063998
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbp - 0x58], rdi
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400639ab
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbp - 0x70], rdi
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400639be
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbp - 0x68], rdi
test r14, r14
je 0x1400639cd
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400639e7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140063a05
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r13]
sub rdx, 0x18
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140063a23
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140063a3e
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140065bd0
mov rbx, qword [rsp + 0x418]
add rsp, 0x3c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret