Function at 0x14001dbe0
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 [0x1402ba040]
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 0x14001dc45
mov rdx, r14
mov rcx, rbx
call sym.SystemInformer.exe_QiShellOpenKey
mov al, 1
jmp 0x14001de22
lea rcx, [rsp + 0x68]
call sym.SystemInformer.exe_QiGetOwnTokenAttributes
test byte [rax + 8], 1
jne 0x14001dc6d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call sym.SystemInformer.exe_QiUiConnectToPhSvcEx
test al, al
je 0x14001de22
mov rcx, qword [0x1402bb460]
mov word [rsp + 0x40], cx
lea eax, [rcx + 2]
mov word [rsp + 0x42], ax
mov rax, qword [str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegeditFavorites]
mov qword [rsp + 0x48], rax
cmp rcx, 0xfffe
ja 0x14001de09
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.140167940
nop dword [rax]
test eax, eax
js 0x14001de09
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 0x14001dd06
nop word [rax + rax]
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x14001de09
movups xmm0, xmmword [str.A_SystemInformer]
mov edx, 0x11
lea rcx, [rbp - 0x20]
movups xmm1, xmmword [0x14023aa68]
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm1
call sym.SystemInformer.exe_QiGenerateRandomAlphaString
lea rax, [rbp - 0x40]
mov edi, 0x40
mov rcx, r14
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
call fcn.14013a420
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 0x14001dda5
nop dword [rax]
call fcn.14013fb00
lea rcx, [rsp + 0x50]
call sym.SystemInformer.exe_QiGetOwnTokenAttributes
lea rdx, [rsp + 0x40]
mov rcx, rsi
movzx r8d, byte [rax + 8]
not r8b
and r8b, 1
call fcn.14001d460
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 0x14001ddff
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_QiGetOwnTokenAttributes
test byte [rax + 8], 1
jne 0x14001de1e
call sym.SystemInformer.exe_QiUiDisconnectFromPhSvc
movzx eax, dil
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1401e0100
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret