Function at 0x472430
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, 0xc40
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0x310
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 - 0xc24], 0
mov dword [ebp - 0xc28], 0
mov dword [ebp - 0xc2c], 0
mov dword [ebp - 0xc30], 0
mov dword [ebp - 0x14], 0
push 0x55d8b5
push 0x65
push dword [0x566240]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xc34], eax
cmp dword [ebp - 0xc34], 0
je 0x472553
push dword [ebp - 0xc34]
push dword [0x566240]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc38], eax
cmp dword [ebp - 0xc38], 0
je 0x472553
push dword [ebp - 0xc38]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc3c], eax
push 4
push dword [ebp - 0xc3c]
lea eax, [ebp - 0x18]
push eax
call fcn.0040f400
add esp, 0xc
cmp byte [ebp - 0x18], 0x50
jne 0x472526
cmp byte [ebp - 0x17], 0x49
jne 0x472526
cmp byte [ebp - 0x16], 0x43
jne 0x472526
cmp byte [ebp - 0x15], 0x4b
jne 0x472526
mov dword [ebp - 0x14], 0
jmp 0x472553
push 4
push dword [ebp - 0xc3c]
lea eax, [ebp - 0x14]
push eax
call fcn.0040f400
add esp, 0xc
push 4
mov eax, dword [ebp - 0xc3c]
add eax, 4
push eax
push 0x55d8fc
call fcn.0040f400
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x47281f
call fcn.0052fe80
cmp al, 0
je 0x4725a5
push 0x400
lea eax, [ebp - 0x818]
push eax
push dword [0x566240]
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 - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc40], eax
jmp 0x4725e2
push 0x400
lea eax, [ebp - 0xc18]
push eax
push dword [0x566240]
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 - 0xc18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc40], eax
cmp dword [ebp - 0xc40], 0xffffffff
jne 0x47260d
push 0
push 0x55d8b3
push 0x215
push str.loaderX86.cpp
push 4
push 0x83
call fcn.00495150
add esp, 0x18
leave
ret
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0xc40]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xc1c]
push eax
push 4
push 0x55d83c
push dword [ebp - 0xc40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x40
push 0x1000
push dword [0x55d83c]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x55d834], eax
push 0
lea eax, [ebp - 0xc1c]
push eax
push dword [0x55d83c]
push dword [0x55d834]
push dword [ebp - 0xc40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0xc1c]
push eax
push 4
push 0x55d840
push dword [ebp - 0xc40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [0x55d840]
call fcn.0053c990
pop ecx
mov dword [0x55d830], eax
push 0
lea eax, [ebp - 0xc1c]
push eax
push dword [0x55d840]
push dword [0x55d830]
push dword [ebp - 0xc40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0xc1c]
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
call fcn.0053c990
pop ecx
mov dword [ebp - 0xc24], eax
push 0
lea eax, [ebp - 0xc1c]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc24]
push dword [ebp - 0xc40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0xc1c]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 0
jle 0x47275a
push dword [ebp - 8]
call fcn.0053c990
pop ecx
mov dword [0x55d838], eax
push 0
lea eax, [ebp - 0xc1c]
push eax
push dword [ebp - 8]
push dword [0x55d838]
push dword [ebp - 0xc40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0xc1c]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x10], 0
jle 0x4727c0
push 1
push 0
push 0
push dword [ebp - 0xc40]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc30], eax
push dword [ebp - 0x10]
call fcn.0053c990
pop ecx
mov dword [ebp - 0xc2c], eax
push 0
lea eax, [ebp - 0xc1c]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc2c]
push dword [ebp - 0xc40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0xc1c]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], 0
jle 0x47280e
push dword [ebp - 0xc]
call fcn.0053c990
pop ecx
mov dword [ebp - 0xc28], eax
push 0
lea eax, [ebp - 0xc1c]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0xc28]
push dword [ebp - 0xc40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0xc40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4728a2
lea eax, [ebp - 4]
push eax
push str.import.dat
call fcn.00471910
pop ecx
pop ecx
mov dword [ebp - 0xc24], eax
push 0x55d83c
push str.code.dat
call fcn.00471910
pop ecx
pop ecx
mov dword [0x55d834], eax
push 0x55d840
push str.data.dat
call fcn.00471910
pop ecx
pop ecx
mov dword [0x55d830], eax
lea eax, [ebp - 0x10]
push eax
push str.rsrc.dat
call fcn.00471910
pop ecx
pop ecx
mov dword [ebp - 0xc2c], eax
lea eax, [ebp - 0xc]
push eax
push str.options.dat
call fcn.00471910
pop ecx
pop ecx
mov dword [ebp - 0xc28], eax
lea eax, [ebp - 8]
push eax
push str.symbols.dat
call fcn.00471910
pop ecx
pop ecx
mov dword [0x55d838], eax
push dword [ebp - 4]
push dword [ebp - 0xc24]
call fcn.00471980
pop ecx
pop ecx
push dword [ebp - 0xc30]
push dword [ebp - 0x10]
push dword [ebp - 0xc2c]
call fcn.00472290
add esp, 0xc
push dword [ebp - 0xc]
push dword [ebp - 0xc28]
call fcn.00472350
pop ecx
pop ecx
mov eax, dword [0x55d834]
mov dword [ebp - 0xc20], eax
call dword [ebp - 0xc20]
call fcn.00439710
leave
ret