Function at 0x140001d70
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x70], 0x30
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x88], 0x40
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
lea r8, [rsp + 0x70]
mov edx, 0xf003f
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140001dfd
xor al, al
jmp 0x14000202b
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x34]
mov edx, eax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x50]
mov edx, 2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140001e88
lfence
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor al, al
jmp 0x14000202b
mov dword [rsp + 0x38], 0
jmp 0x140001e9c
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x38], eax
jae 0x140002011
lfence
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000023
je 0x140001eeb
jmp 0x140002011
mov eax, dword [rsp + 0x34]
mov edx, eax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x48]
xor r8d, r8d
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140001f47
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140002011
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0xc]
mov word [rsp + 0x60], ax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0xc]
mov word [rsp + 0x62], ax
mov rax, qword [rsp + 0x48]
add rax, 0x10
mov qword [rsp + 0x68], rax
mov dword [rsp + 0xa0], 0x30
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0xb8], 0x240
lea rax, [rsp + 0x60]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0x58], 0
lea r8, [rsp + 0xa0]
mov edx, 0xf003f
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140001fff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140001e92
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, 1
add rsp, 0xe8
ret