diff options
| author | Zichuan Li <34680029+river-li@users.noreply.github.com> | 2024-08-15 11:53:05 -0400 |
|---|---|---|
| committer | Brandon Miller <brandon@vector35.com> | 2025-05-08 07:23:08 -0400 |
| commit | 7f08117cfeb48a8f48d08e14cb498ee028efcef2 (patch) | |
| tree | 345eab220c00cfa098e94fa261dce092fc8d5182 /platform/efi/efi_resolver/include/GuidRenderer.h | |
| parent | 64de95854f9ad4da90b9cf2ee69a80f5dddd7a18 (diff) | |
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
Diffstat (limited to 'platform/efi/efi_resolver/include/GuidRenderer.h')
| -rw-r--r-- | platform/efi/efi_resolver/include/GuidRenderer.h | 21 |
1 files changed, 21 insertions, 0 deletions
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 <iomanip> + +using namespace BinaryNinja; +using namespace std; + +class EfiGuidRenderer : public BinaryNinja::DataRenderer { + EfiGuidRenderer() = default; + +public: + bool IsValidForData(BinaryView*, uint64_t address, Type*, + vector<pair<Type*, size_t>>&) override; + + vector<DisassemblyTextLine> GetLinesForData( + BinaryView*, uint64_t address, Type*, const vector<InstructionTextToken>& prefix, + size_t width, vector<pair<Type*, size_t>>&) override; + + static void Register(); +};
\ No newline at end of file |
