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

Disassembly:
push rbx
push rbp
sub rsp, 0xa8
mov rax, qword [0x1402b5020]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp byte [0x1402c001f], cl
movzx ebp, dl
movzx ebx, cl
je 0x1400980ca
mov r8, qword [0x1402b7f60]
mov word [rsp + 0x48], r8w
lea eax, [r8 + 2]
mov word [rsp + 0x4a], ax
mov rax, qword [str.SoftwareMicrosoftWindowsCurrentVersionRun]
mov qword [rsp + 0x50], rax
cmp r8, 0xfffe
ja 0x1400980ca
xor r8d, r8d
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
lea rcx, [r8 - 9]
call fcn.1401608a0
nop dword [rax]
test eax, eax
js 0x1400980ca
lea r8, [rsp + 0x58]
mov qword [rsp + 0xc8], rdi
mov edx, 0x20006
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov rcx, qword [rsp + 0x40]
mov edi, eax
test rcx, rcx
je 0x140097eba
call qword [sym.imp.ntdll.dll_NtClose]
nop word [rax + rax]
test edi, edi
js 0x1400980c2
mov qword [rsp + 0xc0], rsi
test bl, bl
je 0x140098070
call sym.SystemInformer.exe_PhGetApplicationFileNameWin32
mov rsi, rax
test rax, rax
je 0x1400980ac
mov rdx, qword [rax]
mov rcx, qword [0x1402b80f8]
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0xa0], r15
lea rbx, [rdx + rcx*2]
mov rdx, qword [0x1402bfcf8]
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 [0x1402b80f8]
mov rcx, rbx
mov rdx, qword [0x1402b8100]
call fcn.1401e3aa0
add rbx, qword [0x1402b80f8]
mov r8, qword [rsi]
mov rcx, rbx
mov rdx, qword [rsi + 8]
call fcn.1401e3aa0
add rbx, qword [rsi]
mov r8, qword [0x1402b80f8]
mov rcx, rbx
mov rdx, qword [0x1402b8100]
call fcn.1401e3aa0
mov rcx, rdi
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov r14, rax
test bpl, bpl
je 0x140097fee
mov rbx, qword [rax]
mov rdx, qword [0x1402bfcf8]
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.1401e3aa0
mov rcx, qword [rdi + 8]
mov rdx, qword [r14]
movsd xmm0, qword [str.__hide]
movsd qword [rdx + rcx], xmm0
mov eax, dword [0x1402366b8]
mov dword [rdx + rcx + 8], eax
mov rcx, rdi
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov r14, rax
mov rcx, qword [0x1402b8108]
mov edx, dword [r14]
mov r8, qword [r14 + 8]
add edx, 2
mov r15, qword [rsp + 0xa0]
mov r14, qword [rsp + 0xd0]
lea eax, [rcx + 2]
mov word [rsp + 0x32], ax
mov rax, qword [0x1402b8110]
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], cx
cmp rcx, 0xfffe
ja 0x140098056
mov rcx, qword [rsp + 0x88]
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 0x1400980ac
call fcn.14013d2a0
jmp 0x1400980ac
mov rcx, qword [0x1402b8108]
mov word [rsp + 0x30], cx
lea eax, [rcx + 2]
mov word [rsp + 0x32], ax
mov rax, qword [0x1402b8110]
mov qword [rsp + 0x38], rax
cmp rcx, 0xfffe
ja 0x1400980ac
mov rcx, qword [rsp + 0x88]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
mov rsi, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401dd6a0
add rsp, 0xa8
pop rbp
pop rbx
ret