Results 1 to 1 of 1
  1. #1
    h4x0r
    h4x0r is offline
    h4x0r's Avatar
    Join Date
    2011 Aug
    Location
    ..\root\home\pgc
    Posts
    826
    Thanks
    64
    Thanked 525 Times in 205 Posts
    Rep Power
    8

    Perpetuum GBF Decrypting

    Target: Victim
    Format: GBF (Encrypted file table and contained files)

    Algo:

    PHP Code:
    #define HIDWORD(x) (*((_DWORD*)&(x)+1))
    #define LOBYTE(x) (*((_BYTE*)&(x)))

    typedef unsigned char _BYTE;
    typedef unsigned int _DWORD;

    __int16 __stdcall GBF_Decrypt(int a1int a2unsigned __int64 a3)
    {
      
    unsigned int v3;
      
    unsigned int v4;
      
    __int16 result;
      
    unsigned __int8 v6;

      
    v3 0;
      
    v4 0;
      if ( 
    a3 )
      {
        do
        {
          do
          {
            
    result = (char)(v3 1) * (char)((_BYTE)v3 0xCA);
            
    LOBYTE(result) = *(_BYTE *)(v3 a1) ^ (result 84);
            
    v6 v3++ >= 0xFFFFFFFF;
            *(
    _BYTE *)(v3 a2 1) = result;
            
    v4 += v6;
          }
          while ( 
    v4 HIDWORD(a3) );
        }
        while ( 
    v4 <= HIDWORD(a3) && v3 < (_DWORD)a3 );
      }
      return 
    result;

    a1 - InBuffer
    a2 - OutBuffer
    a3 - Size

    Usage:

    PHP Code:
    GBF_Decrypt((int)InBuffer,(int)OutBuffer,size); 
    For those who will make unpacker. Test source's attached

    Please register or login to download attachments.


Similar Threads

  1. [Release] Luminary Decrypting Tool
    By h4x0r in forum Game Files
    Replies: 9
    Last Post: 2013-09-30, 04:02 AM
  2. [C++] Audition 2 SF Decrypting (Need some Help)
    By h4x0r in forum C/C++
    Replies: 7
    Last Post: 2013-08-28, 10:15 PM
  3. [Asm] Dragonica Decrypting and Decompressing Table's
    By h4x0r in forum Game Researching Tutorials
    Replies: 4
    Last Post: 2013-05-25, 08:41 AM
  4. [Release] Squids Decrypting Tool
    By h4x0r in forum Game Files
    Replies: 0
    Last Post: 2012-07-23, 06:40 PM
  5. [C++] Alvegia Online ENC Decrypting
    By h4x0r in forum C/C++
    Replies: 0
    Last Post: 2012-07-22, 11:38 AM
Visitors found this page by searching for:

unpack perpetuum gbf

stdcall gbf_decrypt

gbf_decrypt

pgbfdecrypt.rar

perpetuu calendar in c

Posting Permissions

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