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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov rcx, qword [0x180012460]
call sub.ntoskrnl.exe_strlen
test rax, rax
jne 0x1800085fc
mov eax, 0xc0000001
jmp 0x180008925
mov rdx, qword [0x180012460]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x68], 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 + 0x70], eax
cmp dword [rsp + 0x70], 0
jge 0x180008921
mov edx, dword [rsp + 0x30]
mov r8d, 0x6b6f6b6f
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x180008900
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8, qword [rsp + 0x68]
mov edx, 2
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jl 0x180008900
mov dword [rsp + 0x50], 0
jmp 0x1800086d0
mov eax, dword [rsp + 0x50]
add eax, 1
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x50], eax
jae 0x180008900
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov dword [rsp + 0x70], eax
mov edx, dword [rsp + 0x30]
mov r8d, 0x6b6f6b6f
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 + 0x50]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0xc]
mov word [rsp + 0x88], ax
mov rax, qword [rsp + 0x48]
add rax, 0x10
mov qword [rsp + 0x90], rax
mov r8d, 0x6b6f6b6f
mov edx, 0x410
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x98], rax
mov r8d, 0x410
xor edx, edx
mov rcx, qword [rsp + 0x98]
call fcn.18000ece0
mov r8w, 0x410
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0xa0]
call fcn.180008c60
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
lea rdx, [0x1800106bc]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
mov dword [rsp + 0xb8], 0x30
mov qword [rsp + 0xc0], 0
mov dword [rsp + 0xd0], 0x40
lea rax, [rsp + 0xa0]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
lea r8, [rsp + 0xb8]
mov edx, 0xf003f
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jl 0x1800088da
lea rdx, [0x1800106c0]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
movzx eax, word [rsp + 0x58]
add rax, 2
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp qword [rsp + 0x48], 0
je 0x1800088fb
mov edx, 0x6b6f6b6f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsp + 0x48], 0
jmp 0x1800086c5
cmp qword [rsp + 0x68], 0
je 0x180008921
mov edx, 0x6b6f6b6f
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsp + 0x68], 0
mov eax, dword [rsp + 0x70]
add rsp, 0xf8
ret