Function at 0x140006aa8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x700]
sub rsp, 0x800
mov rax, qword [0x14000b0d0]
xor rax, rsp
mov qword [rbp + 0x6f0], rax
cmp qword [rcx + 0x10], 0
mov r12, rdx
mov rdi, rcx
mov ebx, 0xc0000225
je 0x140006dfc
cmp dword [rdi + 0x48], 7
jne 0x140006ded
mov rsi, qword [rdi + 0x40]
test rsi, rsi
je 0x140006df1
movzx r14d, word [rsi + 0x70]
test r14d, r14d
je 0x140006df1
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, 0x100
call fcn.140007ec0
mov rdx, qword [rsi + 0x78]
lea rcx, [rbp - 0x10]
mov r8d, r14d
call fcn.1400080c0
lea eax, [r14 + 1]
mov r8d, 0x6f616d4c
mov edx, eax
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, ebx
lea rdx, [rbp - 0x10]
mov rcx, rax
mov r13, rax
call fcn.1400080c0
mov edx, r14d
mov rcx, r13
call fcn.1400076bc
mov rdx, r13
lea rcx, [rsi + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
xor bl, bl
xor r15d, r15d
xor edx, edx
lea rcx, [rbp + 0xf0]
mov r8d, 0x200
call fcn.140007ec0
mov r8d, r15d
lea rdx, [0x1400086e0]
lea rcx, [rbp + 0xf0]
call sub.ntoskrnl.exe_swprintf
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x70], 0
lea rax, [rbp - 0x58]
xorps xmm0, xmm0
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x68]
mov dword [rsp + 0x68], 0x30
mov edx, 0xf003f
mov dword [rbp - 0x80], 0x40
lea rcx, [rsp + 0x40]
movdqu xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x140006dcc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor r14d, r14d
xor edx, edx
lea rcx, [rbp + 0x2f0]
mov r8d, 0x200
call fcn.140007ec0
mov r9d, r14d
lea rdx, [0x140008750]
mov r8d, r15d
lea rcx, [rbp + 0x2f0]
call sub.ntoskrnl.exe_swprintf
lea rdx, [rbp + 0x2f0]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x70], 0
lea rax, [rbp - 0x48]
xorps xmm0, xmm0
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x68]
mov dword [rsp + 0x68], 0x30
mov edx, 0xf003f
mov dword [rbp - 0x80], 0x40
lea rcx, [rsp + 0x38]
movdqu xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x140006dbf
lea rdx, [0x140008820]
lea rcx, [rbp - 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
and dword [rsp + 0x30], 0
lea r9, [rbp + 0xf0]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x68]
mov r8d, 2
mov dword [rsp + 0x20], 0x140
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x140006db0
cmp dword [rbp + 0xf8], 0
je 0x140006db0
lea rdx, [rbp + 0xfc]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlUnicodeStringToAnsiString]
movzx r8d, word [rsp + 0x58]
lea rcx, [rbp - 0x10]
mov rdx, qword [rsp + 0x60]
call fcn.140008380
test eax, eax
jne 0x140006da5
mov rdx, r13
lea rcx, [rbp - 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
xor edx, edx
lea rcx, [rbp + 0x4f0]
mov r8d, 0x200
call fcn.140007ec0
movzx eax, word [rsp + 0x48]
lea rcx, [rbp + 0x4f0]
mov rdx, qword [rsp + 0x50]
lea ebx, [rax + rax]
mov r8d, ebx
call fcn.1400080c0
mov rcx, qword [rsp + 0x38]
lea eax, [rbx + 2]
mov dword [rsp + 0x28], eax
lea rdx, [rbp - 0x68]
lea rax, [rbp + 0x4f0]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov bl, 1
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlFreeAnsiString]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test bl, bl
jne 0x140006dd9
inc r14d
cmp r14d, 0x14
jl 0x140006c05
inc r15d
cmp r15d, 0xa
jl 0x140006b79
xor ebx, ebx
mov rcx, rsi
and dword [rsi + 0x7c8], ebx
mov rax, r12
call qword [0x140009318]
mov rdi, qword [rdi + 0x10]
cmp qword [rdi + 0x10], 0
jne 0x140006aee
mov eax, ebx
mov rcx, qword [rbp + 0x6f0]
xor rcx, rsp
call fcn.140007e50
mov rbx, qword [rsp + 0x850]
add rsp, 0x800
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret