Function at 0x406a5b
Capabilities:
Copy file
Create process on windows
Delete file
Get file size
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8cc0
call fcn.00408030
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], 8
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], bl
mov byte [ebp - 0x21], bl
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x1f], bl
mov byte [ebp - 0x1e], bl
mov byte [ebp - 0x1d], bl
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
call fcn.004078c0
cmp eax, 3
pop ecx
lea eax, [ebp - 0x5d0]
jbe 0x406ae3
push dword [ebp + 0x10]
push eax
call fcn.00407d50
push dword [ebp + 0x10]
lea eax, [ebp - 0x3cc]
push eax
call fcn.00407d50
lea eax, [ebp - 0x3cc]
push 0x2e
push eax
call fcn.00408000
add esp, 0x18
jmp 0x406b16
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x5d0]
push eax
lea eax, [ebp - 0x3cc]
push eax
call fcn.00407d50
lea eax, [ebp - 0x3cc]
push 0x2e
push eax
call fcn.00408000
add esp, 0x10
mov byte [eax], bl
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.00407d50
lea eax, [ebp - 0x2c8]
push str..f2fbackup
push eax
call fcn.00407d60
add esp, 0x10
lea eax, [ebp - 0x5d0]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406b73
push 0x7d3
call fcn.004068e4
pop ecx
jmp 0x407160
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push 0xfffffffffffffff4
push edi
call esi
lea eax, [ebp - 0xcc0]
push eax
push edi
call fcn.00406688
pop ecx
test eax, eax
pop ecx
jne 0x406d8f
lea eax, [ebp - 0xcc0]
push str.F2FEOF
push eax
call fcn.00407f70
pop ecx
test eax, eax
pop ecx
jne 0x406d8f
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x38]
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x38], eax
jae 0x406d8f
push 2
push ebx
push 0xffffffffffffffab
push edi
call esi
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x1c4]
push 0x100
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x1c4]
push 0x412354
push eax
call fcn.00407ef0
pop ecx
cmp eax, ebx
pop ecx
jne 0x406c28
lea eax, [ebp - 0x1c4]
push 0x41234c
push eax
call fcn.00407ef0
pop ecx
cmp eax, ebx
pop ecx
je 0x406d8f
lea ecx, [ebp - 0x1c4]
push 2
sub eax, ecx
push ebx
mov esi, eax
lea eax, [esi - 0x55]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x1c4]
push eax
push edi
call fcn.00406688
pop ecx
test eax, eax
pop ecx
jne 0x406d8f
lea eax, [ebp - 0x1c4]
push eax
push 0x412348
call fcn.00407f70
pop ecx
test eax, eax
pop ecx
je 0x406c9e
lea eax, [ebp - 0x1c4]
push eax
push 0x412340
call fcn.00407f70
pop ecx
test eax, eax
pop ecx
jne 0x406d8f
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.004066dd
pop ecx
test eax, eax
pop ecx
je 0x406ca5
jmp 0x406d8f
mov dword [ebp - 0x34], 1
lea eax, [ebp - 0x1c4]
push eax
push edi
call fcn.00406688
pop ecx
test eax, eax
pop ecx
jne 0x406d8f
lea eax, [ebp - 0x1c4]
push 0x41233c
push eax
call fcn.00407f70
pop ecx
test eax, eax
pop ecx
jne 0x406cdd
mov dword [ebp - 8], 8
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0x1c4]
push str.DES3
push eax
call fcn.00407f70
pop ecx
test eax, eax
pop ecx
jne 0x406d02
mov dword [ebp - 8], 0x10
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x1c4]
push 0x412330
push eax
call fcn.00407f70
pop ecx
test eax, eax
pop ecx
jne 0x406d27
mov dword [ebp - 8], 0x10
mov dword [ebp - 0xc], 3
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.004066dd
pop ecx
test eax, eax
pop ecx
jne 0x406d8f
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.004066dd
pop ecx
test eax, eax
pop ecx
jne 0x406d8f
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.004066dd
pop ecx
test eax, eax
pop ecx
jne 0x406d8f
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.004066dd
pop ecx
test eax, eax
pop ecx
jne 0x406d8f
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xc4]
push eax
push edi
call fcn.00406642
add esp, 0xc
test eax, eax
jne 0x406d8f
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.004066dd
pop ecx
test eax, eax
pop ecx
je 0x406da6
push 0x7d7
call fcn.004068e4
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407160
push 0x4c
lea eax, [ebp - 0x98]
push ebx
push eax
call fcn.004077f0
mov eax, dword [ebp + 8]
push 0x7d8
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x3cc]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x98], 0x4c
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x78], 0x104
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x64], 0x880066
mov dword [ebp - 0x50], 0x66
mov dword [ebp - 0x54], 0x4068fb
call fcn.0040674d
mov eax, dword [ebp - 0x44]
add esp, 0x14
cmp eax, ebx
mov dword [ebp - 0x68], 0x40d490
je 0x406e2b
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
test eax, eax
je 0x406ecb
push 0x414c90
call fcn.004078c0
test eax, eax
pop ecx
jne 0x406e56
push 0x7d9
jmp 0x406ec5
lea eax, [ebp - 0x4cc]
push 0x414c90
push eax
call fcn.00407d50
push dword [ebp - 0x34]
lea eax, [ebp - 0x4cc]
push dword [ebp - 8]
push eax
lea eax, [ebp - 0xc4]
push dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0x4cc]
push eax
call fcn.004069c4
push dword [ebp - 0x7c]
lea eax, [ebp - 0x3cc]
push eax
call fcn.00407d50
add esp, 0x28
lea eax, [ebp - 0x2c8]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x406ed7
push 0x7da
call fcn.004068e4
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407156
sub esi, dword [ebp - 0x38]
push 2
push ebx
sub esi, 0x55
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x4cc]
push eax
lea eax, [ebp - 0x8c0]
push eax
push 1
push dword [ebp - 0xc]
call fcn.00401cad
mov eax, dword [ebp - 0x5dc]
mov esi, 0x4000
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
cdq
mov ecx, esi
add esp, 0x14
idiv ecx
mov dword [ebp + 8], ebx
test eax, eax
jle 0x406f8a
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x4cc0]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x8cc0]
push esi
push eax
lea eax, [ebp - 0x4cc0]
push eax
lea eax, [ebp - 0x8c0]
push eax
push 1
push dword [ebp - 0xc]
call fcn.00401e32
add esp, 0x18
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x8cc0]
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x14], esi
jne 0x4070dd
mov eax, dword [ebp - 0x2c]
mov ecx, esi
cdq
idiv ecx
inc dword [ebp + 8]
cmp dword [ebp + 8], eax
jl 0x406f24
mov eax, dword [ebp - 0x2c]
cdq
idiv esi
mov eax, edx
xor edx, edx
div dword [ebp - 0x30]
imul eax, dword [ebp - 0x30]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x406fff
lea ecx, [ebp - 0x10]
push ebx
push ecx
push eax
lea eax, [ebp - 0x4cc0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
lea eax, [ebp - 0x8cc0]
push eax
lea eax, [ebp - 0x4cc0]
push eax
lea eax, [ebp - 0x8c0]
push eax
push 1
push dword [ebp - 0xc]
call fcn.00401e32
add esp, 0x18
lea eax, [ebp - 0x14]
push ebx
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x8cc0]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jne 0x4070dd
lea eax, [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x4cc0]
push eax
push edi
call esi
push dword [ebp - 8]
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x4cc0]
push eax
lea eax, [ebp - 0x8c0]
push eax
push 1
push dword [ebp - 0xc]
call fcn.00401e32
push dword [ebp - 8]
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x4cc]
push eax
call fcn.00407e40
add esp, 0x24
test eax, eax
je 0x40707b
push dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [ebp - 0x2c8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call esi
push 0x7dc
jmp 0x407150
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x4cc0]
push dword [ebp - 0x30]
push eax
push edi
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x8cc0]
push eax
lea eax, [ebp - 0x4cc0]
push eax
lea eax, [ebp - 0x8c0]
push 0x7a5
push eax
push 1
push dword [ebp - 0xc]
call fcn.00402338
add esp, 0x1c
cmp dword [ebp - 4], ebx
je 0x4070ff
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x8cc0]
push dword [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
je 0x4070ff
push dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [ebp - 0x2c8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call esi
push 0x7db
jmp 0x407150
push dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
lea eax, [ebp - 0x3cc]
push ebx
push eax
lea eax, [ebp - 0x2c8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x2c8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xa
push ebx
lea eax, [ebp - 0x3cc]
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jge 0x407156
push 0x7dd
call fcn.004068e4
pop ecx
lea ecx, [ebp - 0x48]
push 1
call fcn.0040723e
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10