Function at 0x14009a1e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x1402c0040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rcx, qword [0x1402c3100]
mov byte [0x1402cbbef], 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 0x14009a68d
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.140169b80
mov ebx, eax
test eax, eax
js 0x14009a27f
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 0x14009a27f
call qword [sym.imp.ntdll.dll_NtClose]
nop
test ebx, ebx
js 0x14009a685
mov rcx, qword [0x1402cba10]
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 [0x1402cba10]
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 0x14009a49d
nop
cmp eax, 0x80000005
je 0x14009a34e
cmp eax, 0xc0000023
jne 0x14009a3a6
mov rcx, qword [0x1402cba10]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rbp - 0x49]
mov edx, 4
mov rcx, qword [0x1402cba10]
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 0x14009a49d
cmp dword [rdi + 4], 1
jne 0x14009a467
mov eax, dword ds:[rdi + 0xc]
cmp eax, 2
jbe 0x14009a40f
mov rdx, qword [0x1402cb8c0]
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 0x14009a405
mov rcx, qword ds:[rbx + 8]
mov r8d, esi
mov rdx, r14
call fcn.14020be40
mov rsi, qword [rbp - 0x39]
mov r14, qword [rbp - 0x41]
jmp 0x14009a417
call sym.SystemInformer.exe_PhReferenceEmptyString
mov rbx, rax
mov qword ds:[rbp - 0x31], rbx
cmp r12, r15
jne 0x14009a460
mov rcx, qword [0x1402cba10]
add r15, r15
mov edx, 4
lea r9, [r15*8]
test rsi, rsi
jne 0x14009a450
mov r8, r9
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x14009a459
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 0x14009a340
mov rcx, qword [0x1402cba10]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test r12, r12
je 0x14009a638
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 0x14009a60b
nop dword [rax]
call sym.SystemInformer.exe_PhGetApplicationFileNameWin32
mov rbx, rax
test rax, rax
je 0x14009a5ea
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 0x14009a51c
call fcn.140142200
mov r8, qword [rbp - 0x31]
mov rbx, qword [rbp - 0x41]
test rbx, rbx
je 0x14009a5cd
mov rcx, qword [r8]
mov rax, qword [rbx]
cmp rcx, rax
ja 0x14009a5cd
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 0x14009a57c
movdqu xmm0, xmmword [rbx]
movdqu xmm1, xmmword [r14]
pcmpeqd xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x14009a6a2
add rbx, 0x10
add r14, 0x10
sub rsi, 1
jne 0x14009a552
mov rsi, rcx
shr rsi, 1
and esi, 7
test rsi, rsi
je 0x14009a5c6
sub r14, rbx
nop dword [rax]
movzx ecx, word [rbx]
movzx r15d, word [r14 + rbx]
cmp cx, r15w
je 0x14009a5b8
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 0x14009a5cd
add rbx, 2
sub rsi, 1
jne 0x14009a590
mov byte [0x1402cbbef], 1
mov rcx, qword ds:[rbp - 0x31]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14009a5ea
call fcn.140142200
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14009a60b
add rcx, 0xfffffffffffffff0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14009a60b
call fcn.140142200
mov rcx, qword ds:[r13]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14009a62a
call fcn.140142200
add r13, 8
sub r12, 1
jne 0x14009a4c0
mov r8, qword [rbp - 0x39]
xor edx, edx
mov rcx, qword [0x1402cba10]
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.1401e5e20
add rsp, 0xd0
pop rbp
ret
shl rsi, 4
and ecx, 0xf
add rsi, rcx
shr rsi, 1
jmp 0x14009a585