SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.16853 · EMNLP · 2023

CP-BCS: Binary Code Summarization Guided by Control Flow Graph and Pseudo Code

Lingfei Wu, Wenhai Wang, Tengfei Ma, Shouling Ji, Peiyu Liu, Xuhong Zhang, Tong Ye, Yangkai Du

arXiv · PDF · Open in the Atlas

Code that ran

We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Automatically generating function summaries for binaries is an extremely valuable but challenging task, since it involves translating the execution behavior and semantics of the low-level language (assembly code) into human-readable natural language. However, most current works on understanding assembly code are oriented towards generating function names, which involve numerous abbreviations that make them still confusing. To bridge this gap, we focus on generating complete summaries for binary functions, especially for stripped binary (no symbol table and debug information in reality). To fully exploit the semantics of assembly code, we present a control flow graph and pseudo code guided binary code summarization framework called CP-BCS. CP-BCS utilizes a bidirectional instruction-level control flow graph and pseudo code that incorporates expert knowledge to learn the comprehensive binary function execution behavior and logic semantics. We evaluate CP-BCS on 3 different binary optimization levels (O1, O2, and O3) for 3 different computer architectures (X86, X64, and ARM). The evaluation results demonstrate CP-BCS is superior and significantly improves the efficiency of reverse engineering. * Corresponding author. with limited high-level information, making it difficult to read and understand, as shown in Figure 1. Even an experienced reverse engineer needs to spend a significant amount of time determining the functionality of an assembly code snippet.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2310.16853")
get_code_for_paper("2310.16853")
have("2310.16853")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2310.16853.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2310.16853.svg)](https://syntology.ai/paper/2310.16853)

Connect an agent — have() is free.