Function at 0x140001968
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
lea r8, [0x140002670]
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 8]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_RtlDeleteRegistryValue]
lea r8, [0x140002690]
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 8]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_RtlDeleteRegistryValue]
lea r8, [0x1400026b0]
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 8]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_RtlDeleteRegistryValue]
lea r8, [0x1400026d0]
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 8]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_RtlDeleteRegistryValue]
lea r8, [0x1400026e0]
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 8]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_RtlDeleteRegistryValue]
lea r8, [0x1400026f0]
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 8]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_RtlDeleteRegistryValue]
mov rax, qword [rsp + 0xc0]
movzx eax, word [rax + 2]
add eax, 0x100
cdqe
mov rdx, rax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xc0]
movzx eax, word [rax + 2]
add eax, 0x100
cdqe
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.140002540
mov rax, qword [rsp + 0xc0]
movzx eax, word [rax]
mov r8d, eax
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x20]
call fcn.140002280
lea rdx, [0x140002700]
mov rcx, qword [rsp + 0x20]
call sub.ntoskrnl.exe_wcscat
lea r8, [0x140002710]
mov rdx, qword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_RtlDeleteRegistryValue]
lea r8, [0x140002730]
mov rdx, qword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_RtlDeleteRegistryValue]
lea r8, [0x140002750]
mov rdx, qword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_RtlDeleteRegistryValue]
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x58], 0x40
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
lea r8, [rsp + 0x40]
mov edx, 0xf003f
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jl 0x140001b6b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x70], 0x30
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x88], 0x40
mov rax, qword [rsp + 0xc0]
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 + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jl 0x140001c10
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
jmp 0x140001c15
mov eax, 0xc0000001
add rsp, 0xb0
pop rdi
ret