Function at 0x14009a860
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
mov r11, rsp
push rbp
push rdi
sub rsp, 0x98
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp byte [0x1402cac9f], cl
movzx ebp, dl
movzx edi, cl
je 0x14009ab21
mov r8, qword [0x1402c2110]
mov word [r11 - 0x78], r8w
lea eax, [r8 + 2]
mov word [rsp + 0x32], ax
mov rax, qword [str.SoftwareMicrosoftWindowsCurrentVersionRun]
mov qword [r11 - 0x70], rax
cmp r8, 0xfffe
ja 0x14009ab21
lea rax, ds:[r11 - 0x68]
mov qword [r11 + 8], rbx
lea r9, [r11 - 0x60]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [r11 - 0x78]
mov rcx, 0xfffffffffffffff7
call fcn.140168740
mov ebx, eax
test eax, eax
js 0x14009a918
lea r8, ds:[rsp + 0x48]
mov edx, 0x20006
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test rcx, rcx
je 0x14009a918
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test ebx, ebx
js 0x14009ab19
mov qword [rsp + 0xb8], rsi
test dil, dil
je 0x14009aacd
call sym.SystemInformer.exe_PhGetApplicationFileNameWin32
mov rsi, rax
test rax, rax
je 0x14009ab06
mov rdx, qword [rax]
mov rcx, qword [0x1402c22a8]
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0x90], r15
lea rbx, [rdx + rcx*2]
mov rdx, qword [0x1402ca978]
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_PhCreateObject
xor r15d, r15d
mov rdi, rax
mov qword [rax], rbx
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rcx + rbx], r15w
mov rbx, qword [rax + 8]
mov r8, qword [0x1402c22a8]
mov rcx, rbx
mov rdx, qword [0x1402c22b0]
call fcn.14020a640
add rbx, qword [0x1402c22a8]
mov r8, qword [rsi]
mov rcx, rbx
mov rdx, qword [rsi + 8]
call fcn.14020a640
add rbx, qword [rsi]
mov r8, qword [0x1402c22a8]
mov rcx, rbx
mov rdx, qword [0x1402c22b0]
call fcn.14020a640
mov rcx, rdi
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov r14, rax
test bpl, bpl
je 0x14009aa4e
mov rbx, qword [rax]
mov rdx, qword [0x1402ca978]
add rbx, 0xc
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_PhCreateObject
mov rdi, rax
mov qword [rax], rbx
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rcx + rbx], r15w
mov r8, qword [r14]
mov rdx, qword [r14 + 8]
mov rcx, qword [rax + 8]
call fcn.14020a640
mov rcx, qword [rdi + 8]
mov rdx, qword [r14]
movsd xmm0, qword [str.__hide]
movsd qword [rdx + rcx], xmm0
mov eax, dword [0x14023d988]
mov dword [rdx + rcx + 8], eax
mov rcx, rdi
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov r14, rax
mov rcx, qword [0x1402c22b8]
mov edx, dword [r14]
mov r8, qword [r14 + 8]
add edx, 2
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0xc0]
lea eax, [rcx + 2]
mov word [rsp + 0x32], ax
mov rax, qword [0x1402c22c0]
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], cx
cmp rcx, 0xfffe
ja 0x14009aab3
mov rcx, qword [rsp + 0x78]
mov r9d, 1
mov dword [rsp + 0x28], edx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtSetValueKey]
lea rcx, [rsi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14009ab06
call fcn.140141ca0
jmp 0x14009ab06
mov rcx, qword [0x1402c22b8]
mov word [rsp + 0x30], cx
lea eax, [rcx + 2]
mov word [rsp + 0x32], ax
mov rax, qword [0x1402c22c0]
mov qword [rsp + 0x38], rax
cmp rcx, 0xfffe
ja 0x14009ab06
mov rcx, qword [rsp + 0x78]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntdll.dll_NtClose]
mov rsi, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0x98
pop rdi
pop rbp
ret