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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
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 0x14004919e
mov rdx, r14
mov rcx, rbx
call sym.ProcessHacker.exe_PhShellOpenKey
mov al, 1
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp byte [sym.ProcessHacker.exe_PhElevated], 0
jne 0x1400491c6
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call sym.ProcessHacker.exe_PhUiConnectToPhSvcEx
test al, al
jne 0x1400491c6
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [0x1401558b0]
mov rax, qword [str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegeditFavorites]
mov word [rbp - 0x59], cx
mov word [rbp - 0x57], cx
mov qword [rbp - 0x51], rax
cmp rcx, 0xfffe
ja 0x140049380
xor r8d, r8d
lea rax, [rbp + 0x77]
lea r9, [rbp + 7]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x59]
lea rcx, [r8 - 9]
call fcn.140023c80
test eax, eax
js 0x140049380
mov qword [rsp + 0x110], r15
lea r8, [rbp + 7]
xor r15d, r15d
lea rcx, [rbp + 0x7f]
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 + 0x77]
mov ebx, eax
test rcx, rcx
je 0x140049253
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x140049378
mov eax, dword [0x14012ac00]
lea rbx, [rbp - 0x1b]
movups xmm0, xmmword [str.A_ProcessHacker]
mov edi, 0xf
mov dword [rbp - 0x21], eax
movsd xmm1, qword [0x14012abf8]
movzx eax, word [0x14012ac04]
movaps xmmword [rbp - 0x39], xmm0
mov word [rbp - 0x1d], ax
movsd qword [rbp - 0x29], xmm1
lea rcx, [0x14015a3c0]
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 0x140049290
or rdi, 0xffffffffffffffff
mov word [rbp + 3], r15w
mov rcx, rdi
lea rax, [rbp - 0x39]
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x1400492d0
add rcx, rcx
mov word [rbp - 0x69], cx
lea eax, [rcx + 2]
mov word [rbp - 0x67], ax
lea rax, [rbp - 0x39]
mov qword [rbp - 0x61], rax
movzx eax, cx
mov rcx, r14
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x39]
mov qword [rbp - 0x41], rax
call fcn.14002ced0
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp - 0x69]
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 0x140049346
call fcn.1400258b0
cmp byte [sym.ProcessHacker.exe_PhElevated], r15b
lea rdx, [rbp - 0x49]
mov rcx, rsi
sete r8b
call fcn.140048e80
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp - 0x69]
movzx edi, al
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ntdll.dll_NtClose]
mov r15, qword [rsp + 0x110]
cmp byte [sym.ProcessHacker.exe_PhElevated], 0
jne 0x14004938e
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
movzx eax, dil
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret