Function at 0x18001d69c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7e0]
sub rsp, 0x8e0
mov rdi, rcx
mov rsi, r8
mov r15, rdx
lea rcx, [rbp - 0x1e]
xor r12d, r12d
xor edx, edx
mov r8d, 0x7fe
mov word [rbp - 0x20], r12w
call sub.msvcrt.dll_memset
mov dword [rsp + 0x64], 0x400
mov dword [rsp + 0x6c], r12d
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x60], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x7c], r12d
mov dword [rsp + 0x74], r12d
mov dword [rbp + 0x830], 0x400
mov dword [rbp + 0x838], r12d
mov r14b, r12b
cmp qword [rsi + 0x10], r12
je 0x18001d732
mov rdx, rsi
mov rcx, rdi
call fcn.18001d9b4
lea rax, [rbp - 0x58]
lea r8, [rsp + 0x64]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x74]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x7c]
mov rcx, r15
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x18001d7a1
xor al, al
jmp 0x18001d948
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x18001d946
mov r13d, r12d
mov rcx, qword [rdi + 8]
mov edx, 8
mov r8d, 0x800
mov dword [rbp + 0x830], 0x400
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18001d79a
lea rax, [rbp + 0x838]
lea r9, [rbp + 0x830]
mov r8, rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov edx, r13d
mov rcx, r15
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov rcx, qword [rdi + 8]
test eax, eax
jne 0x18001d9ac
mov r8d, dword [rbp + 0x838]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
test rax, rax
je 0x18001d79a
lea rax, [rbp + 0x838]
lea r9, [rbp + 0x830]
mov r8, rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov edx, r13d
mov rcx, r15
mov dword [rbp + 0x830], 0x400
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x18001d989
mov r15d, dword [r12]
mov eax, dword [r12 + 8]
mov r8d, dword [r12 + 4]
mov rcx, qword [rsi + 8]
mov dword [rbp - 0x6c], eax
mov dword [rbp - 0x80], r15d
mov dword [rbp - 0x7c], r8d
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x68], rbx
mov rbx, qword [rcx]
shr rax, 0x20
mov dword [rbp - 0x70], r15d
mov dword [rbp - 0x60], eax
cmp rbx, rcx
je 0x18001d903
mov rax, qword [rbx + 0x18]
xor r14b, r14b
mov qword [rbp - 0x38], rax
mov rax, qword [rbx + 0x20]
mov qword [rbp - 0x30], rax
cmp dword [rbx + 0x10], r15d
jne 0x18001d97d
mov rax, qword [rbx + 0x18]
mov rdx, qword [rbx + 0x10]
mov qword [rbp - 0x38], rax
cmp dword [rbx + 0x20], r8d
ja 0x18001d963
mov rbx, qword [rbx]
cmp rbx, rcx
je 0x18001d8ed
cmp edx, r15d
je 0x18001d8ca
lea r9, [rbp - 0x70]
lea rdx, [rbp - 0x50]
mov r8, rbx
mov rcx, rsi
call fcn.180020fb4
mov r14b, 1
test r14b, r14b
jne 0x18001d91c
mov r8, qword [rsi + 8]
lea r9, [rbp - 0x70]
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.180020fb4
mov rcx, qword [rdi + 8]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r15, qword [rbp + 0x828]
inc r13d
mov r12d, 0
cmp r13d, dword [rsp + 0x60]
jb 0x18001d7b0
mov al, 1
mov rbx, qword [rsp + 0x920]
add rsp, 0x8e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r9, [rbp - 0x70]
lea rdx, [rbp - 0x28]
mov r8, rbx
mov rcx, rsi
call fcn.180020fb4
mov r8d, dword [rbp - 0x7c]
mov r14b, 1
mov rbx, qword [rbx]
mov rcx, qword [rsi + 8]
jmp 0x18001d8a8
mov rcx, qword [rdi + 8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rdi + 8]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001d79a
mov r8, rbx
jmp 0x18001d99f