Function at 0x1801c5630
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7d0]
sub rsp, 0x8d0
mov rax, qword [0x1804c4e78]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
mov rax, rdx
mov r15, rcx
xor r12d, r12d
mov rdx, qword [rcx]
cmp qword [rdx + 0x18], 8
jb 0x1801c5676
mov rdx, qword [rdx]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov r14d, 1
mov r9d, r14d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1801c56a0
xor al, al
jmp 0x1801c5a78
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x40]
call fcn.180288120
mov dword [rsp + 0x44], 0x3ff
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1801c5a6b
movabs r13, 0x7ffffffffffffffe
mov ecx, 0xa
cmp dword [rsp + 0x40], 4
jne 0x1801c5a23
cmp dword [rsp + 0x48], 0
jne 0x1801c5a23
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
lea rax, [rbp - 0x40]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1801c5740
cmp rbx, r13
ja 0x1801c5aa8
mov qword [rsp + 0x70], 7
cmp rbx, 8
jae 0x1801c5783
mov qword [rsp + 0x68], rbx
add rbx, rbx
mov r8, rbx
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x58]
call fcn.180287a80
mov word [rsp + rbx + 0x58], r12w
jmp 0x1801c57d3
mov rsi, rbx
or rsi, 7
cmp rsi, r13
jbe 0x1801c5794
mov rsi, r13
jmp 0x1801c579c
cmp rsi, 0xa
cmovb rsi, rcx
lea rdx, [rsi + 1]
lea rcx, [rsp + 0x58]
call fcn.1800156c0
mov rdi, rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
add rbx, rbx
mov r8, rbx
lea rdx, [rbp - 0x40]
mov rcx, rax
call fcn.180287a80
mov word [rbx + rdi], r12w
xorps xmm0, xmm0
cmp qword [rsp + 0x68], 0
jne 0x1801c57f7
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], 0
jmp 0x1801c5982
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], 0
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae r8, qword [rsp + 0x58]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r9d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
test eax, eax
jne 0x1801c58a7
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x68], 0
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], r12
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x1801c5982
inc rdx
mov rcx, qword [rsp + 0x78]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1801c589d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801c5aae
call fcn.18026a1a0
jmp 0x1801c5982
mov rcx, rsi
mov rdx, qword [rbp - 0x78]
cmp rsi, rdx
ja 0x1801c58cd
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rax, qword [rsp + 0x78]
mov qword [rbp - 0x78], rcx
mov byte [rax + rsi], 0
jmp 0x1801c5923
mov rdi, rcx
sub rdi, rdx
mov r8, qword [rbp - 0x70]
mov rax, r8
sub rax, rdx
cmp rdi, rax
ja 0x1801c590b
mov qword [rbp - 0x78], rcx
lea rbx, [rsp + 0x78]
cmp r8, 0x10
cmovae rbx, qword [rsp + 0x78]
add rbx, rdx
mov r8, rdi
xor edx, edx
mov rcx, rbx
call fcn.180288120
mov byte [rbx + rdi], 0
jmp 0x1801c5923
mov byte [rsp + 0x20], 0
mov r9, rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.1801a4e20
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rax, qword [rsp + 0x78]
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae r8, qword [rsp + 0x58]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, esi
jne 0x1801c584b
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rbp - 0x78]
movups xmmword [rbp - 0x58], xmm1
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1801c59c4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801c59bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801c5ab4
call fcn.18026a1a0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
mov r8, qword [r15 + 8]
xor edx, edx
lea rcx, [rbp - 0x68]
call fcn.1801c5b20
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x1801c5a23
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801c5a1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801c5aa2
call fcn.18026a1a0
mov dword [rsp + 0x44], 0x3ff
mov edx, r14d
inc r14d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x40]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1801c5707
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.18026ad00
mov rbx, qword [rsp + 0x920]
add rsp, 0x8d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18028cdc8
int3
call fcn.180015620
nop
call fcn.18028cdc8
nop
call fcn.18028cdc8
int3