Function at 0x45d680
Capabilities:
Check for time delay via gettickcount
Delete file
Encode data using xor
Move file
Query environment variable
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9b81
mov eax, dword fs:[0]
push eax
sub esp, 0xaa4
mov eax, dword [0x537700]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0xa5c]
push 0
push eax
call fcn.004ba6a0
push 0x208
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.004ba6a0
push 0x208
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.004ba6a0
mov eax, dword [edi + 0x28]
xorps xmm0, xmm0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0x24
mov byte [ebp - 0x14], 0
mov dword [ebp - 0xa94], 0
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
test eax, eax
je 0x45d728
cmp dword [edi + 0x20], 0
jne 0x45d720
push 0
push 1
call eax
add esp, 8
call esi
mov dword [ebp - 0xa94], eax
push 0x208
lea eax, [ebp - 0x444]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x23c]
push 0x208
push eax
call fcn.00455ed0
mov eax, dword [edi + 0x24]
add eax, 0x124
push eax
lea eax, [ebp - 0x23c]
push eax
push 0x4f55c8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00456110
mov ecx, dword [edi + 0x24]
lea eax, [ebp - 0x34]
add esp, 0x20
add ecx, 0x1b0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45d7a8
test dl, dl
je 0x45d7a4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45d7a8
add eax, 2
add ecx, 2
test dl, dl
jne 0x45d788
xor eax, eax
jmp 0x45d7ad
sbb eax, eax
or eax, 1
test eax, eax
je 0x45d9c4
mov eax, dword [edi + 0x24]
cmp dword [eax + 0x1dc], 0
jne 0x45d81a
push 0x208
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.004ba6a0
add esp, 0xc
lea eax, [ebp - 0x23c]
push 0x208
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [edi + 0x24]
add eax, 0x124
push eax
lea eax, [ebp - 0x23c]
push eax
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 0x24]
mov dword [ebp - 0xa98], 0
mov eax, dword [eax + 0x1a8]
push eax
mov dword [ebp - 0xa90], eax
call fcn.004b8967
push dword [ebp - 0xa90]
mov esi, eax
push 0
push esi
mov dword [ebp - 0xa9c], esi
call fcn.004ba6a0
push 0x4f55b0
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0xa98]
push eax
call fcn.004ca181
push 2
push 0
push dword [ebp - 0xa98]
call fcn.004ca789
push dword [ebp - 0xa98]
call fcn.004caead
sub eax, dword [ebp - 0xa90]
push 0
push eax
push dword [ebp - 0xa98]
call fcn.004ca789
push dword [ebp - 0xa98]
push dword [ebp - 0xa90]
push 1
push esi
call fcn.004ca3ac
add esp, 0x48
push dword [ebp - 0xa98]
call fcn.004c9fd9
xor eax, eax
add esp, 4
cmp dword [ebp - 0xa90], eax
jbe 0x45d8d1
xor byte [esi + eax], 0x18
inc eax
cmp eax, dword [ebp - 0xa90]
jb 0x45d8c4
mov eax, dword [edi + 0x24]
push 0x208
push 0
mov esi, dword [eax + 0x1d4]
lea eax, [ebp - 0x64c]
push eax
call fcn.004ba6a0
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x64c]
push str._s.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x64c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.004ccae9
add esp, 8
lea eax, [ebp - 0x64c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
test esi, esi
push 0
setne al
lea eax, [eax*2 + 0x80]
push eax
push 2
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [ebp - 0xa9c]
mov dword [ebp - 0xaa0], eax
cmp eax, 0xffffffff
je 0x45d996
push 0
lea ecx, [ebp - 0xa90]
push ecx
push dword [ebp - 0xa90]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0xaa0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004a2dd0
lea eax, [ebp - 0x34]
mov byte [ebp - 0x14], 0
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x23c]
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.00456110
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call esi
mov ecx, eax
sub ecx, dword [ebp - 0xa94]
cmp ecx, 0xbb8
jae 0x45d9ea
cmp dword [edi + 0x20], 0
jne 0x45d9ea
mov eax, 0xbb8
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [ebp - 0x23c]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x45d9f3
mov edx, dword [edi + 0x14]
sub esi, ecx
sar esi, 1
mov dword [ebp - 0xaa0], edx
cmp esi, edx
ja 0x45da4b
mov dword [ebp - 0xa94], edi
mov eax, edi
cmp edx, 7
jbe 0x45da24
mov eax, dword [edi]
mov dword [ebp - 0xa94], eax
mov dword [edi + 0x10], esi
lea ecx, [ebp - 0x23c]
add esi, esi
push esi
push ecx
push eax
call fcn.004ba120
mov eax, dword [ebp - 0xa94]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
jmp 0x45db20
cmp esi, 0x7ffffffe
ja 0x45df0d
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x45da6b
mov ecx, accept
jmp 0x45da98
mov eax, edx
shr eax, 1
mov dword [ebp - 0xa94], eax
mov eax, accept
sub eax, dword [ebp - 0xa94]
cmp edx, eax
jbe 0x45da8b
mov ecx, accept
jmp 0x45da98
mov eax, dword [ebp - 0xa94]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0xa94]
mov dword [ebp - 0xa94], ecx
push eax
push edi
call fcn.00406400
mov ecx, dword [ebp - 0xa94]
mov dword [edi + 0x10], esi
add esi, esi
mov dword [edi + 0x14], ecx
lea ecx, [ebp - 0x23c]
push esi
push ecx
push eax
mov dword [ebp - 0xa9c], eax
call fcn.004ba120
mov eax, dword [ebp - 0xa9c]
xor ecx, ecx
add esp, 0x14
mov word [eax + esi], cx
mov ecx, dword [ebp - 0xaa0]
cmp ecx, 7
jbe 0x45db1e
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x45db0e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45df27
mov eax, edx
push ecx
push eax
call fcn.004b812d
mov eax, dword [ebp - 0xa9c]
add esp, 8
mov dword [edi], eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0xa5c]
push 0x4edbe4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xa5c]
push 0x208
push eax
call fcn.00456050
mov eax, dword [edi + 0x24]
add esp, 0x14
cmp dword [eax + 0x2b0], 0
je 0x45dc95
lea eax, [edi + 0x2c]
push eax
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.00456590
lea eax, [ebp - 0x444]
mov dword [ebp - 0xab0], 0x45e1a0
mov dword [ebp - 0xaac], eax
lea eax, [ebp - 0xa5c]
mov dword [ebp - 0xaa8], eax
lea eax, [ebp - 0xab0]
push eax
mov dword [ebp - 0xaa4], edi
call fcn.0045d450
add esp, 0x10
mov dword [ebp - 0xa90], eax
test eax, eax
je 0x45dbb4
lock inc dword [eax + 4]
lea ecx, [ebp - 0xa90]
mov dword [ebp - 4], 0
call fcn.004b6350
test al, al
je 0x45df12
lea ecx, [edi + 0x3c]
mov dword [ebp - 4], 2
call fcn.004b56c0
mov eax, dword [ebp - 0xa90]
test eax, eax
je 0x45dbeb
lock inc dword [eax + 4]
mov esi, dword [edi + 0x3c]
mov dword [edi + 0x3c], eax
or eax, 0xffffffff
test esi, esi
je 0x45dc1a
lock xadd dword [esi + 4], eax
jne 0x45dc17
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
or eax, 0xffffffff
mov esi, dword [ebp - 0xa90]
mov dword [ebp - 0xa90], 0
test esi, esi
je 0x45dc4d
lock xadd dword [esi + 4], eax
jne 0x45dc4d
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0xa90]
mov dword [ebp - 4], 3
call fcn.004b56c0
mov esi, dword [ebp - 0xa90]
test esi, esi
je 0x45dc8c
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
dec eax
jne 0x45dc8c
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
jmp 0x45dca4
lea eax, [ebp - 0x23c]
push eax
call fcn.00456550
add esp, 4
cmp dword [edi + 0x20], 0
jne 0x45de81
mov eax, dword [edi + 0x28]
push 2
push 1
call eax
mov esi, dword [edi + 0x24]
add esp, 8
cmp dword [esi + 0x2a8], 0
je 0x45de81
push 0x208
lea eax, [ebp - 0x854]
push 0
push eax
call fcn.004ba6a0
lea eax, [esi + 0x124]
push eax
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x854]
push 0x208
push eax
call fcn.004561e0
xorps xmm0, xmm0
mov dword [ebp - 0xa64], 0
lea ecx, [ebp - 0x444]
mov dword [ebp - 0xa60], 0
add esp, 0x1c
lea edx, [ecx + 2]
movups xmmword [ebp - 0xa74], xmm0
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45dd30
sub ecx, edx
lea eax, [ebp - 0x444]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa74]
call fcn.00406460
xorps xmm0, xmm0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x854]
mov dword [ebp - 0xa7c], 0
movups xmmword [ebp - 0xa8c], xmm0
mov dword [ebp - 0xa78], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45dd80
sub ecx, edx
lea eax, [ebp - 0x854]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa8c]
call fcn.00406460
lea eax, [ebp - 0xa74]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xa8c]
push eax
call fcn.0045f9f0
mov ecx, dword [ebp - 0xa78]
add esp, 8
mov byte [ebp - 4], 4
cmp ecx, 7
jbe 0x45de00
mov edx, dword [ebp - 0xa8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45ddf6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45df27
push ecx
push edx
call fcn.004b812d
add esp, 8
mov ecx, dword [ebp - 0xa60]
xor eax, eax
mov dword [ebp - 0xa7c], 0
mov dword [ebp - 0xa78], 7
mov word [ebp - 0xa8c], ax
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x45de64
mov edx, dword [ebp - 0xa74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45de5a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45df27
push ecx
push edx
call fcn.004b812d
add esp, 8
xor eax, eax
mov dword [ebp - 0xa64], 0
mov dword [ebp - 0xa60], 7
mov word [ebp - 0xa74], ax
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0xa94], ecx
cmp dword [edi + 0x1c], ecx
je 0x45def2
test esi, esi
jne 0x45dec6
mov eax, dword [edi + 0x24]
cmp dword [eax + 0x2b8], esi
je 0x45dea3
test ecx, ecx
jne 0x45def2
add eax, 0x124
lea ecx, [edi + 0x40]
push eax
push edi
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0xa5c]
push eax
call fcn.0045e430
mov dword [ebp - 0xa94], eax
inc esi
mov eax, 0xd5555555
imul esi
push 0x1f4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + ecx*2]
lea esi, [esi + eax*2]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x1c], 0
mov ecx, dword [ebp - 0xa94]
jne 0x45de90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b847a
mov esp, ebp
pop ebp
ret
call fcn.004046c0
lea ecx, [ebp - 0xa74]
call fcn.004034e0
push eax
mov byte [ebp - 4], 1
call fcn.004024b0
call fcn.004be0cf
int3