Example how to reallocate resources. This can be used
as anti-dump in protectors but still I'm not sure why
they don't use it.

Trick here is that resource data is not present in .exe,
but all resources are moved to allocated buffer. 
All resource structs are located inside PE file:
IMAGE_RESOURCE_DIRECTORY, IMAGE_RESOURCE_DIRECTORY_ENTRY
and IMAGE_RESOURCE_DATA_ENTRY are present in PE file, but
IMAGE_RESOURCE_DATA_ENTRY.DataToOffset is changed so it
has RVA of data in mapped buffer.

Not that great anti-dump trick if you know how to fix
it, but for most people that have no idea what is going
on this is very very good trick...


                        S verom u Boga, deroko/ARTeam