viv: move FLIRT matching into viv-utils

This commit is contained in:
William Ballenthin
2021-03-04 14:51:40 -07:00
parent f16ecd837e
commit 358aab85e7
3 changed files with 6 additions and 264 deletions

View File

@@ -7,6 +7,7 @@
# See the License for the specific language governing permissions and limitations under the License.
import viv_utils
import viv_utils.flirt
import envi.memory
import envi.archs.i386.disasm
@@ -112,7 +113,7 @@ def extract_insn_api_features(f, bb, insn):
if not target:
return
if capa.features.extractors.viv.is_library_function(f.vw, target):
if viv_utils.flirt.is_library_function(f.vw, target):
name = viv_utils.get_function_name(f.vw, target)
yield API(name), insn.va
return