Advertisement
Guest User

Untitled

a guest
Jul 26th, 2018
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int __thiscall decryptRecvPacket1(void *this, char* packetData, int dataSize, int unknownNotUsed)
  2. {
  3.     push ebp
  4.     mov ebp,esp
  5.     push edi
  6.     mov edi,ecx
  7.     mov ecx,dword ptr ss:[ebp+C]
  8.     xor edx,edx
  9.     xor eax,eax
  10.     test ecx,ecx
  11.     jbe maplestory2.41A26F
  12.     push ebx
  13.     push esi
  14.     mov esi,dword ptr ss:[ebp+8]
  15.     mov ebx,dword ptr ds:[edi+4]
  16.     mov bl,byte ptr ds:[ebx+edx]
  17.     xor byte ptr ds:[eax+esi],bl
  18.     xor ebx,ebx
  19.     test edx,edx
  20.     sete bl
  21.     inc eax
  22.     mov edx,ebx
  23.     cmp eax,ecx
  24.     jb maplestory2.41A256
  25.     pop esi
  26.     pop ebx
  27.     mov eax,1
  28.     pop edi
  29.     pop ebp
  30.     ret C
  31. }
  32.  
  33. int __thiscall decryptRecvPacket2(void *this, char* packetData, int dataSize, int unknownNotUsed)
  34. {
  35.     push ebp
  36.     mov ebp,esp
  37.     push esi
  38.     push edi
  39.     mov edi,dword ptr ss:[ebp+C]
  40.     xor eax,eax
  41.     mov esi,ecx
  42.     test edi,edi
  43.     jbe maplestory2.41A337
  44.     mov edx,dword ptr ss:[ebp+8]
  45.     push ebx
  46.     movzx ecx,byte ptr ds:[eax+edx]
  47.     mov ebx,dword ptr ds:[esi+8]
  48.     mov cl,byte ptr ds:[ecx+ebx]
  49.     mov byte ptr ds:[eax+edx],cl
  50.     inc eax
  51.     cmp eax,edi
  52.     jb maplestory2.41A324
  53.     pop ebx
  54.     pop edi
  55.     mov eax,1
  56.     pop esi
  57.     pop ebp
  58.     ret C
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement