Function at 0x1003fe90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101aba2d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x10040236
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10040236
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x14], ecx
cmp dword [ecx], 0x4550
jne 0x10040236
push 0x40
push 0x3000
push dword [ecx + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x10040236
mov eax, dword [ebp - 0x14]
push dword [eax + 0x54]
push dword [edi]
push esi
call fcn.1017caa0
mov ecx, dword [ebp - 0x14]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x18], 0
movzx edi, word [ecx + 0x14]
add edi, 0x2c
cmp ax, word [ecx + 6]
jae 0x1003ff61
add edi, ecx
nop dword [eax + eax]
mov edx, dword [ebp + 8]
mov eax, dword [edi]
push dword [edi - 4]
mov ecx, dword [edi - 8]
add eax, dword [edx]
add ecx, esi
push eax
push ecx
call fcn.1017caa0
mov eax, dword [ebp - 0x14]
lea edi, [edi + 0x28]
mov ecx, dword [ebp - 0x18]
add esp, 0xc
inc ecx
mov dword [ebp - 0x18], ecx
movzx eax, word [eax + 6]
cmp ecx, eax
jl 0x1003ff30
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0xa4], 0
mov edx, esi
mov eax, dword [ecx + 0xa0]
je 0x1003ffe6
lea edi, [eax + edx]
mov eax, edx
sub eax, dword [ecx + 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
mov dword [ebp + 8], edi
test eax, eax
je 0x1003ffe6
mov ecx, dword [edi + 4]
add eax, edx
mov dword [ebp - 0x18], eax
lea edx, [edi + 8]
xor esi, esi
lea eax, [ecx - 8]
test eax, 0xfffffffe
jbe 0x1003ffd4
nop dword [eax]
movzx eax, word [edx]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x1003ffc4
mov ecx, dword [ebp - 0x18]
and eax, 0xfff
mov edi, dword [ebp - 0x1c]
add dword [eax + ecx], edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 4]
inc esi
add edx, 2
lea eax, [ecx - 8]
shr eax, 1
cmp esi, eax
jb 0x1003ffa0
mov eax, dword [edi + ecx]
add edi, ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp + 8], edi
test eax, eax
jne 0x1003ff86
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x84], 0
mov eax, dword [ecx + 0x80]
je 0x10040079
lea esi, [edx + 0xc]
add esi, eax
mov dword [ebp - 0x18], esi
mov ecx, dword [esi]
test ecx, ecx
je 0x10040076
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], edi
mov dword [ebp + 8], eax
lea eax, [ecx + edx]
push eax
call edi
mov edi, eax
test edi, edi
je 0x10040225
mov esi, dword [esi + 4]
mov edx, dword [ebp - 0x10]
add esi, edx
mov ecx, dword [esi]
test ecx, ecx
je 0x10040062
mov eax, ecx
jns 0x1004003f
movzx eax, ax
jmp 0x10040044
add edx, 2
add eax, edx
push eax
push edi
call dword [ebp + 8]
mov dword [esi], eax
test eax, eax
je 0x10040225
mov ecx, dword [esi + 4]
add esi, 4
mov edx, dword [ebp - 0x10]
mov eax, ecx
test ecx, ecx
jne 0x10040038
mov esi, dword [ebp - 0x18]
add esi, 0x14
mov dword [ebp - 0x18], esi
mov ecx, dword [esi]
test ecx, ecx
je 0x10040076
mov edi, dword [ebp - 0x1c]
jmp 0x10040018
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x7c], 0
mov eax, dword [ecx + 0x78]
je 0x100401f8
mov esi, dword [eax + edx + 0x20]
add eax, edx
add esi, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], esi
mov esi, dword [eax + 0x24]
mov edi, dword [eax + 0x1c]
add esi, edx
mov dword [ebp - 0x20], esi
add edi, edx
xor esi, esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x18], esi
cmp dword [eax + 0x18], esi
jbe 0x100401f8
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov ecx, dword [eax + esi*4]
mov eax, dword [ebp - 0x20]
add ecx, edx
mov dword [ebp - 0x24], ecx
movzx eax, word [eax + esi*2]
mov eax, dword [edi + eax*4]
mov edi, ecx
add eax, edx
mov dword [ebp - 0x2c], eax
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100400e6
sub edi, edx
cmp edi, 0x7fffffff
ja 0x1004024f
cmp edi, 0xf
ja 0x1004011f
push edi
push ecx
lea eax, [ebp - 0x54]
mov dword [ebp - 0x44], edi
push eax
mov dword [ebp - 0x40], 0xf
call fcn.1017caa0
add esp, 0xc
mov byte [ebp + edi - 0x54], 0
jmp 0x1004016f
mov eax, edi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x10040132
mov eax, SysReAllocString
jmp 0x1004013d
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.10008610
mov ecx, dword [ebp + 8]
mov esi, eax
push edi
push dword [ebp - 0x24]
mov dword [ebp - 0x54], esi
push esi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], ecx
call fcn.1017caa0
mov byte [esi + edi], 0
add esp, 0x14
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ecx + 0x18]
call fcn.1003fb70
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [eax]
mov dword [eax + 0x20], ecx
mov ecx, dword [ebp - 0x40]
cmp ecx, 0xf
jbe 0x100401cc
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100401c2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004024a
push ecx
push edx
call fcn.1017821e
add esp, 8
mov eax, dword [ebp - 0x30]
inc esi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
mov dword [ebp - 0x18], esi
cmp esi, dword [eax + 0x18]
jae 0x100401f5
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x34]
jmp 0x100400b2
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x28]
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x10040211
add eax, esi
je 0x10040211
push 0
push 1
push esi
call eax
test eax, eax
je 0x10040228
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x10]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.1018070f
call fcn.100093c0
int3