()
| 180 | #[no_mangle] |
| 181 | #[allow(non_snake_case)] |
| 182 | pub extern "C" fn CorePluginInit() -> bool { |
| 183 | Logger::new("WARP").with_level(LevelFilter::Debug).init(); |
| 184 | |
| 185 | // Register our matcher settings. |
| 186 | MatcherSettings::register(); |
| 187 | |
| 188 | // Make sure caches are flushed when the views get destructed. |
| 189 | register_cache_destructor(); |
| 190 | |
| 191 | workflow::insert_workflow(); |
| 192 | |
| 193 | binaryninja::command::register_command( |
| 194 | "WARP\\Run Matcher", |
| 195 | "Run the matcher manually", |
| 196 | workflow::RunMatcher {}, |
| 197 | ); |
| 198 | |
| 199 | binaryninja::command::register_command( |
| 200 | "WARP\\Debug\\Cache", |
| 201 | "Debug cache sizes... because...", |
| 202 | DebugCache {}, |
| 203 | ); |
| 204 | |
| 205 | binaryninja::command::register_command( |
| 206 | "WARP\\Debug\\Invalidate Caches", |
| 207 | "Invalidate all WARP caches", |
| 208 | DebugInvalidateCache {}, |
| 209 | ); |
| 210 | |
| 211 | binaryninja::command::register_command_for_function( |
| 212 | "WARP\\Debug\\Function Signature", |
| 213 | "Print the entire signature for the function", |
| 214 | DebugFunction {}, |
| 215 | ); |
| 216 | |
| 217 | binaryninja::command::register_command_for_function( |
| 218 | "WARP\\Debug\\Function Matcher", |
| 219 | "Print all possible matches for the function", |
| 220 | DebugMatcher {}, |
| 221 | ); |
| 222 | |
| 223 | binaryninja::command::register_command( |
| 224 | "WARP\\Debug\\Apply Signature File Types", |
| 225 | "Load all types from a signature file and ignore functions", |
| 226 | types::LoadTypes {}, |
| 227 | ); |
| 228 | |
| 229 | binaryninja::command::register_command( |
| 230 | "WARP\\Load Signature File", |
| 231 | "Load file into the matcher, this does NOT kick off matcher analysis", |
| 232 | load::LoadSignatureFile {}, |
| 233 | ); |
| 234 | |
| 235 | binaryninja::command::register_command_for_function( |
| 236 | "WARP\\Copy Function GUID", |
| 237 | "Copy the computed GUID for the function", |
| 238 | copy::CopyFunctionGUID {}, |
| 239 | ); |
nothing calls this directly
no test coverage detected