Function at 0x140050500
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rcx, qword [0x14018b830]
mov byte [0x140194a34], 0
mov byte [0x1401946c7], 0
mov word [rbp - 0x29], cx
lea eax, [rcx + 2]
mov word [rbp - 0x27], ax
mov rax, qword [str.SoftwareMicrosoftWindowsCurrentVersionRun]
mov qword [rbp - 0x21], rax
cmp rcx, 0xfffe
ja 0x140050762
xor r8d, r8d
lea rax, [rbp + 0x67]
lea r9, [rbp + 7]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x29]
lea rcx, [r8 - 9]
call fcn.1400da6c0
test eax, eax
js 0x140050762
lea r8, [rbp + 7]
mov qword [rsp + 0xd8], rbx
mov edx, 0x20019
lea rcx, [rbp + 0x6f]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov rcx, qword [rbp + 0x67]
mov ebx, eax
test rcx, rcx
je 0x140050597
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x14005075a
mov rcx, qword [0x140196670]
lea rax, [0x14013cb38]
mov qword [rsp + 0xa8], rsi
mov r8d, 0x100
xor esi, esi
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
mov r15, qword [rbp + 0x6f]
lea edx, [rsi + 4]
mov dword [rbp - 0x19], 0x1e001c
lea r14d, [rsi + 0x10]
mov qword [rbp - 0x11], rax
mov dword [rbp + 0x67], 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
nop dword [rax + rax]
lea rax, [rbp + 0x67]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x19]
mov eax, dword [rbp + 0x67]
mov r8d, 2
mov rcx, r15
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov edi, eax
test eax, eax
jns 0x14005066b
mov rcx, qword [0x140196670]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp edi, 0x80000005
jne 0x140050667
mov r8d, dword [rbp + 0x67]
mov edx, 4
mov rcx, qword [0x140196670]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
add r14d, 0xffffffff
jne 0x140050600
jmp 0x14005066b
mov rbx, qword [rbp + 0x67]
mov r15, qword [rsp + 0x90]
test edi, edi
mov rdi, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x98]
js 0x140050748
mov ecx, dword [rbx + 4]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x14005069b
cmp ecx, 7
jne 0x1400506ba
mov eax, dword [rbx + 8]
cmp eax, 2
jb 0x1400506b2
lea rdx, [rax - 2]
lea rcx, [rbx + 0xc]
call sym.ProcessHacker.exe_PhCreateStringEx
jmp 0x1400506b7
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov rsi, rax
mov rcx, qword [0x140196670]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test rsi, rsi
je 0x140050748
mov rcx, rsi
call sym.ProcessHacker.exe_PhAutoDereferenceObject
lea r9, [rbp + 0x77]
mov rcx, rsi
lea r8, [rbp - 0x29]
lea rdx, [rbp - 9]
call sym.ProcessHacker.exe_PhParseCommandLineFuzzy
test al, al
je 0x140050748
mov rbx, qword [rbp + 0x77]
mov rcx, rbx
call sym.ProcessHacker.exe_PhAutoDereferenceObject
test rbx, rbx
je 0x140050748
mov rdx, qword [0x140192530]
mov r8b, 1
mov rcx, rbx
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x140050748
lea rax, str._hide
mov byte [0x140194a34], 1
xor r8d, r8d
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 0x19]
mov qword [rbp - 0x19], 0xa
lea rcx, [rbp - 0x29]
call sym.ProcessHacker.exe_PhEqualStringRef
mov byte [0x1401946c7], al
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ntdll.dll_NtClose]
mov rsi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xd8]
add rsp, 0xb0
pop rbp
ret