DRGSS: .net RPG Maker XP/VX Encrypter/Decrypter

@como, DEADCAFE isn't only obvious, but the encryption algortihm is really easy to break even without having the key.

@valdred:
Wiki wrote:
In cryptography, encryption is the process of transforming information (referred to as plaintext) using an algorithm (called cipher) to make it unreadable to anyone except those possessing special knowledge, usually referred to as a key.
The magic key is that special knowledge. RPG Maker XP/VX uses XOR cypher as encryption algortihm, and the resulted data is based on the key used. Then, the data can only be read when using the same key when encrypting it.
IxionVi2, I have made a tutorial for that in: http://www.hbgames.org/forums/viewtopic.php?f=179&t=70582
This is really goos, great job.

Quote:
@como, DEADCAFE isn't only obvious, but the encryption algortihm is really easy to break even without having the key.
But this at last will avoid some dumb noobish people from decrypting projects.
Normally people with enough knowledge to decrypt it wouldn't have an reason to do it, almost all people that decrypt projects for stealing reasons are idiots that doesn't even know what is a binary code.
I'm currently developing a rather simple encryption system that should be rgssad proof. If anyone else got projects that they don't want users of this app to steal your stuff, just contact me.
Haha, i actually always release all my demos without any encryption(not even the default one that RPGVX provides). I feel like that way, anyone who wants to find out how i carried out a certain event or something can check it out themselves, I mean how many times have you played a game and said "wow, this cut scene's kickass" then you try to find out how it was done only to find the game file is encrypted -.-
I've got an error message decrypting a rgss2a file. I don't know what it means. Here is the detail:See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.IO.BinaryReader.ReadBytes(Int32 count)
at DRGSS.Decrypter.Start()
at DRGSS.MainForm.buttonStart_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3603 (GDR.050727-3600)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
DRGSS
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///E:/games/LE%20series/LE/DRGSS-v1.1.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
@tsy0302, I haven't add any kind of error handling when reading a encrypted file, so if it fails for any kind of reason (maybe there is an excesive large file, maybe the rgss2a has its magickey changed, or just another reason) DRGSS will stop working.

What game were you trying to decrypt?
Thanks for the reply. It's a Chinese game with many version. I'm sure you've never heard of it. I can decrypt the first one easily. But it didn't work for the second one.The first series is larger than the second one. So the second one I'm trying to decrypt is not a large file. I'm pretty sure he changed the magickey. In the third one it doesn't even have a rgss2a file but have some strange files such as gs.conf, gs.so, gspack.rc, rgss.dll. I'm sure the author doesn't want anyone else to see it.

But if you are curious about the encrypt method, I will send you the game. Tell me which one you want to look at.
Can you send me the second game?

And for the third one, it is really probable that the author changed the filenames of Game.ini, Game.rgss2a, RGSS102E.dll, etc. Try changing the extension of the biggest file to .rgss2a, and then try decrypting. It should be the Game.rgss2a file if the author really did change the filenames, but the decryption may not work if the magickey was changed.
http://www.megaupload.com/?d=N29IC2Z3
I usually use Chinese website to share my file but I'm sure you will have difficulty downloading it.So I use the megaupload. Do you have any good online storage website I can use btw?

For the third I tried chaning their extentions but it didn't work. The game cannot run if I change the extention. He probably used other software to encrypty the file, I don't know. And I cannot see the contents of the files using notepad (to find the game.ini file). All I saw was messy codes inside. Moreover when I tried to save the game, it creat a game.dat file and the save.rvdata file was in the root of the folder rather than inside save fold. So I suspect he used other software to compile the game as well.
I downloaded the file, but there was only the Audio folder and an empty "SAVE" folder. There was no Game.exe, no Game.ini and no Game.rgss2a. Can you reupload it? If you want to use a chinese website, I don't have any problem if it doesn't have restrictions like having to create an account or something like that. And, can you send also the third game?

Btw, modifying the files names is an easy task, specially the save filename as you can do that in the scripts. For the RGSS102E.dll you can change the name in the Game.ini file, and for the .ini and .rgss2a is a bit more difficult, as you need to use a hexadecimal editor for changing some texts in Game.exe and the dll.
I'm just a rookie in RPG maker. It seems I have a lot to learn :(

