Function at 0x140018bdc
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x130
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1405b7098]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov qword [rsp + 0x50], r9
mov rdi, r8
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x70], rdx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
mov r13d, esi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rsi
lea r14d, [rsi + 7]
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x50], rsi
mov word [rbp - 0x60], si
xor r8d, r8d
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.14001d2c4
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rsi
mov eax, dword [rbp - 0x50]
mov dword [rsp + 0x44], eax
lea r8, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae r8, qword [rbp - 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x44]
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x140018f55
mov r14b, sil
mov r15b, sil
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
call fcn.140020268
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rsi
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], rsi
mov word [rbp - 0x20], si
cmp word [rdx], si
jne 0x140018cf9
mov r8, rsi
jmp 0x140018d07
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], si
jne 0x140018cfd
lea rcx, [rbp - 0x20]
call fcn.14000fde0
nop
lea r12, [rbx + 0x50]
mov rbx, qword [r12]
mov rdi, qword [rbx + 8]
mov rsi, rbx
jmp 0x140018d3f
lea rcx, [rdi + 0x20]
lea rdx, [rbp - 0x20]
call fcn.14000f74c
test eax, eax
jns 0x140018d39
mov rdi, qword [rdi + 0x10]
jmp 0x140018d3f
mov rsi, rdi
mov rdi, qword [rdi]
cmp byte [rdi + 0x19], 0
je 0x140018d22
cmp rsi, rbx
je 0x140018d5b
lea rdx, [rsi + 0x20]
lea rcx, [rbp - 0x20]
call fcn.14000f74c
test eax, eax
jns 0x140018d5e
mov rsi, rbx
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x20]
call fcn.14000f964
cmp rsi, qword [r12]
je 0x140018d8b
mov rbx, qword [rsi + 0x40]
mov rax, qword [rbx]
cmp qword [rsp + 0x58], rax
seta r14b
mov rdi, qword [rsp + 0x50]
xor esi, esi
jmp 0x140018dd2
mov ecx, reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx
call fcn.1400fd2a4
mov rbx, rax
mov qword [rbp - 0x80], rax
xor eax, eax
mov qword [rbx], rax
xor esi, esi
mov qword [rbx + 8], rsi
mov dword [rbx + 0x10], esi
mov qword [rbx + 0x18], rsi
mov byte [rbx + 0x20], 1
mov rdi, qword [rsp + 0x50]
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
movsd xmm0, qword [rdi + 0x20]
movsd qword [rbx + 0x20], xmm0
mov r15b, 1
test r14b, r14b
jne 0x140018de0
test r15b, r15b
je 0x140018f47
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rsi
mov r14d, 7
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x30], rsi
mov word [rbp - 0x40], si
mov rsi, qword [rsp + 0x70]
xor eax, eax
cmp word [rsi], ax
jne 0x140018e0b
mov r8d, eax
jmp 0x140018e19
or r8, 0xffffffffffffffff
inc r8
cmp word [rsi + r8*2], ax
jne 0x140018e0f
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.14000fde0
nop
mov r8d, 1
lea rdx, [0x140494e34]
lea rcx, [rbp - 0x40]
call fcn.14000fae0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x40]
call fcn.14000fc3c
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rdx, qword [rbp - 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
jne 0x140018f26
mov r9, rbx
mov r8, rdi
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call fcn.140018a80
mov rax, qword [rsp + 0x58]
mov qword [rbx], rax
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
call fcn.140020268
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x18], r14
mov qword [rbp + 0x10], rsi
mov word [rbp], si
cmp word [rdx], si
jne 0x140018ee4
mov r8d, esi
jmp 0x140018ef2
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], si
jne 0x140018ee8
lea rcx, [rbp]
call fcn.14000fde0
nop
lea rdx, [rbp]
mov rcx, r12
call fcn.14001c710
mov qword [rax], rbx
xor r8d, r8d
mov dl, 1
lea rcx, [rbp]
call fcn.14000f964
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140018f39
test r15b, r15b
je 0x140018f39
mov edx, reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx
mov rcx, rbx
call fcn.1400fd29c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x40]
call fcn.14000f964
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x48]
mov eax, dword [rsp + 0x40]
inc r13d
test eax, eax
je 0x140018c65
lea rcx, [rbp - 0x78]
call fcn.14001593c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x60]
call fcn.14000f964
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400fcfd0
mov rbx, qword [rsp + 0x188]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret