Function at 0x14009b660
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x1402bb040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rcx, qword [0x1402be018]
mov byte [0x1402c63a9], 0
mov word [rbp - 0x31], cx
lea eax, [rcx + 2]
mov word [rbp - 0x2f], ax
mov rax, qword [str.SoftwareMicrosoftWindowsCurrentVersionRun]
mov qword [rbp - 0x29], rax
cmp rcx, 0xfffe
ja 0x14009bb0d
lea rax, [rbp - 0x41]
mov qword [rsp + 0xe0], rbx
lea r9, [rbp - 0x11]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x31]
mov rcx, 0xfffffffffffffff7
call fcn.14016ae40
mov ebx, eax
test eax, eax
js 0x14009b6ff
lea r8, [rbp - 0x11]
mov edx, 0x20019
lea rcx, [rbp + 0x1f]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov rcx, qword [rbp - 0x41]
mov ebx, eax
test rcx, rcx
je 0x14009b6ff
call qword [sym.imp.ntdll.dll_NtClose]
nop
test ebx, ebx
js 0x14009bb05
mov rcx, qword [0x1402c6140]
mov edx, 4
mov qword [rsp + 0xe8], rsi
mov r8d, 0xa0
mov qword [rsp + 0xf0], rdi
xor edi, edi
mov qword [rsp + 0xc8], r12
mov r12d, edi
mov qword [rsp + 0xc0], r13
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xb0], r15
mov r15d, 0x14
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, qword [rbp + 0x1f]
mov edx, 4
mov rcx, qword [0x1402c6140]
mov r8d, 0x100
mov rsi, rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x41], r14
mov r13d, edi
mov dword [rbp - 0x49], 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor edx, edx
mov r8d, 1
mov rdi, rax
mov rcx, r14
lea rax, [rbp - 0x49]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
cmp eax, 0x8000001a
je 0x14009b91d
nop
cmp eax, 0x80000005
je 0x14009b7ce
cmp eax, 0xc0000023
jne 0x14009b826
mov rcx, qword [0x1402c6140]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rbp - 0x49]
mov edx, 4
mov rcx, qword [0x1402c6140]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, 1
mov edx, r13d
mov rdi, rax
mov rcx, r14
lea rax, [rbp - 0x49]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rbp - 0x49]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
test eax, eax
js 0x14009b91d
cmp dword [rdi + 4], 1
jne 0x14009b8e7
mov eax, dword ds:[rdi + 0xc]
cmp eax, 2
jbe 0x14009b88f
mov rdx, qword [0x1402c5ff0]
lea rcx, [rax + 0x12]
mov r14d, dword [rdi + 8]
mov esi, eax
call sym.SystemInformer.exe_Ordinal_1240
mov rbx, rax
xor ecx, ecx
mov qword [rax], rsi
add rax, 0x10
mov qword [rbx + 8], rax
mov word [rax + rsi], cx
add r14, rdi
je 0x14009b885
mov rcx, qword ds:[rbx + 8]
mov r8d, esi
mov rdx, r14
call fcn.14020c7e0
mov rsi, qword [rbp - 0x39]
mov r14, qword [rbp - 0x41]
jmp 0x14009b897
call sym.SystemInformer.exe_Ordinal_1430
mov rbx, rax
mov qword ds:[rbp - 0x31], rbx
cmp r12, r15
jne 0x14009b8e0
mov rcx, qword [0x1402c6140]
add r15, r15
mov edx, 4
lea r8, [r15*8]
test rsi, rsi
je 0x14009b8d3
mov r9, r8
mov r8, rsi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
jmp 0x14009b8d9
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp - 0x39], rax
mov rsi, rax
mov qword [rsi + r12*8], rbx
inc r12
lfence
lea rax, [rbp - 0x49]
inc r13d
mov qword [rsp + 0x28], rax
mov r9, rdi
mov eax, dword [rbp - 0x49]
mov r8d, 1
mov edx, r13d
mov dword [rsp + 0x20], eax
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
cmp eax, 0x8000001a
jne 0x14009b7c0
mov rcx, qword [0x1402c6140]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test r12, r12
je 0x14009bab8
mov r13, rsi
nop dword [rax + rax]
mov rcx, qword [r13]
lea r9, [rbp - 0x41]
lea r8, [rbp - 0x31]
lea rdx, [rbp - 0x21]
call sym.SystemInformer.exe_Ordinal_1683
test al, al
je 0x14009ba8b
nop dword [rax]
call sym.SystemInformer.exe_Ordinal_1639
mov rbx, rax
test rax, rax
je 0x14009ba6a
mov rcx, rax
call sym.SystemInformer.exe_Ordinal_1641
mov r8, rax
mov qword [rbp - 0x31], rax
lea rcx, [rbx - 0x10]
mov edx, 0xffffffff
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x14009b99c
call fcn.140143da0
mov r8, qword [rbp - 0x31]
mov rbx, qword [rbp - 0x41]
test rbx, rbx
je 0x14009ba4d
mov rcx, qword [r8]
mov rax, qword [rbx]
cmp rcx, rax
ja 0x14009ba4d
mov rbx, qword [rbx + 8]
mov rsi, rcx
mov r14, qword [r8 + 8]
sub rbx, rcx
add rbx, rax
shr rsi, 4
test rsi, rsi
je 0x14009b9fc
movdqu xmm0, xmmword [rbx]
movdqu xmm1, xmmword [r14]
pcmpeqd xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x14009bb22
add rbx, 0x10
add r14, 0x10
sub rsi, 1
jne 0x14009b9d2
mov rsi, rcx
shr rsi, 1
and esi, 7
test rsi, rsi
je 0x14009ba46
sub r14, rbx
nop dword [rax]
movzx ecx, word [rbx]
movzx r15d, word [r14 + rbx]
cmp cx, r15w
je 0x14009ba38
nop
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
movzx ecx, r15w
movzx edi, ax
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
cmp di, ax
jne 0x14009ba4d
add rbx, 2
sub rsi, 1
jne 0x14009ba10
mov byte [0x1402c63a9], 1
mov rcx, qword ds:[rbp - 0x31]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14009ba6a
call fcn.140143da0
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14009ba8b
add rcx, 0xfffffffffffffff0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14009ba8b
call fcn.140143da0
mov rcx, qword ds:[r13]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14009baaa
call fcn.140143da0
add r13, 8
sub r12, 1
jne 0x14009b940
mov r8, qword [rbp - 0x39]
xor edx, edx
mov rcx, qword [0x1402c6140]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.ntdll.dll_NtClose]
mov r15, qword [rsp + 0xb0]
mov r14, qword [rsp + 0xb8]
mov r13, qword [rsp + 0xc0]
mov r12, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0xe8]
mov rbx, qword [rsp + 0xe0]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1401e5e40
add rsp, 0xd0
pop rbp
ret
shl rsi, 4
and ecx, 0xf
add rsi, rcx
shr rsi, 1
jmp 0x14009ba05