Function at 0x403ca7
Capabilities:
Copy file
Create process on windows
Delete file

Disassembly:
mov eax, 0x409438
call fcn.00404828
sub esp, 0x374
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x1c]
push ebx
mov dword [ebp - 4], ebx
call section..text
push ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call section..text
push ebx
lea eax, [ebp - 0x380]
push ebx
push eax
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 2
push eax
push dword [ebp + 8]
call fcn.00404b74
lea eax, [ebp - 0x380]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.004042e0
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add esp, 0x1c
cmp edi, ebx
mov esi, edi
jle 0x403d1e
cmp byte [esi + ecx], 0x5c
je 0x403d1e
dec esi
cmp esi, ebx
jg 0x403d13
inc esi
xor eax, eax
cmp esi, edi
jge 0x403d33
mov dl, byte [esi + ecx]
mov byte [ebp + eax - 0x17c], dl
inc eax
inc esi
jmp 0x403d21
mov byte [ebp + eax - 0x17c], bl
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004010a7
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
push 0x44
lea eax, [ebp - 0x78]
pop edi
push edi
push ebx
push eax
call fcn.00404850
push 0x10
lea eax, [ebp - 0x34]
push ebx
push eax
mov dword [ebp - 0x78], edi
call fcn.00404850
add esp, 0x18
lea ecx, [ebp - 0x14]
push 0x40c830
call fcn.0040106a
lea eax, [ebp - 0x24]
push 0x40c1c8
push eax
lea ecx, [ebp - 0x14]
call fcn.004011a5
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0040106a
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], 2
je 0x403db0
push dword [ebp - 0x24]
call fcn.00404449
pop ecx
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004010fc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0040106a
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], 2
je 0x403ddf
push dword [ebp - 0x24]
call fcn.00404449
pop ecx
push ebx
mov dword [ebp - 0x24], ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [ebp - 0x14]
test eax, eax
je 0x403e56
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
call fcn.0040106a
push dword [ebp - 0x14]
lea eax, [ebp - 0x17c]
push eax
call fcn.004042d0
pop ecx
lea eax, [ebp - 0x34]
pop ecx
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x280]
push eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x17c]
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403e86
push dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x30]
call esi
jmp 0x403eed
lea eax, [ebp - 0x17c]
push eax
call fcn.004042d0
pop ecx
lea eax, [ebp - 0x34]
pop ecx
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x17c]
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403ec5
cmp dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
je 0x403e98
push dword [ebp - 0x14]
call fcn.00404449
pop ecx
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
je 0x403eac
push dword [ebp - 0x1c]
call fcn.00404449
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x1c], ebx
je 0x403ec1
push dword [ebp + 8]
call fcn.00404449
pop ecx
xor al, al
jmp 0x403f2a
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x30]
call edi
push 0x64
call esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
je 0x403eff
push dword [ebp - 0x14]
call fcn.00404449
pop ecx
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
je 0x403f13
push dword [ebp - 0x1c]
call fcn.00404449
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x1c], ebx
je 0x403f28
push dword [ebp + 8]
call fcn.00404449
pop ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret