Function at 0x140001e40
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140014040]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 7]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001f8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, [rbp + 0x49]
nop
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dx
shl cx, 2
lea eax, [rcx + rdx]
add ax, ax
sub r8w, ax
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140001e90
lea r8, [rbp + 0x49]
mov rdx, r9
lea rcx, [rbp - 0x19]
call fcn.14000a6c0
nop
lea r8, [rbp - 0x19]
lea rdx, str.OpenProcessToken_failed._Error_code:
lea rcx, [rbp - 0x39]
call fcn.140008f10
nop
mov rcx, rax
call fcn.140001860
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 7
jbe 0x140001f32
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001f2d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
movdqa xmm0, xmmword [0x140010180]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], bx
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x140001f86
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f81
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001f81
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
xor al, al
jmp 0x140002399
lea r8, [rbp + 0x13]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1400020c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, [rbp + 0x49]
nop word [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dx
shl cx, 2
lea eax, [rcx + rdx]
add ax, ax
sub r8w, ax
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140001fc0
lea r8, [rbp + 0x49]
mov rdx, r9
lea rcx, [rbp - 0x19]
call fcn.14000a6c0
nop
lea r8, [rbp - 0x19]
lea rdx, str.LookupPrivilegeValue_failed._Error_code:
lea rcx, [rbp - 0x39]
call fcn.140008f10
nop
mov rcx, rax
call fcn.140001860
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 7
jbe 0x140002062
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000205d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000205d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
movdqa xmm0, xmmword [0x140010180]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], bx
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x1400020b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400020b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400020b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
mov rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140002399
mov dword [rbp + 0xf], 1
mov dword [rbp + 0x1b], 2
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov r9d, 0x10
lea r8, [rbp + 0xf]
xor edx, edx
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14000220d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, [rbp + 0x49]
nop word [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dx
shl cx, 2
lea eax, [rcx + rdx]
add ax, ax
sub r8w, ax
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140002110
lea r8, [rbp + 0x49]
mov rdx, r9
lea rcx, [rbp - 0x19]
call fcn.14000a6c0
nop
lea r8, [rbp - 0x19]
lea rdx, str.AdjustTokenPrivileges_failed._Error_code:
lea rcx, [rbp - 0x39]
call fcn.140008f10
nop
mov rcx, rax
call fcn.140001860
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 7
jbe 0x1400021b2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400021ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400021ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
movdqa xmm0, xmmword [0x140010180]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], bx
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x1400020b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400020b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400020b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rbp - 0x39], xmm0
movdqu xmmword [rbp - 0x29], xmm1
cmp eax, 0x514
jne 0x1400022db
mov ecx, 0x40
call fcn.14000b9e0
mov rcx, rax
mov qword [rbp - 0x39], rax
movdqa xmm0, xmmword [0x1400101c0]
movdqu xmmword [rbp - 0x29], xmm0
movups xmm0, xmmword [str.Debug_privilege_not_assigned.]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14000ebb8]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14000ebc8]
movups xmmword [rax + 0x20], xmm0
movsd xmm0, qword [0x14000ebd8]
movsd qword [rax + 0x30], xmm0
movzx eax, word [0x14000ebe0]
mov word [rcx + 0x38], ax
mov word [rcx + 0x3a], bx
lea rcx, [rbp - 0x39]
call fcn.140001860
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 7
jbe 0x1400020b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400020b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400020b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ecx, 0x50
call fcn.14000b9e0
mov rcx, rax
mov qword [rbp - 0x39], rax
movdqa xmm0, xmmword [0x1400101e0]
movdqu xmmword [rbp - 0x29], xmm0
movaps xmm0, xmmword [str.Debug_privilege_enabled_successfully.]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x14000ec00]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x14000ec10]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x14000ec20]
movups xmmword [rax + 0x30], xmm1
movsd xmm0, qword [0x14000ec30]
movsd qword [rax + 0x40], xmm0
movzx eax, word [0x14000ec38]
mov word [rcx + 0x48], ax
mov word [rcx + 0x4a], bx
lea rcx, [rbp - 0x39]
call fcn.140001860
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 7
jbe 0x14000238d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002388
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002388
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
mov rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14000b8a0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rbp
ret