Now I most definitely could be wrong considering I am pretty new to hacking files like these anyways, but In hex editors, I always open files to what I think is an encryption. Now I don't know if these files are actually encrypted or maybe they are in a programming language I'm not aware of, but is it possible to "decrypt" said files?

  • 3
    Your question is extremely vague. I suggest fleshing it out with some increased detail. – broadway Apr 8 '14 at 14:41
  • What game are you trying to "hack"? – 0xcaff Apr 8 '14 at 17:40
  • 2
    I think you confuse regular hexadecimal representation used by hex editors (for example) for encryption. The code may be machine code or some bytecode. You need to give us more details about the program (the executable header, file type and so on). The name of the game would help a lot. – nrz Apr 8 '14 at 18:49
  • The file type is an .swf. The game was downloaded and this has happened on all the .swf games but that game is last stand 3. I've hacked using hex editors before, but never .swf games. – Mathew Crogan Apr 9 '14 at 19:59
  • Also I don't know how to simplify it any more. The question was if files could appear as encrypted in hex editors. – Mathew Crogan Apr 9 '14 at 20:00

Definitely not just use the hex editor. You should use the debugger OllyDbg or ImmunityDebugger, and bring the following questions:

  • What language it was written the program
  • When the program performs the decryption of the file
  • What happens before and after the file has been decrypted
  • Which API could use
  • Both with OllyDbg that with Immunity can see all the intermodular calls
  • At this point you can set breakpoints and debug APIs found

The process is not immediate, you must first locate the piece of code that performs the decryption of the file to make a good analysis.

| improve this answer | |

I depends on the format the data is in

  • Python/JavaScript Files: are run in a interpreter and the source code can simply be opened in a text editor.

  • Java Files: are compiled to java bytecode and run in a vm. Java bytecode is not easy to read or understand but there are programs which can decompile java bytecode into java source files.

  • Binaries: These are compiled programs. It is impossible to automatically convert this back to source code but you disassemble it.

  • JSON/YAML: These are commonly used to store structured data. You can view them in a text editor.

If you want to reverse engineer a game first learn to program. Opening files with hex editors won't get you very far unless you understand what is happening.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.