Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

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