Function at 0x14011c970
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0x201eb
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14011c9f2
mov rcx, qword [str.0cg_]
lea rax, str.0cg_
cmp rcx, rax
je 0x14011cbaa
test byte [rcx + 0x1c], 1
je 0x14011cbaa
cmp byte [rcx + 0x19], 2
jb 0x14011cbaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [rbx + 0x29]
lea r9, [0x1405f7e00]
jmp 0x14011cb8f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
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 0x14011ca63
mov rcx, qword [str.0cg_]
lea rax, str.0cg_
cmp rcx, rax
je 0x14011cbaa
test byte [rcx + 0x1c], 1
je 0x14011cbaa
cmp byte [rcx + 0x19], 2
jb 0x14011cbaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x2a
lea r9, str.DuplicateHandleEx
jmp 0x14011cb8f
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov r9d, 4
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x14011cac3
mov rcx, qword [str.0cg_]
lea rax, str.0cg_
cmp rcx, rax
je 0x14011cbaa
test byte [rcx + 0x1c], 1
je 0x14011cbaa
cmp byte [rcx + 0x19], 2
jb 0x14011cbaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x2b
lea r9, [0x1405f9ff0]
jmp 0x14011cb8f
lea r8, [rsp + 0x48]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x14011cb1a
mov rcx, qword [str.0cg_]
lea rax, str.0cg_
cmp rcx, rax
je 0x14011cbaa
test byte [rcx + 0x1c], 1
je 0x14011cbaa
cmp byte [rcx + 0x19], 2
jb 0x14011cbaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x2c
lea r9, str.LookupPrivilegeValue
jmp 0x14011cb8f
mov rax, qword [rsp + 0x48]
lea r8, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov r9d, 0x10
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x5c], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14011cbdf
mov rcx, qword [str.0cg_]
lea rax, str.0cg_
cmp rcx, rax
je 0x14011cbaa
test byte [rcx + 0x1c], 1
je 0x14011cbaa
cmp byte [rcx + 0x19], 2
jb 0x14011cbaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x2d
lea r9, [0x1405fa0b0]
mov rcx, qword [str.0cg_]
lea r8, [0x1405fa6c0]
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.140079f00
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14011cbba
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14011cbca
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140359070
add rsp, 0x70
pop rbx
ret
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140359070
add rsp, 0x70
pop rbx
ret