Function at 0x1400c7340
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0xc0
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rsp + 0xa8], rax
test byte [rcx + 0xe0], 4
mov rsi, rcx
jne 0x1400c75f1
mov rax, qword [rcx + 0x58]
mov rdx, qword [0x1402418e8]
mov qword [r11 + 0x10], rbx
mov rbx, qword [0x14023dd30]
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rdi
mov rdi, qword [rax + 0x10]
mov qword [r11 - 0x18], r15
add rbx, qword [rdi]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
xor ebp, ebp
mov r15, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rcx + rbx], bp
mov r8, qword [0x14023dd30]
mov rdx, qword [str.SystemCurrentControlSetServices_]
mov rcx, qword [rax + 8]
call fcn.140188690
mov rcx, qword [0x14023dd30]
add rcx, qword ds:[r15 + 8]
mov r8, qword [rdi]
mov rdx, qword [rdi + 8]
call fcn.140188690
movzx eax, word [r15]
mov word [rsp + 0x40], ax
add ax, 2
cmp qword [r15], 0xfffe
mov word [rsp + 0x42], ax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x48], rax
ja 0x1400c75ae
lea rax, [rsp + 0x38]
xor r8d, r8d
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 3]
call fcn.14011ab40
test eax, eax
js 0x1400c75ae
lea r8, [rsp + 0x50]
lea edx, [rbp + 1]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
test rcx, rcx
je 0x1400c745d
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax]
test ebx, ebx
js 0x1400c75ae
mov rcx, qword [rsp + 0x80]
lea r8, [rsp + 0x90]
xor eax, eax
mov dword [rsp + 0x88], ebp
mov qword [rsp + 0xa0], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x88]
mov qword [rsp + 0xb8], r14
mov ebp, 0x10
mov qword [rsp + 0x20], rax
mov r9d, ebp
xor edx, edx
movups xmmword [rsp + 0x90], xmm0
call qword [sym.imp.ntdll.dll_NtQueryKey]
nop dword [rax]
test eax, eax
je 0x1400c7588
cmp eax, 0x80000005
je 0x1400c7588
mov rcx, qword [0x140241998]
lea edx, [rbp - 0xc]
mov r14, qword [rsp + 0x80]
mov r8d, 0x100
mov dword [rsp + 0x30], 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
nop dword [rax]
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtQueryKey]
mov edi, eax
test eax, eax
jns 0x1400c755d
mov rcx, qword [0x140241998]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp edi, 0x80000005
jne 0x1400c7597
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
add ebp, 0xffffffff
jne 0x1400c7500
nop dword [rax]
test edi, edi
js 0x1400c7597
mov rax, qword ds:[rbx]
mov r8, rbx
mov rcx, qword [0x140241998]
xor edx, edx
mov qword [rsi + 0xc8], rax
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1400c7597
mov rax, qword [rsp + 0x90]
mov qword [rsi + 0xc8], rax
mov rcx, qword ds:[rsp + 0x80]
call qword [sym.imp.ntdll.dll_NtClose]
mov r14, qword [rsp + 0xb8]
lea rcx, ds:[r15 - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
mov r15, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xe8]
mov rbp, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xd8]
cmp eax, 1
jne 0x1400c75ea
call fcn.1400fbcc0
or dword [rsi + 0xe0], 4
mov rcx, qword ds:[rsp + 0xa8]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0xc0
pop rsi
ret