Skip to content

Instantly share code, notes, and snippets.

@richyk1
Created January 2, 2021 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richyk1/1837ce9b3fde098c7e549e02b8ec5100 to your computer and use it in GitHub Desktop.
Save richyk1/1837ce9b3fde098c7e549e02b8ec5100 to your computer and use it in GitHub Desktop.
ViEmu patch for VS

Reversing ViEmu for Visual Studio!

Hi! The goal of this task is to look into ViEmu source code and patch code that would allow you to use ViEmu past it's trial time. It's very good at what it does, the best even. If you can afford the license then support them! Nonetheless, it's a nice exercise for beginners getting into reverse engineering.

Required files

  • dnSpy
  • ViEmuVS2013-x.x.x

Analysis

Upon inspecting Hub.EarlyInitialize() function we see that there's a function named ViEmuProt.InitializeLicenseStuff(). Commenting out most control methods there allow us to bypass the license check itself.

Furthermore, static booleans located in NGBridge.dll such as LK_valid_license have to be changed in order to return true for all instances that check those booleans.

After trial the program might ask you to enter a valid license. This will require editing of the EditBoxHasLicenseKey() function inside NGBridge.dll.

These changes should enable ViEmu without entering a valid license.

... To be added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment