Skip to content

Instantly share code, notes, and snippets.

@psrok1
Created May 19, 2017 12:08
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 psrok1/5a67c3306080f62969e8d0e63a988b4e to your computer and use it in GitHub Desktop.
Save psrok1/5a67c3306080f62969e8d0e63a988b4e to your computer and use it in GitHub Desktop.
Emotet x65599 hash routine
int hashValue = 0;
for ( char c = *libraryName; *libraryName; c = *(++libraryName) )
{
hashValue = c + 65599 * hashValue;
}
hashValue = xorKey ^ hashValue;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment