Function at 0x7ff7bffcf630
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x7ff7c01ca008]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rsi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [0x7ff7c0174818]
xor dil, dil
call qword [sym.imp.USER32.dll_FindWindowW]
mov r14, rax
test rax, rax
jne 0x7ff7bffcf687
mov rdx, rsi
mov rcx, rbx
call sym.ProcessHacker.exe_PhShellOpenKey
mov al, 1
jmp 0x7ff7bffcf8db
lea rcx, ds:[rbp - 0x78]
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [rax + 8], 1
jne 0x7ff7bffcf6b8
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call sym.ProcessHacker.exe_PhUiConnectToPhSvcEx
nop dword [rax + rax]
test al, al
je 0x7ff7bffcf8db
mov rcx, qword [0x7ff7c01cd108]
mov word [rsp + 0x70], cx
lea eax, [rcx + 2]
mov word [rsp + 0x72], ax
mov rax, qword [0x7ff7c01cd110]
mov qword [rsp + 0x78], rax
cmp rcx, 0xfffe
ja 0x7ff7bffcf8c2
xor r8d, r8d
lea rax, [rsp + 0x58]
lea r9, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x70]
lea rcx, [r8 - 9]
call fcn.7ff7c00e0390
test eax, eax
js 0x7ff7bffcf8c2
mov qword [rsp + 0x160], r15
lea r8, [rbp - 0x60]
xor r15d, r15d
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], r15d
mov edx, 0x20006
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
test rcx, rcx
je 0x7ff7bffcf74f
call qword [sym.imp.ntdll.dll_NtClose]
nop
test ebx, ebx
js 0x7ff7bffcf8ba
mov eax, dword [0x7ff7c0174850]
lea rbx, [rbp - 0x12]
movups xmm0, xmmword [0x7ff7c0174838]
mov edi, 0xf
mov dword [rbp - 0x18], eax
movsd xmm1, qword [0x7ff7c0174848]
movzx eax, word [0x7ff7c0174854]
movaps xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x14], ax
movsd qword [rbp - 0x20], xmm1
nop dword [rax]
lea rcx, [0x7ff7c01d69e0]
call qword [sym.imp.ntdll.dll_RtlRandom]
mov ecx, eax
lea rbx, [rbx + 2]
mov eax, 0x4ec4ec4f
mul ecx
shr edx, 3
imul eax, edx, 0x1a
sub ecx, eax
add cx, 0x41
mov word [rbx - 2], cx
sub rdi, 1
jne 0x7ff7bffcf790
lea rcx, [rbp - 0x30]
mov word [rbp + 0xc], r15w
call sym.ProcessHacker.exe_PhCountStringZ
mov rbx, rax
mov rcx, rsi
lea rax, [rbp - 0x30]
add rbx, rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rax
call fcn.7ff7c00c0d40
mov rdi, rax
mov word [rsp + 0x48], bx
mov ecx, dword [rax]
mov rdx, qword [rax + 8]
add ecx, 2
lea eax, [rbx + 2]
mov word [rsp + 0x4a], ax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x50], rax
cmp rbx, 0xfffe
ja 0x7ff7bffcf83b
mov dword [rsp + 0x28], ecx
mov r9d, 1
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
lea rcx, [rdi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x7ff7bffcf855
nop
call fcn.7ff7c00c6290
lea rcx, [rbp - 0x78]
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
lea rdx, [rsp + 0x60]
mov rcx, r14
movzx r8d, byte [rax + 8]
not r8b
and r8b, 1
call fcn.7ff7bffcf360
mov rdx, qword [rsp + 0x60]
movzx edi, al
mov word [rsp + 0x48], dx
lea ecx, [rdx + 2]
mov word [rsp + 0x4a], cx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x50], rcx
cmp rdx, 0xfffe
ja 0x7ff7bffcf8af
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtClose]
mov r15, qword [rsp + 0x160]
lea rcx, [rsp + 0x70]
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [rax + 8], 1
jne 0x7ff7bffcf8d7
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
movzx eax, dil
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.7ff7c0121390
add rsp, 0x120
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret