Function at 0x140001880
Capabilities:
Acquire debug privileges

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x140
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x120], rax
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x98]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001d03
lea r8, [rsp + 0x100]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x98]
test eax, eax
je 0x140001d25
mov dword [rsp + 0xb0], 1
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0xb4], rax
mov dword [rsp + 0xbc], 2
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov r9d, 0x10
lea r8, [rsp + 0xb0]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x98]
test eax, eax
je 0x140001d4d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.dwm.exe
lea rcx, [rsp + 0xc0]
call fcn.140001e50
nop
lea rcx, [rsp + 0xc0]
call fcn.140001360
mov r13d, eax
test eax, eax
jne 0x140001a3e
lea rdx, str.Process
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140002220
lea rdx, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 7
cmova rdx, qword [rsp + 0xc0]
mov r8, qword [rsp + 0xd0]
mov rcx, rax
call fcn.140002640
lea rdx, str._not_found.
mov rcx, rax
call fcn.140002220
lea rdx, [0x140002490]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0xd8]
cmp rdx, 7
jbe 0x140001a34
lea rdx, [rdx*2 + 2]
mov rax, qword [rsp + 0xc0]
mov rcx, rax
cmp rdx, 0x1000
jb 0x140001a2c
add rdx, 0x27
mov rax, qword [rax - 8]
sub rcx, rax
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x140001cb6
mov rcx, rax
call fcn.140002e4c
mov eax, 1
jmp 0x140001ccc
xorps xmm0, xmm0
movdqa xmm1, xmmword [0x140005760]
movdqu xmmword [rsp + 0xb0], xmm1
lea rdi, [rsp + 0xb0]
movdqu xmmword [rsp + 0xe0], xmm0
mov qword [rsp + 0xf0], rbx
mov ecx, 0x10
call fcn.140002e10
mov rsi, rax
mov qword [rsp + 0xe0], rax
lea r15, [rax + 0x10]
mov qword [rsp + 0xf0], r15
mov r8d, 0x10
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
lea r12, [rsi + 0x10]
mov qword [rsp + 0xe8], r12
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rbx
mov ecx, 0x20
call fcn.140002e10
mov rdi, rax
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0xa0], rax
mov rbx, rsi
movabs r14, 0x7ffffffffffffff
cmp rbx, r12
je 0x140001bcd
mov r9, rbx
mov r8, rdi
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0xa0]
call fcn.140002ae0
movups xmm6, xmmword [rax]
movsd xmm0, qword [rax + 0x10]
movsd qword [rsp + 0x110], xmm0
cmp byte [rsp + 0x110], 0
jne 0x140001bc4
cmp qword [rsp + 0xa8], r14
je 0x140001d76
mov r14, qword [rsp + 0xa0]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], 0
mov ecx, 0x20
call fcn.140002e10
mov r8, rax
mov eax, dword [rbx]
mov dword [r8 + 0x1c], eax
mov qword [r8], r14
mov qword [r8 + 8], r14
mov qword [r8 + 0x10], r14
mov word [r8 + 0x18], 0
mov qword [rsp + 0xb8], 0
movaps xmmword [rsp + 0x100], xmm6
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0xa0]
call fcn.140002860
movabs r14, 0x7ffffffffffffff
add rbx, 4
jmp 0x140001af7
lea rdx, [rsp + 0xa0]
mov ecx, r13d
call fcn.1400015f0
nop
mov rcx, qword [rsp + 0xa0]
mov rbx, qword [rcx + 8]
cmp byte [rbx + 0x19], 0
jne 0x140001c27
mov r8, qword [rbx + 0x10]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xa0]
call fcn.140002810
mov rcx, rbx
mov rbx, qword [rbx]
mov edx, 0x20
call fcn.140002e4c
cmp byte [rbx + 0x19], 0
je 0x140001bf0
mov rcx, qword [rsp + 0xa0]
mov edx, 0x20
call fcn.140002e4c
nop
test rsi, rsi
je 0x140001c77
sub r15, rsi
sar r15, 2
lea rdx, [r15*4]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140001c6e
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c6e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140002e4c
nop
mov rdx, qword [rsp + 0xd8]
cmp rdx, 7
jbe 0x140001cc3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001cbd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001cbd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002e4c
nop
xor eax, eax
jmp 0x140001ccc
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140002df0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
ret
lea rdx, str.Failed_to_open_process_token.
lea rcx, [rsp + 0x38]
call fcn.1400011d0
lea rdx, [0x140006570]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Failed_to_lookup_privilege_value.
lea rcx, [rsp + 0x50]
call fcn.1400011d0
lea rdx, [0x140006570]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Failed_to_adjust_token_privileges.
lea rcx, [rsp + 0x68]
call fcn.1400011d0
lea rdx, [0x140006570]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140001340
int3