Function at 0x11f3a890
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x14
test eax, eax
jne 0x11f3a8a3
xor eax, eax
add esp, 0x14
ret 8
push ebx
push ebp
push esi
push edi
push 0
mov dword [esp + 0x18], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x11f3a982
cmp word [ebx], 0x5a4d
jne 0x11f3a982
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
je 0x11f3a982
cmp dword [ecx], 0x4550
jne 0x11f3a982
mov esi, dword [ecx + 0x90]
add esi, ebx
je 0x11f3a982
mov eax, 0xcccccccd
mov dword [esp + 0x10], 0
mul dword [ecx + 0x94]
mov edi, edx
shr edi, 4
mov dword [esp + 0x18], edi
je 0x11f3a982
lea ebp, [esi + 0xc]
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x11f3a920
mov eax, dword [ebp + 4]
test eax, eax
je 0x11f3a982
mov esi, dword [ebp]
add esi, ebx
je 0x11f3a982
mov eax, dword [esp + 0x2c]
push eax
push esi
call fcn.11e68350
add esp, 8
test eax, eax
je 0x11f3a98a
push 0x5c
push esi
call fcn.11e682b0
mov edx, eax
add esp, 8
test edx, edx
je 0x11f3a972
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x11f3a96e
mov ecx, dword [esp + 0x2c]
inc edx
push ecx
push edx
call fcn.11e68350
add esp, 8
test eax, eax
je 0x11f3a98a
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add ebp, 0x14
inc eax
cmp eax, edi
mov dword [esp + 0x10], eax
jb 0x11f3a912
mov dword [esp + 0x14], 1
push 0
call fcn.11f3ab00
mov esi, eax
test esi, esi
je 0x11f3a9c6
mov edi, dword [esp + 0x2c]
lea edx, [esp + 0x18]
push edi
push edx
push 0x11fd7b10
push esi
call fcn.11f3abe0
mov ebp, eax
test ebp, ebp
je 0x11f3a9ba
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x11f3a9da
push esi
call fcn.11f3ab00
mov esi, eax
test esi, esi
jne 0x11f3a99b
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 8
cmp dword [ebp], 0x160
jne 0x11f3aae6
cmp eax, 0x160
jb 0x11f3aae6
mov ecx, dword [ebp + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 0x40
push 0x40
push ecx
call ebx
test eax, eax
je 0x11f3aada
mov eax, dword [ebp + 8]
lea edx, [esp + 0x1c]
push edx
push 0x40
push pe_nt_image_headers32
push eax
call ebx
test eax, eax
je 0x11f3aac8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x11f3aa42
lea ecx, [esp + 0x20]
push ecx
push 0x40
push 4
push eax
call ebx
test eax, eax
je 0x11f3aab3
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x11f3aa76
mov edi, dword [ebp + 4]
lea esi, [ebp + 0x14]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
lea esi, [ebp + 0x54]
mov ecx, 0x42
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x11f3aa98
mov edx, dword [ebp + 0x15c]
mov dword [eax], edx
jmp 0x11f3aa98
test al, 1
je 0x11f3aa98
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x13c]
mov dword [eax + 0xe8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x140]
mov dword [edx + 0xec], eax
mov eax, dword [ebp + 0xc]
mov esi, 1
test eax, eax
je 0x11f3aab3
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push edx
push 4
push eax
call ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
lea eax, [esp + 0x2c]
push eax
push ecx
push pe_nt_image_headers32
push edx
call ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 4]
lea eax, [esp + 0x2c]
push eax
push ecx
push 0x40
push edx
call ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 8