mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-04 05:35:49 +00:00
[PR #353] [MERGED] Move Crunch to its own Packer, improve SmartE detection. #512
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/SabreTools/BinaryObjectScanner/pull/353
Author: @HeroponRikiBestest
Created: 1/14/2025
Status: ✅ Merged
Merged: 1/14/2025
Merged by: @mnadareski
Base:
master← Head:master📝 Commits (9)
7080856Move Crunch to its own Packer, improve SmartE detection.fef5cc8Fix formatting by removing brackets7b23508Remove named section checks, minor formatting fixes066cbe8Add newline before summary.91fdb9eRemove empty returns.4e5c258Remove unnecessary newline967f14fChange Crunch to use IExtractableExecutableb12ba0eRemove unnecessary whitespace.ae8d89dAdd tests for Crunch.📊 Changes
3 files changed (+124 additions, -11 deletions)
View changed files
➕
BinaryObjectScanner.Test/Packer/CrunchTests.cs(+36 -0)➕
BinaryObjectScanner/Packer/Crunch.cs(+32 -0)📝
BinaryObjectScanner/Protection/SmartE.cs(+56 -11)📄 Description
All SmartE games use the Crunch packer from BitArts, which is what the BITARTS string check was actually checking for. Some non-SmartE software is also packed with Crunch, so Crunch was moved to its own seperate packer check.
SmartE generates an executable stub when you run it, which has SmartE in the executable properties. Added a check for this in case someone wanted to manually scan a stub they generated.
A Yara/PEiD check exists that works for all known SmartE games except Dungeon Siege 1, doesn't have false positives on non-SmartE executables packed with Crunch, and is long enough that there's virtually no chance of a random false positive. This check was added to the SmartE protection scanning. Thus far, it always occurs on the last section, so that is the first check. Fallback checks for specific known named sections are also included.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.