Function at 0x14000af28
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor r12d, r12d
mov r8d, 0x218
mov qword [rbp + 0x60], r12
mov qword [rbp - 0x18], r12
mov rax, qword gs:[0x60]
lea edx, [r12 + 8]
mov qword [rbp + 0x58], r12
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r15, rax
test rax, rax
jne 0x14000af85
mov ebx, 0xc0000017
jmp 0x14000b1c0
mov rax, qword gs:[0x60]
mov edx, 8
mov r8d, 0x218
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x14000afbb
mov ebx, 0xc0000017
jmp 0x14000b15a
mov r8d, 8
lea rdx, str.REGISTRYMACHINESOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
lea rcx, [rbp - 0x18]
call fcn.140008c18
mov ebx, eax
test eax, eax
js 0x14000b15a
mov rdi, qword [rbp + 0x58]
mov r13d, r12d
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14000affb
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
mov qword [rbp + 0x60], r12
test rdi, rdi
je 0x14000b01f
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp + 0x58]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
xor edx, edx
mov qword [rbp + 0x58], r12
mov r8d, 0x218
mov rcx, r14
mov rdi, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor edx, edx
mov r8d, 0x218
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov r9, r15
xor r8d, r8d
mov dword [rsp + 0x20], 0x217
mov edx, r13d
call qword [sym.imp.ntdll.dll_ZwEnumerateKey]
nop dword [rax + rax]
cmp eax, 0x8000001a
je 0x14000b157
test eax, eax
js 0x14000b14f
mov ebx, r12d
lea rsi, str.s_1_5_18
mov rdx, qword [rsi]
lea rcx, [r15 + 0x10]
call sub.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp
test eax, eax
je 0x14000b14c
inc ebx
add rsi, 8
cmp ebx, 3
jb 0x14000b08d
mov rdx, qword [rbp - 0x18]
lea r8, [r15 + 0x10]
lea rcx, [rbp + 0x60]
call fcn.140008cc8
xor r12d, r12d
test eax, eax
js 0x14000b14f
mov rdx, qword [rbp + 0x60]
lea r8, str.ProfileImagePath
lea rcx, [rbp + 0x58]
call fcn.140008ee8
mov rdi, qword [rbp + 0x58]
test eax, eax
js 0x14000b14f
mov rcx, rdi
call sub.api_ms_win_crt_private_l1_1_0.dll__o__wcslwr
mov rsi, qword [rbp + 0x48]
lea r8, str._USERPROFILE_
mov rcx, rsi
mov rdx, rdi
call fcn.14000ae80
mov ebx, eax
test eax, eax
js 0x14000b15a
lea edx, [r12 + 0x5c]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
test rax, rax
je 0x14000b14f
lea r8, [rax + 2]
cmp word [r8], r12w
je 0x14000b14f
lea rcx, [rsi + 0x30]
mov rax, qword [rcx + 0x10]
lea r9, str._USERNAME_
mov qword [rsp + 0x20], rax
call fcn.14000ad9c
mov ebx, eax
test eax, eax
js 0x14000b15a
jmp 0x14000b14f
xor r12d, r12d
inc r13d
jmp 0x14000afe2
mov ebx, r12d
mov rcx, qword gs:[0x60]
mov r8, r15
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test r14, r14
je 0x14000b19b
mov rcx, qword gs:[0x60]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
cmp qword [rbp + 0x58], r12
je 0x14000b1c0
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp + 0x58]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14000b1d5
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14000b1ea
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret