Advertisement
amgineyoc

( ASM ) ( C S ) Nostale Login Encrypt

Dec 9th, 2013
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; ѕнιмox ( 10 'day' /12 'month' /2013 'year' )
  2.  
  3. 0051ED03      8BF8             MOV EDI,EAX
  4. 0051ED05      85FF             TEST EDI,EDI
  5. 0051EC0F      7E 22            JLE SHORT nostalex.0051EC33 ; <=
  6. 0051EC11      BE 01000000      MOV ESI,1 ; Assign to ESI the Value '1' (ESI = 1)
  7. 0051EC16      8D45 FC          LEA EAX,DWORD PTR SS:[EBP-4]
  8. 0051EC19      E8 8A65EEFF      CALL nostalex.004051A8
  9. 0051EC1E      8B55 FC          MOV EDX,DWORD PTR SS:[EBP-4]
  10. 0051EC21      8A5432 FF        MOV DL,BYTE PTR DS:[EDX+ESI-1] ; Assign to DL the Byte to Encrypt (DL = EDX[ESI-1])
  11. 0051EC25      80F2 C3          XOR DL,0C3 ; Xor 0x0C3 (DL = DL ^ 0x0C3)
  12. 0051EC28      80C2 0F          ADD DL,0F ; Add 0x0F to the Result of Xor (DL = DL + 0x0F)
  13. 0051EC2B      885430 FF        MOV BYTE PTR DS:[EAX+ESI-1],DL ; Assign to EAX at position ESI-1 the Encrypted Byte (EAX[ESI-1] = DL)
  14. 0051EC2F      46               INC ESI ; Increment ESI (ESI++)
  15. 0051EC30      4F               DEC EDI ; Decrement EDI (EDI--)
  16. 0051EC31     ^75 E3            JNZ SHORT nostalex.0051EC16 ; If isn't 0 Jump to 0051EC16
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement