Function at 0x14009a380
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rcx, qword [0x1402c2110]
mov byte [0x1402cac9f], 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 0x14009a82d
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.140168740
mov ebx, eax
test eax, eax
js 0x14009a41f
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 0x14009a41f
call qword [sym.imp.ntdll.dll_NtClose]
nop
test ebx, ebx
js 0x14009a825
mov rcx, qword [0x1402caad0]
xor ebx, ebx
mov qword [rsp + 0xe8], rsi
mov edx, 4
mov qword [rsp + 0xf0], rdi
mov r8d, 0xa0
mov qword [rsp + 0xc8], r12
mov r12d, ebx
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 [0x1402caad0]
mov r8d, 0x100
mov rsi, rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x41], r14
mov r13d, ebx
mov dword [rbp - 0x49], 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [rbp - 0x49]
xor edx, edx
mov rdi, rax
mov r8d, 1
lea rax, [rbp - 0x49]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
cmp eax, 0x8000001a
je 0x14009a63d
nop
cmp eax, 0x80000005
je 0x14009a4ee
cmp eax, 0xc0000023
jne 0x14009a546
mov rcx, qword [0x1402caad0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rbp - 0x49]
mov edx, 4
mov rcx, qword [0x1402caad0]
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 0x14009a63d
cmp dword [rdi + 4], 1
jne 0x14009a607
mov eax, dword ds:[rdi + 0xc]
cmp eax, 2
jbe 0x14009a5af
mov rdx, qword [0x1402ca978]
lea rcx, [rax + 0x12]
mov r14d, dword [rdi + 8]
mov esi, eax
call sym.SystemInformer.exe_PhCreateObject
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 0x14009a5a5
mov rcx, qword ds:[rbx + 8]
mov r8d, esi
mov rdx, r14
call fcn.14020a640
mov rsi, qword [rbp - 0x39]
mov r14, qword [rbp - 0x41]
jmp 0x14009a5b7
call sym.SystemInformer.exe_PhReferenceEmptyString
mov rbx, rax
mov qword ds:[rbp - 0x31], rbx
cmp r12, r15
jne 0x14009a600
mov rcx, qword [0x1402caad0]
add r15, r15
mov edx, 4
lea r9, [r15*8]
test rsi, rsi
jne 0x14009a5f0
mov r8, r9
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x14009a5f9
mov r8, rsi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
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 0x14009a4e0
mov rcx, qword [0x1402caad0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test r12, r12
je 0x14009a7d8
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_PhParseCommandLineFuzzy
test al, al
je 0x14009a7ab
nop dword [rax]
call sym.SystemInformer.exe_PhGetApplicationFileNameWin32
mov rbx, rax
test rax, rax
je 0x14009a78a
mov rcx, rax
call sym.SystemInformer.exe_PhGetBaseName
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 0x14009a6bc
call fcn.140141ca0
mov r8, qword [rbp - 0x31]
mov rbx, qword [rbp - 0x41]
test rbx, rbx
je 0x14009a76d
mov rcx, qword [r8]
mov rax, qword [rbx]
cmp rcx, rax
ja 0x14009a76d
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 0x14009a71c
movdqu xmm0, xmmword [rbx]
movdqu xmm1, xmmword [r14]
pcmpeqd xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x14009a842
add rbx, 0x10
add r14, 0x10
sub rsi, 1
jne 0x14009a6f2
mov rsi, rcx
shr rsi, 1
and esi, 7
test rsi, rsi
je 0x14009a766
sub r14, rbx
nop dword [rax]
movzx ecx, word [rbx]
movzx r15d, word [r14 + rbx]
cmp cx, r15w
je 0x14009a758
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 0x14009a76d
add rbx, 2
sub rsi, 1
jne 0x14009a730
mov byte [0x1402cac9f], 1
mov rcx, qword ds:[rbp - 0x31]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14009a78a
call fcn.140141ca0
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14009a7ab
add rcx, 0xfffffffffffffff0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14009a7ab
call fcn.140141ca0
mov rcx, qword ds:[r13]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14009a7ca
call fcn.140141ca0
add r13, 8
sub r12, 1
jne 0x14009a660
mov r8, qword [rbp - 0x39]
xor edx, edx
mov rcx, qword [0x1402caad0]
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.1401e4160
add rsp, 0xd0
pop rbp
ret
shl rsi, 4
and ecx, 0xf
add rsi, rcx
shr rsi, 1
jmp 0x14009a725