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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x360], rbx
mov rax, qword [0x140136e20]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rsi, rdx
mov r13, rcx
xor r14d, r14d
mov r12d, r14d
mov dword [rsp + 0x40], pe_nt_image_headers64
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
lea r8, [rbp]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400bd132
movabs r15, 0x2e8ba2e8ba2e8ba3
nop word [rax + rax]
inc r12d
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r14
mov word [rbp - 0x60], r14w
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], r14
mov word [rbp - 0x38], r14w
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r14
mov word [rsp + 0x60], r14w
mov r8d, ILFindLastID
lea rdx, str.Description
lea rcx, [rsp + 0x60]
call fcn.140009a30
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call fcn.14008f720
mov ebx, eax
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r14
mov word [rsp + 0x60], r14w
mov r8d, ILClone
lea rdx, str.FilenamePattern
lea rcx, [rsp + 0x60]
call fcn.140009a30
lea r8, [rbp - 0x38]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call fcn.14008f720
mov edi, eax
mov dword [rsp + 0x50], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14010b1b0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x5c], 3
mov dword [rsp + 0x58], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0xc]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea rdx, str.Color
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test ebx, ebx
jne 0x1400bd0bd
test edi, edi
jne 0x1400bd0bd
mov r8, qword [r13 + 0x50]
lea rax, [rbp - 0x60]
cmp rax, r8
jae 0x1400bd041
mov rax, qword [r13 + 0x48]
lea rcx, [rbp - 0x60]
cmp rax, rcx
ja 0x1400bd041
lea rcx, [rbp - 0x60]
sub rcx, rax
mov rax, r15
imul rcx
mov rdi, rdx
sar rdi, 4
mov rax, rdi
shr rax, 0x3f
add rdi, rax
cmp r8, qword [r13 + 0x58]
jne 0x1400bd01c
lea rcx, [r13 + 0x48]
call fcn.140009f00
imul rdi, rdi, 0x58
add rdi, qword [r13 + 0x48]
mov rcx, qword [r13 + 0x50]
mov qword [rsp + 0x50], rcx
mov qword [rbp - 0x78], rcx
test rcx, rcx
je 0x1400bd03f
mov rdx, rdi
call fcn.140009d90
nop
jmp 0x1400bd0b8
cmp r8, qword [r13 + 0x58]
jne 0x1400bd050
lea rcx, [r13 + 0x48]
call fcn.140009f00
mov rdi, qword [r13 + 0x50]
mov qword [rbp - 0x78], rdi
mov qword [rsp + 0x50], rdi
test rdi, rdi
je 0x1400bd0b8
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r14
mov word [rdi], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.140009660
nop
lea rcx, [rdi + 0x28]
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r14
mov word [rcx], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x38]
call fcn.140009660
mov r11d, dword [rbp - 0x10]
mov dword [rdi + 0x50], r11d
mov eax, dword [rbp - 0xc]
mov dword [rdi + 0x54], eax
add qword [r13 + 0x50], 0x58
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x40], pe_nt_image_headers64
cmp qword [rbp - 0x20], 8
jb 0x1400bd0e0
mov rcx, qword [rbp - 0x38]
call fcn.14004b088
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], r14
mov word [rbp - 0x38], r14w
cmp qword [rbp - 0x48], 8
jb 0x1400bd101
mov rcx, qword [rbp - 0x60]
call fcn.14004b088
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
lea r8, [rbp]
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400bce90
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14004ae00
mov rbx, qword [rsp + 0x360]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret