Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to analyze binary file?

I have a binary file. I don't know how it's formatted, I only know it comes from a delphi code.

Does it exist any way to analyze a binary file?

Does it exist any "pattern" to analyze and deserialize the binary content of a file with unknown format?

like image 863
Ricibald Avatar asked Jun 22 '09 08:06

Ricibald


People also ask

What is binary analysis?

Binary analysis is a type of code review that looks at files composed of binary code and assesses their content and structure, all without the need for access to source code.

Which technique analyzes binary code?

SAST is a technological toolset that can analyze various static codes, like binary code, byte code, and application source code while they are in a non-running state—i.e., during the SDLC build phase.


1 Answers

Try these:

  1. Deserialize data: analyze how it's compiled your exe (try File Analyzer). Try to deserialize the binary data with the language discovered. Then serialize it in a xml format (language-indipendent) that every programming language can understand
  2. Analyze the binary data: try to save various versions of the file with little variation and use a diff program to analyze the meaning of every bit with an hex editor. Use it in conjunction with binary hacking techniques (like How to crack a Binary File Format by Frans Faase)
  3. Reverse Engineer the application: try getting code using reverse engineering tools for the programming language used for build the app (found with File Analyzer). Otherwise use disassembler analysis tool like IDA Pro Disassembler
like image 161
Ricibald Avatar answered Oct 07 '22 21:10

Ricibald