Automatic reconstruction of data types in the decompilation problem

  • Authors:
  • E. N. Dolgova;A. V. Chernov

  • Affiliations:
  • Institute for System Programming, Russian Academy of Sciences, Moscow, Russia 109004;Department of Computational Mathematics and Cybernetics, Moscow State University, Moscow, Russia 119992

  • Venue:
  • Programming and Computing Software
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

An algorithm for the automatic reconstruction of data types from the assembler code produced by a C compiler is described. The types of the variables that are placed on the stack and in the static memory are reconstructed using an iterative algorithm that uses a lattice over the properties of the data types. The derived data types are reconstructed by constructing the set of possible offsets of the elements of these types (fields in the case of structures and array elements in the case of arrays). This algorithm is used in the tool for decompiling assembler codes into C that is currently developed by the authors.