rev.ng logo

Next-gen decompiler.

Modern UI. Automatic struct detection. Declarative. Easily scriptable. Collaborative by design. Open source.

Data structures recovery

Automatic, interprocedural
data structure recovery

rev.ng auto-detects arrays, structs and unions for you.

Others
__int64 __fastcall sum(__int64 a1)
{
  __int64 v1; // rcx
  __int64 result; // rax

  v1 = 0LL;
  result = 0LL;
  do
    result += *(_QWORD *)(a1 + 8 * v1++);
  while ( v1 != 5 );
  return result;
}
rev.ng
typedef struct _PACKED {
  generic64_t _offset_0[5];
  _struct_1876 *_offset_40;
} _struct_1876;

_ABI(SystemV_x86_64)
generic64_t sum(_struct_1876 *_arg_0) {
  generic64_t _var_0 = 0, _var_1 = 0;
  do {
    _var_0 = _var_0 + _arg_0->_offset_0[_var_1];
    _var_1 = _var_1 + 1;
  } while (_var_1 != 5);
  return _var_0;
}
Features you will love

Easily integrate it
in your workflow

Declarative

Simple YAML file format easily processable in your language of choice

Can parse YAML? Then you can define new functions, edit prototypes and rename anything.

Read documentation

Architecture:    x86_64
DefaultABI:      SystemV_x86_64
Segments:
  - StartAddress:    "0x400000:Generic64"
    ...
Functions:
- Entry:           "0x400000:Code_x86_64"
  CustomName:      Sum
  Prototype:       "/Types/CABIFunctionType-1"
Types:
- Kind:            CABIFunctionType
  ABI:             SystemV_x86_64
  ID:              1
  Arguments:
    ...
  ReturnType:
    ...
VSCode-based UI

UI: VSCode-based.
In your browser or as a standalone app.

Cloud or standalone application, same user experience.

VSCode-based UI
Built-in collaboration

Collaborating is as simple as sharing a URL

One server, many clients. In the cloud too.

Functions:
- Entry:           "0x400000:Code_x86_64"
  CustomName:      dunno
- Entry:           "0x400100:Code_x86_64"
  CustomName:      compute_square_root
Functions:
- Entry:           "0x400000:Code_x86_64"
  CustomName:      compute_checksum
- Entry:           "0x400100:Code_x86_64"
  CustomName:      something_something

Want to know more?

Open source

for (BasicBlock *Succ : successors(Current)) {
  revng_log(Log, "Considering successor " << getName(Succ));
  if (isa<ReturnInst>(Succ->getTerminator())) {
    revng_log(Log, "It's a ret");
    // Did we meet the end of the cloned function? Do nothing
    revng_assert(Succ->size() == 1);
  } else if (auto *Call = getCallTo(&*Succ->begin(),
                                    PreCallHook.get())) {
    // Handle edge for regular function calls
    if (auto MaybeEdge = handleCall(Call); MaybeEdge) {
      revng_log(Log, "It's a direct call, emitting a CallEdge");
      Block.Successors().insert(*MaybeEdge);
    }
  • LLVM

    rev.ng is heavily based on LLVM, the compiler framework behind clang, rustc and swiftc.

  • VSCode

    Our UI is based on VSCode, providing a familiar and modern UX.

  • Qemu

    We use QEMU to lift executable x86-64, AArch64, i386, ARM and MIPS code.

What's open?

The rev.ng decompilation pipeline is entirely Free Software.
The UI will be available commercially, both in the cloud and as standalone application.

See all features included

Community

Join the conversation!

Connect with other users and share your feedback and projects.

Discourse

Discourse

The place for asking question, giving feedback and reporting problems.

Join the discussion

Discord

Discord

Wanna chat with us directly? Join our server!

Join our server

Discorse

X

X is the best way to get the latest news about the project.

Follow us

Mastodon

Mastodon

We're also active on the fediverse! You can find us on infosec.exchange.

Follow us

Github

Github

Join us on the core repository of our project.

Join us

E-mail

E-mail

Want to get in touch privately? Drop us an e-mail.

Write us

Stay up to date with rev.ng

Get news about releases, new features, and upcoming announcements.