Function at 0x180039850
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 [0x1800fca30]
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.1800a3870
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 0x18003994a
mov dword [r15 + 8], eax
cmp eax, 5
jne 0x180039956
mov al, 1
jmp 0x180039d1e
test eax, eax
je 0x180039965
mov dword [r15 + 8], eax
xor al, al
jmp 0x180039d1e
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.1800a09e0
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.1800a09e0
mov r13, rax
mov qword [rsp + 0xd8], rax
cmp dword [rsp + 0x60], ebx
je 0x180039b66
mov rcx, r14
call fcn.180009290
mov edx, dword [rsp + 0x60]
mov rcx, r14
call fcn.180039d90
mov ebp, ebx
cmp dword [rsp + 0x60], ebx
jbe 0x180039b66
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 0x180039b51
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 0x180039a9f
call fcn.1800a09f0
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
cmp rdx, rsi
jae 0x180039abb
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.180003710
mov rdx, qword [rsp + 0x90]
jmp 0x180039adc
test rsi, rsi
jne 0x180039adc
mov qword [rsp + 0x88], rbx
lea rax, [rsp + 0x78]
cmp rdx, 8
cmovae rax, qword [rsp + 0x78]
mov word [rax], si
jmp 0x180039b24
test rsi, rsi
je 0x180039b24
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.1800a1c40
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.180009110
nop
cmp qword [rsp + 0x90], 8
jb 0x180039b4d
mov rcx, qword [rsp + 0x78]
call fcn.1800a2030
or rdi, 0xffffffffffffffff
jmp 0x180039b51
or rdi, 0xffffffffffffffff
add ebp, 1
cmp ebp, dword [rsp + 0x60]
jb 0x180039a00
mov r13, qword [rsp + 0xd8]
cmp dword [rsp + 0x64], 0
je 0x180039cfa
mov r14, qword [rsp + 0xb8]
mov rcx, r14
call fcn.180009290
mov edx, dword [rsp + 0x64]
mov rcx, r14
call fcn.180039d90
mov ebp, ebx
mov r12d, ebx
cmp dword [rsp + 0x64], ebx
jbe 0x180039cfa
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 0x180039ce6
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 0x180039c3e
call fcn.1800a09f0
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
cmp rdx, rsi
jae 0x180039c5a
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.180003710
mov rdx, qword [rsp + 0x90]
jmp 0x180039c7b
test rsi, rsi
jne 0x180039c7b
mov qword [rsp + 0x88], rbx
lea rax, [rsp + 0x78]
cmp rdx, 8
cmovae rax, qword [rsp + 0x78]
mov word [rax], si
jmp 0x180039cc3
test rsi, rsi
je 0x180039cc3
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.1800a1c40
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.180009110
nop
cmp qword [rsp + 0x90], 8
jb 0x180039ce6
mov rcx, qword [rsp + 0x78]
call fcn.1800a2030
add ebp, 1
cmp ebp, dword [rsp + 0x64]
mov rdi, 0xffffffffffffffff
jb 0x180039ba0
mov rcx, qword [rsp + 0xa8]
call fcn.1800a22f0
mov rcx, r13
call fcn.1800a22f0
test r12d, r12d
je 0x180039d18
mov dword [r15 + 8], r12d
test r12d, r12d
sete al
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.1800a3210
mov rbx, qword [rsp + 0x368]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret