Function at 0x14005a360
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1400f2010]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rbp - 0x78], rcx
xor r14d, r14d
mov dword [rsp + 0x60], r14d
mov dword [rbp - 0x48], r14d
mov qword [rbp - 0x50], r14
mov eax, dword [rdx + 0x20]
cmp eax, 1
jne 0x14005a3b7
mov edi, 0x20219
jmp 0x14005a3c7
mov edi, 0x20019
mov ecx, 0x20119
cmp eax, 2
cmove edi, ecx
lea rcx, [rsp + 0x68]
call fcn.140006870
mov dword [rsp + 0x60], 2
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x14005a445
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a440
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a633
call fcn.140085050
test edi, edi
jne 0x14005a5f7
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov dword [rsp + 0x60], 3
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14005a5be
mov eax, dword [rbp - 0x48]
test eax, eax
je 0x14005a5be
mov edi, r14d
nop
mov dword [rbp - 0x44], 0xff
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x44]
lea r8, [rbp - 0x30]
mov edx, edi
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14005a5b3
mov word [rbp + 0x1ce], r14w
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r14w
lea rax, [rbp - 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14005a522
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x68]
call fcn.140006eb0
nop
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x14005a569
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rdx + 0x10], xmm1
mov edx, 7
mov word [rsp + 0x68], r14w
add qword [rbx + 8], 0x20
jmp 0x14005a57a
lea r8, [rsp + 0x68]
mov rcx, rbx
call fcn.14004a480
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x14005a5b3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a5ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a62d
call fcn.140085050
inc edi
cmp edi, dword [rbp - 0x48]
jb 0x14005a4c0
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14005a5cd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140085030
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov r9, rsi
mov r8d, edi
lea rdx, str.Failed_to_open_registry_key
lea rcx, [rbp - 0x70]
call fcn.140058920
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140002740
lea rdx, [0x1400eff08]
lea rcx, [rsp + 0x68]
call fcn.14008b7f4
nop
call fcn.14008fffc
int3
call fcn.14008fffc
int3