Function at 0x180037ea0
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
sub rsp, 0x310
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov qword [rsp + 0x368], rbx
mov rax, qword [0x1800f0938]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov qword [rsp + 0xb8], r8
mov r14, rdx
mov r15, rcx
mov word [rsp + 0xf0], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xf2]
call fcn.180099ff0
mov dword [rsp + 0x9c], 0x104
xor ebx, ebx
mov dword [rsp + 0x60], ebx
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x9c]
lea rdx, [rsp + 0xf0]
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov r12d, eax
test eax, eax
je 0x180037f9a
mov dword [r15 + 8], eax
cmp eax, 5
jne 0x180037fa6
mov al, 1
jmp 0x18003836e
test eax, eax
je 0x180037fb5
mov dword [r15 + 8], eax
xor al, al
jmp 0x18003836e
add dword [rsp + 0x68], 1
mov eax, dword [rsp + 0x6c]
add eax, 1
mov dword [rsp + 0x6c], eax
mov ecx, eax
mov eax, 2
mul rcx
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.180097720
mov qword [rsp + 0xa8], rax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x98], eax
mov rcx, rax
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.180097720
mov r13, rax
mov qword [rsp + 0xd8], rax
cmp dword [rsp + 0x60], ebx
je 0x1800381b6
mov rcx, r14
call fcn.180005140
mov edx, dword [rsp + 0x60]
mov rcx, r14
call fcn.1800383e0
mov ebp, ebx
cmp dword [rsp + 0x60], ebx
jbe 0x1800381b6
mov r13, qword [rsp + 0xa8]
nop
nop
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0xa0], eax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0xa0]
mov r8, r13
mov edx, ebp
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r12d, eax
test eax, eax
jne 0x1800381a1
mov edx, 7
mov qword [rsp + 0x90], rdx
mov r8, rbx
mov qword [rsp + 0x88], rbx
mov word [rsp + 0x78], r8w
xor eax, eax
mov rcx, rdi
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rsi, rcx
movabs rax, 0x7ffffffffffffffe
cmp rcx, rax
jbe 0x1800380ef
call fcn.180097730
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
cmp rdx, rsi
jae 0x18003810b
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.180003d30
mov rdx, qword [rsp + 0x90]
jmp 0x18003812c
test rsi, rsi
jne 0x18003812c
mov qword [rsp + 0x88], rbx
lea rax, [rsp + 0x78]
cmp rdx, 8
cmovae rax, qword [rsp + 0x78]
mov word [rax], si
jmp 0x180038174
test rsi, rsi
je 0x180038174
lea rcx, [rsp + 0x78]
cmp rdx, 8
cmovae rcx, qword [rsp + 0x78]
lea rdi, [rsi + rsi]
add rdx, rdx
mov r9, rdi
mov r8, r13
call fcn.180098b20
mov qword [rsp + 0x88], rsi
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae rax, qword [rsp + 0x78]
mov word [rdi + rax], 0
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.180004fc0
nop
cmp qword [rsp + 0x90], 8
jb 0x18003819d
mov rcx, qword [rsp + 0x78]
call fcn.180098980
or rdi, 0xffffffffffffffff
jmp 0x1800381a1
or rdi, 0xffffffffffffffff
add ebp, 1
cmp ebp, dword [rsp + 0x60]
jb 0x180038050
mov r13, qword [rsp + 0xd8]
cmp dword [rsp + 0x64], 0
je 0x18003834a
mov r14, qword [rsp + 0xb8]
mov rcx, r14
call fcn.180005140
mov edx, dword [rsp + 0x64]
mov rcx, r14
call fcn.1800383e0
mov ebp, ebx
mov r12d, ebx
cmp dword [rsp + 0x64], ebx
jbe 0x18003834a
nop
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x98], eax
mov word [r13], 0
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x98]
mov r8, r13
mov edx, ebp
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r12d, eax
test eax, eax
jne 0x180038336
mov edx, 7
mov qword [rsp + 0x90], rdx
mov r8, rbx
mov qword [rsp + 0x88], rbx
mov word [rsp + 0x78], r8w
xor eax, eax
mov rcx, rdi
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rsi, rcx
movabs rax, 0x7ffffffffffffffe
cmp rcx, rax
jbe 0x18003828e
call fcn.180097730
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
cmp rdx, rsi
jae 0x1800382aa
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.180003d30
mov rdx, qword [rsp + 0x90]
jmp 0x1800382cb
test rsi, rsi
jne 0x1800382cb
mov qword [rsp + 0x88], rbx
lea rax, [rsp + 0x78]
cmp rdx, 8
cmovae rax, qword [rsp + 0x78]
mov word [rax], si
jmp 0x180038313
test rsi, rsi
je 0x180038313
lea rcx, [rsp + 0x78]
cmp rdx, 8
cmovae rcx, qword [rsp + 0x78]
lea rdi, [rsi + rsi]
add rdx, rdx
mov r9, rdi
mov r8, r13
call fcn.180098b20
mov qword [rsp + 0x88], rsi
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae rax, qword [rsp + 0x78]
mov word [rdi + rax], 0
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.180004fc0
nop
cmp qword [rsp + 0x90], 8
jb 0x180038336
mov rcx, qword [rsp + 0x78]
call fcn.180098980
add ebp, 1
cmp ebp, dword [rsp + 0x64]
mov rdi, 0xffffffffffffffff
jb 0x1800381f0
mov rcx, qword [rsp + 0xa8]
call fcn.180099070
mov rcx, r13
call fcn.180099070
test r12d, r12d
je 0x180038368
mov dword [r15 + 8], r12d
test r12d, r12d
sete al
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.180099050
mov rbx, qword [rsp + 0x368]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret