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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov r14, rdx
mov rbx, rcx
xor edx, edx
lea rcx, str.RegEdit_RegEdit
xor dil, dil
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
test rax, rax
jne 0x7ff6cc70c8ee
mov rdx, r14
mov rcx, rbx
call sym.ProcessHacker.exe_PhShellOpenKey
mov al, 1
add rsp, 0x110
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [rbp - 0x50]
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [rax + 8], 1
jne 0x7ff6cc70c91c
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call sym.ProcessHacker.exe_PhUiConnectToPhSvcEx
test al, al
jne 0x7ff6cc70c91c
add rsp, 0x110
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [0x7ff6cc852b88]
mov rax, qword [0x7ff6cc852b90]
mov word [rsp + 0x50], cx
mov word [rsp + 0x52], cx
mov qword [rsp + 0x58], rax
cmp rcx, 0xfffe
ja 0x7ff6cc70caf5
xor r8d, r8d
lea rax, [rbp + 0x50]
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
lea rcx, [r8 - 9]
call fcn.7ff6cc7beed0
test eax, eax
js 0x7ff6cc70caf5
mov qword [rsp + 0x140], r15
lea r8, [rbp - 0x20]
xor r15d, r15d
lea rcx, [rbp + 0x58]
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 [rbp + 0x50]
mov ebx, eax
test rcx, rcx
je 0x7ff6cc70c9ad
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x7ff6cc70caed
mov eax, dword [0x7ff6cc826970]
lea rbx, [rbp - 0x72]
movups xmm0, xmmword [str.A_ProcessHacker]
mov edi, 0xf
mov dword [rbp - 0x78], eax
movsd xmm1, qword [0x7ff6cc826968]
movzx eax, word [0x7ff6cc826974]
movaps xmmword [rsp + 0x70], xmm0
mov word [rbp - 0x74], ax
movsd qword [rbp - 0x80], xmm1
nop dword [rax + rax]
lea rcx, [0x7ff6cc85b1a4]
call qword [sym.imp.ntdll.dll_RtlRandomEx]
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 0x7ff6cc70c9f0
or rdi, 0xffffffffffffffff
mov word [rbp - 0x54], r15w
mov rcx, rdi
lea rax, [rsp + 0x70]
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x7ff6cc70ca31
add rcx, rcx
mov word [rsp + 0x40], cx
lea eax, [rcx + 2]
mov word [rsp + 0x42], ax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
movzx eax, cx
mov rcx, r14
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x68], rax
call fcn.7ff6cc7ac1d0
mov rcx, qword [rbp + 0x58]
lea rdx, [rsp + 0x40]
mov rbx, rax
mov r9d, 1
xor r8d, r8d
mov eax, dword [rax]
add eax, 2
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
lea rcx, [rbx - 0x10]
lock xadd dword [rcx + 8], edi
sub edi, 1
jne 0x7ff6cc70caaf
call fcn.7ff6cc7ae900
lea rcx, [rbp - 0x40]
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
lea rdx, [rsp + 0x60]
mov rcx, rsi
movzx r8d, byte [rax + 8]
not r8b
and r8b, 1
call fcn.7ff6cc70c5d0
mov rcx, qword [rbp + 0x58]
lea rdx, [rsp + 0x40]
movzx edi, al
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
mov r15, qword [rsp + 0x140]
lea rcx, [rbp - 0x30]
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [rax + 8], 1
jne 0x7ff6cc70cb09
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
movzx eax, dil
add rsp, 0x110
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret