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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov r14, rdx
mov r12, rcx
call fcn.1400718fc
xor r13d, r13d
cmp qword [r14 + 0x10], r13
je 0x140072fc1
mov qword [rbp - 0x28], r13
movdqa xmm0, xmmword [0x140364f60]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r13w
lea r8d, [r13 + 0xa]
lea rdx, str.Uninstall
lea rcx, [rbp - 0x28]
call fcn.14001b664
nop
mov qword [rbp - 0x70], r13
lea r9, [rbp - 0x70]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14035de70]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov r15d, eax
test eax, eax
js 0x140072ceb
mov qword [rsp + 0x70], r13
movdqa xmm0, xmmword [0x140364f60]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r13w
mov rdx, qword [rbp - 0x70]
or rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdx + r8*2], r13w
jne 0x140072be6
lea rcx, [rsp + 0x70]
call fcn.14001b664
nop
mov r8d, reloc.WS2_32.dll_send
lea rdx, [0x1402fcbd8]
lea rcx, [rsp + 0x70]
call fcn.140019e88
movups xmm0, xmmword [rax]
movups xmmword [rbp - 8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 8], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
lea rcx, [rsp + 0x70]
call fcn.14001b814
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], r13
mov rdx, r14
lea rcx, [rbp - 0x68]
call fcn.140019c78
nop
mov rdi, qword [rbp - 0x70]
mov rax, rbx
inc rax
cmp word [rdi + rax*2], r13w
jne 0x140072c5b
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9, rdi
xor r8d, r8d
mov rdx, qword [rbp - 0x58]
call fcn.14001a52c
mov rsi, rax
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp rsi, rbx
je 0x140072cb7
mov r8, qword [rbp + 8]
inc r8
mov qword [rsp + 0x20], r13
lea r9, [0x1403613f0]
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.140074870
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x58]
lea rcx, [rbp - 0x28]
call fcn.140019e88
nop
lea rcx, [rbp - 0x68]
call fcn.14001b814
nop
lea rcx, [rbp - 8]
call fcn.14001b814
jmp 0x140072dc8
xor edx, edx
lea r8d, [rdx + 0x4e]
lea rcx, [rbp + 0x20]
call fcn.14003a220
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
lea rcx, [rbp - 0x68]
call qword [sym.imp.ole32.dll_CoCreateGuid]
mov r15d, eax
test eax, eax
js 0x140072da6
movzx eax, byte [rbp - 0x59]
movzx ecx, byte [rbp - 0x5a]
movzx edx, byte [rbp - 0x5b]
movzx r8d, byte [rbp - 0x5c]
movzx r9d, byte [rbp - 0x5d]
movzx r10d, byte [rbp - 0x5e]
movzx r11d, byte [rbp - 0x5f]
movzx ebx, byte [rbp - 0x60]
movzx edi, word [rbp - 0x62]
movzx esi, word [rbp - 0x64]
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 - 0x68]
lea r8, str._08X_04X_04X_02X_02X_02X_02X_02X_02X_02X_02X
mov edx, 0x27
lea rcx, [rbp + 0x20]
call fcn.14001b704
test eax, eax
jns 0x140072da6
mov r9d, eax
lea r8, str.ScheduleDirectoryRemovalOnNextLogon_StringCchPrintf___failed._hr0x_08X
lea rdx, str.FSManagerImpl
mov ecx, 1
call fcn.140065bb0
lea rax, [rbp + 0x20]
or rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rax + r8*2], r13w
jne 0x140072db1
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x28]
call fcn.140019e88
mov qword [rbp - 0x48], r13
movdqa xmm0, xmmword [0x140364f60]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r13w
test r15d, r15d
js 0x140072f76
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x70]
call fcn.14003a220
lea rax, [rbp + 0x70]
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 0x140072f76
xor r9d, r9d
lea r8, str.cmd.exe
mov edx, 0x104
lea rcx, [rbp + 0x70]
call fcn.140020d40
mov r15d, eax
test eax, eax
js 0x140072f76
lea rax, [rbp + 0x70]
mov r8, rbx
inc r8
cmp word [rax + r8*2], r13w
jne 0x140072e48
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x48]
call fcn.14001b664
mov r8d, setsockopt
lea rdx, str.__q__c_rmdir__s__q__
lea rcx, [rbp - 0x48]
call fcn.140019e88
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x140072e82
mov rdx, qword [r14]
inc rbx
cmp word [rdx + rbx*2], r13w
jne 0x140072e82
mov r8, rbx
lea rcx, [rbp - 0x48]
call fcn.140019e88
mov r8d, 1
lea rdx, [0x140363c9c]
lea rcx, [rbp - 0x48]
call fcn.140019e88
cmp qword [r14 + 0x20], r13
je 0x140072f76
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x140072ec5
mov rcx, qword [r14]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140072f76
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x140072ee0
mov rcx, qword [r14]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x140072f05
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x140072ef7
mov rcx, qword [r14]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x140072fb6
mov eax, dword [rbp - 0x38]
add eax, eax
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 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 [r14 + 0x20]
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
je 0x140072f60
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
test r15d, r15d
js 0x140072f76
cmp qword [r14 + 0x18], 8
jb 0x140072f6a
mov r14, qword [r14]
mov rdx, r14
mov rcx, r12
call fcn.14006ed38
nop
lea rcx, [rbp - 0x48]
call fcn.14001b814
nop
lea rcx, [rbp - 0x28]
call fcn.14001b814
mov eax, r15d
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.140038910
mov rbx, qword [rsp + 0x3e0]
add rsp, 0x390
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.14001b7b0
nop
mov ecx, 0x80004005
call fcn.14001b7b0
int3