Function at 0x14000d7d0
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 rsi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, str.RegEdit_RegEdit
xor dil, dil
call qword [sym.imp.USER32.dll_FindWindowW]
mov r14, rax
test rax, rax
jne 0x14000d81e
mov rdx, rsi
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 0x14000d84c
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call sym.ProcessHacker.exe_PhUiConnectToPhSvcEx
test al, al
jne 0x14000d84c
add rsp, 0x110
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [0x14018ab38]
mov word [rsp + 0x50], cx
lea eax, [rcx + 2]
mov word [rsp + 0x52], ax
mov rax, qword [str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegeditFavorites]
mov qword [rsp + 0x58], rax
cmp rcx, 0xfffe
ja 0x14000da25
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.1400da6c0
test eax, eax
js 0x14000da25
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 0x14000d8e0
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x14000da1d
mov eax, dword [0x140159710]
lea rbx, [rbp - 0x72]
movups xmm0, xmmword [str.A_ProcessHacker]
mov edi, 0xf
mov dword [rbp - 0x78], eax
movsd xmm1, qword [0x140159708]
movzx eax, word [0x140159714]
movaps xmmword [rsp + 0x70], xmm0
mov word [rbp - 0x74], ax
movsd qword [rbp - 0x80], xmm1
nop
lea rcx, [0x1401937e8]
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 0x14000d920
or rdi, 0xffffffffffffffff
mov word [rbp - 0x54], r15w
mov rax, rdi
lea rcx, [rsp + 0x70]
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14000d961
add ax, ax
movzx ecx, ax
mov word [rsp + 0x40], cx
mov qword [rsp + 0x60], rcx
lea eax, [rcx + 2]
mov rcx, rsi
mov word [rsp + 0x42], ax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x68], rax
call fcn.1400c52a0
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 0x14000d9df
call fcn.1400c8bc0
lea rcx, [rbp - 0x40]
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
lea rdx, [rsp + 0x60]
mov rcx, r14
movzx r8d, byte [rax + 8]
not r8b
and r8b, 1
call fcn.14000d550
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 0x14000da39
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
movzx eax, dil
add rsp, 0x110
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret