python generate_var_ast_courpus.py
idalog.txt is the log from ida console
binary_unanalyzable_list.txt records the binaries that error occurred during analysis
We recommend removing these failed binaries
with open("xxx.json","r") as f:
functions_info = json.load(f)
'''
functions_info is a dict,
key format: "<start_ea>_<end_ea>"
value format:
function_info["name"] = function_name
function_info["start_ea"] = func.start_ea
function_info["end_ea"] = func.end_ea
function_info["var_addr_maps"] = var_addr_maps
function_info["ast"] = new_graph.json_tree()
function_info["raw_code"] = str(cfunc)
'''
DIRE: Decompiled Identifier Renaming Engine: CMUSTRUDEL/DIRE (github.com)