Function at 0x140098aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x1402ba040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rcx, qword [0x1402bd0d0]
mov byte [0x1402c52ef], 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 0x140098f4d
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.140167940
test eax, eax
js 0x140098f4d
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 0x140098b3e
call qword [sym.imp.ntdll.dll_NtClose]
nop
test ebx, ebx
js 0x140098f45
mov rcx, qword [0x1402c5110]
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 r14, qword [rbp + 0x27]
lea edx, [rbx + 4]
mov rcx, qword [0x1402c5110]
mov r8d, 0x100
mov rsi, rax
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], r14
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, r14
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
cmp eax, 0x8000001a
je 0x140098d4b
cmp eax, 0x80000005
je 0x140098c07
nop dword [rax]
cmp eax, 0xc0000023
jne 0x140098c57
mov rcx, qword [0x1402c5110]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rbp - 0x69]
mov edx, 4
mov rcx, qword [0x1402c5110]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, 1
mov edx, r13d
mov rdi, rax
mov rcx, r14
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 0x140098d4b
cmp dword [rdi + 4], 1
jne 0x140098d14
mov eax, dword [rdi + 0xc]
cmp eax, 2
jbe 0x140098cbe
mov rdx, qword [0x1402c4fb8]
lea rcx, [rax + 0x12]
mov r14d, dword [rdi + 8]
mov esi, eax
call sym.SystemInformer.exe_QiCreateObject
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 0x140098cb4
mov rcx, qword [rbx + 8]
mov r8d, esi
mov rdx, r14
call fcn.1402074d0
mov rsi, qword [rbp - 0x61]
mov r14, qword [rbp - 0x59]
jmp 0x140098cc8
nop
call sym.SystemInformer.exe_QiReferenceEmptyString
mov rbx, rax
mov qword [rbp - 0x31], rbx
cmp r12, r15
jne 0x140098d0d
mov rcx, qword [0x1402c5110]
add r15, r15
mov edx, 4
lea r9, [r15*8]
test rsi, rsi
jne 0x140098cf8
mov r8, r9
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x140098d06
mov r8, rsi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov qword [rbp - 0x61], rax
mov rsi, rax
mov qword [rsi + 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, r14
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
nop
cmp eax, 0x8000001a
jne 0x140098bf6
mov rcx, qword [0x1402c5110]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax]
test r12, r12
je 0x140098ef8
mov r13, rsi
nop dword [rax]
mov rcx, qword [r13]
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x19]
call sym.SystemInformer.exe_QiParseCommandLineFuzzy
test al, al
je 0x140098ecb
call sym.SystemInformer.exe_QiGetApplicationFileNameWin32
mov rbx, rax
test rax, rax
je 0x140098eaa
mov rcx, rax
call sym.SystemInformer.exe_QiGetBaseName
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 0x140098dce
call fcn.14013fb00
mov r8, qword [rbp - 0x51]
mov rbx, qword [rbp - 0x59]
test rbx, rbx
je 0x140098e8d
mov rcx, qword [r8]
mov rax, qword [rbx]
cmp rcx, rax
ja 0x140098e8d
mov rbx, qword ds:[rbx + 8]
mov rsi, rcx
mov r14, qword [r8 + 8]
sub rbx, rcx
add rbx, rax
shr rsi, 4
test rsi, rsi
je 0x140098e3a
nop word [rax + rax]
movdqu xmm0, xmmword [rbx]
movdqu xmm1, xmmword [r14]
pcmpeqd xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x140098f62
add rbx, 0x10
add r14, 0x10
sub rsi, 1
jne 0x140098e10
mov rsi, rcx
shr rsi, 1
and esi, 7
test rsi, rsi
je 0x140098e86
sub r14, rbx
nop dword [rax + rax]
movzx ecx, word [rbx]
movzx r15d, word [r14 + rbx]
cmp cx, r15w
je 0x140098e78
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 0x140098e8d
add rbx, 2
sub rsi, 1
jne 0x140098e50
mov byte [0x1402c52ef], 1
mov rcx, qword ds:[rbp - 0x51]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140098eaa
call fcn.14013fb00
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x140098ecb
add rcx, 0xfffffffffffffff0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140098ecb
call fcn.14013fb00
mov rcx, qword ds:[r13]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140098eea
call fcn.14013fb00
add r13, 8
sub r12, 1
jne 0x140098d70
mov r8, qword [rbp - 0x61]
xor edx, edx
mov rcx, qword [0x1402c5110]
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.1401e0100
add rsp, 0xf0
pop rbp
ret
shl rsi, 4
and ecx, 0xf
add rsi, rcx
shr rsi, 1
jmp 0x140098e43