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

Disassembly:
push rbx
push rbp
sub rsp, 0xa8
mov rax, qword [0x1402ba040]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp byte [0x1402c52ef], cl
movzx ebp, dl
movzx ebx, cl
je 0x14009924a
mov r8, qword [0x1402bd0d0]
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 0x14009924a
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.140167940
nop dword [rax]
test eax, eax
js 0x14009924a
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 0x14009903a
call qword [sym.imp.ntdll.dll_NtClose]
nop word [rax + rax]
test edi, edi
js 0x140099242
mov qword [rsp + 0xc0], rsi
test bl, bl
je 0x1400991f0
call sym.SystemInformer.exe_QiGetApplicationFileNameWin32
mov rsi, rax
test rax, rax
je 0x14009922c
mov rdx, qword [rax]
mov rcx, qword [0x1402bd268]
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0xa0], r15
lea rbx, [rdx + rcx*2]
mov rdx, qword [0x1402c4fb8]
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_QiCreateObject
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 [0x1402bd268]
mov rcx, rbx
mov rdx, qword [0x1402bd270]
call fcn.1402074d0
add rbx, qword [0x1402bd268]
mov r8, qword [rsi]
mov rcx, rbx
mov rdx, qword [rsi + 8]
call fcn.1402074d0
add rbx, qword [rsi]
mov r8, qword [0x1402bd268]
mov rcx, rbx
mov rdx, qword [0x1402bd270]
call fcn.1402074d0
mov rcx, rdi
call sym.SystemInformer.exe_QiAutoDereferenceObject
mov r14, rax
test bpl, bpl
je 0x14009916e
mov rbx, qword [rax]
mov rdx, qword [0x1402c4fb8]
add rbx, 0xc
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_QiCreateObject
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.1402074d0
mov rcx, qword [rdi + 8]
mov rdx, qword [r14]
movsd xmm0, qword [str.__hide]
movsd qword [rdx + rcx], xmm0
mov eax, dword [0x14023a7f8]
mov dword [rdx + rcx + 8], eax
mov rcx, rdi
call sym.SystemInformer.exe_QiAutoDereferenceObject
mov r14, rax
mov rcx, qword [0x1402bd278]
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 [0x1402bd280]
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], cx
cmp rcx, 0xfffe
ja 0x1400991d6
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 0x14009922c
call fcn.14013fb00
jmp 0x14009922c
mov rcx, qword [0x1402bd278]
mov word [rsp + 0x30], cx
lea eax, [rcx + 2]
mov word [rsp + 0x32], ax
mov rax, qword [0x1402bd280]
mov qword [rsp + 0x38], rax
cmp rcx, 0xfffe
ja 0x14009922c
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.1401e0100
add rsp, 0xa8
pop rbp
pop rbx
ret