Function at 0x140017414
Capabilities:
Check os version
Persist via run registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x518]
sub rsp, 0x610
mov rax, qword [0x14011d6b0]
xor rax, rsp
mov qword [rbp + 0x500], rax
mov ebx, 0x11c
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x1d0]
call fcn.1400abab0
mov dword [rbp + 0x1d0], ebx
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor esi, esi
test eax, eax
jne 0x140017489
mov dword [rbp + 0x1d0], 0x114
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r8d, 0x104
lea rdx, [rbp + 0x2f0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.140071a10
mov rcx, rax
test rax, rax
je 0x140017a8f
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x78], rbx
cmp dword [rbp + 0x1d4], 6
jb 0x140017999
mov ebx, 0x68
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x160]
call fcn.1400abab0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
mov dword [rbp + 0x160], ebx
mov dword [rbp + 0x19c], 1
mov word [rbp + 0x1a0], si
lea r8, [rbp + 0x2f0]
lea rdx, str.schtasks.exe__Create__tn_CrystalDiskInfo__tr____s____Startup____sc_ONLOGON__RL_HIGHEST__F
lea rcx, [rsp + 0x78]
call fcn.1400042cc
lea rax, [rbp - 0x10]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x160]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rbx, qword [rsp + 0x78]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, 0x3e8
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x1400df980]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400df990]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14001792c
lea rcx, [rbp + 0x90]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
movups xmm0, xmmword [rbp + 0x90]
movups xmmword [rbp - 0x20], xmm0
movsd xmm0, qword [rbp + 0xa0]
movsd qword [rbp - 0x80], xmm0
lea rcx, [rbp + 0x78]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
movups xmm0, xmmword [rbp + 0x78]
movups xmmword [rbp - 0x60], xmm0
movsd xmm0, qword [rbp + 0x88]
movsd qword [rbp - 0x78], xmm0
lea rcx, [rbp + 0x60]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
movups xmm0, xmmword [rbp + 0x60]
movups xmmword [rbp - 0x40], xmm0
movsd xmm0, qword [rbp + 0x70]
movsd qword [rbp - 0x70], xmm0
lea rcx, [rbp + 0x48]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
movups xmm0, xmmword [rbp - 0x20]
movaps xmmword [rbp + 0xe0], xmm0
movsd xmm0, qword [rbp - 0x80]
movsd qword [rbp + 0xf0], xmm0
movups xmm0, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x100], xmm0
movsd xmm0, qword [rbp - 0x78]
movsd qword [rbp + 0x110], xmm0
movups xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0x120], xmm0
movsd xmm0, qword [rbp - 0x70]
movsd qword [rbp + 0x130], xmm0
movups xmm0, xmmword [rbp + 0x48]
movaps xmmword [rbp + 0x140], xmm0
movsd xmm1, qword [rbp + 0x58]
movsd qword [rbp + 0x150], xmm1
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, [rbp + 0xe0]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x100]
lea r8, [rbp + 0x120]
lea rdx, [rbp + 0x140]
call qword [rax + 0x50]
mov edi, eax
lea rcx, [rbp + 0x48]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
lea rcx, [rbp + 0x60]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
lea rcx, [rbp + 0x78]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
lea rcx, [rbp + 0x90]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
test edi, edi
js 0x14001792c
lea rdx, [0x1400ea7b4]
lea rcx, [rbp - 0x70]
call fcn.1400194ec
nop
mov rcx, qword [rax]
test rcx, rcx
je 0x140017712
mov rdx, qword [rcx]
jmp 0x140017715
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea r8, [rsp + 0x70]
call qword [rax + 0x38]
mov edi, eax
lea rcx, [rbp - 0x70]
call fcn.140019488
test edi, edi
js 0x14001792c
lea rdx, [0x1400ea1b8]
lea rcx, [rbp - 0x78]
call fcn.1400194ec
nop
mov rcx, qword [rax]
test rcx, rcx
je 0x140017756
mov rdx, qword [rcx]
jmp 0x140017759
mov rdx, rsi
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
call qword [rax + 0x68]
mov edi, eax
lea rcx, [rbp - 0x78]
call fcn.140019488
test edi, edi
js 0x14001792c
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
call qword [rax + 0x98]
test eax, eax
js 0x14001792c
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
call qword [rax + 0x58]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + VariantChangeTypeEx]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x80]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov edx, 5
call qword [rax + 0x110]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400177ef
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x50], rsi
mov eax, 8
mov word [rbp + 0x30], ax
lea rcx, [0x1400ea000]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbp + 0x38], rax
test rax, rax
je 0x140017a84
movups xmm0, xmmword [rbp + 0x30]
movups xmmword [rbp - 0x40], xmm0
movsd xmm0, qword [rbp + 0x40]
movsd qword [rbp - 0x80], xmm0
lea rcx, [rbp + 0xc0]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
movups xmm0, xmmword [rbp + 0xc0]
movups xmmword [rbp + 0x10], xmm0
movsd xmm0, qword [rbp + 0xd0]
movsd qword [rbp - 0x60], xmm0
lea rcx, [rbp + 0xa8]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
movups xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp - 0x40], xmm0
movsd xmm0, qword [rbp - 0x80]
movsd qword [rbp - 0x30], xmm0
movups xmm0, xmmword [rbp + 0x10]
movaps xmmword [rbp + 0x10], xmm0
movsd xmm0, qword [rbp - 0x60]
movsd qword [rbp + 0x20], xmm0
movups xmm0, xmmword [rbp + 0xa8]
movaps xmmword [rbp - 0x60], xmm0
movsd xmm1, qword [rbp + 0xb8]
movsd qword [rbp - 0x50], xmm1
lea rdx, [0x1400ea1b8]
lea rcx, [rbp - 0x20]
call fcn.1400194ec
nop
mov rdx, qword [rax]
test rdx, rdx
je 0x1400178b2
mov rdx, qword [rdx]
jmp 0x1400178b5
mov rdx, rsi
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x40], r8
lea r8, [rbp - 0x40]
mov qword [rsp + 0x38], r8
mov dword [rsp + 0x30], 3
lea r8, [rbp + 0x10]
mov qword [rsp + 0x28], r8
lea r8, [rbp - 0x60]
mov qword [rsp + 0x20], r8
mov r9d, 6
mov r8, qword [rsp + 0x68]
call qword [rax + 0x88]
nop
lea rcx, [rbp - 0x20]
call fcn.140019488
nop
lea rcx, [rbp + 0xa8]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
lea rcx, [rbp + 0xc0]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
lea rcx, [rbp + 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140017941
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x60], rsi
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140017956
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x68], rsi
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001796b
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x50], rsi
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140017980
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x70], rsi
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140017a3c
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x140017a3c
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
lea r9, [0x1400ea000]
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140017a3c
lea r8, [rbp + 0x2f0]
lea rdx, str.__s___Startup
lea rcx, [rsp + 0x78]
call fcn.1400042cc
mov rbx, qword [rsp + 0x78]
mov rcx, rbx
call fcn.1400af134
lea ecx, [rax*2 + 6]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1400ea1b8]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140017a57
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.1400a9d90
lea r11, [rsp + 0x610]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ecx, 0x8007000e
call fcn.1400aafc0
nop
mov ecx, 0x80004005
call fcn.140002f7c
int3