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

Disassembly:
push 0x414
mov eax, 0x4ad8cb
call fcn.004879f3
mov esi, 0x11c
lea eax, [ebp - 0x338]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00488a40
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 0x4130bb
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.004038ee
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x334], 6
jb 0x41354f
push 0x44
pop esi
push esi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00488a40
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.004038da
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 0x4c18fc
push edi
push ebx
push 0x4c190c
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 0x4134de
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 0x4134dc
push 0x4c97f4
lea ecx, [ebp - 0x34c]
call fcn.00414b6d
mov byte [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x4132d4
mov edx, dword [eax]
jmp 0x4132d6
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.00414b3c
test esi, esi
js 0x4134dc
push 0x4c9240
lea ecx, [ebp - 0x34c]
call fcn.00414b6d
mov byte [ebp - 4], 6
mov eax, dword [eax]
test eax, eax
je 0x413321
mov edx, dword [eax]
jmp 0x413323
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.00414b3c
test esi, esi
js 0x4134dc
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 0x4134dc
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 0x4133c2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [ebp - 0x33c], 0
push 8
pop eax
push 0x4c90b8
mov word [ebp - 0x368], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x360], eax
test eax, eax
je 0x4135ed
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 0x4c9240
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00414b6d
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
test edx, edx
je 0x413459
mov edx, dword [edx]
jmp 0x41345b
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.00414b3c
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 0x4134f4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x344], ebx
mov ecx, dword [ebp - 0x350]
test ecx, ecx
je 0x41350a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x350], ebx
mov ecx, dword [ebp - 0x33c]
test ecx, ecx
je 0x413520
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x33c], ebx
mov ecx, dword [ebp - 0x354]
test ecx, ecx
je 0x413536
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x354], ebx
mov ecx, dword [ebp - 0x340]
test ecx, ecx
je 0x4135d2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x4135d2
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x340]
push eax
push ebx
push 0xf003f
push ebx
push 0x4c90b8
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4135d2
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x348]
push str.__s___Startup
push eax
call fcn.004038da
push dword [ebp - 0x348]
call fcn.0048c5e3
add esp, 0x10
lea eax, [eax*2 + 6]
push eax
push dword [ebp - 0x348]
push 1
push ebx
push 0x4c9240
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.004028cb
xor eax, eax
inc eax
call fcn.0048799d
ret
push 0x8007000e
call fcn.00488520
int3