Function at 0x14006f040
Capabilities:
Check if file exists
Get common file path
Persist via run registry key
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x308]
sub rsp, 0x3e0
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov r14, rcx
lea r12, [rcx + 0xc8]
mov qword [rbp - 0x60], r12
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x58], 1
call fcn.1400718fc
xor esi, esi
mov r15d, esi
cmp qword [r14 + 0x20], rsi
je 0x14006f10f
lea rbx, [r14 + 0x18]
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.140066900
mov rax, qword [rbx]
mov qword [rax], rax
mov rax, qword [rbx]
mov qword [rax + 8], rax
mov qword [rbx + 8], rsi
mov rax, qword [rbx]
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x78]
mov rdx, qword [r14 + 0x30]
mov rcx, qword [r14 + 0x28]
call fcn.1400375dc
jmp 0x14006f10f
lea rcx, [r14 + 0x50]
call fcn.140071aa8
mov rbx, rax
test rax, rax
je 0x14006f774
mov rcx, qword [rax]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.0B__]
mov rdx, rbx
lea rcx, [r14 + 0x50]
call fcn.14007296c
cmp qword [r14 + 0x58], rsi
jne 0x14006f0de
mov rbx, qword [r14 + 0xb0]
mov rdi, qword [r14 + 0xb8]
jmp 0x14006f16d
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], rsi
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.140019c78
mov rax, qword [rbx + 0x20]
mov qword [rbp - 0x28], rax
mov al, byte [rbx + 0x28]
mov byte [rbp - 0x20], al
mov rax, qword [r14]
lea rdx, [rbp - 0x48]
mov rcx, r14
mov rax, qword [rax + 0x78]
call qword [str.0B__]
nop
lea rcx, [rbp - 0x48]
call fcn.14001b814
add rbx, 0x30
cmp rbx, rdi
jne 0x14006f125
mov rdi, qword [r14 + 0xb8]
mov rbx, qword [r14 + 0xb0]
cmp rbx, rdi
je 0x14006f19d
mov rcx, rbx
call fcn.14001b814
add rbx, 0x30
cmp rbx, rdi
jne 0x14006f185
mov rbx, qword [r14 + 0xb0]
mov qword [r14 + 0xb8], rbx
mov r10, qword [r14 + 0xa0]
mov rcx, qword [r14 + 0x98]
mov r8, r10
sub r8, rcx
movabs rax, 0x2aaaaaaaaaaaaaab
imul r8
sar rdx, 3
mov r8, rdx
shr r8, 0x3f
add r8, rdx
mov r9b, byte [rsp + 0x70]
mov rdx, r10
call fcn.1400670e0
mov r13, qword [r14 + 0x98]
mov rsi, qword [r14 + 0xa0]
mov qword [rsp + 0x78], rsi
cmp r13, rsi
je 0x14006f6f0
xor edi, edi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rdi
mov rdx, r13
lea rcx, [rbp - 0x48]
call fcn.140019c78
mov rax, qword [r13 + 0x20]
mov qword [rbp - 0x28], rax
mov al, byte [r13 + 0x28]
mov byte [rbp - 0x20], al
mov rax, qword [r14]
xor r9d, r9d
mov r8b, 1
lea rdx, [rbp - 0x48]
mov rcx, r14
mov rax, qword [rax + 0x98]
call qword [str.0B__]
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14006f6da
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x14006f6da
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov rcx, r14
call fcn.14006ed38
mov r15d, eax
cmp byte [rbp - 0x20], dil
jne 0x14006f6da
test eax, eax
js 0x14006f6da
call fcn.1400718fc
cmp qword [rbp - 0x38], rdi
je 0x14006f769
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x38], rdi
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], di
mov r8d, 0xa
lea rdx, str.Uninstall
lea rcx, [rbp + 0x28]
call fcn.14001b664
nop
mov qword [rbp - 0x50], rdi
lea r9, [rbp - 0x50]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14035de70]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov r15d, eax
test eax, eax
js 0x14006f425
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], di
mov rdx, qword [rbp - 0x50]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x14006f31f
lea rcx, [rbp - 0x80]
call fcn.14001b664
nop
mov r8d, reloc.WS2_32.dll_send
lea rdx, [0x1402fcbd8]
lea rcx, [rbp - 0x80]
call fcn.140019e88
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea rcx, [rbp - 0x80]
call fcn.14001b814
mov qword [rbp - 0x18], rdi
mov qword [rbp - 8], rdi
mov qword [rbp], rdi
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x18]
call fcn.140019c78
nop
mov rbx, qword [rbp - 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x14006f392
lea rcx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rcx, qword [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9, rbx
xor r8d, r8d
mov rdx, qword [rbp - 8]
call fcn.14001a52c
mov rdi, rax
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp rdi, 0xffffffffffffffff
je 0x14006f3ef
mov r8, qword [rbp + 0x58]
inc r8
and qword [rsp + 0x20], 0
lea r9, [0x1403613f0]
mov rdx, rdi
lea rcx, [rbp - 0x18]
call fcn.140074870
lea rdx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rdx, qword [rbp - 0x18]
mov r8, qword [rbp - 8]
lea rcx, [rbp + 0x28]
call fcn.140019e88
nop
lea rcx, [rbp - 0x18]
call fcn.14001b814
nop
lea rcx, [rbp + 0x48]
call fcn.14001b814
xor edi, edi
jmp 0x14006f504
xor edx, edx
lea r8d, [rdx + 0x4e]
lea rcx, [rbp + 0x70]
call fcn.14003a220
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
lea rcx, [rbp - 0x18]
call qword [sym.imp.ole32.dll_CoCreateGuid]
mov r15d, eax
test eax, eax
js 0x14006f4e5
movzx eax, byte [rbp - 9]
movzx ecx, byte [rbp - 0xa]
movzx edx, byte [rbp - 0xb]
movzx r8d, byte [rbp - 0xc]
movzx r9d, byte [rbp - 0xd]
movzx r10d, byte [rbp - 0xe]
movzx r11d, byte [rbp - 0xf]
movzx ebx, byte [rbp - 0x10]
movzx edi, word [rbp - 0x12]
movzx esi, word [rbp - 0x14]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x58], edx
mov dword [rsp + 0x50], r8d
mov dword [rsp + 0x48], r9d
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], esi
mov r9d, dword [rbp - 0x18]
lea r8, str._08X_04X_04X_02X_02X_02X_02X_02X_02X_02X_02X
mov edx, 0x27
lea rcx, [rbp + 0x70]
call fcn.14001b704
xor edi, edi
test eax, eax
jns 0x14006f4e0
mov r9d, eax
lea r8, str.ScheduleDirectoryRemovalOnNextLogon_StringCchPrintf___failed._hr0x_08X
lea rdx, str.FSManagerImpl
lea ecx, [rdi + 1]
call fcn.140065bb0
mov rsi, qword [rsp + 0x78]
lea rax, [rbp + 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x14006f4ed
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x28]
call fcn.140019e88
mov qword [rbp + 8], rdi
mov qword [rbp + 0x18], rdi
mov qword [rbp + 0x20], 7
mov word [rbp + 8], di
test r15d, r15d
js 0x14006f6c6
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xc0]
call fcn.14003a220
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x25]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r15d, eax
test eax, eax
js 0x14006f6c6
xor r9d, r9d
lea r8, str.cmd.exe
mov edx, 0x104
lea rcx, [rbp + 0xc0]
call fcn.140020d40
mov r15d, eax
test eax, eax
js 0x14006f6c6
lea rax, [rbp + 0xc0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x14006f58f
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 8]
call fcn.14001b664
mov r8d, setsockopt
lea rdx, str.__q__c_rmdir__s__q__
lea rcx, [rbp + 8]
call fcn.140019e88
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x14006f5d1
lea rcx, [rbp + 8]
call fcn.140019e88
mov r8d, 1
lea rdx, [0x140363c9c]
lea rcx, [rbp + 8]
call fcn.140019e88
cmp qword [rbp - 0x28], rdi
je 0x14006f6c6
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14006f6c6
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x14006f654
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x14006f75e
mov eax, dword [rbp + 0x18]
add eax, eax
lea rcx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rcx, qword [rbp + 8]
lea r8, [rbp + 0x28]
cmp qword [rbp + 0x40], 8
cmovae r8, qword [rbp + 0x28]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
je 0x14006f6af
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
test r15d, r15d
js 0x14006f6c6
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov rcx, r14
call fcn.14006ed38
nop
lea rcx, [rbp + 8]
call fcn.14001b814
nop
lea rcx, [rbp + 0x28]
call fcn.14001b814
nop
lea rcx, [rbp - 0x48]
call fcn.14001b814
add r13, 0x30
cmp r13, rsi
jne 0x14006f1fe
mov rdi, qword [r14 + 0xa0]
mov rbx, qword [r14 + 0x98]
cmp rbx, rdi
je 0x14006f71b
mov rcx, rbx
call fcn.14001b814
add rbx, 0x30
cmp rbx, rdi
jne 0x14006f703
mov rbx, qword [r14 + 0x98]
mov qword [r14 + 0xa0], rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, r15d
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140038910
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.14001b7b0
nop
mov ecx, 0x80004005
call fcn.14001b7b0
nop
mov ecx, 0x80004005
call fcn.14001b7b0
int3