Function at 0x14001d9a0
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 - 0x20]
sub rsp, 0x120
mov rax, qword [0x1402b5020]
xor rax, rsp
mov qword [rbp + 0x10], 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 0x14001da05
mov rdx, r14
mov rcx, rbx
call sym.SystemInformer.exe_PhShellOpenKey
mov al, 1
jmp 0x14001dbe2
lea rcx, [rsp + 0x68]
call sym.SystemInformer.exe_PhGetOwnTokenAttributes
test byte [rax + 8], 1
jne 0x14001da2d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call sym.SystemInformer.exe_PhUiConnectToPhSvcEx
test al, al
je 0x14001dbe2
mov rcx, qword [0x1402b6400]
mov word [rsp + 0x40], cx
lea eax, [rcx + 2]
mov word [rsp + 0x42], ax
mov rax, qword [str.ph_]
mov qword [rsp + 0x48], rax
cmp rcx, 0xfffe
ja 0x14001dbc9
xor r8d, r8d
lea rax, [rsp + 0x50]
lea r9, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
lea rcx, [r8 - 9]
call fcn.1401608a0
nop dword [rax]
test eax, eax
js 0x14001dbc9
xor eax, eax
lea r8, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x50]
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 + 0x50]
mov ebx, eax
test rcx, rcx
je 0x14001dac6
nop word [rax + rax]
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x14001dbc9
movups xmm0, xmmword [str.A_SystemInformer]
mov edx, 0x11
lea rcx, [rbp - 0x20]
movups xmm1, xmmword [0x140236928]
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm1
call sym.SystemInformer.exe_PhGenerateRandomAlphaString
lea rax, [rbp - 0x40]
mov edi, 0x40
mov rcx, r14
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
call fcn.140137e00
lea rdx, [rbp - 0x40]
mov dword [rsp + 0x50], 0x420040
mov rbx, rax
mov qword [rsp + 0x58], rdx
lea r9d, [rdi - 0x3f]
xor r8d, r8d
mov ecx, dword [rax]
lea rdx, [rsp + 0x50]
mov rax, qword [rax + 8]
add ecx, 2
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp - 0x50]
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 0x14001db65
nop dword [rax]
call fcn.14013d2a0
lea rcx, [rsp + 0x50]
call sym.SystemInformer.exe_PhGetOwnTokenAttributes
lea rdx, [rsp + 0x40]
mov rcx, rsi
movzx r8d, byte [rax + 8]
not r8b
and r8b, 1
call fcn.14001d280
mov rdx, qword [rsp + 0x40]
movzx edi, al
mov word [rsp + 0x68], dx
lea ecx, [rdx + 2]
mov word [rsp + 0x6a], cx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x70], rcx
cmp rdx, 0xfffe
ja 0x14001dbbf
mov rcx, qword [rbp - 0x50]
lea rdx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rsp + 0x68]
call sym.SystemInformer.exe_PhGetOwnTokenAttributes
test byte [rax + 8], 1
jne 0x14001dbde
call sym.SystemInformer.exe_PhUiDisconnectFromPhSvc
movzx eax, dil
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1401dd6a0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret