Function at 0x14000aa60
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov rax, qword [0x140035d58]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
cmp byte [rax + rcx], 0
jne 0x14000aa87
mov rax, qword [rsp + 0x50]
test rax, rax
jne 0x14000aab0
mov eax, 0xc0000001
jmp 0x14000add6
mov rdx, qword [0x140035d58]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x14000add2
mov eax, dword [rsp + 0x30]
mov r8d, 0x666b7467
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14000adb1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov edx, 2
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x14000adb1
mov dword [rsp + 0x38], 0
jmp 0x14000ab88
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x38], eax
jae 0x14000adb1
lea rax, [rsp + 0x30]
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 + 0x100]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x30]
mov r8d, 0x666b7467
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x48]
xor r8d, r8d
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0xc]
mov word [rsp + 0x80], ax
mov rax, qword [rsp + 0x48]
add rax, 0x10
mov qword [rsp + 0x88], rax
mov r8d, 0x666b7467
mov edx, 0x410
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
mov r8w, 0x410
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140011bb0
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
lea rdx, [0x14002e200]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
mov dword [rsp + 0xa0], 0x30
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xb8], 0x40
lea rax, [rsp + 0x68]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
lea r8, [rsp + 0xa0]
mov edx, 0xf003f
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x14000ad8b
lea rdx, [0x14002e210]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
movzx eax, word [rsp + 0x90]
add rax, 2
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [0x140035d54], 1
cmp qword [rsp + 0x48], 0
je 0x14000adac
mov edx, 0x666b7467
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsp + 0x48], 0
jmp 0x14000ab7e
cmp qword [rsp + 0x40], 0
je 0x14000add2
mov edx, 0x666b7467
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x34]
add rsp, 0xf0
pop rdi
ret