Function at 0x140018434
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 [0x140078140]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
xor r12d, r12d
mov dword [rbp + 0x370], 0x30
lea rax, [0x14005a320]
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 0x140018521
lea rax, str.onecore_basewcplibraryutil_ccpinterfacekey.cpp
mov dword [rsp + 0x50], 0xcb
mov qword [rsp + 0x40], rax
lea rax, str.Windows::WCP::CCPInterfaceKeyUtils::SetCCPRebootReasonUsingNt
mov qword [rsp + 0x48], rax
lea rax, str.NtCreateKey__Key.GetMutablePointer________0x00020000L_____0x0001____0x0008____0x0010______0x00100000L_________0x00020000L_____0x0002____0x0004______0x00100000L_____ObjectAttributes__0__0___0x00000004L___Disposition_
jmp 0x140018741
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, [0x14005a330]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov r13d, 0x410
test eax, eax
js 0x140018583
cmp dword [rbp + 0x3b4], 3
jne 0x140018583
cmp dword [rbp + 0x3b8], r13d
jne 0x140018583
mov eax, dword [rbp + 0x3bc]
jmp 0x140018607
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 0x1400185a7
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
or dword [rbp + 0x3c0], 0xffffffff
mov eax, r12d
mov dword [rbp + 0x3bc], eax
mov word [rbp + 0x5c2], r12w
mov word [rbp + 0x7ca], r12w
cmp eax, 1
ja 0x14001877b
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 0x140018687
mov dword [rbp + 0x3c0], edi
mov rdi, rbx
inc rdi
cmp word [r14 + rdi*2], r12w
jne 0x14001864a
test rdi, rdi
je 0x14001867c
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 0x140018696
or dword [rbp + 0x3c0], 0xffffffff
mov word [rbp + 0x3c4], r12w
test rsi, rsi
je 0x1400186d8
inc rbx
cmp word [rsi + rbx*2], r12w
jne 0x14001869b
test rbx, rbx
je 0x1400186cd
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 0x1400186e0
mov word [rbp + 0x5c4], r12w
mov rcx, qword [rbp + 0x3a0]
lea rax, [rbp + 0x3bc]
mov dword [rsp + 0x28], r13d
lea rdx, [0x14005a330]
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 0x14001877b
lea rax, str.onecore_basewcplibraryutil_ccpinterfacekey.cpp
mov dword [rsp + 0x50], 0x12d
mov qword [rsp + 0x40], rax
lea rax, str.Windows::WCP::CCPInterfaceKeyUtils::SetCCPRebootReasonUsingNt
mov qword [rsp + 0x48], rax
lea rax, str.NtSetValueKey__Key___PUNICODE_STRING_g_UNICODE_STRING_RebootReason__0____3ul____pRebootReason__sizeof_CCPRebootReason__
mov r8d, ebx
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x40]
call fcn.14004f4fc
mov rcx, qword [rbp + 0x3a0]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140018777
mov qword [rbp + 0x3a0], r12
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
jmp 0x1400187a1
mov rcx, qword [rbp + 0x3a0]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001879f
mov qword [rbp + 0x3a0], r12
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.140058110
mov rbx, qword [rsp + 0x920]
add rsp, 0x8e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret