SoftSec-KAIST / TikNib

Binary Code Similarity Analysis (BCSA) Tool
MIT License
114 stars 22 forks source link

The meaning of extracted features #11

Open lumi0 opened 6 months ago

lumi0 commented 6 months ago

Hello. I didn't understand how you calculated the average number of instructions. For example: inst_avg_logic. Does it calculated by the total number of logic instructions devide the number of basic blocks? Looking forward to your reply.

0xdkay commented 6 months ago

Hi @lumi0,

You might want to check this. The average calculation is based on the cfg size (i.e., the number of basic blocks).

We grouped assembly instructions into several categories as shown in here. For each instruction group, we calculated the average by dividing the number of instructions by the cfg size.