• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

What's the algorithm?

Initiate Mage
Joined
Jul 10, 2014
Messages
2
Reaction score
0
I have only a pseudo code
I see that using XOR.
Code:
int __thiscall sub_BBB8F0(int this, unsigned __int8 a2, __int16 a3, int a4, int a5)
{
  int result; // eax@1
  signed int i; // [sp+4h] [bp-8h]@2


  result = a3;
  if ( a3 > 0 )
  {
    for ( i = 0; i < a3; ++i )
    {
      result = i + a5;
      *(_BYTE *)(i + a5) = *(_BYTE *)(*(_DWORD *)this + 2 * (255 - i % 256) + 1) ^ *(_BYTE *)(*(_DWORD *)this
                                                                                            + 2 * a2
                                                                                            + 1) ^ *(_BYTE *)(*(_DWORD *)this + 2 * *(_BYTE *)(this + 4)) ^ *(_BYTE *)(i + a4);
    }
  }
  return result;
}
 
Back
Top