Here are the games:The first is about 40MB, the second is 156MB.
http://u.115.com/file/f1ce5fe012 This is the second game. Click either 网通1下载 or 电信1下载 will do.
http://u.115.com/file/f0bb735002 This is the third game. Same as above.
Btw, the 40MB one is just a beta version which only have the first chapter. The author is still developing more stuff but he hasn't released anything yet.
I thought of something, but as I'm a begginner in anything that uses encryption and decryption.. I don't know if it is even possible, but then it goes:

Would It be possible to make your program encrypt sound (audio) files as well?

btw, congrats for your project(s) this one here, and ARGSS (is it still a WIP?)
😀
@tsy0302, the encryption was changed somehow... :(
However, the dll is unpacked and is still vulnerable to script injectos, like my RGSS2A Extractor. I will make a tutorial for it when I have some time :)

@xykudyax, DRGSS can already encrypt the audio, but the player would not be able to decrypt it for playing... So, no, it won't be posible.
ARGSS is still a WIP, and currently the progress is paused, I'm busy with other things.
To vgvgf: Take your time to do it. I just need to know it is still decryptable, that's all. They said in the forum that this is not decryptable using most of the software that are available right now. Someone did propose similar idea of cracking the .dll in the memory, but I don't know if he made it or not. They locked the topic since they didn't want their work to be decrypted.
Magickey has DEADCAFE on the one I downloaded.
valdred wrote:
I'm still skeptical to decrypter tools, but could anyone explain what this magic key is?


Forgot to quote.

Oops, should if PM'ed. Frick.
there must be you want.
the first game
http://www.rayfile.com/zh-cn/files/ca3e ... 4221f469f/ Click"进入下载页面"
the second game
http://www.rayfile.com/zh-cn/files/0941 ... 4221f469f/ Click"进入下载页面"


but i don't know whether you can download.because it need a software.
I encrypted my game with a custom key and I get a "Can't load archive error" something similar like that.
game_guy wrote:
I encrypted my game with a custom key and I get a "Can't load archive error" something similar like that.


That's because you also need to modify the .dll file somewhere. I think the OP links to a topic saying how to do that.

Edit: Actually, it looks like the OP doesn't link that. It should be another thread by vgvgf in this forum, but I'm not entirely certain.

Edit2: Found it! Go here for the edits you need to make to get the archive working.
Ah thanks Glitch. I figured I had to modify the DLL, earlier I unpacked it and looked for DEADCAFE. Of course the Tutorial says that the bytes are backwards. Hehe silly me. Thanks :)
Sorry for necropost.

VGVGF's I need a Ruby method:

get_resource_from_rgssad(resource, archive, key), what's unpacks resource from RGSS to resource.tmp file, archive is the rgss archive and key is magickey.

Please.

If it's aviable can you create the ruby methods of:

encrypt_rgssad(tbl, rgssad, key)
decrypt_rgssad(rgssad, key, folder)?

I'll be fine.

I will use it to make new encryption standard to Z9 Project.
:robot: Oh no! The links is dead; ;X :robot:

But i reuploaded it.

http://www.mediafire.com/?92pdo426l85yjac

Package includes: Recompiled DRGSS (Requires .NET Framework 4 to run), Source Code.

Nice using !
Hello! Sorry for bringing this post from the dead but i have a question. :) I decrypted a game i really like and i got access to all tilests, icons and so on. But i would like to know if there is a way to see events created in the game? Because i decrypted it to learn from it, not to steal tiles. :)
Start a new RPG Maker project and copy the file called Game.rxproj into the other game. You can then open this in RPG Maker.
Yeah i did that and it works with some games but with the others i just get blank maps. :/
Any chance that this will ever be ported to VX Ace?
I'm guessing not since vgvgf does not seem active :(

I'm interested in the encryption, mostly. If anyone knows other good methods, please do tell, I guess to be a little effective a custom key is still needed.
The guide to unpack the DLL does not work anymore also since the link to Stripper does not work and the unpacked DLL for VX Ace isn't present.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=70525