Function at 0x1400160d0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x7a8]
sub rsp, 0x890
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14003ae50]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov rsi, rdx
xor ebx, ebx
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
xor r8d, r8d
lea rdx, [0x14002bb08]
lea rcx, [rsp + 0x60]
call fcn.1400039a0
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400161f2
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rbx
mov word [rsi], bx
lea rax, [rsp + 0x60]
cmp rsi, rax
je 0x1400161e8
cmp qword [rsi + 0x18], 8
jb 0x14001618a
mov rcx, qword [rsi]
call fcn.1400187b4
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rbx
mov word [rsi], bx
mov rcx, qword [rsp + 0x78]
cmp rcx, 8
jae 0x1400161c2
mov r8, qword [rsp + 0x70]
lea r8, [r8 + r8 + 2]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400187d0
mov rcx, qword [rsp + 0x78]
jmp 0x1400161cf
mov rax, qword [rsp + 0x60]
mov qword [rsi], rax
mov qword [rsp + 0x60], rbx
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rcx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
jmp 0x1400161ed
mov rbx, qword [rsp + 0x78]
jmp 0x14001654e
mov word [rbp - 0x50], bx
xor edx, edx
mov r8d, 0x7ce
lea rcx, [rbp - 0x4e]
call fcn.140018cd0
mov edi, ebx
mov dword [rsp + 0x40], 0x3e8
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400163b7
cmp dword [rsp + 0x40], 9
ja 0x140016287
inc edi
mov dword [rsp + 0x40], 0x3e8
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x50]
mov edx, edi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140016243
jmp 0x1400163b7
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rbx
mov word [rbp - 0x78], bx
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x78]
call fcn.1400039a0
nop
cmp qword [rsp + 0x78], 8
jb 0x1400162cb
mov rcx, qword [rsp + 0x60]
call fcn.1400187b4
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
mov rcx, qword [rbp - 0x60]
cmp rcx, 8
jae 0x140016305
mov r8, qword [rbp - 0x68]
lea r8, [r8 + r8 + 2]
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x60]
call fcn.1400187d0
mov rcx, qword [rbp - 0x60]
jmp 0x14001630e
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rcx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rbx
mov word [rsi], bx
lea rax, [rsp + 0x60]
cmp rsi, rax
je 0x1400163ad
cmp qword [rsi + 0x18], 8
jb 0x14001634f
mov rcx, qword [rsi]
call fcn.1400187b4
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rbx
mov word [rsi], bx
mov rcx, qword [rsp + 0x78]
cmp rcx, 8
jae 0x140016387
mov r8, qword [rsp + 0x70]
lea r8, [r8 + r8 + 2]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400187d0
mov rcx, qword [rsp + 0x78]
jmp 0x140016394
mov rax, qword [rsp + 0x60]
mov qword [rsi], rax
mov qword [rsp + 0x60], rbx
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rcx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
jmp 0x1400163b2
mov rbx, qword [rsp + 0x78]
jmp 0x14001654e
cmp eax, 0x103
jne 0x1400164b8
mov ecx, 0x30
call fcn.140018b7c
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400163e3
mov rcx, rax
call fcn.14000ff30
mov r12, rax
jmp 0x1400163e6
mov r12, rbx
mov r8d, 0xb
lea rdx, [0x140038e18]
mov rcx, r12
call fcn.14000ffb0
mov r8d, 0x12
lea rdx, [0x140038ce8]
mov rcx, r12
call fcn.14000ffa0
lea rdx, [rbp - 0x78]
mov rcx, r12
call fcn.140010560
mov rdi, rax
lea rax, [rsp + 0x60]
cmp rax, rdi
je 0x140016493
cmp qword [rsp + 0x78], 8
jb 0x14001643b
mov rcx, qword [rsp + 0x60]
call fcn.1400187b4
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
cmp qword [rdi + 0x18], 8
jae 0x14001646e
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.1400187d0
jmp 0x140016479
mov rax, qword [rdi]
mov qword [rsp + 0x60], rax
mov qword [rdi], rbx
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x70], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x78], rax
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
cmp qword [rbp - 0x60], 8
jb 0x1400164a3
mov rcx, qword [rbp - 0x78]
call fcn.1400187b4
test r12, r12
je 0x1400164b8
mov rcx, r12
call fcn.14000ff70
mov rcx, r12
call fcn.1400187b4
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rbx
mov word [rsi], bx
lea rax, [rsp + 0x60]
cmp rsi, rax
je 0x140016549
cmp qword [rsi + 0x18], 8
jb 0x1400164eb
mov rcx, qword [rsi]
call fcn.1400187b4
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rbx
mov word [rsi], bx
mov rcx, qword [rsp + 0x78]
cmp rcx, 8
jae 0x140016523
mov r8, qword [rsp + 0x70]
lea r8, [r8 + r8 + 2]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400187d0
mov rcx, qword [rsp + 0x78]
jmp 0x140016530
mov rax, qword [rsp + 0x60]
mov qword [rsi], rax
mov qword [rsp + 0x60], rbx
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rcx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
jmp 0x14001654e
mov rbx, qword [rsp + 0x78]
cmp rbx, 8
jb 0x14001655e
mov rcx, qword [rsp + 0x60]
call fcn.1400187b4
mov rax, rsi
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.1400194d0
lea r11, [rsp + 0x890]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret