Results 1 to 3 of 3

Thread: Intel C compiler find cpuid check

  1. #1
    Member VoLT's Avatar
    Join Date
    Mar 2010
    Location
    Moscow, Russia
    Posts
    20
    Thanks
    2
    Thanked 1 Time in 1 Post

    Intel C compiler find cpuid check

    The signature search is a quite bad idea from my point of view.
    "patch-AuthenticAMD" project looks best for me. It tries to search for the CPU ID check routine and eleminate 'em.
    I revisited the source and modified it to work with Win32 binaries. The original source have the search function, but does not include the patching one.
    Yeah, I know that the code is kinda unperfect. Anybody wants to fix it and improve it ? For the future science
    Code:
    C:\test\Release>test.exe i_exe.exe
    
     start scans
    
    [000064de] 0x81, 0x7D, 0xFC, 0x47, 0x65, 0x6E, 0x75
    [000064e7] 0x81, 0x7D, 0xF4, 0x69, 0x6E, 0x65, 0x49
    [000064f0] 0x81, 0x7D, 0xEC, 0x6E, 0x74, 0x65, 0x6C
    [0000679e] 0x39, 0x5D, 0xC4,
    [000067a5] 0x39, 0x55, 0xC8,
    [000067aa] 0x39, 0x4D, 0xCC,
    
     scans end in 0.005 seconds
    Attached Files Attached Files
    Last edited by VoLT; 9th May 2011 at 00:23.

  2. #2
    Member Skymmer's Avatar
    Join Date
    Mar 2009
    Location
    Russia
    Posts
    681
    Thanks
    38
    Thanked 168 Times in 84 Posts
    Thanks man! I suppose it will help in some situations.

  3. #3
    Member
    Join Date
    May 2008
    Location
    England
    Posts
    325
    Thanks
    18
    Thanked 6 Times in 5 Posts
    Just posting here in the hope you got around to adding the patching ability

Similar Threads

  1. Cool compiler benchmark
    By m^2 in forum The Off-Topic Lounge
    Replies: 0
    Last Post: 31st January 2011, 22:14
  2. paq7asmsse -> GAS (uses CPUID), no .CPP changes needed
    By Rugxulo in forum Data Compression
    Replies: 8
    Last Post: 22nd December 2009, 12:58
  3. Cygwin-hosted Linux cross compiler (G++ 3.3.6)
    By Rugxulo in forum Data Compression
    Replies: 1
    Last Post: 5th June 2009, 05:02
  4. Compiler related: Intel's code slower on AMD-CPUs?!
    By Vacon in forum Data Compression
    Replies: 5
    Last Post: 10th May 2008, 18:56
  5. I cannot find jpegoptim win32 build
    By SvenBent in forum Forum Archive
    Replies: 2
    Last Post: 30th November 2007, 23:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •