Function at 0x14009a6c0
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 [0x1402c0040]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp byte [0x1402cbbef], cl
movzx ebp, dl
movzx edi, cl
je 0x14009a981
mov r8, qword [0x1402c3100]
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 0x14009a981
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.140169b80
mov ebx, eax
test eax, eax
js 0x14009a778
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 0x14009a778
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test ebx, ebx
js 0x14009a979
mov qword [rsp + 0xb8], rsi
test dil, dil
je 0x14009a92d
call sym.SystemInformer.exe_PhGetApplicationFileNameWin32
mov rsi, rax
test rax, rax
je 0x14009a966
mov rdx, qword [rax]
mov rcx, qword [0x1402c3298]
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0x90], r15
lea rbx, [rdx + rcx*2]
mov rdx, qword [0x1402cb8c0]
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 [0x1402c3298]
mov rcx, rbx
mov rdx, qword [0x1402c32a0]
call fcn.14020be40
add rbx, qword [0x1402c3298]
mov r8, qword [rsi]
mov rcx, rbx
mov rdx, qword [rsi + 8]
call fcn.14020be40
add rbx, qword [rsi]
mov r8, qword [0x1402c3298]
mov rcx, rbx
mov rdx, qword [0x1402c32a0]
call fcn.14020be40
mov rcx, rdi
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov r14, rax
test bpl, bpl
je 0x14009a8ae
mov rbx, qword [rax]
mov rdx, qword [0x1402cb8c0]
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.14020be40
mov rcx, qword [rdi + 8]
mov rdx, qword [r14]
movsd xmm0, qword [str.__hide]
movsd qword [rdx + rcx], xmm0
mov eax, dword [0x14023eb58]
mov dword [rdx + rcx + 8], eax
mov rcx, rdi
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov r14, rax
mov rcx, qword [0x1402c32a8]
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 [0x1402c32b0]
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], cx
cmp rcx, 0xfffe
ja 0x14009a913
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 0x14009a966
call fcn.140142200
jmp 0x14009a966
mov rcx, qword [0x1402c32a8]
mov word [rsp + 0x30], cx
lea eax, [rcx + 2]
mov word [rsp + 0x32], ax
mov rax, qword [0x1402c32b0]
mov qword [rsp + 0x38], rax
cmp rcx, 0xfffe
ja 0x14009a966
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.1401e5e20
add rsp, 0x98
pop rdi
pop rbp
ret