Function at 0x140097940
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x1402b5020]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rcx, qword [0x1402b7f60]
mov byte [0x1402c001f], 0
mov word [rbp - 0x41], cx
lea eax, [rcx + 2]
mov word [rbp - 0x3f], ax
mov rax, qword [str.SoftwareMicrosoftWindowsCurrentVersionRun]
mov qword [rbp - 0x39], rax
cmp rcx, 0xfffe
ja 0x140097dcd
xor r8d, r8d
lea rax, [rbp - 0x49]
lea r9, [rbp - 9]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x41]
lea rcx, [r8 - 9]
call fcn.1401608a0
test eax, eax
js 0x140097dcd
lea r8, [rbp - 9]
mov qword [rsp + 0x100], rbx
mov edx, 0x20019
lea rcx, [rbp + 0x27]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov rcx, qword [rbp - 0x49]
mov ebx, eax
test rcx, rcx
je 0x1400979de
call qword [sym.imp.ntdll.dll_NtClose]
nop
test ebx, ebx
js 0x140097dc5
mov rcx, qword [0x1402bfe50]
xor ebx, ebx
mov qword [rsp + 0x108], rsi
mov r8d, 0xa0
mov qword [rsp + 0x110], rdi
mov qword [rsp + 0xe8], r12
mov r12d, ebx
mov qword [rsp + 0xe0], r13
lea edx, [rbx + 4]
mov qword [rsp + 0xd8], r14
mov qword [rsp + 0xd0], r15
lea r15d, [rbx + 0x14]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, qword [rbp + 0x27]
lea edx, [rbx + 4]
mov rcx, qword [0x1402bfe50]
mov r8d, 0x100
mov r14, rax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x61], rsi
mov r13d, ebx
mov dword [rbp - 0x69], 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [rbp - 0x69]
lea r8d, [rbx + 1]
mov rdi, rax
xor edx, edx
lea rax, [rbp - 0x69]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
cmp eax, 0x8000001a
je 0x140097bd5
cmp eax, 0x80000005
je 0x140097aa7
nop dword [rax]
cmp eax, 0xc0000023
jne 0x140097af7
mov rcx, qword [0x1402bfe50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rbp - 0x69]
mov edx, 4
mov rcx, qword [0x1402bfe50]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, 1
mov edx, r13d
mov rdi, rax
mov rcx, rsi
lea rax, [rbp - 0x69]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rbp - 0x69]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
test eax, eax
js 0x140097bd5
cmp dword [rdi + 4], 1
jne 0x140097b9f
mov eax, dword [rdi + 0xc]
cmp eax, 2
jbe 0x140097b5e
mov rdx, qword [0x1402bfcf8]
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 0x140097b54
mov rcx, qword [rbx + 8]
mov r8d, esi
mov rdx, r14
call fcn.1401e3aa0
mov rsi, qword [rbp - 0x61]
mov r14, qword [rbp - 0x59]
jmp 0x140097b68
nop
call sym.SystemInformer.exe_PhReferenceEmptyString
mov rbx, rax
mov qword [rbp - 0x31], rbx
cmp r12, r15
jne 0x140097b98
mov rcx, qword [0x1402bfe50]
add r15, r15
mov r8, r14
mov edx, 4
lea r9, [r15*8]
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov r14, rax
mov qword [rbp - 0x59], rax
mov qword [r14 + r12*8], rbx
inc r12
lfence
lea rax, [rbp - 0x69]
inc r13d
mov qword [rsp + 0x28], rax
mov r9, rdi
mov eax, dword [rbp - 0x69]
mov r8d, 1
mov edx, r13d
mov dword [rsp + 0x20], eax
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
cmp eax, 0x8000001a
jne 0x140097a96
mov rcx, qword [0x1402bfe50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test r12, r12
je 0x140097d78
mov r13, r14
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [r13]
lea r9, [rbp - 0x61]
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x19]
call sym.SystemInformer.exe_PhParseCommandLineFuzzy
test al, al
je 0x140097d4b
nop dword [rax]
call sym.SystemInformer.exe_PhGetApplicationFileNameWin32
mov rbx, rax
test rax, rax
je 0x140097d2a
mov rcx, rax
call sym.SystemInformer.exe_PhGetBaseName
mov r8, rax
mov qword [rbp - 0x51], rax
lea rcx, [rbx - 0x10]
mov edx, 0xffffffff
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x140097c5c
call fcn.14013d2a0
mov r8, qword [rbp - 0x51]
mov rbx, qword [rbp - 0x61]
test rbx, rbx
je 0x140097d0d
mov rcx, qword [r8]
mov rax, qword [rbx]
cmp rcx, rax
ja 0x140097d0d
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 0x140097cbc
movdqu xmm0, xmmword [rbx]
movdqu xmm1, xmmword [r14]
pcmpeqd xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x140097de2
add rbx, 0x10
add r14, 0x10
sub rsi, 1
jne 0x140097c92
mov rsi, rcx
shr rsi, 1
and esi, 7
test rsi, rsi
je 0x140097d06
sub r14, rbx
nop dword [rax]
movzx ecx, word [rbx]
movzx r15d, word [r14 + rbx]
cmp cx, r15w
je 0x140097cf8
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 0x140097d0d
add rbx, 2
sub rsi, 1
jne 0x140097cd0
mov byte [0x1402c001f], 1
mov rcx, qword ds:[rbp - 0x51]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140097d2a
call fcn.14013d2a0
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140097d4b
add rcx, 0xfffffffffffffff0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140097d4b
call fcn.14013d2a0
mov rcx, qword ds:[r13]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140097d6a
call fcn.14013d2a0
add r13, 8
sub r12, 1
jne 0x140097c00
mov r8, qword [rbp - 0x59]
xor edx, edx
mov rcx, qword [0x1402bfe50]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp + 0x27]
call qword [sym.imp.ntdll.dll_NtClose]
mov r15, qword [rsp + 0xd0]
mov r14, qword [rsp + 0xd8]
mov r13, qword [rsp + 0xe0]
mov r12, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0x110]
mov rsi, qword [rsp + 0x108]
mov rbx, qword [rsp + 0x100]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401dd6a0
add rsp, 0xf0
pop rbp
ret
shl rsi, 4
and ecx, 0xf
add rsi, rcx
shr rsi, 1
jmp 0x140097cc5