Function at 0x14007c990
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rdi, rcx
mov qword [rbp - 0x80], rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov dword [rsp + 0x30], 1
mov qword [rbp - 0x78], r12
mov r15d, r12d
cmp dword [0x140455d78], r12d
je 0x14007cbe6
movzx ecx, word [0x140455b60]
call fcn.14007f830
test eax, eax
je 0x14007ce42
lea r8, str.X:windows_system32configSOFTWARE
lea rdx, [0x140325270]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x14007cbdc
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea r8d, [r12 + 4]
lea rdx, [0x1403252b0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14007cbdc
mov r9d, 0x104
lea r8, [rbp - 0x50]
xor edx, edx
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
je 0x14007cbd2
nop dword [rax]
inc r15d
lea r8, [0x140325348]
lea rdx, [rbp - 0x50]
mov rcx, qword [rbp - 0x78]
call fcn.14005f970
mov rbx, rax
test rax, rax
je 0x14007cbb0
xor r8d, r8d
lea rdx, [0x1403253e8]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x14007cbb0
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r12
mov word [rsp + 0x38], r12w
cmp word [rbx], ax
jne 0x14007caec
mov r8, r12
jmp 0x14007cafb
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x14007caf0
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.14004db90
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.14004b980
mov rbx, rax
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 8], rcx
jne 0x14007cb2d
mov rcx, rdi
call fcn.140056010
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14007cb5d
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r12
cmp qword [rcx + 0x18], 8
jb 0x14007cb4e
mov rax, qword [rcx]
jmp 0x14007cb51
mov rax, rcx
mov word [rax], r12w
mov rdx, rbx
call fcn.14004dce0
add qword [rdi + 8], 0x20
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x14007cb7f
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.14004e100
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x14007cbb0
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.14004e100
mov r9d, 0x104
lea r8, [rbp - 0x50]
mov edx, r15d
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x14007ca90
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.14007f940
jmp 0x14007ce42
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov r8d, 4
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14007ce42
mov r9d, 0x104
lea r8, [rbp - 0x50]
xor edx, edx
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
je 0x14007ce38
nop dword [rax + rax]
inc r15d
cmp dword [0x140455b64], 0
jne 0x14007ce38
mov qword [rbp - 0x68], r12
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov r8d, 4
lea rdx, [rbp - 0x50]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14007ce16
mov r14, qword [rbp - 0x68]
mov rbx, r12
mov dword [rbp - 0x70], r12d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140325288]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
js 0x14007cd19
mov ecx, dword [rbp - 0x70]
add rcx, rcx
call fcn.140125a94
mov rbx, rax
test rax, rax
je 0x14007cd14
mov dword [rbp - 0x60], r12d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x60]
xor r8d, r8d
lea rdx, [0x140325288]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
js 0x14007cd05
mov eax, dword [rbp - 0x60]
dec eax
cmp eax, 1
jbe 0x14007cd19
mov esi, 0x8007048a
mov rcx, rbx
call fcn.140125e14
mov ebx, 0x8123
jmp 0x14007cd19
mov esi, 8
test esi, esi
js 0x14007ce0c
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r12
mov word [rsp + 0x38], r12w
cmp word [rbx], 0
jne 0x14007cd40
mov r8, r12
jmp 0x14007cd4f
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x14007cd44
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.14004db90
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.14004b980
mov rsi, rax
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 8], rcx
jne 0x14007cd81
mov rcx, rdi
call fcn.140056010
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14007cdb1
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r12
cmp qword [rcx + 0x18], 8
jb 0x14007cda2
mov rax, qword [rcx]
jmp 0x14007cda5
mov rax, rcx
mov word [rax], r12w
mov rdx, rsi
call fcn.14004dce0
add qword [rdi + 8], 0x20
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x14007cdd3
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.14004e100
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x14007ce04
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.14004e100
mov rcx, rbx
call fcn.140125e14
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, 0x104
lea r8, [rbp - 0x50]
mov edx, r15d
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x14007cc40
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140125a70
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret