From 7f08117cfeb48a8f48d08e14cb498ee028efcef2 Mon Sep 17 00:00:00 2001 From: Zichuan Li <34680029+river-li@users.noreply.github.com> Date: Thu, 15 Aug 2024 11:53:05 -0400 Subject: Move EFI Resolver to API Support all existing features in EFI Resolver, 1. Doesn't support running on existing BNDBs (though we tried to support this in python plugins, it doesn't work well) 2. Perform analysis on MLIL rather than HLIL, previous pattern matching on HLIL constains many false negatives --- platform/efi/efi_resolver/include/GuidRenderer.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 platform/efi/efi_resolver/include/GuidRenderer.h (limited to 'platform/efi/efi_resolver/include/GuidRenderer.h') diff --git a/platform/efi/efi_resolver/include/GuidRenderer.h b/platform/efi/efi_resolver/include/GuidRenderer.h new file mode 100644 index 00000000..30bd9126 --- /dev/null +++ b/platform/efi/efi_resolver/include/GuidRenderer.h @@ -0,0 +1,21 @@ +#pragma once + +#include "binaryninjaapi.h" +#include + +using namespace BinaryNinja; +using namespace std; + +class EfiGuidRenderer : public BinaryNinja::DataRenderer { + EfiGuidRenderer() = default; + +public: + bool IsValidForData(BinaryView*, uint64_t address, Type*, + vector>&) override; + + vector GetLinesForData( + BinaryView*, uint64_t address, Type*, const vector& prefix, + size_t width, vector>&) override; + + static void Register(); +}; \ No newline at end of file -- cgit v1.3.1