Function at 0x10012c90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x40
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea eax, [ebp + 0x1c]
xor edi, edi
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
call fcn.1000fcf0
lea ecx, [esp + 0x30]
push 4
push ecx
call fcn.1000cdf0
lea edx, [esp + 0x3c]
push 4
push edx
call fcn.1000cdf0
mov ecx, dword [esp + 0x44]
add esp, 0x10
cmp ecx, edi
je 0x10012cda
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0x58]
lea ecx, [ebp + 0x24]
push edx
mov dword [esp + 0x3c], edi
call fcn.100104d0
test eax, eax
je 0x10012d1d
mov ecx, dword [esp + 0x34]
cmp ecx, edi
mov dword [esp + 0x10], 1
mov esi, ecx
je 0x10012d0c
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
test eax, eax
je 0x10012d21
mov bl, 1
jmp 0x10012d23
mov esi, dword [esp + 0x54]
xor bl, bl
test byte [esp + 0x10], 1
je 0x10012d3c
and dword [esp + 0x10], 0xfffffffe
cmp esi, edi
je 0x10012d3c
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
test bl, bl
mov ecx, dword [esp + 0x34]
je 0x10012dda
cmp ecx, edi
mov ebx, ecx
mov dword [esp + 0x2c], ebx
je 0x10012d58
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
call fcn.1000ced0
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], eax
call fcn.10010170
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [ebp + 0x24]
call fcn.10011ea0
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x10012d8c
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x10012d9c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x34]
cmp ecx, edi
mov esi, ecx
je 0x10012dac
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x54]
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
cmp dword [esp + 0x54], edi
jne 0x10012e13
cmp ebx, edi
je 0x10012dd6
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x34]
cmp ecx, edi
je 0x10012de9
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [esp + 0x34], edi
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x10012dfd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x1c]
call fcn.1000fd10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x40
ret 8
call fcn.1000ced0
push 0x3c
mov dword [esp + 0x1c], eax
call fcn.10002e89
mov edi, eax
xor esi, esi
add esp, 4
cmp edi, esi
je 0x10012e3e
lea eax, [edi + 0xc]
push 0x30
push eax
call fcn.1000cdf0
add esp, 8
jmp 0x10012e40
xor edi, edi
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov dword [edi + 8], ecx
mov dword [edi], edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [ebp + 4]
mov dword [esp + 0x2c], edi
mov dword [edi + 4], eax
call fcn.10007c70
test dword [edi + 8], 0x1000000
je 0x1001303b
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x48]
push eax
push ecx
call fcn.1000cf40
mov edx, dword [esp + 0x50]
add esp, 8
push edx
lea ecx, [esp + 0x3c]
call fcn.10002def
lea eax, [esp + 0x40]
push 8
push eax
call fcn.1000cdf0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
add esp, 8
push esi
push esi
push edx
mov edx, dword [esp + 0x4c]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x38]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x40]
push edx
push ebx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, dword [ebx + 0x3c]
mov ecx, dword [ebp + 0x3c]
add esi, ebx
cmp dword [ecx + 0x4c], 0
mov ebx, dword [esi + 0x50]
je 0x10012f31
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
or eax, 6
test ecx, ecx
mov dword [esp + 0x10], eax
mov ebp, ecx
je 0x10012f05
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
lea ecx, [esp + 0x24]
push ebp
push ecx
call fcn.1001cd50
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 0x3c]
add esp, 8
push eax
add ecx, 0x54
call fcn.1000fe00
test al, al
je 0x10012f35
mov dword [esp + 0x58], 1
jmp 0x10012f3d
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x58], 0
test byte [esp + 0x10], 4
je 0x10012f5e
mov eax, dword [esp + 0x24]
and dword [esp + 0x10], 0xfffffffb
push eax
call fcn.10002e75
add esp, 4
mov dword [esp + 0x24], 0
test byte [esp + 0x10], 2
je 0x10012f73
test ebp, ebp
je 0x10012f73
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
cmp dword [esp + 0x58], 0
je 0x10012f88
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x3c]
mov eax, dword [edx + 0x58]
test eax, eax
jne 0x10012fb5
mov eax, dword [esi + 0x34]
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x2000
push ebx
push eax
call ebp
test eax, eax
push 0x40
je 0x10012fab
push 0x1000
push ebx
push eax
jmp 0x10012fb3
push 0x101000
push ebx
push 0
call ebp
cmp dword [esp + 0x58], 0
mov ebp, eax
je 0x10012fd2
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x3c]
cmp dword [edx + 0x50], 0
je 0x10012fd2
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x54]
mov ebx, dword [esp + 0x38]
push eax
push ebx
push ebp
call fcn.1000ce10
mov eax, dword [esi + 0x28]
add esp, 0xc
test eax, eax
je 0x10012fef
add eax, ebp
jmp 0x10012ff1
xor eax, eax
mov dword [edi + 0xc], eax
movzx ecx, word [esi + 0x5e]
mov dword [edi + 0x28], ecx
movzx edx, word [esi + 4]
mov dword [edi + 0x2c], edx
movzx eax, word [esi + 0x5c]
mov dword [edi + 0x1c], eax
mov ecx, dword [esi + 0x64]
mov dword [edi + 0x18], ecx
mov edx, dword [esi + 0x60]
mov dword [edi + 0x14], edx
mov dword [edi + 0x10], 0
mov ax, word [esi + 0x48]
mov word [edi + 0x22], ax
mov cx, word [esi + 0x4a]
push ebx
mov word [edi + 0x20], cx
call fcn.10002e75
mov ebx, dword [esp + 0x30]
add esp, 4
xor esi, esi
mov eax, dword [esp + 0x54]
cmp eax, esi
je 0x1001304f
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x54], esi
cmp ebx, esi
je 0x1001305c
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x34]
cmp ecx, esi
je 0x1001306f
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x10013083
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x1c]
call fcn.1000fd10
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 8