Recovery of Jump Table Case Statements from Binary Code

  • Authors:
  • Cristina Cifuentes; Mike Van Emmerik

  • Affiliations:
  • -;-

  • Venue:
  • IWPC '99 Proceedings of the 7th International Workshop on Program Comprehension
  • Year:
  • 1999

Quantified Score

Hi-index 0.00

Visualization

Abstract

One of the fundamental problems with the analysis of binary (executable) code is that of recognizing, in a machine-independent way, the target addresses of n-conditional branches implemented via a jump table. Without these addresses, the decoding of the machine instructions for a given procedure is incomplete, as well as any analysis on that procedure.In this paper we present a technique for recovering jump tables and their target addresses in a machine and compiler independent way. The technique is based on slicing and expression substitution. The assembly code of a procedure that contains an indexed jump is transformed into a normal form which allows us to determine where the jump table is located and what information it contains (e.g. offsets from the table or absolute addresses).The presented technique has been tested on SPARC and Pentium code generated by C, C++, Fortran and Pascal compilers. Our tests show that up to 90% more of the code in a text segment can be found by using this technique.