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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0x3c]
add edi, ebx
cmp dword [edi], 0x4550
je 0x1263c
mov ax, word [ebx + 0xa]
and ax, 0x11
mov ecx, 0x111
cmp ax, cx
je 0x1263c
push ecx
push 0x11624
jmp 0x12850
push 0x40
push 0x1000
push dword [edi + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x12677
push ecx
push 0x11634
call fcn.0001248a
push 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, 0x16048
call fcn.00012423
jmp 0x12855
push dword [edi + 0x54]
push ebx
push esi
call dword [0x16020]
movzx edx, word [edi + 6]
movzx eax, word [edi + 0x14]
add esp, 0xc
mov dword [ebp - 0x10], edx
test edx, edx
je 0x126eb
movzx edx, word [edi + 0x14]
lea ecx, [edi + 0x24]
add ecx, eax
add eax, 0x2c
add eax, edi
add edi, 0x28
add edi, edx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
cmp dword [eax], 0
mov ecx, dword [ebp - 4]
je 0x126d6
mov eax, dword [eax]
push dword [edi]
add eax, ebx
push eax
mov eax, dword [ecx]
add eax, esi
push eax
call dword [0x16020]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
add esp, 0xc
add eax, 0x28
add ecx, 0x28
add edi, 0x28
dec edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
jne 0x126b0
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x10], edi
call fcn.00013505
sub eax, dword [0x16040]
cmp eax, 0x7fff
ja 0x12855
mov edx, dword [edi + 0xa4]
test edx, edx
je 0x12774
mov ecx, dword [edi + 0xa0]
mov eax, esi
sub eax, dword [edi + 0x34]
add ecx, esi
mov dword [ebp - 0xc], eax
test edx, edx
je 0x12774
mov edi, dword [ecx]
lea eax, [ecx + 4]
mov dword [ebp - 0x14], edi
mov ebx, dword [eax]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea ecx, [ecx + 8]
sub ebx, 8
je 0x12770
movzx eax, word [ecx]
mov dword [ebp - 4], eax
shr dword [ebp - 4], 0xc
cmp dword [ebp - 4], 0
je 0x12766
cmp dword [ebp - 4], 3
jne 0x12793
mov edi, dword [ebp - 0xc]
and eax, 0xfff
add eax, dword [ebp - 0x14]
add dword [eax + esi], edi
mov edi, dword [ebp - 0x10]
dec ebx
add ecx, 2
dec ebx
jne 0x1273f
mov eax, dword [ebp - 0x18]
sub edx, dword [eax]
jne 0x12727
xor eax, eax
cmp dword [edi + 0x84], eax
je 0x1278c
mov edi, dword [edi + 0x80]
add edi, esi
jne 0x1283a
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
push ecx
push 0x11648
jmp 0x12850
lea ebx, [eax + esi]
call fcn.00013505
sub eax, dword [0x16040]
cmp eax, 0x7fff
ja 0x12855
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1285c
mov ebx, dword [edi]
mov edx, dword [edi + 0x10]
add ebx, esi
add edx, esi
mov dword [ebp - 0xc], edx
jmp 0x12831
xor eax, eax
mov edx, eax
mov dword [ebp - 0x18], eax
test ecx, ecx
js 0x12804
lea eax, [esi + 2]
add eax, ecx
push eax
mov dword [ebp - 4], eax
call dword [0x16018]
pop ecx
mov ecx, dword [ebp - 0x18]
mov word [ebp - 8], ax
mov word [ebp - 6], ax
lea edx, [ebp - 8]
xor eax, eax
jmp 0x12807
movzx ecx, word [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
movzx eax, cx
push eax
push edx
push dword [ebp - 0x14]
call dword [0x16038]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1284a
mov eax, dword [ebp - 0xc]
add ebx, 4
mov dword [eax], ecx
add eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebx]
test ecx, ecx
jne 0x127d7
add edi, 0x14
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x1279e
jmp 0x1278c
push ecx
push 0x11668
call fcn.0001248a
xor eax, eax
jmp 0x1278e
push ecx
push 0x11658
jmp 0x12850