Function at 0x412ce9
Capabilities:
Check os version
Create process on windows
Persist via run registry key
Schedule task via schtasks
Set registry value

Disassembly:
push 0x414
mov eax, 0x4af674
call fcn.00487ec7
mov esi, 0x11c
lea eax, [ebp - 0x338]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00488da0
add esp, 0xc
mov dword [ebp - 0x338], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x338]
push eax
call esi
test eax, eax
jne 0x412d3c
lea eax, [ebp - 0x338]
mov dword [ebp - 0x338], 0x114
push eax
call esi
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x348]
call fcn.0040364a
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x334], 6
jb 0x4131d0
push 0x44
pop esi
push esi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00488da0
xor eax, eax
mov dword [ebp - 0x420], esi
lea edi, [ebp - 0x398]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x3f0], ax
xor edi, edi
lea eax, [ebp - 0x218]
inc edi
push eax
lea eax, [ebp - 0x348]
mov dword [ebp - 0x3f4], edi
push str.schtasks.exe__Create__tn_CrystalDiskInfo__tr____s____Startup____sc_ONLOGON__RL_HIGHEST__F
push eax
call fcn.00403636
add esp, 0x18
lea eax, [ebp - 0x398]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x348]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0x3e8
push dword [ebp - 0x398]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x394]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x398]
call esi
lea eax, [ebp - 0x340]
mov dword [ebp - 0x340], ebx
push eax
push 0x4c382c
push edi
push ebx
push 0x4c383c
mov dword [ebp - 0x354], ebx
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x344], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41315f
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x388]
push eax
call ebx
mov byte [ebp - 4], 1
lea esi, [ebp - 0x388]
lea edi, [ebp - 0x3a8]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x378]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call ebx
mov byte [ebp - 4], 2
lea esi, [ebp - 0x378]
lea edi, [ebp - 0x3b8]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x3d8]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call ebx
mov byte [ebp - 4], 3
lea esi, [ebp - 0x3d8]
lea edi, [ebp - 0x3c8]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x368]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call ebx
mov byte [ebp - 4], 4
sub esp, 0x10
mov edi, esp
mov eax, dword [ebp - 0x340]
lea esi, [ebp - 0x3a8]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x3b8]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x3c8]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x368]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x28]
mov esi, eax
mov byte [ebp - 4], 3
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x368]
push eax
call ebx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x3d8]
push eax
call ebx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x378]
push eax
call ebx
mov byte [ebp - 4], 0
lea eax, [ebp - 0x388]
push eax
call ebx
test esi, esi
js 0x41315d
push 0x4ca734
lea ecx, [ebp - 0x34c]
call fcn.004147ed
mov byte [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x412f55
mov edx, dword [eax]
jmp 0x412f57
xor edx, edx
mov eax, dword [ebp - 0x340]
lea esi, [ebp - 0x354]
push esi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34c]
call fcn.004147bc
test esi, esi
js 0x41315d
push 0x4ca17c
lea ecx, [ebp - 0x34c]
call fcn.004147ed
mov byte [ebp - 4], 6
mov eax, dword [eax]
test eax, eax
je 0x412fa2
mov edx, dword [eax]
jmp 0x412fa4
xor edx, edx
mov eax, dword [ebp - 0x354]
lea esi, [ebp - 0x33c]
push esi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34c]
call fcn.004147bc
test esi, esi
js 0x41315d
mov eax, dword [ebp - 0x33c]
lea edx, [ebp - 0x350]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
test eax, eax
js 0x41315d
mov eax, dword [ebp - 0x350]
lea edx, [ebp - 0x344]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x344]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x344]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x344]
push 5
push eax
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov ecx, dword [ebp - 0x33c]
test ecx, ecx
je 0x413043
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [ebp - 0x33c], 0
push 8
pop eax
push 0x4c9ff4
mov word [ebp - 0x368], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x360], eax
test eax, eax
je 0x41326e
mov byte [ebp - 4], 7
lea esi, [ebp - 0x368]
lea edi, [ebp - 0x3c8]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x378]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 8
lea esi, [ebp - 0x378]
lea edi, [ebp - 0x3b8]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x388]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 9
lea esi, [ebp - 0x388]
lea edi, [ebp - 0x3a8]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x34c]
push 0x4ca17c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004147ed
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
test edx, edx
je 0x4130da
mov edx, dword [edx]
jmp 0x4130dc
xor edx, edx
lea esi, [ebp - 0x33c]
mov eax, dword [ebp - 0x354]
push esi
sub esp, 0x10
lea esi, [ebp - 0x3c8]
mov edi, esp
mov ecx, dword [eax]
push 3
movsd dword es:[edi], dword [esi]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x3b8]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x3a8]
push 6
push dword [ebp - 0x350]
movsd dword es:[edi], dword [esi]
push edx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x44]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x34c]
call fcn.004147bc
mov byte [ebp - 4], 8
lea eax, [ebp - 0x388]
push eax
call ebx
mov byte [ebp - 4], 7
lea eax, [ebp - 0x378]
push eax
call ebx
mov byte [ebp - 4], 0
lea eax, [ebp - 0x368]
push eax
call ebx
xor ebx, ebx
mov ecx, dword [ebp - 0x344]
test ecx, ecx
je 0x413175
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x344], ebx
mov ecx, dword [ebp - 0x350]
test ecx, ecx
je 0x41318b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x350], ebx
mov ecx, dword [ebp - 0x33c]
test ecx, ecx
je 0x4131a1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x33c], ebx
mov ecx, dword [ebp - 0x354]
test ecx, ecx
je 0x4131b7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x354], ebx
mov ecx, dword [ebp - 0x340]
test ecx, ecx
je 0x413253
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x413253
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x340]
push eax
push ebx
push 0xf003f
push ebx
push 0x4c9ff4
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x413253
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x348]
push str.__s___Startup
push eax
call fcn.00403636
push dword [ebp - 0x348]
call fcn.0048cb73
add esp, 0x10
lea eax, [eax*2 + 6]
push eax
push dword [ebp - 0x348]
push 1
push ebx
push 0x4ca17c
push dword [ebp - 0x340]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x340]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x348]
add ecx, 0xfffffff0
call fcn.0040259b
xor eax, eax
inc eax
call fcn.00487e76
ret
push 0x8007000e
call fcn.00488870
int3