Function at 0x100011c4
Capabilities:
Extract resource via kernel32 functions
Parse pe header
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor eax, eax
push esi
mov ax, cx
push edi
push edx
push eax
push dword [0x10003060]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x100013f8
push esi
push dword [0x10003060]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x100013f8
push esi
push dword [0x10003060]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
je 0x100013f8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x100013f8
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
cmp word [edi], 0x5a4d
pop ecx
pop ecx
jne 0x100013f8
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
jne 0x100013f8
cmp word [esi + 0x18], 0x10b
jne 0x100013f8
movzx eax, word [esi + 6]
shl eax, 2
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, dword [sym.imp.MSVCRT.dll_rand]
pop ecx
mov dword [ebp - 0x14], eax
call edi
push 0x64
cdq
pop ecx
idiv ecx
and dword [ebp - 4], 0
mov ebx, edx
imul ebx, dword [esi + 0x3c]
add ebx, dword [esi + 0x54]
cmp word [esi + 6], 0
mov dword [ebp - 0x18], ebx
jbe 0x100012d9
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
lea eax, [esi + 0x108]
mov dword [ebp - 0xc], eax
call edi
cdq
push 0x64
pop ecx
idiv ecx
mov eax, dword [ebp - 8]
add dword [ebp - 8], 4
imul edx, dword [esi + 0x3c]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
add edx, dword [eax]
movzx eax, word [esi + 6]
add dword [ebp - 0xc], 0x28
add ebx, edx
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jb 0x100012aa
mov dword [ebp - 0x18], ebx
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
and dword [ebp - 4], 0
test ebx, ebx
pop ecx
mov dword [ebp - 8], eax
jbe 0x100012ff
call edi
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], ebx
mov ecx, dword [ebp - 8]
mov byte [ecx + edx], al
jb 0x100012ec
push dword [esi + 0x54]
push dword [ebp - 0x10]
push dword [ebp - 8]
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov edi, dword [esi + 0x54]
lea ecx, [esi + 0xf8]
add eax, ecx
mov dword [ebp - 0x1c], eax
movzx eax, word [esi + 6]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
movzx ecx, word [esi + 6]
push ecx
push 0
push eax
mov dword [ebp - 0xc], eax
call sub.MSVCRT.dll_memset
and dword [ebp - 4], 0
add esp, 0x1c
cmp word [esi + 6], 0
jbe 0x100013b0
call dword [sym.imp.MSVCRT.dll_rand]
movzx ecx, word [esi + 6]
cdq
idiv ecx
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov al, dl
cmp byte [eax + ecx], 0
jne 0x1000134a
xor eax, eax
mov al, dl
mov byte [eax + ecx], 1
mov ecx, dword [ebp - 0x14]
add edi, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
shl eax, 3
lea ebx, [eax + esi + 0xf8]
mov dword [eax + ecx + 0x14], edi
mov eax, dword [ebx + 0x14]
add eax, dword [ebp - 0x10]
push dword [ebx + 0x10]
push eax
mov eax, dword [ebp - 8]
add eax, edi
push eax
call sub.MSVCRT.dll_memcpy
add edi, dword [ebx + 0x10]
movzx eax, word [esi + 6]
add esp, 0xc
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jb 0x1000134a
mov ebx, dword [ebp - 0x18]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
push dword [ebp - 0xc]
call esi
pop ecx
pop ecx
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100013f8
push 0
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100013fc
xor eax, eax
jmp 0x10001415
push dword [ebp - 8]
call esi
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4