rwby encrypted png

Textures, recreate headers, conversions, algorithms and parsing of image files
anotheruser
Posts: 2
Joined: Sun Jan 13, 2019 4:59 pm

rwby encrypted png

Post by anotheruser »

need help decrypting png files

Code: Select all

88 50 51 4B 10 0E 21 10 09 08 0B 19 54 54 53 60 11 10 13 80 15 14 17 84 21 1E 1B 1A 1D E2 78 44
.PQK........TTS`........!.....xD


Code: Select all

unsigned __int8 *__cdecl hProtoclEncryptBySeekEvenOdd::decrypt(hProtoclEncryptBySeekEvenOdd *this, hProtocolEncryptInterface *a2, unsigned __int8 *a3, int *a4)
{
  unsigned __int8 *v4; // esi@1
  int v5; // ST08_4@2
  hProtocolEncryptInterface *v6; // ST00_4@3
  int *v8; // [sp+Ch] [bp-10h]@0

  sub_6FF51B();
  v4 = (unsigned __int8 *)hProtocolEncryptInterface::getContentByEncryptData(a2, a3, (int)a4, v8);
  if ( v4 )
  {
    hProtoclEncryptBySeekEvenOdd::crypt(this, v4, *((_DWORD *)a2 + 5), *((_DWORD *)a2 + 3));
    if ( hProtocolEncryptInterface::getCheckSum(
           (hProtocolEncryptInterface *)v4,
           *((const unsigned __int8 **)a2 + 5),
           v5) != *((_DWORD *)a2 + 4) )
    {
      v6 = (hProtocolEncryptInterface *)v4;
      v4 = 0;
      operator delete[]((void *)v6);
    }
  }
  return v4;
}


int __cdecl hProtoclEncryptBySeekEvenOdd::crypt(hProtoclEncryptBySeekEvenOdd *this, unsigned __int8 *a2, int a3, char a4){
  int result;         // eax@1
  unsigned __int8 v5; // dl@5
  int v6; // ecx@5

  result = 0;
  if ( a3 > 0 )  {
    do    {
      while ( 1 )      {
        v5 = ~a2[result];
        a2[result] = v5;
        v6 = *((_DWORD *)this + 1);
        if ( v6 != 4 )
          break;
        a2[result] = a4 ^ v5;

LABEL_7:

        if ( ++result == a3 )
          return result;
      }
      if ( v6 == 2 && result & 1 )      {
        a2[result] = a4 ^ v5;
        goto LABEL_7;
      }
      ++result;
    }
    while ( result != a3 );
  }
 
 
 
  return result;
}
datkofguy
Posts: 15
Joined: Tue Dec 20, 2016 11:15 pm

Re: rwby encrypted png

Post by datkofguy »

I'd like to bump this, here are all the files https://mega.nz/#!lp5ywabZ!9WB3UznfH5wp ... pw-kUJJu2A