Function at 0x12627
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 0x1265c
mov ax, word [ebx + 0xa]
and ax, 0x11
mov ecx, 0x111
cmp ax, cx
je 0x1265c
push ecx
push 0x11624
jmp 0x12870
push 0x40
push 0x1000
push dword [edi + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x12697
push ecx
push 0x11634
call fcn.000124aa
push 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, 0x16048
call fcn.00012443
jmp 0x12875
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 0x1270b
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 0x126f6
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 0x126d0
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x10], edi
call fcn.00013525
sub eax, dword [0x16040]
cmp eax, 0x7fff
ja 0x12875
mov edx, dword [edi + 0xa4]
test edx, edx
je 0x12794
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 0x12794
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 0x12790
movzx eax, word [ecx]
mov dword [ebp - 4], eax
shr dword [ebp - 4], 0xc
cmp dword [ebp - 4], 0
je 0x12786
cmp dword [ebp - 4], 3
jne 0x127b3
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 0x1275f
mov eax, dword [ebp - 0x18]
sub edx, dword [eax]
jne 0x12747
xor eax, eax
cmp dword [edi + 0x84], eax
je 0x127ac
mov edi, dword [edi + 0x80]
add edi, esi
jne 0x1285a
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
push ecx
push 0x11648
jmp 0x12870
lea ebx, [eax + esi]
call fcn.00013525
sub eax, dword [0x16040]
cmp eax, 0x7fff
ja 0x12875
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1287c
mov ebx, dword [edi]
mov edx, dword [edi + 0x10]
add ebx, esi
add edx, esi
mov dword [ebp - 0xc], edx
jmp 0x12851
xor eax, eax
mov edx, eax
mov dword [ebp - 0x18], eax
test ecx, ecx
js 0x12824
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 0x12827
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 0x1286a
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 0x127f7
add edi, 0x14
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x127be
jmp 0x127ac
push ecx
push 0x11668
call fcn.000124aa
xor eax, eax
jmp 0x127ae
push ecx
push 0x11658
jmp 0x12870