Function at 0x40aca0
Capabilities:
Allocate or change rwx memory
Copy file
Create thread
Delete file
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov ebx, eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov ebx, eax
lea edx, [ebx + 5]
mov ecx, dword [ebp + 0x10]
sub ecx, edx
mov dword [ebp - 4], ecx
mov eax, dword [0x44a89c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x44a8a0]
mov dword [ebp - 0x10], eax
mov ax, word [0x44a8a4]
mov word [ebp - 0xc], ax
call sub.KERNEL32.DLL_GetCurrentProcess
mov dword [ebp - 8], eax
lea edx, [esi + 0xf]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0042cbe0
pop ecx
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push 0x40
mov edx, dword [ebp - 0x1c]
push edx
push edi
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.DLL_VirtualProtectEx
mov edx, ebx
mov byte [ebp - 0x1d], 0
mov al, byte [edx]
cmp al, 0xe9
je 0x40ad30
cmp al, 0xff
jne 0x40ae29
push esi
push edi
lea edi, [ebp - 0x12c]
mov esi, 0x44a8a6
mov ecx, 0x40
lea eax, [ebp - 0x12c]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
push edi
lea edi, [ebp - 0x22c]
mov esi, 0x44a9a6
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0040aa3c
add esp, 8
xor eax, eax
or ecx, 0xffffffff
push esi
push edi
lea edi, [ebp - 0x12c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x22c]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x22c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push str.1.dll
push eax
call fcn.0042d2c4
add esp, 8
push 0
lea edx, [ebp - 0x22c]
push edx
lea ecx, [ebp - 0x12c]
push ecx
call sub.KERNEL32.DLL_CopyFileA
push 1
push 0
lea eax, [ebp - 0x22c]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x24]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40ae0e
push esi
mov eax, dword [ebp - 0x28]
push eax
push edi
call fcn.0042d1b0
add esp, 0xc
push 0xa
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x14]
push ecx
call fcn.0042d1b0
add esp, 0xc
mov eax, dword [ebp - 0x24]
push eax
call sub.KERNEL32.DLL_FreeLibrary
lea edx, [ebp - 0x22c]
push edx
call sub.KERNEL32.DLL_DeleteFileA
mov byte [ebp - 0x1d], 1
jmp 0x40ae34
push esi
push edx
push edi
call fcn.0042d1b0
add esp, 0xc
mov eax, esi
mov ecx, edi
add ecx, eax
mov edx, eax
add edx, ebx
add ecx, 5
sub edx, ecx
mov byte [edi + esi], 0xe9
mov dword [edi + esi + 1], edx
lea edx, [ebp - 0x18]
push edx
add eax, 0xa
push 0x40
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_VirtualProtectEx
cmp byte [ebp - 0x1d], 0
je 0x40ae74
push 0xa
lea ecx, [ebp - 0x14]
push ecx
push ebx
call fcn.0042d1b0
add esp, 0xc
mov byte [ebx], 0xe9
lea eax, [ebx + 1]
mov edx, dword [ebp - 4]
mov dword [eax], edx
push 8
call fcn.0042c3fc
pop ecx
mov dword [eax], ebx
mov dword [eax + 4], esi
lea ecx, [ebp - 0x2c]
push ecx
push 0
push eax
push 0x40abec
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
push 0xa
call sub.KERNEL32.DLL_Sleep
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret