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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7e0]
sub rsp, 0x8e0
mov rax, qword [0x140085080]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
xor r12d, r12d
mov dword [rbp + 0x370], 0x30
lea rax, [0x140066440]
mov qword [rbp + 0x3a0], r12
mov qword [rbp + 0x380], rax
mov rsi, r9
lea rax, [rbp + 0x3ac]
mov dword [rbp + 0x3a8], r12d
mov qword [rsp + 0x30], rax
mov r14, r8
mov edi, edx
mov dword [rsp + 0x28], 4
mov r15d, ecx
mov qword [rsp + 0x20], r12
xorps xmm0, xmm0
mov qword [rbp + 0x378], r12
xor r9d, r9d
mov dword [rbp + 0x388], 0x40
lea r8, [rbp + 0x370]
mov edx, 0x2001f
lea rcx, [rbp + 0x3a0]
movdqu xmmword [rbp + 0x390], xmm0
call qword [sym.imp.ntdll.dll_NtCreateKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14001aa1d
mov dword [rsp + 0x50], 0xcb
lea rax, str.NtCreateKey__Key.GetMutablePointer________0x00020000L_____0x0001____0x0008____0x0010______0x00100000L_________0x00020000L_____0x0002____0x0004______0x00100000L_____ObjectAttributes__0__0___0x00000004L___Disposition_
lea rcx, str.onecore_basewcplibraryutil_ccpinterfacekey.cpp
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rcx
mov r8d, ebx
lea rcx, str.Windows::WCP::CCPInterfaceKeyUtils::SetCCPRebootReasonUsingNt
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x40]
call fcn.140059c64
mov rcx, qword [rbp + 0x3a0]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001aa16
mov qword [rbp + 0x3a0], r12
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14001ac54
mov rcx, qword [rbp + 0x3a0]
lea rax, [rbp + 0x3a8]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x3b0]
mov r8d, 2
mov dword [rsp + 0x20], 0x420
lea rdx, [0x140066450]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov r13d, 0x410
test eax, eax
js 0x14001aa7f
cmp dword [rbp + 0x3b4], 3
jne 0x14001aa7f
cmp dword [rbp + 0x3b8], r13d
jne 0x14001aa7f
mov ecx, dword [rbp + 0x3bc]
jmp 0x14001ab03
mov r8, r13
lea rcx, [rsp + 0x60]
xor edx, edx
call sub.ntdll.dll_memset
mov edx, 8
lea rax, [rbp + 0x3bc]
lea rcx, [rsp + 0x60]
lea r8d, [rdx + 0x78]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x30], xmm1
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x40], xmm0
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x50], xmm1
movups xmm1, xmmword [rcx + 0x70]
add rcx, r8
movups xmmword [rax + 0x60], xmm0
add rax, r8
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x14001aaa3
movups xmm0, xmmword [rcx]
mov ecx, r12d
movups xmmword [rax], xmm0
or dword [rbp + 0x3c0], 0xffffffff
mov dword [rbp + 0x3bc], ecx
mov word [rbp + 0x5c2], r12w
mov word [rbp + 0x7ca], r12w
test ecx, ecx
je 0x14001ab20
cmp ecx, 1
jne 0x14001ac2e
mov r8, r13
lea rcx, [rbp + 0x3bc]
xor edx, edx
call sub.ntdll.dll_memset
or rbx, 0xffffffffffffffff
mov dword [rbp + 0x3bc], r15d
test r14, r14
je 0x14001ab87
mov dword [rbp + 0x3c0], edi
mov rdi, rbx
inc rdi
cmp word [r14 + rdi*2], r12w
jne 0x14001ab4a
test rdi, rdi
je 0x14001ab7c
cmp rdi, 0x100
lea rcx, [rbp + 0x3c4]
mov eax, 0xff
mov rdx, r14
cmovae rdi, rax
lea r8, [rdi + rdi]
call sub.ntdll.dll_memcpy
mov word [rbp + rdi*2 + 0x3c4], r12w
jmp 0x14001ab96
or dword [rbp + 0x3c0], 0xffffffff
mov word [rbp + 0x3c4], r12w
test rsi, rsi
je 0x14001abd8
inc rbx
cmp word [rsi + rbx*2], r12w
jne 0x14001ab9b
test rbx, rbx
je 0x14001abcd
cmp rbx, 0x104
lea rcx, [rbp + 0x5c4]
mov eax, 0x103
mov rdx, rsi
cmovae rbx, rax
lea r8, [rbx + rbx]
call sub.ntdll.dll_memcpy
mov word [rbp + rbx*2 + 0x5c4], r12w
jmp 0x14001abe0
mov word [rbp + 0x5c4], r12w
mov rcx, qword [rbp + 0x3a0]
lea rax, [rbp + 0x3bc]
mov dword [rsp + 0x28], r13d
lea rdx, [0x140066450]
mov r9d, 3
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtSetValueKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14001ac2e
mov dword [rsp + 0x50], 0x12d
lea rax, str.NtSetValueKey__Key___PUNICODE_STRING_g_UNICODE_STRING_RebootReason__0____3ul____pRebootReason__sizeof_CCPRebootReason__
jmp 0x14001a9c8
mov rcx, qword [rbp + 0x3a0]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001ac52
mov qword [rbp + 0x3a0], r12
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x7d0]