Function at 0x140072460
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rcx, qword [0x14023b438]
mov byte [0x14024246c], 0
mov word [rbp - 0x51], cx
lea eax, [rcx + 2]
mov word [rbp - 0x4f], ax
mov rax, qword [str.SoftwareMicrosoftWindowsCurrentVersionRun]
mov qword [rbp - 0x49], rax
cmp rcx, 0xfffe
ja 0x1400728a6
xor r8d, r8d
lea rax, [rbp - 0x59]
lea r9, [rbp - 9]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x51]
lea rcx, [r8 - 9]
call fcn.14011ab40
test eax, eax
js 0x1400728a6
lea r8, [rbp - 9]
mov qword [rsp + 0x110], rbx
mov edx, 0x20019
lea rcx, [rbp + 0x27]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov rcx, qword [rbp - 0x59]
mov ebx, eax
test rcx, rcx
je 0x1400724fe
call qword [sym.imp.ntdll.dll_NtClose]
nop
test ebx, ebx
js 0x14007289e
mov rcx, qword [0x140241998]
xor ebx, ebx
mov qword [rsp + 0x118], rsi
mov r8d, 0xa0
mov qword [rsp + 0x120], rdi
mov qword [rsp + 0xf8], r12
mov qword [rsp + 0xf0], r13
lea edx, [rbx + 4]
mov qword [rsp + 0xe8], r14
lea r12d, [rbx + 0x14]
mov qword [rsp + 0xe0], r15
mov r14d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r15, qword [rbp + 0x27]
lea edx, [rbx + 4]
mov rcx, qword [0x140241998]
mov r8d, 0x100
mov rsi, rax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x71], r15
mov r13d, ebx
mov dword [rbp - 0x79], 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [rbp - 0x79]
lea r8d, [rbx + 1]
mov rdi, rax
xor edx, edx
lea rax, [rbp - 0x79]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
cmp eax, 0x8000001a
je 0x1400726f9
cmp eax, 0x80000005
je 0x1400725c7
nop dword [rax]
cmp eax, 0xc0000023
jne 0x140072617
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rbp - 0x79]
mov edx, 4
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, 1
mov edx, r13d
mov rdi, rax
mov rcx, r15
lea rax, [rbp - 0x79]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rbp - 0x79]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
test eax, eax
js 0x1400726f7
cmp dword [rdi + 4], 1
jne 0x1400726c1
cmp dword [rdi + 0xc], 2
jbe 0x140072682
lfence
mov esi, dword [rdi + 0xc]
mov rdx, qword [0x1402418e8]
mov r15d, dword [rdi + 8]
lea rcx, [rsi + 0x12]
call sym.ProcessHacker.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 r15, rdi
je 0x140072677
lfence
mov rcx, qword [rbx + 8]
mov r8d, esi
mov rdx, r15
call fcn.140188690
mov rsi, qword ds:[rbp - 0x69]
mov r15, qword [rbp - 0x71]
jmp 0x14007268a
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov rbx, rax
mov qword [rbp - 0x31], rbx
cmp r14, r12
jne 0x1400726ba
mov rcx, qword [0x140241998]
add r12, r12
mov r8, rsi
mov edx, 4
lea r9, [r12*8]
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov rsi, rax
mov qword [rbp - 0x69], rax
mov qword [rsi + r14*8], rbx
inc r14
lfence
lea rax, [rbp - 0x79]
inc r13d
mov qword [rsp + 0x28], rax
mov r9, rdi
mov eax, dword [rbp - 0x79]
mov r8d, 1
mov edx, r13d
mov dword [rsp + 0x20], eax
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
cmp eax, 0x8000001a
jne 0x1400725b6
xor ebx, ebx
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r15, qword [rsp + 0xe0]
mov rdi, rbx
mov r13, qword [rsp + 0xf0]
mov r12, qword [rsp + 0xf8]
test r14, r14
je 0x140072869
nop
mov rcx, qword [rsi + rdi*8]
lea r9, [rbp - 0x61]
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x19]
call sym.ProcessHacker.exe_PhParseCommandLineFuzzy
test al, al
je 0x14007283f
xor eax, eax
lock cmpxchg qword [0x1402447c8], rbx
mov rbx, rax
je 0x140072763
lock inc dword [rax - 8]
jmp 0x14007278f
mov rcx, qword [0x140241948]
xor edx, edx
call sym.ProcessHacker.exe_PhGetDllFileName
mov rbx, rax
xor eax, eax
lock cmpxchg qword [0x1402447c8], rbx
jne 0x140072786
lock inc dword [rbx - 8]
test rbx, rbx
je 0x14007281a
mov rcx, rbx
call sym.ProcessHacker.exe_PhGetBaseName
mov rsi, rax
lea rcx, [rbx - 0x10]
mov edx, 0xffffffff
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1400727b2
call fcn.1400fbcc0
mov rax, qword [rbp - 0x61]
test rax, rax
je 0x1400727fe
mov rcx, qword [rsi]
mov rdx, qword [rax]
cmp rcx, rdx
ja 0x1400727fe
mov rax, qword [rax + 8]
mov r8b, 1
sub rax, rcx
mov qword [rbp - 0x41], rcx
add rax, rdx
lea rcx, [rbp - 0x41]
mov rdx, rsi
mov qword [rbp - 0x39], rax
call sym.ProcessHacker.exe_PhEqualStringRef
movzx ecx, byte [0x14024246c]
test al, al
mov eax, 1
cmovne ecx, eax
mov byte [0x14024246c], cl
lea rcx, [rsi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140072816
call fcn.1400fbcc0
mov rsi, qword [rbp - 0x69]
mov rcx, qword ds:[rbp - 0x61]
test rcx, rcx
je 0x14007283d
add rcx, 0xfffffffffffffff0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14007283d
call fcn.1400fbcc0
xor ebx, ebx
mov rcx, qword [rsi + rdi*8]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14007285b
call fcn.1400fbcc0
inc rdi
cmp rdi, r14
jb 0x140072730
mov rcx, qword [0x140241998]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword ds:[rbp + 0x27]
call qword [sym.imp.ntdll.dll_NtClose]
mov r14, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0x120]
mov rsi, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x110]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x100
pop rbp
ret