- <?php
- function DisableHShield ($exe) {
- if ($exe === true) {
- return "[Fix]_Disable_HShield_(Recommended)";
- }
- $code = "\xE8\xAB\xAB\xAB\xFF" // call LoadAhnLab
- ."\x85\xC0" // test eax, eax
- ."\x74\xAB" // jz short loc_73FEF9
- ."\xE8\xAB\xAB\xAB\xFF" // call AudioInit
- ."\x85\xC0" // test eax, eax
- ."\x74\xAB"; // jz short loc_73FEF9
- $offset = $exe->code($code, "\xAB");
- if ($offset === false) {
- echo "Failed in part 1";
- return false;
- }
- // patch call to LoadAhnLab with jmp to call AudioInit
- $section = $exe->getSection(".rdata");
- if($section === false) {
- echo "Failed in part 3";
- return false;
- }
- // remove ahnlab dll from import table
- $aOffset = $exe->match("aossdk.dll\x00\x00");
- if ($aOffset === false) {
- echo "Failed in part 4";
- return false;
- }
- $virtual = $section->vOffset - $section->rOffset;
- $aOffset += $virtual;
- $offset = $exe->match($code, "\xAB", $section->rOffset, $section->rOffset+$section->rSize);
- if ($offset === false) {
- return false;
- }
- return true;
- }
- ?>
Yommy
Posted by Anonymous on Sat 5th Nov 2011 05:17
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
eathena.kpaste.net RSS