Function at 0x414007
Capabilities:
Create thread
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [ebx + 0x10969f8]
push edi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.00413ea1
test eax, eax
je 0x414711
mov eax, dword [ebx + 0x10cc07c]
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x44]
mov dword [eax + 0xe4], ecx
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0xe0], esi
mov eax, dword [ebx + 0x10cc080]
mov dword [eax + 0xe0], edi
mov dword [eax + 0xe4], ecx
mov eax, ebx
call fcn.004083a9
mov ecx, dword [ebp - 0x40]
mov eax, edi
sub eax, esi
sbb ecx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
fild qword [ebp - 0x4c]
mov eax, edi
sub eax, esi
push 0x3e
fstp qword [ebp - 0x5c]
pop ecx
fld qword [ebx + 0x10cbf40]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x10cbbb4]
fstp qword [ebp - 0x4c]
fld qword [ebx + 0x10cbf48]
lea esi, [ebp - 0x1bc]
fstp qword [ebp - 0x84]
lea edi, [ebp - 0x1b4]
fld qword [0x4417c8]
push 0x3e
fstp qword [ebp - 0x1bc]
rep movsd dword es:[edi], dword [esi]
fld qword [0x4417c0]
fstp qword [ebp - 0x2bc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x10cbf3c]
pop ecx
lea esi, [ebp - 0x2bc]
lea edi, [ebp - 0x2b4]
push 0xcc
mov dword [ebp - 0x70], eax
rep movsd dword es:[edi], dword [esi]
call fcn.0041482f
pop ecx
push eax
push 2
push 0x400
push dword [ebx + 0x1097a10]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
shl eax, 3
push eax
push 0x40
mov dword [ebp - 8], eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov dword [ebp - 0x54], eax
call esi
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
push 0x40
call edi
push eax
mov dword [ebp - 0x50], eax
call esi
push dword [ebp - 8]
mov dword [ebp - 0x28], eax
push 0
push dword [ebp - 0x10]
call fcn.004204c0
add esp, 0xc
push dword [ebp - 8]
push 0
push dword [ebp - 0x28]
call fcn.004204c0
mov eax, dword [ebx + 0x10cc078]
fld dword [eax + 0x4ff0]
mov edi, dword [ebp - 0x30]
fdivr qword [ebp - 0x5c]
mov eax, dword [ebp - 0x34]
add esp, 0xc
cmp edi, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
fstp qword [ebp - 0x7c]
jg 0x414246
jge 0x41423d
mov ecx, dword [ebp - 0xc]
sub eax, dword [ebp - 0x34]
test ecx, ecx
jle 0x414222
mov edx, eax
test edx, edx
mov dword [ebp - 0x14], edx
fild dword [ebp - 0x14]
jge 0x4141ad
fadd qword [0x4416b8]
mov edx, dword [ebp - 0x18]
fstp qword [ebp - 0xac]
shl edx, 3
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
lea eax, [edx + eax*8]
lea esi, [ebx + 0x10cbc38]
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], ecx
push dword [ebp - 0x20]
mov eax, dword [esi]
push dword [ebp - 0x24]
mov ecx, dword [ebx + 0x10cc078]
dec eax
call fcn.004024f3
fstp qword [ebp - 0xa4]
fld qword [ebp - 0x5c]
mov eax, dword [ebp - 0x70]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [ebp - 0xac]
fstp qword [esp]
call fcn.004131ba
mov eax, dword [ebp - 8]
fstp dword [ebp - 0x38]
fld dword [ebp - 0x38]
add esi, 4
fmul qword [ebp - 0xa4]
fstp qword [eax]
add eax, dword [ebp - 0x14]
dec dword [ebp - 0x2c]
mov dword [ebp - 8], eax
jne 0x4141ce
mov eax, dword [ebp - 0x24]
add eax, 1
adc dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
jl 0x41418d
jg 0x414246
cmp eax, dword [ebp - 0x44]
jb 0x41418d
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 2
push 1
push 0x400
push dword [ebx + 0x1097a10]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x10cbf54], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x10cbf58], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x10cbf60], eax
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x10cbf68], eax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x10cbf6c], eax
xor eax, eax
mov dword [ebx + 0x10cbf64], edi
xor edi, edi
cmp dword [ebp - 0xc], eax
mov dword [ebx + 0x10cbf5c], eax
jle 0x4142e6
lea ecx, [ebp - 0x33c]
lea edx, [ebx + 0x10cbf70]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
jmp 0x4142b8
mov ecx, dword [ebp - 8]
xor eax, eax
mov edx, dword [ebp - 0x10]
push eax
push eax
push ecx
push 0x413185
push eax
push eax
mov dword [edx], eax
mov dword [ecx], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
add dword [ebp - 0x10], 4
add dword [ebp - 8], 4
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x4142b3
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x64
mov dword [ebp - 0x14], eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0xc]
xor edi, edi
test ecx, ecx
jle 0x414311
lea eax, [ebx + 0x10cbf70]
add edi, dword [eax]
add eax, 4
dec ecx
jne 0x414309
mov eax, edi
cdq
idiv dword [ebp - 0xc]
push eax
push 1
push 0x400
push dword [ebx + 0x1097a10]
call esi
cmp edi, dword [ebp - 0x14]
jl 0x4142ef
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x41433d
xor eax, eax
lea edi, [ebp - 0x33c]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x18]
and dword [ebp - 8], 0
test edi, edi
jbe 0x414405
fld qword [ebp - 0x4c]
mov eax, dword [ebp - 0x28]
fdiv qword [0x4415e0]
mov dword [ebp - 0x10], eax
fstp qword [ebp - 0x24]
mov eax, dword [ebp - 8]
fild dword [ebp - 8]
test eax, eax
jge 0x41436e
fadd qword [0x4416b8]
fdiv qword [ebp - 0x7c]
fld qword [ebp - 0x24]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x4143f0
fld qword [ebp - 0x84]
fdiv qword [0x4415e0]
fcompp
fnstsw ax
test ah, 0x41
jnp 0x4143f2
xor edi, edi
cmp dword [ebp - 0xc], edi
jle 0x4143f2
mov esi, dword [ebp - 0x10]
fld qword [esi]
push ecx
push ecx
fstp qword [esp]
call fcn.00421d50
fstp dword [ebp - 0x14]
pop ecx
fld dword [ebp - 0x14]
pop ecx
fmul qword [0x4416f0]
lea ecx, [ebp + edi*8 - 0x2bc]
fst qword [esi]
fcom qword [ecx]
fnstsw ax
test ah, 5
jp 0x4143ca
fst qword [ecx]
lea ecx, [ebp + edi*8 - 0x1bc]
fcom qword [ecx]
fnstsw ax
test ah, 0x41
jne 0x4143de
fstp qword [ecx]
jmp 0x4143e0
fstp st(0)
mov eax, dword [ebp - 0x18]
shl eax, 3
inc edi
add esi, eax
cmp edi, dword [ebp - 0xc]
jl 0x41439c
jmp 0x4143f2
fstp st(0)
inc dword [ebp - 8]
mov edi, dword [ebp - 0x18]
add dword [ebp - 0x10], 8
cmp dword [ebp - 8], edi
jb 0x41435e
xor ecx, ecx
cmp dword [ebp - 0xc], ecx
jle 0x414424
lea eax, [ebp + ecx*8 - 0x2bc]
fld qword [eax]
inc ecx
cmp ecx, dword [ebp - 0xc]
fsub qword [ebp + ecx*8 - 0x1c4]
fstp qword [eax]
jl 0x41440c
test edi, edi
jbe 0x414453
mov esi, dword [ebp - 0x28]
xor ecx, ecx
cmp dword [ebp - 0xc], ecx
jle 0x41444d
mov edx, dword [ebp - 0x18]
shl edx, 3
mov eax, esi
fld qword [eax]
inc ecx
fsub qword [ebp + ecx*8 - 0x1c4]
fstp qword [eax]
add eax, edx
cmp ecx, dword [ebp - 0xc]
jl 0x41443a
add esi, 8
dec edi
jne 0x41442b
xor edi, edi
cmp dword [ebp - 0xc], edi
jle 0x41449f
lea esi, [ebx + 0x10cbcb8]
fldz
push ecx
fstp dword [esi + 0x80]
push ecx
fld qword [ebp + edi*8 - 0x2bc]
fstp qword [esp]
call fcn.00421a9e
fdiv qword [0x4416f0]
pop ecx
pop ecx
call fcn.004248a0
or ecx, 0xffffffff
sub ecx, eax
imul ecx, ecx, 0x14
mov dword [ebp - 0x14], ecx
inc edi
fild dword [ebp - 0x14]
fstp dword [esi]
add esi, 4
cmp edi, dword [ebp - 0xc]
jl 0x414460
fld qword [ebp - 0x5c]
mov esi, dword [ebx + 0x10cc078]
fstp dword [ebp - 0x14]
push ecx
fld dword [ebp - 0x14]
lea eax, [ebx + 0x10cbbb4]
fdiv dword [esi + 0x4ff0]
fstp dword [ebp - 0x14]
fld dword [ebp - 0x14]
fstp dword [esp]
push dword [ebp - 0x3c]
call fcn.00402d29
xor edi, edi
push edi
push 0x20
push 3
push edi
push edi
push 0x40000000
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41450a
push 0x64
push 1
push 0x400
push dword [ebx + 0x1097a10]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx + 0x1097a10], edi
jmp 0x414711
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [ebp - 0x18]
cmp ebx, edi
mov dword [ebp - 8], edi
jbe 0x4145b3
fld qword [ebp - 0x4c]
mov eax, dword [ebp - 0x28]
fdiv qword [0x4415e0]
mov dword [ebp - 0x10], eax
fstp qword [ebp - 0x24]
mov eax, dword [ebp - 8]
fild dword [ebp - 8]
test eax, eax
jge 0x414545
fadd qword [0x4416b8]
fdiv qword [ebp - 0x7c]
fld qword [ebp - 0x24]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x4145a5
fld qword [ebp - 0x84]
fdiv qword [0x4415e0]
fcompp
fnstsw ax
test ah, 0x41
jnp 0x4145a7
xor ecx, ecx
cmp dword [ebp - 0xc], edi
jle 0x414589
mov eax, dword [ebp - 0x10]
mov edx, ebx
shl edx, 3
fld qword [eax]
inc ecx
fstp dword [ebp + ecx*4 - 0x140]
add eax, edx
cmp ecx, dword [ebp - 0xc]
jl 0x414578
push edi
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0xc]
shl eax, 2
push eax
lea eax, [ebp - 0x13c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4145a7
fstp st(0)
inc dword [ebp - 8]
add dword [ebp - 0x10], 8
cmp dword [ebp - 8], ebx
jb 0x414535
push dword [ebp - 0x30]
mov edi, dword [ebp + 8]
push dword [ebp - 0x34]
mov ebx, esi
mov ecx, edi
call fcn.00412eeb
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x64]
movzx esi, word [ebp - 0xb4]
sub esi, eax
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push 0x40000000
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x9c]
push ecx
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp dword [ebp - 0x10], 0xffffffff
je 0x414699
fld qword [ebp - 0x4c]
mov dword [ebp + 8], 0x18
fdiv qword [0x4415e0]
sub dword [ebp + 8], esi
call fcn.004248a0
push 0x3c
cdq
pop ecx
idiv ecx
lea esi, [ebp - 0x9c]
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ax, word [ebp + 8]
and word [ebp - 0x5e], 0
mov word [ebp - 0x64], ax
mov ax, word [ebp - 0x14]
mov word [ebp - 0x62], ax
mov ax, word [ebp - 0x38]
mov word [ebp - 0x60], ax
push esi
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
add esi, 8
dec dword [ebp - 0x2c]
jne 0x41465e
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x10]
call ebx
push dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call esi
push dword [ebp - 0x50]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
call ebx
push dword [ebp - 0x54]
call esi
push dword [ebp - 0x54]
call ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
push 0x64
inc eax
push eax
mov ebx, 0x400
push ebx
push dword [edi + 0x1097a10]
mov dword [edi + 0x1097a30], eax
call esi
push dword [ebp - 0x3c]
and dword [edi + 0x1097a10], 0
push 1
push ebx
push dword [0x44b424]
call esi
pop edi
pop esi
pop ebx
leave
ret 4