Function at 0x1801d6820
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x7d0]
sub rsp, 0x8d0
mov rax, qword [0x1804c8100]
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], 7
jbe 0x1801d6868
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 0x1801d6892
xor al, al
jmp 0x1801d6be2
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x40]
call fcn.1802bd010
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 0x1801d6bd5
nop
cmp dword [rsp + 0x40], 4
jne 0x1801d6b8d
cmp dword [rsp + 0x48], 0
jne 0x1801d6b8d
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
lea rax, [rbp - 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1801d6921
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x78]
call fcn.180017c20
nop
xorps xmm0, xmm0
cmp qword [rbp - 0x78], 0
jne 0x1801d695e
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], 0
jmp 0x1801d6aef
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova r8, qword [rsp + 0x78]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r9d, dword [rbp - 0x78]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
test eax, eax
jne 0x1801d6a0f
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 [rsp + 0x70]
cmp rdx, 0xf
jbe 0x1801d6aef
inc rdx
mov rcx, qword [rsp + 0x58]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1801d6a05
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801d6c19
call fcn.180286270
jmp 0x1801d6aef
mov rcx, rsi
mov rdx, qword [rsp + 0x68]
cmp rsi, rdx
ja 0x1801d6a38
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rax, qword [rsp + 0x58]
mov qword [rsp + 0x68], rcx
mov byte [rax + rsi], 0
jmp 0x1801d6a90
mov rdi, rcx
sub rdi, rdx
mov r8, qword [rsp + 0x70]
mov rax, r8
sub rax, rdx
cmp rdi, rax
ja 0x1801d6a78
mov qword [rsp + 0x68], rcx
lea rbx, [rsp + 0x58]
cmp r8, 0xf
cmova rbx, qword [rsp + 0x58]
add rbx, rdx
mov r8, rdi
xor edx, edx
mov rcx, rbx
call fcn.1802bd010
mov byte [rbx + rdi], 0
jmp 0x1801d6a90
mov byte [rsp + 0x20], 0
mov r9, rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.1801b7560
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rax, qword [rsp + 0x58]
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova r8, qword [rsp + 0x78]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x78]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, esi
jne 0x1801d69b2
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rbp - 0x58], xmm1
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x1801d6b30
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801d6b2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801d6c0d
call fcn.180286270
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r12w
mov r8, qword [r15 + 8]
xor edx, edx
lea rcx, [rbp - 0x68]
call fcn.1801d6c80
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x1801d6b8d
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801d6b88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801d6c13
call fcn.180286270
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 0x1801d68f0
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.180286db0
lea r11, [rsp + 0x8d0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.18028ddc0
nop
call fcn.18028ddc0
nop
call fcn.18028ddc0
int3