Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

Commit

Permalink
fix kernel32-related
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed May 6, 2019
1 parent 4286399 commit c162d91
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion vista2xp/JustDoIt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ bool do_kernel32(codereverse::ExeImage& image, size_t i, char *name)
codereverse::ImportSymbol& symbol = symbols[k];
if (symbol.Name.wImportByName)
{
if (lstrcmpA(symbol.pszName, "GetTickCount64") == 0 ||
if (memcmp(symbol.pszName, "Reg", 3) == 0 ||
memcmp(symbol.pszName, "time", 4) == 0 ||
lstrcmpA(symbol.pszName, "CreateProcessAsUserA") == 0 ||
lstrcmpA(symbol.pszName, "CreateProcessAsUserW") == 0 ||
lstrcmpA(symbol.pszName, "OpenProcessToken") == 0 ||
lstrcmpA(symbol.pszName, "OpenThreadToken") == 0 ||
lstrcmpA(symbol.pszName, "SetThreadToken") == 0 ||
lstrcmpA(symbol.pszName, "GetTickCount64") == 0 ||
lstrcmpA(symbol.pszName, "QueryFullProcessImageNameA") == 0 ||
lstrcmpA(symbol.pszName, "QueryFullProcessImageNameW") == 0 ||
lstrcmpA(symbol.pszName, "IsWow64Process") == 0)
Expand Down

0 comments on commit c162d91

Please sign in to comment.