Function at 0x47cf40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0x313
rep stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc30], 0
mov dword [ebp - 0xc34], 0
mov dword [ebp - 0xc38], 0
mov dword [ebp - 0xc3c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0x5c1951
push 0x65
push dword [0x5ddae0]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xc40], eax
cmp dword [ebp - 0xc40], 0
je 0x47d069
push dword [ebp - 0xc40]
push dword [0x5ddae0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc44], eax
cmp dword [ebp - 0xc44], 0
je 0x47d069
push dword [ebp - 0xc44]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc48], eax
push 4
push dword [ebp - 0xc48]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040e030
add esp, 0xc
cmp byte [ebp - 0x1c], 0x50
jne 0x47d03d
cmp byte [ebp - 0x1b], 0x49
jne 0x47d03d
cmp byte [ebp - 0x1a], 0x43
jne 0x47d03d
cmp byte [ebp - 0x19], 0x4b
jne 0x47d03d
mov dword [ebp - 0x14], 0
jmp 0x47d069
push 4
push dword [ebp - 0xc48]
lea eax, [ebp - 0x14]
push eax
call fcn.0040e030
add esp, 0xc
push 4
mov eax, dword [ebp - 0xc48]
add eax, 4
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040e030
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x47d3e7
call fcn.0056d3b0
cmp al, 0
je 0x47d0bb
push 0x400
lea eax, [ebp - 0x81c]
push eax
push dword [0x5ddae0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push SysReAllocString
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc4c], eax
jmp 0x47d0f8
push 0x400
lea eax, [ebp - 0xc1c]
push eax
push dword [0x5ddae0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push SysReAllocString
lea eax, [ebp - 0xc1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc4c], eax
cmp dword [ebp - 0xc4c], 0xffffffff
jne 0x47d123
push 0
push 0x5c194f
push 0x209
push str.loaderX86.cpp
push 4
push 0x83
call fcn.004a4f70
add esp, 0x18
leave
ret
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0xc4c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xc20]
push eax
push 6
lea eax, [ebp - 0xc28]
push eax
push dword [ebp - 0xc4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 6
push str.112358
push 6
lea eax, [ebp - 0xc28]
push eax
call fcn.0040d4e0
add esp, 0x10
cmp eax, 0
je 0x47d1e8
push 2
push 0
mov eax, dword [ebp - 0x18]
neg eax
add eax, 0xfffffffa
push eax
push dword [ebp - 0xc4c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xc20]
push eax
push 6
lea eax, [ebp - 0xc28]
push eax
push dword [ebp - 0xc4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 6
push str.112358
push 6
lea eax, [ebp - 0xc28]
push eax
call fcn.0040d4e0
add esp, 0x10
cmp eax, 0
je 0x47d1e8
push str.Executable_is_corrupt_
push 0x5c194f
push 0x21a
push str.loaderX86.cpp
push 4
push 0x83
call fcn.004a4f70
add esp, 0x18
push 0
lea eax, [ebp - 0xc20]
push eax
push 4
push 0x5c1564
push dword [ebp - 0xc4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x40
push 0x1000
push dword [0x5c1564]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x5c155c], eax
push 0
lea eax, [ebp - 0xc20]
push eax
push dword [0x5c1564]
push dword [0x5c155c]
push dword [ebp - 0xc4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0xc20]
push eax
push 4
push 0x5c1568
push dword [ebp - 0xc4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [0x5c1568]
call fcn.0058d4e0
pop ecx
mov dword [0x5c1558], eax
push 0
lea eax, [ebp - 0xc20]
push eax
push dword [0x5c1568]
push dword [0x5c1558]
push dword [ebp - 0xc4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0xc20]
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
call fcn.0058d4e0
pop ecx
mov dword [ebp - 0xc30], eax
push 0
lea eax, [ebp - 0xc20]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc30]
push dword [ebp - 0xc4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0xc20]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 0
jle 0x47d322
push dword [ebp - 8]
call fcn.0058d4e0
pop ecx
mov dword [0x5c1560], eax
push 0
lea eax, [ebp - 0xc20]
push eax
push dword [ebp - 8]
push dword [0x5c1560]
push dword [ebp - 0xc4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0xc20]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x10], 0
jle 0x47d388
push 1
push 0
push 0
push dword [ebp - 0xc4c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc3c], eax
push dword [ebp - 0x10]
call fcn.0058d4e0
pop ecx
mov dword [ebp - 0xc38], eax
push 0
lea eax, [ebp - 0xc20]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc38]
push dword [ebp - 0xc4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0xc20]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], 0
jle 0x47d3d6
push dword [ebp - 0xc]
call fcn.0058d4e0
pop ecx
mov dword [ebp - 0xc34], eax
push 0
lea eax, [ebp - 0xc20]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0xc34]
push dword [ebp - 0xc4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0xc4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47d46a
lea eax, [ebp - 4]
push eax
push str.import.dat
call fcn.0047c400
pop ecx
pop ecx
mov dword [ebp - 0xc30], eax
push 0x5c1564
push str.code.dat
call fcn.0047c400
pop ecx
pop ecx
mov dword [0x5c155c], eax
push 0x5c1568
push str.data.dat
call fcn.0047c400
pop ecx
pop ecx
mov dword [0x5c1558], eax
lea eax, [ebp - 0x10]
push eax
push str.rsrc.dat
call fcn.0047c400
pop ecx
pop ecx
mov dword [ebp - 0xc38], eax
lea eax, [ebp - 0xc]
push eax
push str.options.dat
call fcn.0047c400
pop ecx
pop ecx
mov dword [ebp - 0xc34], eax
lea eax, [ebp - 8]
push eax
push str.symbols.dat
call fcn.0047c400
pop ecx
pop ecx
mov dword [0x5c1560], eax
push dword [ebp - 4]
push dword [ebp - 0xc30]
call fcn.0047c490
pop ecx
pop ecx
push dword [ebp - 0xc3c]
push dword [ebp - 0x10]
push dword [ebp - 0xc38]
call fcn.0047cda0
add esp, 0xc
push dword [ebp - 0xc]
push dword [ebp - 0xc34]
call fcn.0047ce60
pop ecx
pop ecx
mov eax, dword [0x5c155c]
mov dword [ebp - 0xc2c], eax
call dword [ebp - 0xc2c]
call fcn.004414b0
leave
ret