Re: Unpack Files to memory and then run them (exe protector style)



When I observed that such schemes are usually crackable by amateurs, this is because the
technique is used to encrypt games. As a friend of mine is fond of saying, "the advantage
of copy protection on games is that you get TWO games for the price of one". Therefore,
techniques for cracking these kinds of mechanisms are highly prized amongst a class of
gamers.
joe

On Thu, 27 Oct 2005 12:28:24 -0400, Murrgon <murrgon@xxxxxxxxxxx> wrote:

>Nemok wrote:
>> Is it possible in anyway to load a file into memory and then run it
>> from there? I am working on a file compressor
>> (www.nemokprod.go.ro/nb.htm) that can compress and encrypt and save
>> multiple files as an exe file that can then run the compressed files
>> after unpacking them to a temp folder. The problem is that I have to
>> unpack the files to the hard-disk and then run them from there, making
>> them vulnerable to user that may try to get the original (unprotected)
>> files.
>>
>> So the user shouldn't have access to the file operations in the
>> background. So I need to keep the original unpacked files hidden from
>> the user, until after they are opened by the unpacker and then deleted.
>> So users should have no kind of access to the files (should not see
>> them, open them, should not be able to modify or copy them) but the
>> unpacker should be able to run them. (that is why I think that the
>> memory is the best solution)
>>
>> So is there any way to protect them, like unpacking them directly to
>> memory and then run them from there? Something like a virtual disk in
>> memory?
>
>What you have described is basically refered to as a pack file and has
>been used by game engines for a long time. A basic description of a
>system that uses this can be found here:
>
>http://www.drizzle.com/~scottb/gdc/its-still-loading-paper.htm
>
>What you need to do is memory map your compressed and encrypted files
>into memory and use their content directly. That may, or may not,
>require some modifications to your application to be able to handle
>memory pointers to file content instead of using fopen/CreateFile and
>reading in the data yourself.
>
>Murrgon
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Unpack Files to memory and then run them (exe protector style)
    ... I am working on a file compressor that can compress and encrypt and save multiple files as an exe file that can then run the compressed files after unpacking them to a temp folder. ... memory and then run them from there? ...
    (microsoft.public.vc.mfc)
  • Re: Minimize. Wont Respond. Help?
    ... When you cannot switch your notepad to the background and reopen it well, I would recommend you to clean up your registry and scan for malware or spyware on your computer. ... If all those games were never responding after switching from background, then there might be a memory problem. ... Then, you can try to change shared graphic memory settings in BIOS, such as AGP Aperature Size. ... A larger paging file my allow more applications to be running at the same time but it may slow down your machine while reading content from there to resume your games. ...
    (microsoft.public.windows.vista.general)
  • Re: Physical Memory/RAM
    ... I have just recently upgraded my memory from 3 to 4GB, ... Wanting to minimize the amount of memory Windows uses is ... Is your problem only with games? ... Registry cleaning programs are *all* snake oil. ...
    (microsoft.public.windows.vista.performance_maintenance)
  • Re: What do you sugest for an upgrade?
    ... Im going to be using all this for games and connecting my DV camcorder to ... It should have the fastest FSB and Cache and about 4 PCI slots, 3 memory ... first video card slot and the PCI slots. ...
    (alt.comp.hardware.pc-homebuilt)
  • Re: error messages
    ... You're problems all indicate a problem related to games. ... In memory of our dear friend, ... >> Faulting application iexplore.exe, version 6.0.2900.2180, faulting module ... >>> Do you know if your system's graphics card is sharing memory with main ...
    (microsoft.public.windowsxp.accessibility)