Function at 0x18000a650
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov qword [rbp + 0x37], 0xfffffffffffffffe
mov qword [rsp + 0xf0], rbx
mov rsi, r8
mov rax, rdx
mov rbx, rcx
mov qword [rbp + 7], 0
lea rcx, [rbp + 7]
mov qword [rsp + 0x20], rcx
mov r9d, 9
xor r8d, r8d
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp eax, 2
jne 0x18000a6bf
cmp dword [rbx + 0x3c], 0
ja 0x18000ab9e
test byte [rbx + 0x44], 1
jne 0x18000a6c3
jmp 0x18000ab9e
test eax, eax
je 0x18000a70c
mov edx, eax
lea rcx, [rbp + 0x7f]
call fcn.18000b970
mov edx, dword [rax]
lea rcx, [rbp - 0x11]
call fcn.18000b930
nop
mov rcx, rax
call fcn.18000c3b0
mov r9, rax
mov dword [rsp + 0x20], edi
mov r8, rsi
lea rdx, str.Unable_to_open_registry_key___s_.__s._Error_code___lu.
mov rcx, rbx
call fcn.18000b540
nop
lea rcx, [rbp - 0x11]
call fcn.18000b9b0
xor bl, bl
jmp 0x18000aba0
mov edx, dword [rbx + 0x3c]
test edx, edx
je 0x18000a726
mov rcx, rbx
call fcn.18000ac20
mov rdx, rsi
mov rcx, rbx
call fcn.18000ad10
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x58], rax
xor ecx, ecx
mov qword [rsp + 0x50], rcx
lea rax, [rbp - 0x1d]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
lea rax, [rbp - 1]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test eax, eax
je 0x18000a7e1
cmp eax, 0x7a
je 0x18000a7ce
mov edx, eax
lea rcx, [rbp + 0x7f]
call fcn.18000b970
mov edx, dword [rax]
lea rcx, [rbp - 0x11]
call fcn.18000b930
nop
mov rcx, rax
call fcn.18000c3b0
mov r9, rax
mov dword [rsp + 0x20], edi
mov r8, rsi
lea rdx, str.Unable_to_query_registry_key___s_.__s._Error_code___lu.
mov rcx, rbx
call fcn.18000b540
nop
lea rcx, [rbp - 0x11]
call fcn.18000b9b0
xor bl, bl
jmp 0x18000aba0
mov dword [rbp - 0x21], 0
mov dword [rbp - 0x29], 0
jmp 0x18000aa37
cmp dword [rbp - 0x29], 0
jbe 0x18000aa37
mov eax, dword [rbp - 0x19]
mov edx, eax
inc eax
mov dword [rbp - 0x19], eax
lea rcx, [rbp - 0x11]
call fcn.18000b760
nop
mov eax, dword [rbp - 0x1d]
inc eax
mov dword [rbp - 0x1d], eax
mov ecx, eax
call fcn.180016d3c
mov rdi, rax
mov qword [rbp + 0xf], rax
xor esi, esi
cmp dword [rbp - 0x29], esi
jbe 0x18000aa25
mov ecx, dword [rbp - 0x19]
mov dword [rbp + 0x17], ecx
mov ecx, dword [rbp - 0x1d]
mov dword [rbp + 0x7f], ecx
mov rdi, qword [rbp + 7]
lea rcx, [rbp - 0x11]
call fcn.18000c3d0
mov r8, rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0xf]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x25]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x17]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test eax, eax
jne 0x18000a9c8
mov ecx, dword [rbp - 0x25]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x18000a8be
cmp ecx, 7
je 0x18000a8be
mov edx, dword [rbp + 0x7f]
inc edx
mov rcx, rbx
call fcn.18000ac20
mov edx, dword [rbp - 0x25]
mov rcx, rbx
call fcn.18000ac20
lea rcx, [rbp - 0x11]
call fcn.18000c3d0
mov rdx, rax
mov rcx, rbx
call fcn.18000ad10
mov rdi, qword [rbp + 0xf]
jmp 0x18000a9ac
mov rdi, qword [rbp + 0xf]
mov rcx, rdi
mov edx, dword [rbp + 0x7f]
test dl, 1
jne 0x18000a968
shr edx, 1
mov dword [rbp + 0x7f], edx
mov eax, edx
je 0x18000a8f2
mov r8d, 0xff00
test word [rcx], r8w
jne 0x18000a968
add rcx, 2
dec eax
jne 0x18000a8e0
inc edx
mov rcx, rbx
call fcn.18000ac20
mov edx, dword [rbp - 0x25]
mov rcx, rbx
call fcn.18000ac20
lea rcx, [rbp - 0x11]
call fcn.18000c3d0
mov rdx, rax
mov rcx, rbx
call fcn.18000ad10
mov edx, 1
mov rcx, rbx
call fcn.18000a570
mov rax, qword [rbx + 0x20]
mov byte [rax], 0xf0
inc qword [rbx + 0x20]
inc dword [rbx + 0x30]
mov edx, dword [rbp + 0x7f]
mov rcx, rbx
call fcn.18000a570
mov eax, dword [rbp + 0x7f]
add dword [rbx + 0x30], eax
mov rdx, rdi
test eax, eax
je 0x18000a9bb
nop
mov rcx, qword [rbx + 0x20]
movzx eax, byte [rdx]
mov byte [rcx], al
inc qword [rbx + 0x20]
add rdx, 2
dec dword [rbp + 0x7f]
jne 0x18000a950
jmp 0x18000a9bb
inc edx
mov rcx, rbx
call fcn.18000ac20
mov edx, dword [rbp - 0x25]
mov rcx, rbx
call fcn.18000ac20
lea rcx, [rbp - 0x11]
call fcn.18000c3d0
mov rdx, rax
mov rcx, rbx
call fcn.18000ad10
mov edx, 1
mov rcx, rbx
call fcn.18000a570
mov rax, qword [rbx + 0x20]
mov byte [rax], 0xf1
inc qword [rbx + 0x20]
inc dword [rbx + 0x30]
mov r8d, dword [rbp + 0x7f]
mov rdx, rdi
mov rcx, rbx
call fcn.18000abd0
inc esi
cmp esi, dword [rbp - 0x29]
jb 0x18000a820
jmp 0x18000aa25
mov edx, eax
lea rcx, [rbp + 0x1b]
call fcn.18000b970
mov edx, dword [rax]
lea rcx, [rbp + 0x27]
call fcn.18000b930
nop
mov rcx, rax
call fcn.18000c3b0
mov r9, rax
mov dword [rsp + 0x20], edi
mov r8, qword [rbp + 0x77]
lea rdx, str.Cannot_enumerate_values_for_key___s_.__s._Error_code___lu.
mov rcx, rbx
call fcn.18000b540
nop
lea rcx, [rbp + 0x27]
call fcn.18000b9b0
mov rcx, qword [rbp + 0xf]
call fcn.180017754
nop
lea rcx, [rbp - 0x11]
call fcn.18000b9b0
xor bl, bl
jmp 0x18000aba0
mov rcx, rdi
call fcn.180017754
nop
lea rcx, [rbp - 0x11]
call fcn.18000b9b0
mov esi, 0x15
mov dl, 1
mov eax, 3
mov qword [rbp + 0x7f], rax
nop word [rax + rax]
xor edi, edi
mov ecx, esi
shr edi, cl
and dil, 0x7f
jne 0x18000aa60
test dl, dl
jne 0x18000aa81
mov edx, 1
mov rcx, rbx
call fcn.18000a570
mov rax, qword [rbx + 0x20]
mov byte [rax], dil
inc qword [rbx + 0x20]
inc dword [rbx + 0x30]
xor dl, dl
mov rax, qword [rbp + 0x7f]
add esi, 0xfffffff9
dec rax
mov qword [rbp + 0x7f], rax
jne 0x18000aa50
mov edx, 1
mov rcx, rbx
call fcn.18000a570
mov rax, qword [rbx + 0x20]
mov byte [rax], 0x80
inc qword [rbx + 0x20]
inc dword [rbx + 0x30]
cmp dword [rbp - 0x21], 0
jbe 0x18000ab9e
mov eax, dword [rbp - 1]
mov edx, eax
inc eax
mov dword [rbp - 1], eax
lea rcx, [rbp - 0x11]
call fcn.18000b760
nop
xor esi, esi
cmp dword [rbp - 0x21], esi
jbe 0x18000ab95
mov eax, dword [rbp - 1]
mov dword [rbp + 0x7f], eax
mov rdi, qword [rbp + 7]
lea rcx, [rbp - 0x11]
call fcn.18000c3d0
mov r8, rax
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x7f]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test eax, eax
jne 0x18000ab44
inc dword [rbx + 0x3c]
mov rdi, qword [rbp + 7]
lea rcx, [rbp - 0x11]
call fcn.18000c3d0
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call fcn.18000a650
test al, al
je 0x18000ab88
dec dword [rbx + 0x3c]
inc esi
cmp esi, dword [rbp - 0x21]
jb 0x18000aad1
jmp 0x18000ab95
mov edx, eax
lea rcx, [rbp + 0x1b]
call fcn.18000b970
mov edx, dword [rax]
lea rcx, [rbp + 0x27]
call fcn.18000b930
nop
mov rcx, rax
call fcn.18000c3b0
mov r9, rax
mov dword [rsp + 0x20], edi
mov r8, qword [rbp + 0x77]
lea rdx, str.Cannot_enumerate_subkeys_for_key___s_.__s._Error_code___lu.
mov rcx, rbx
call fcn.18000b540
nop
lea rcx, [rbp + 0x27]
call fcn.18000b9b0
nop
lea rcx, [rbp - 0x11]
call fcn.18000b9b0
xor bl, bl
jmp 0x18000aba0
lea rcx, [rbp - 0x11]
call fcn.18000b9b0
mov bl, 1
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x18000abaf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret