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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x3c8]
sub rsp, 0x4a0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov r14, rdx
mov rbx, rcx
xor r15d, r15d
mov edi, r15d
call fcn.1801ca1d4
mov rsi, rax
mov dword [rbp + 0x3e8], 0x100
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x3e8]
lea r8, [rbp + 0x1a0]
xor edx, edx
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x18005c16c
lea r13d, [r15 + 7]
test eax, eax
jne 0x18005c124
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], r13
mov word [rsp + 0x70], r15w
mov qword [rsp + 0x40], r15
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x70]
call fcn.18005d244
lea rcx, str.Volatile_Environment
call fcn.1801ca1d4
mov r8, rax
lea rdx, str.Volatile_Environment
lea rcx, [rsp + 0x70]
call fcn.18005d51c
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18005c11a
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x60]
call fcn.1801c27d0
mov dword [rbp + 0x3e0], 0x100
lea rax, [rbp + 0x3e0]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.APPDATA
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18005c087
mov r8, rsi
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.1801d785c
test eax, eax
je 0x18005c087
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r13
mov word [rsp + 0x50], r15w
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x50]
call fcn.18005d244
nop
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.18005ce90
nop
lea rcx, [rsp + 0x50]
call fcn.18005e40c
mov dword [rbp + 0x3e0], 0x100
lea rax, [rbp + 0x3e0]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.LOCALAPPDATA
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18005c10e
mov r8, rsi
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.1801d785c
test eax, eax
je 0x18005c10e
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r13
mov word [rsp + 0x50], r15w
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x50]
call fcn.18005d244
nop
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.18005ce90
nop
lea rcx, [rsp + 0x50]
call fcn.18005e40c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x70]
call fcn.18005e40c
inc edi
mov dword [rbp + 0x3e8], 0x100
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x3e8]
lea r8, [rbp + 0x1a0]
mov edx, edi
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x18005bf6b
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret