Skip to content

Ghidrust provides a hyper fast, AI native reverse engineering platform built in Rust, inspired by Ghidra. Includes experimental GPU kernels to rapidly decompile large files, a decryption suite, and network monitor for packet to binary reverse engineering.

Show Ghidrust branding in the GUI window and splash screen.

oofzfbea2f0983f6
diff --git a/Cargo.lock b/Cargo.lock
index 725ecc5..2ff651c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1429,6 +1429,7 @@ dependencies = [
"ghidrust-decomp",
"ghidrust-il2cpp",
"ghidrust-types",
+ "image",
"libc",
"rfd",
"serde",
diff --git a/crates/ghidrust-gui/Cargo.toml b/crates/ghidrust-gui/Cargo.toml
index d1f0aaa..4d25564 100644
--- a/crates/ghidrust-gui/Cargo.toml
+++ b/crates/ghidrust-gui/Cargo.toml
@@ -25,6 +25,8 @@ ghidrust-il2cpp = { workspace = true }
ghidrust-agent = { workspace = true }
eframe = { version = "0.31", default-features = true }
egui = "0.31"
+# Decode bundled splash / window logo (`assets/ghidrust.png`).
+image = { version = "0.25", default-features = false, features = ["png"] }
# Pin: egui 0.31 ↔ egui_dock 0.16 (do not bump egui just for newer egui_dock).
egui_dock = { version = "0.16", features = ["serde"] }
rfd = "0.15"
diff --git a/crates/ghidrust-gui/src/branding.rs b/crates/ghidrust-gui/src/branding.rs
new file mode 100644
index 0000000..ab2b002
--- /dev/null
+++ b/crates/ghidrust-gui/src/branding.rs
@@ -0,0 +1,31 @@
+//! Ghidrust brand assets (window icon + splash logo).
+
+use eframe::egui::{self, ColorImage, IconData, TextureHandle, TextureOptions};
+
+/// Embedded splash / window mark (same art as the Windows `.ico`).
+const LOGO_PNG: &[u8] = include_bytes!("../assets/ghidrust.png");
+
+fn decode_rgba() -> Option<(Vec<u8>, u32, u32)> {
+ let img = image::load_from_memory(LOGO_PNG).ok()?.into_rgba8();
+ let (w, h) = img.dimensions();
+ Some((img.into_raw(), w, h))
+}
+
+/// Title-bar / taskbar icon for the native window.
+pub fn window_icon() -> IconData {
+ match decode_rgba() {
+ Some((rgba, width, height)) => IconData {
+ rgba,
+ width,
+ height,
+ },
+ None => IconData::default(),
+ }
+}
+
+/// Upload the splash logo once into the egui texture atlas.
+pub fn load_logo_texture(ctx: &egui::Context) -> Option<TextureHandle> {
+ let (rgba, w, h) = decode_rgba()?;
+ let color = ColorImage::from_rgba_unmultiplied([w as usize, h as usize], &rgba);
+ Some(ctx.load_texture("ghidrust-logo", color, TextureOptions::LINEAR))
+}
diff --git a/crates/ghidrust-gui/src/main.rs b/crates/ghidrust-gui/src/main.rs
index c34c5e8..f42de77 100644
--- a/crates/ghidrust-gui/src/main.rs
+++ b/crates/ghidrust-gui/src/main.rs
@@ -2,6 +2,7 @@
//! Icons: Google Material 3 geometry (see `icons.rs`); no emoji in the UI.
mod agent_pane;
+mod branding;
mod debugger;
mod decomp_tokens;
mod decrypt_ui;
@@ -192,7 +193,8 @@ fn main() -> eframe::Result<()> {
let opts = eframe::NativeOptions {
viewport: egui::ViewportBuilder::default()
.with_inner_size([1280.0, 800.0])
- .with_title(&title),
+ .with_title(&title)
+ .with_icon(branding::window_icon()),
..Default::default()
};
eframe::run_native(
@@ -316,6 +318,8 @@ pub struct GhidrustApp {
/// First-run: pick/open a project before the empty shell.
show_startup_picker: bool,
recent_projects: Vec<String>,
+ /// Splash / startup mark under the Ghidrust heading.
+ logo_texture: Option<egui::TextureHandle>,
nyi_note: Option<String>,
// ── selection / search / navigation. ──────
listing_selection: ListingSelection,
@@ -769,6 +773,7 @@ impl GhidrustApp {
let mut app = Self::headless();
app.recent_projects = load_recent_projects();
app.show_startup_picker = true;
+ app.logo_texture = branding::load_logo_texture(&cc.egui_ctx);
app.status = "Select a project to begin".into();
app.apply_theme(&cc.egui_ctx);
app
@@ -820,6 +825,7 @@ impl GhidrustApp {
fn_filter: String::new(),
show_startup_picker: false,
recent_projects: Vec::new(),
+ logo_texture: None,
nyi_note: None,
listing_selection: ListingSelection::default(),
undo_stack: Vec::new(),
@@ -3488,6 +3494,16 @@ impl GhidrustApp {
ui.vertical_centered(|ui| {
ui.add_space(32.0);
ui.heading(egui::RichText::new("Ghidrust").size(26.0).color(primary));
+ if let Some(tex) = self.logo_texture.as_ref() {
+ ui.add_space(10.0);
+ let logo_h = 112.0_f32;
+ let size = tex.size_vec2();
+ let logo_w = (logo_h * size.x / size.y).clamp(64.0, 160.0);
+ ui.add(egui::Image::new(tex).fit_to_exact_size(egui::vec2(logo_w, logo_h)));
+ ui.add_space(8.0);
+ } else {
+ ui.add_space(8.0);
+ }
ui.label(
egui::RichText::new("Open a project to reverse engineer")
.color(muted)