Function at 0x12d61d0
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
mov eax, 0x3000
push ebp
push esi
push edi
mov edi, dword [ebx + 0x3c]
push 4
add edi, ebx
push eax
xor eax, eax
push dword [edi + 0x50]
mov esi, dword [edi + 0x3c]
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x12e4348], eax
push dword [edi + 0x54]
push ebx
push eax
call fcn.012d5ec6
mov ebp, dword [edi + 0x54]
xor edx, edx
dec ebp
add esp, 0xc
mov eax, ebp
div esi
movzx eax, word [edi + 6]
sub ebp, edx
mov ecx, eax
add ebp, esi
lea edx, [edi + 0xf8]
mov esi, dword [0x12e4348]
sub esi, ebx
xor ebx, ebx
add esi, edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
test ax, ax
je 0x12d6294
lea ebx, [esi + 0x24]
lea esi, [edx + 8]
mov dword [ebx - 0x10], ebp
xor edx, edx
mov ecx, dword [esi]
dec ecx
mov eax, ecx
div dword [esp + 0x14]
mov eax, dword [esp + 0x14]
sub eax, edx
add ecx, eax
mov eax, dword [ebx]
mov dword [ebx - 0x14], ecx
test eax, 0x20000000
je 0x12d626f
and eax, 0x7fffffff
mov dword [ebx], eax
mov edx, dword [esp + 0x18]
add ebp, ecx
movzx ecx, word [edi + 6]
inc edx
add esi, 0x28
mov dword [esp + 0x18], edx
add ebx, 0x28
cmp edx, ecx
jne 0x12d6246
mov esi, dword [esp + 0x1c]
lea edx, [edi + 0xf8]
xor ebx, ebx
movzx eax, cx
imul ecx, eax, 0x28
mov dword [esp + 0x18], ebx
mov eax, dword [ecx + esi - 0x18]
add eax, dword [ecx + esi - 0x14]
mov dword [0x12e434c], eax
cmp word [edi + 6], bx
je 0x12d62ec
lea ebx, [esi + 0x14]
mov esi, dword [esp + 0x18]
lea ebp, [edx + 0xc]
push dword [ebx - 4]
mov eax, dword [ebp]
add eax, dword [esp + 0x28]
push eax
mov eax, dword [ebx]
add eax, dword [0x12e4348]
push eax
call fcn.012d5ec6
movzx eax, word [edi + 6]
lea ebp, [ebp + 0x28]
add esp, 0xc
lea ebx, [ebx + 0x28]
inc esi
cmp esi, eax
jne 0x12d62bb
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov eax, dword [0x12e4348]
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov eax, dword [0x12e45c0]
sub eax, dword [0x12e45b0]
mov dword [ecx + 0x80], eax
mov eax, dword [0x12e45c4]
mov dword [ecx + 0x84], eax
cmp dword [0x12e45d4], 0
je 0x12d6381
mov dword [ecx + 0xa4], 0xc
movzx eax, word [edi + 6]
test eax, eax
je 0x12d638d
lea edx, [esi + 0x10]
mov ebp, dword [edx - 4]
cmp dword [ecx + 0xa0], ebp
jb 0x12d634b
mov eax, dword [edx]
add eax, ebp
cmp dword [ecx + 0xa0], eax
jb 0x12d6355
movzx eax, word [edi + 6]
inc ebx
add edx, 0x28
cmp ebx, eax
jne 0x12d6330
jmp 0x12d638d
imul eax, ebx, 0x28
mov edx, dword [eax + esi + 0x14]
sub edx, ebp
add edx, dword [ecx + 0xa0]
je 0x12d638d
mov eax, dword [0x12e4348]
and dword [eax + edx], 0
mov dword [eax + edx + 4], 0xc
mov dword [eax + edx + 8], 0x3000
jmp 0x12d638d
mov dword [ecx + 0xa4], ebx
mov dword [ecx + 0xa0], ebx
mov eax, dword [0x12e45a0]
sub eax, dword [ecx + 0x34]
add eax, dword [0x12e45a8]
mov ebx, dword [esp + 0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ecx + 0x28], eax
movzx eax, word [edi + 6]
and dword [esp + 0x10], 0
imul esi, eax, 0x28
lea eax, [edi + 0xf8]
sub esi, ebx
add esi, eax
lea eax, [esp + 0x10]
push eax
push 0x40
push esi
push ebx
call ebp
xor ecx, ecx
mov edx, ecx
cmp word [edi + 6], cx
je 0x12d63f7
lea ecx, [edi + 0x11c]
mov eax, dword [ecx]
test eax, 0x20000000
je 0x12d63e9
and eax, 0x7fffffff
mov dword [ecx], eax
movzx eax, word [edi + 6]
inc edx
add ecx, 0x28
cmp edx, eax
jne 0x12d63d9
xor ecx, ecx
mov eax, dword [0x12e45c0]
sub eax, dword [0x12e45b0]
mov dword [edi + 0x80], eax
mov eax, dword [0x12e45c4]
mov dword [edi + 0x84], eax
cmp dword [0x12e45d4], 0
je 0x12d6472
push ecx
mov dword [edi + 0xa4], 0xc
push dword [esp + 0x14]
push esi
push ebx
call ebp
mov eax, dword [edi + 0xa4]
lea ecx, [esp + 0x10]
mov esi, dword [edi + 0xa0]
add ebx, esi
push ecx
push 0x40
push eax
push ebx
mov dword [esp + 0x34], eax
call ebp
test esi, esi
je 0x12d6462
xor eax, eax
mov dword [ebx + 4], 0xc
mov dword [ebx], eax
mov dword [ebx + 8], 0x3000
xor eax, eax
push eax
push dword [esp + 0x14]
push dword [esp + 0x2c]
push ebx
call ebp
jmp 0x12d647e
mov dword [edi + 0xa4], ecx
mov dword [edi + 0xa0], ecx
mov eax, dword [0x12e45a0]
sub eax, dword [edi + 0x34]
add eax, dword [0x12e45a8]
mov dword [edi + 0x28], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret