Function at 0x1400817e0
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 [0x1403a8088]
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 [0x14045ebc8], r12d
je 0x140081a36
movzx ecx, word [0x14045e53c]
call fcn.140084710
test eax, eax
je 0x140081c92
lea r8, str.X:windows_system32configSOFTWARE
lea rdx, [0x14032b520]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x140081a2c
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea r8d, [r12 + 4]
lea rdx, [0x14032b560]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140081a2c
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 0x140081a22
nop dword [rax]
inc r15d
lea r8, [0x14032b4e0]
lea rdx, [rbp - 0x50]
mov rcx, qword [rbp - 0x78]
call fcn.14005ffc0
mov rbx, rax
test rax, rax
je 0x140081a00
xor r8d, r8d
lea rdx, [0x14032b508]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x140081a00
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r12
mov word [rsp + 0x38], r12w
cmp word [rbx], ax
jne 0x14008193c
mov r8, r12
jmp 0x14008194b
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x140081940
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.14004dd70
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.14004bb60
mov rbx, rax
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 8], rcx
jne 0x14008197d
mov rcx, rdi
call fcn.140056660
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400819ad
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r12
cmp qword [rcx + 0x18], 8
jb 0x14008199e
mov rax, qword [rcx]
jmp 0x1400819a1
mov rax, rcx
mov word [rax], r12w
mov rdx, rbx
call fcn.14004dec0
add qword [rdi + 8], 0x20
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400819cf
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.14004e2e0
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x140081a00
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.14004e2e0
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 0x1400818e0
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.140084820
jmp 0x140081c92
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 0x140081c92
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 0x140081c88
nop dword [rax + rax]
inc r15d
cmp dword [0x14045e968], 0
jne 0x140081c88
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 0x140081c66
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, [0x14032b538]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
js 0x140081b69
mov ecx, dword [rbp - 0x70]
add rcx, rcx
call fcn.14012a2dc
mov rbx, rax
test rax, rax
je 0x140081b64
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, [0x14032b538]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
js 0x140081b55
mov eax, dword [rbp - 0x60]
dec eax
cmp eax, 1
jbe 0x140081b69
mov esi, 0x8007048a
mov rcx, rbx
call fcn.14012a2d4
mov ebx, 0x8123
jmp 0x140081b69
mov esi, 8
test esi, esi
js 0x140081c5c
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r12
mov word [rsp + 0x38], r12w
cmp word [rbx], 0
jne 0x140081b90
mov r8, r12
jmp 0x140081b9f
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x140081b94
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.14004dd70
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.14004bb60
mov rsi, rax
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 8], rcx
jne 0x140081bd1
mov rcx, rdi
call fcn.140056660
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140081c01
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r12
cmp qword [rcx + 0x18], 8
jb 0x140081bf2
mov rax, qword [rcx]
jmp 0x140081bf5
mov rax, rcx
mov word [rax], r12w
mov rdx, rsi
call fcn.14004dec0
add qword [rdi + 8], 0x20
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x140081c23
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.14004e2e0
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x140081c54
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.14004e2e0
mov rcx, rbx
call fcn.14012a2d4
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 0x140081a90
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.14012a2b0
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