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

Disassembly:
mov qword ss:[rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rbp], rax
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 0x14001f9e5
mov rdx, r14
mov rcx, rbx
call sym.SystemInformer.exe_PhShellOpenKey
mov al, 1
jmp 0x14001fbbf
lea rcx, [rsp + 0x58]
call sym.SystemInformer.exe_PhGetOwnTokenAttributes
test byte [rax + 8], 1
jne 0x14001fa0d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call sym.SystemInformer.exe_PhUiConnectToPhSvcEx
test al, al
je 0x14001fbbf
mov rcx, qword [0x1402c0470]
mov word [rsp + 0x58], cx
lea eax, [rcx + 2]
mov word [rsp + 0x5a], ax
mov rax, qword [str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegeditFavorites]
mov qword [rsp + 0x60], rax
cmp rcx, 0xfffe
ja 0x14001fba6
lea rax, [rsp + 0x40]
xor r8d, r8d
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x58]
mov rcx, 0xfffffffffffffff7
call fcn.140168f00
mov ebx, eax
test eax, eax
js 0x14001fa9d
xor eax, eax
lea r8, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x60]
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov edx, 0x20006
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test rcx, rcx
je 0x14001fa9d
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax]
test ebx, ebx
js 0x14001fba6
movups xmm0, xmmword [str.A_SystemInformer]
mov edx, 0x11
lea rcx, [rbp - 0x30]
movups xmm1, xmmword [0x14023dbf8]
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x40], xmm1
call sym.SystemInformer.exe_PhGenerateRandomAlphaString
lea rax, [rbp - 0x50]
mov edi, 0x40
mov rcx, r14
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rdi
call fcn.14013c700
lea rdx, ds:[rbp - 0x50]
mov dword [rsp + 0x40], 0x420040
mov rbx, rax
mov qword [rsp + 0x48], rdx
mov r9d, 1
lea rdx, [rsp + 0x40]
mov ecx, dword [rax]
xor r8d, r8d
mov rax, qword [rax + 8]
add ecx, 2
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp - 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14001fb3e
call fcn.140141ea0
lea rcx, [rsp + 0x40]
call sym.SystemInformer.exe_PhGetOwnTokenAttributes
lea rdx, ds:[rsp + 0x58]
mov rcx, rsi
movzx r8d, byte [rax + 8]
not r8b
and r8b, 1
call fcn.14001f220
mov rdx, qword [rsp + 0x58]
movzx edi, al
mov word [rsp + 0x40], dx
lea ecx, [rdx + 2]
mov word [rsp + 0x42], cx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
cmp rdx, 0xfffe
ja 0x14001fb9c
mov rcx, qword [rbp - 0x60]
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rsp + 0x58]
call sym.SystemInformer.exe_PhGetOwnTokenAttributes
test byte [rax + 8], 1
jne 0x14001fbbb
call sym.SystemInformer.exe_PhUiDisconnectFromPhSvc
movzx eax, dil
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1401e4a20
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret