IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v12y2024i5p658-d1344979.html
   My bibliography  Save this article

Assembly Function Recognition in Embedded Systems as an Optimization Problem

Author

Listed:
  • Matan Avitan

    (Rafael, Advanced Defense Systems Ltd., Haifa 3102102, Israel)

  • Elena V. Ravve

    (Department of Software Engineering, Braude College of Engineering, Karmiel 21982, Israel)

  • Zeev Volkovich

    (Department of Software Engineering, Braude College of Engineering, Karmiel 21982, Israel)

Abstract

Many different aspects of software system development and verification rely on precise function identification in binary code. Recognition of the source Assembly functions in embedded systems is one of the fundamental challenges in binary program analysis. While numerous approaches assume that the functions are given a priori, correct identification of the functions in binaries remains a great issue. This contribution addresses the problem of uncertainty in binary code in identification of functions, which were optimized during compilation. This paper investigates the difference between debug and optimized functions via modeling of these functions. To do so, we introduce an extensible model-centred hands-on approach for examining similarities between binary functions. The main idea is to model each function using a set of predetermined, experimentally discovered features, and then find a suitable weight vector that could give impact factor to each such a feature. After finding the weight vector, the introduced models of such desired functions can be identified in binary software packages. It means that we reduce the similarity identification problem of the models to a classical version of optimization problems with one optimization criterion. Using our implementation, we found that the proposed approach works smoothly for functions, which contain at least ten Assembly instructions. Our tool guarantees success at a very high level.

Suggested Citation

  • Matan Avitan & Elena V. Ravve & Zeev Volkovich, 2024. "Assembly Function Recognition in Embedded Systems as an Optimization Problem," Mathematics, MDPI, vol. 12(5), pages 1-23, February.
  • Handle: RePEc:gam:jmathe:v:12:y:2024:i:5:p:658-:d:1344979
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/12/5/658/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/12/5/658/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:12:y:2024:i:5:p:658-:d:1344979. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.