Function at 0x140006dd0
Capabilities:
Acquire debug privileges
Create process on windows
Resume thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x14001d010]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp + 0x158]
mov r15d, ecx
mov ecx, dword [rbp + 0x150]
mov ebx, dword [rbp + 0x140]
movsxd rsi, r8d
mov r8d, dword [rbp + 0x148]
movsxd rdi, r9d
mov r9, qword [rbp + 0x160]
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], r8d
mov qword [rsp + 0x78], r9
mov r9d, edx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x64], edx
lea rdx, str.UserModeType:__d_r_nPrivilegesModeType:__d_r_nMandatoryLabelType:__d_r_nProcessPriorityClassType:__d_r_nShowWindowModeType:__d_r_nWaitInterval:__d_r_nCreateNewConsole:__d_r_nCommandLine:__s_r_nCurrentDirectory:__s
mov dword [rsp + 0x6c], r8d
mov r8d, r15d
mov dword [rsp + 0x68], ecx
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], esi
mov dword [rbp + 0xa4], esi
mov qword [rsp + 0x70], rax
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x140006e7d
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140006ec5
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006ec0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008558
call fcn.14000afec
mov qword [rsp + 0x1e8], r12
mov qword [rsp + 0x1e0], r13
mov qword [rsp + 0x1d8], r14
cmp esi, 6
ja case.default.0x140006f00
lea rdx, [0x140000000]
mov r13d, 0x4000
mov ecx, dword [rdx + rsi*4 + 0x8584]
add rcx, rdx
xor r14d, r14d
jmp rcx
mov r12d, r14d
jmp 0x140006f32
mov r12d, 0x1000
jmp 0x140006f32
mov r12d, 0x2000
jmp 0x140006f32
mov r12d, 0x2100
jmp 0x140006f32
mov r12d, 0x3000
jmp 0x140006f32
mov r12d, r13d
jmp 0x140006f32
mov r12d, 0x5000
cmp edi, 5
ja case.default.0x140006f45
mov ecx, dword [rdx + rdi*4 + 0x85a0]
add rcx, rdx
jmp rcx
mov r13d, 0x40
jmp case.0x140006f45.1
mov r13d, 0x20
jmp case.0x140006f45.1
mov r13d, 0x8000
jmp case.0x140006f45.1
mov r13d, 0x80
jmp case.0x140006f45.1
mov r13d, 0x100
test ebx, ebx
je 0x140007026
sub ebx, 1
je 0x14000701f
sub ebx, 1
je 0x140007017
sub ebx, 1
je 0x140007010
cmp ebx, 1
je 0x140007006
lea r8, str.ShowWindowModeType
lea rdx, str.Invalid_Parameter:__s
lea rcx, [rbp - 0x80]
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x140006fb6
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400084a0
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000849b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400084e0
jmp 0x14000849b
mov dword [rsp + 0x60], 6
jmp 0x140007030
mov eax, 3
jmp 0x14000702b
mov word [rsp + 0x60], r14w
jmp 0x140007030
mov eax, 5
jmp 0x14000702b
mov eax, 0xa
mov word [rsp + 0x60], ax
mov rsi, 0xffffffffffffffff
mov dword [rbp - 0x58], 0xffffffff
mov qword [rbp], rsi
mov qword [rbp - 0x38], rsi
mov qword [rbp + 8], rsi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp]
mov edx, 0x2000000
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140007109
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x14000708b
movzx edi, ax
or edi, 0x80070000
test edi, edi
lea r8, str.Open_the_current_process_access_token
mov ebx, 0x8007065b
lea rdx, str._s_failed__returns__d.
cmove edi, ebx
lea rcx, [rbp - 0x80]
mov r9d, edi
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x1400070b9
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140008358
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008353
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400084e6
jmp 0x140008353
mov rcx, qword [rbp]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x1400071cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x14000714f
movzx edi, ax
or edi, 0x80070000
test edi, edi
lea r8, str.Duplicate_the_current_process_token_as_context_access_token
mov ebx, 0x8007065b
lea rdx, str._s_failed__returns__d.
cmove edi, ebx
lea rcx, [rbp - 0x80]
mov r9d, edi
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x14000717d
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140008358
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008353
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400084ec
jmp 0x140008353
lea r8, [rbp + 0xb0]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x14000727e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140007200
movzx edi, ax
or edi, 0x80070000
test edi, edi
lea r8, str.Get_the_LUID_of_SeDebugPrivilege
mov ebx, 0x8007065b
lea rdx, str._s_failed__returns__d.
cmove edi, ebx
lea rcx, [rbp - 0x80]
mov r9d, edi
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x14000722e
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140008358
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008353
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400084f2
jmp 0x140008353
mov rdi, qword [rbp - 0x38]
mov dword [rbp + 0xb8], 2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400082e7
mov dword [rax], 1
mov r9d, 0x10
movsd xmm0, qword [rbp + 0xb0]
mov r8, rax
movsd qword [rax + 4], xmm0
mov rcx, rdi
mov edx, dword [rbp + 0xb8]
mov dword [rax + 0xc], edx
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x1400072ff
movzx edi, ax
or edi, 0x80070000
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
jne 0x1400082ec
mov rdx, qword [rbp - 0x38]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x1400073c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140007344
movzx edi, ax
or edi, 0x80070000
test edi, edi
lea r8, str.Set_the_context_access_token
mov ebx, 0x8007065b
lea rdx, str._s_failed__returns__d.
cmove edi, ebx
lea rcx, [rbp - 0x80]
mov r9d, edi
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x140007372
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140008358
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008353
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400084f8
jmp 0x140008353
call fcn.140009960
mov dword [rbp - 0x58], eax
cmp eax, 0xffffffff
jne 0x140007442
lea r8, str.Get_the_session_ID
lea rdx, str._s_failed.
lea rcx, [rbp - 0x80]
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x1400073f0
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140007438
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007433
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000855e
call fcn.14000afec
mov edi, 0x800703f0
jmp 0x140008358
lea r8, [rbp + 8]
lea rcx, [rbp - 0x28]
call fcn.140009770
mov rdi, rax
cmp dword [rax + 4], r14d
jne 0x1400074fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140007471
movzx ebx, ax
or ebx, 0x80070000
cmp byte [rdi], r14b
je 0x140007481
test ebx, ebx
jne 0x140007485
mov ebx, 0x8007065b
jmp 0x140007485
test ebx, ebx
je 0x1400074fa
mov r9d, ebx
lea r8, str.Create_the_system_access_token
lea rdx, str._s_failed__returns__d.
lea rcx, [rbp - 0x80]
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x1400074a9
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000835a
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400074f0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008564
call fcn.14000afec
jmp 0x14000835a
mov rcx, qword [rbp + 8]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x1400075bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140007540
movzx edi, ax
or edi, 0x80070000
test edi, edi
lea r8, str.Duplicate_the_system_token_as_context_access_token
mov ebx, 0x8007065b
lea rdx, str._s_failed__returns__d.
cmove edi, ebx
lea rcx, [rbp - 0x80]
mov r9d, edi
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x14000756e
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000835c
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075b5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000856a
call fcn.14000afec
jmp 0x14000835c
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp + 0xa0]
mov r8d, 2
call fcn.140009fe0
mov edi, dword [rax]
test edi, edi
je 0x14000764b
mov r9d, edi
lea r8, str.Enable_all_privileges_for_the_system_context_access_token
lea rdx, str._s_failed__returns__d.
lea rcx, [rbp - 0x80]
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x1400075ff
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000835c
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075b5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400084fe
jmp 0x1400075b5
mov rdx, qword [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x1400076f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140007674
movzx edi, ax
or edi, 0x80070000
test edi, edi
lea r8, str.Set_the_system_context_access_token
mov ebx, 0x8007065b
lea rdx, str._s_failed__returns__d.
cmove edi, ebx
lea rcx, [rbp - 0x80]
mov r9d, edi
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x1400076a2
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000835c
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075b5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008504
jmp 0x1400075b5
mov ebx, 0x8007065b
cmp r15d, 1
jne 0x1400077e7
lea r8, [rbp - 0x80]
lea rcx, [rbp + 0xa0]
call fcn.140009510
mov edi, dword [rbp + 0xa0]
test edi, edi
jne 0x140007773
mov r8d, dword [rbp - 0x64]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x140007759
lea r8, [rbp - 0x40]
mov edx, 0x2000000
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, r15
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x140007c6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x14000776e
movzx edi, ax
or edi, 0x80070000
test edi, edi
cmove edi, ebx
mov r9d, edi
lea r8, str.Get_the_TrustedInstaller_service_access_token
lea rdx, str._s_failed__returns__d.
lea rcx, [rbp - 0x80]
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x140007797
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000835c
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075b5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000850a
jmp 0x1400075b5
cmp r15d, 2
jne 0x1400078a9
lea r8, [rbp - 0x40]
lea rcx, [rbp - 0x28]
call fcn.140009770
mov r15, rax
cmp dword [rax + 4], r14d
jne 0x140007c6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140007820
movzx edi, ax
or edi, 0x80070000
cmp byte [r15], r14b
je 0x14000782d
test edi, edi
jne 0x140007835
mov edi, ebx
jmp 0x140007835
test edi, edi
je 0x140007c6d
mov r9d, edi
lea r8, str.Get_the_system_access_token
lea rdx, str._s_failed__returns__d.
lea rcx, [rbp - 0x80]
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x140007859
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000835c
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075b5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008510
jmp 0x1400075b5
cmp r15d, 3
jne 0x140007956
mov ecx, dword [rbp - 0x58]
lea rdx, [rbp - 0x40]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x140007c6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x1400078dd
movzx edi, ax
or edi, 0x80070000
test edi, edi
lea r8, str.Get_the_current_session_access_token
lea rdx, str._s_failed__returns__d.
cmove edi, ebx
lea rcx, [rbp - 0x80]
mov r9d, edi
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x140007906
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000835c
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075b5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008516
jmp 0x1400075b5
cmp r15d, 4
jne 0x140007a0e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x40]
mov edx, 0x2000000
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140007c6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140007995
movzx edi, ax
or edi, 0x80070000
test edi, edi
lea r8, str.Get_the_current_process_access_token
lea rdx, str._s_failed__returns__d.
cmove edi, ebx
lea rcx, [rbp - 0x80]
mov r9d, edi
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x1400079be
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000835c
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075b5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000851c
jmp 0x1400075b5
cmp r15d, 5
jne 0x140007af5
mov qword [rbp - 0x50], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x50]
mov edx, 0x2000000
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140007a59
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140007a4d
movzx edi, ax
or edi, 0x80070000
test edi, edi
mov eax, 0x8007065b
cmove edi, eax
jmp 0x140007a81
mov rdx, qword [rbp - 0x50]
lea r8, [rbp - 0x40]
lea rcx, [rbp + 0xa0]
call fcn.140009a00
mov rcx, qword [rbp - 0x50]
mov edi, dword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x140007c6d
mov r9d, edi
lea r8, str.Create_the_current_process_LUA_acccess_token
lea rdx, str._s_failed__returns__d.
lea rcx, [rbp - 0x80]
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x140007aa5
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000835c
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075b5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008522
jmp 0x1400075b5
cmp r15d, 6
jne 0x1400082e0
mov ecx, dword [rbp - 0x58]
lea rdx, [rbp - 0x50]
mov qword [rbp - 0x50], r14
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x140007b38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140007b29
movzx edi, ax
or edi, 0x80070000
test edi, edi
mov eax, 0x8007065b
cmove edi, eax
jmp 0x140007bf9
mov rcx, qword [rbp - 0x50]
lea rax, [rbp + 0xa0]
mov r9d, 8
mov qword [rbp - 0x28], r14
lea r8, [rbp - 0x28]
mov dword [rbp + 0xa0], r14d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0xb]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140007b95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140007b80
movzx edi, ax
or edi, 0x80070000
mov rcx, qword [rbp - 0x50]
test edi, edi
jne 0x140007b8d
mov edi, 0x8007065b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007bf9
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140007bc7
mov edi, r14d
jmp 0x140007be1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140007bdc
movzx edi, ax
or edi, 0x80070000
test edi, edi
cmove edi, ebx
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x140007c6d
mov r9d, edi
lea r8, str.Get_the_elevated_current_session_acccess_token
lea rdx, str._s_failed__returns__d.
lea rcx, [rbp - 0x80]
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x140007c1d
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000835c
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075b5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008528
jmp 0x1400075b5
mov rcx, qword [rbp - 0x40]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x140007d2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140007cb3
movzx edi, ax
or edi, 0x80070000
test edi, edi
lea r8, str.Duplicate_the_access_token
lea rdx, str._s_failed__returns__d.
cmove edi, ebx
lea rcx, [rbp - 0x80]
mov r9d, edi
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x140007cdc
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000835c
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075b5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000852e
jmp 0x1400075b5
mov rcx, qword [rbp - 0x48]
lea r8, [rbp - 0x58]
mov r9d, 4
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x140007dda
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140007d61
movzx edi, ax
or edi, 0x80070000
test edi, edi
lea r8, str.Set_the_session_ID_for_access_token
lea rdx, str._s_failed__returns__d.
cmove edi, ebx
lea rcx, [rbp - 0x80]
mov r9d, edi
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x140007d8a
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000835c
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075b5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008534
jmp 0x1400075b5
mov ecx, dword [rsp + 0x64]
sub ecx, 1
je 0x140007e7f
cmp ecx, 1
jne 0x140007f0d
mov rdx, qword [rbp - 0x48]
lea rcx, [rsp + 0x64]
xor r8d, r8d
call fcn.140009fe0
mov edi, dword [rax]
test edi, edi
je 0x140007f0d
mov r9d, edi
lea r8, str.Disable_all_privileges_for_access_token
lea rdx, str._s_failed__returns__d.
lea rcx, [rbp - 0x80]
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x140007e2f
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000835c
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075b5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000853a
jmp 0x1400075b5
mov rdx, qword [rbp - 0x48]
lea rcx, [rsp + 0x64]
mov r8d, 2
call fcn.140009fe0
mov edi, dword [rax]
test edi, edi
je 0x140007f0d
mov r9d, edi
lea r8, str.Enable_all_privileges_for_access_token
lea rdx, str._s_failed__returns__d.
lea rcx, [rbp - 0x80]
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x140007ebd
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000835c
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075b5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008540
jmp 0x1400075b5
cmp dword [rbp + 0xa4], r14d
je 0x14000802e
mov rdi, qword [rbp - 0x48]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0xa4]
mov dword [rsp + 0x48], r14d
xor r9d, r9d
mov dword [rsp + 0x40], r14d
mov r8d, r12d
mov dword [rsp + 0x38], r14d
mov dl, 1
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov dword [rbp + 0xa4], r14d
mov word [rbp + 0xa8], 0x1000
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140007fa0
mov r9d, 0x10
mov dword [rbp - 0x20], 0x20
lea r8, [rbp - 0x28]
mov rcx, rdi
lea edx, [r9 + 9]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov rcx, qword [rbp - 0x28]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
jne 0x14000802e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140007fb5
movzx edi, ax
or edi, 0x80070000
test edi, edi
lea r8, str.Set_mandatory_label_for_access_token
lea rdx, str._s_failed__returns__d.
cmove edi, ebx
lea rcx, [rbp - 0x80]
mov r9d, edi
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x140007fde
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000835c
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075b5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008546
jmp 0x1400075b5
cmp dword [rsp + 0x68], r14d
lea rcx, [rbp - 8]
mov rdx, qword [rbp - 0x48]
xorps xmm1, xmm1
movups xmmword [rbp + 0x30], xmm1
mov eax, 0x404
mov edi, 0x414
cmove edi, eax
movaps xmmword [rbp + 0x60], xmm1
xor eax, eax
mov dword [rbp + 0x30], 0x68
mov qword [rbp + 0x90], rax
xorps xmm0, xmm0
mov qword [rbp + 0x20], rax
mov r8d, 1
lea rax, str.WinSta0Default
mov qword [rbp - 8], r14
movups xmmword [rbp + 0x40], xmm1
mov qword [rbp + 0x40], rax
movups xmmword [rbp + 0x70], xmm1
movups xmmword [rbp + 0x50], xmm1
movups xmmword [rbp + 0x80], xmm1
psrldq xmm1, 0xc
movd eax, xmm1
movups xmmword [rbp + 0x10], xmm0
or eax, 1
mov dword [rbp + 0x6c], eax
mov eax, dword [rsp + 0x60]
mov word [rbp + 0x70], ax
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x1400080db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x1400080cc
movzx edi, ax
or edi, 0x80070000
test edi, edi
mov eax, 0x8007065b
cmove edi, eax
jmp 0x14000825b
mov rdx, qword [rsp + 0x70]
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], 7
inc rsi
cmp word [rdx + rsi*2], r14w
jne 0x1400080f0
mov r8, rsi
lea rcx, [rbp - 0x28]
call fcn.1400051f0
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x80]
call fcn.14000a4a0
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x140008153
mov rcx, qword [rbp - 0x28]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000814e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008570
call fcn.14000afec
cmp qword [rbp - 0x68], 8
lea rax, [rbp + 0x10]
mov rcx, qword [rbp - 0x48]
lea r8, [rbp - 0x80]
cmovae r8, qword [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x50], rax
xor edx, edx
lea rax, [rbp + 0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1400081eb
mov rcx, qword [rbp + 0x10]
mov edx, r13d
mov edi, r14d
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [rsp + 0x6c]
xor r8d, r8d
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, r14d
jmp 0x14000820d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140008200
movzx edi, ax
or edi, 0x80070000
test edi, edi
jne 0x14000820b
mov edi, 0x8007065b
jmp 0x14000820d
mov ebx, edi
mov rcx, qword [rbp - 8]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140008257
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008252
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008576
call fcn.14000afec
test ebx, ebx
je 0x1400082cf
mov r9d, edi
lea r8, str.Create_process
lea rdx, str._s_failed__returns__d.
lea rcx, [rbp - 0x80]
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x14000827f
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000835c
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075b5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000854c
jmp 0x1400075b5
lea rdx, str.Everything_seems_to_be_OK
call fcn.140006bf0
jmp 0x14000835f
mov edi, 0x80070057
jmp 0x14000835c
mov edi, 0x80070008
mov r9d, edi
lea r8, str.Enable_the_SeDebugPrivilege_for_the_context_access_token
lea rdx, str._s_failed__returns__d.
lea rcx, [rbp - 0x80]
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x140008310
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140008358
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008353
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000857c
call fcn.14000afec
mov ebx, edi
mov edi, ebx
mov r14d, edi
mov rcx, qword [rbp]
cmp rcx, 0xffffffffffffffff
je 0x14000836f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x38]
cmp rcx, 0xffffffffffffffff
je 0x14000837f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 8]
cmp rcx, 0xffffffffffffffff
je 0x14000838f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x30]
cmp rcx, 0xffffffffffffffff
je 0x14000839f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x48]
cmp rcx, 0xffffffffffffffff
je 0x1400083af
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x40]
cmp rcx, 0xffffffffffffffff
je 0x1400083bf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov eax, r14d
jmp 0x1400084a5
lea r8, str.ProcessPriorityClassType
lea rdx, str.Invalid_Parameter:__s
lea rcx, [rbp - 0x80]
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x1400083f2
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400084a0
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000849b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008552
jmp 0x14000849b
lea r8, str.MandatoryLabelType
lea rdx, str.Invalid_Parameter:__s
lea rcx, [rbp - 0x80]
call fcn.14000a810
cmp qword [rax + 0x18], 8
jb 0x14000845c
mov rax, qword [rax]
mov rdx, rax
call fcn.140006bf0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400084a0
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000849b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400084da
call fcn.14000afec
mov eax, 0x80070057
mov r13, qword [rsp + 0x1e0]
mov r12, qword [rsp + 0x1e8]
mov r14, qword [rsp + 0x1d8]
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14000ac70
add rsp, 0x1f0
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3
call fcn.14000ed30
int3