Function at 0x180008964
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x98
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rbp + 7], rax
xor ebx, ebx
mov qword [rbp - 0x39], r9
mov r14, r9
mov rdi, r8
mov rsi, rdx
mov r15, rcx
test r9, r9
jne 0x18002da10
lea r8, [rbp - 0x39]
xor edx, edx
call fcn.18000ff6c
test al, al
je 0x18002dab2
mov r14, qword [rbp - 0x39]
mov r12b, bl
test rdi, rdi
jne 0x1800089dc
mov rdx, r14
mov rcx, rsi
call fcn.1800088a0
mov rdi, rax
test rax, rax
je 0x18002da2f
lea r8, [rbp - 0x21]
xor edx, edx
mov rcx, r15
call fcn.180011d50
test al, al
je 0x18002dab2
mov r8, qword [rbp - 0x21]
lea rax, [rbp - 0x41]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r15
call fcn.180008bc8
test eax, eax
js 0x180008a6b
mov rcx, qword [rbp - 0x41]
cmp rcx, 0xffffffffffffffff
je 0x180008a6b
lea rax, [rbp - 0x49]
mov r13d, 2
mov qword [rsp + 0x28], rax
lea r9, [rbp - 9]
mov r8d, r13d
mov dword [rsp + 0x20], 0x10
mov rdx, r14
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x18002da43
cmp eax, 0x80000005
je 0x180008a8c
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.180024680
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
mov r8d, dword [rbp - 0x49]
mov edx, dword [rax]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x18002da39
mov r14, qword [rbp - 0x39]
lea rax, [rbp - 0x49]
mov rcx, qword [rbp - 0x41]
mov r9, rsi
mov qword [rsp + 0x28], rax
mov r8d, r13d
mov eax, dword [rbp - 0x49]
mov rdx, r14
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test edi, edi
js 0x180008b78
cmp dword [rsi + 4], 1
jne 0x18002daa8
test r12b, r12b
jne 0x18002da4c
test edi, edi
js 0x180008b78
lea rdx, [rsi + 0xc]
movzx ecx, word [rsi + 8]
mov qword [rbp - 0x29], rdx
cmp dword [rsi + 8], r13d
jb 0x18002da7e
movzx eax, cx
sub ax, r13w
movzx ebx, ax
mov word [rbp - 0x31], ax
cmp dword [r15], 1
mov word [rbp - 0x2f], cx
jne 0x180008b65
cmp bx, 4
jb 0x180008b65
movzx r8d, word [rdx]
movzx eax, bx
sub rax, r13
shr rax, 1
cmp r8w, word [rdx + rax*2]
je 0x180008ba8
mov r9b, 1
lea r8, [rbp - 0x31]
xor edx, edx
mov rcx, r15
call fcn.18000f720
mov edi, eax
lea rax, [rbp - 9]
cmp rsi, rax
je 0x180008a69
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
jmp 0x180008a69
cmp r8w, 0x22
je 0x18002da87
cmp r8w, 0x27
jne 0x180008b65
jmp 0x18002da87
lea rdx, [0x180085720]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov r12b, 1
jmp 0x1800089c0
mov eax, 0xc0000016
jmp 0x180008a6b
mov edi, 0xc0000017
jmp 0x180008a59
lea rsi, [rbp - 9]
jmp 0x180008af2
xor r9d, r9d
mov r8, r14
xor edx, edx
mov rcx, r15
call fcn.18000f720
mov edi, eax
test eax, eax
js 0x180008b78
xor r9d, r9d
lea r8, [rbp - 0x19]
xor edx, edx
mov rcx, r15
call fcn.18000f720
mov edi, eax
jmp 0x180008b19
mov word [rbp - 0x31], bx
jmp 0x180008b41
lea rax, [rdx + 2]
mov qword [rbp - 0x29], rax
mov eax, 0xfffc
add bx, ax
sub cx, 4
mov word [rbp - 0x31], bx
mov word [rbp - 0x2f], cx
jmp 0x180008b65
mov edi, 0xc0000024
jmp 0x180008b78
mov eax, 0xc000000d
jmp 0x180008a6b