A forum for reverse engineering, OS internals and malware analysis 

Discussion on reverse-engineering and debugging.
 #9014  by newgre
 Fri Oct 07, 2011 11:25 am
Hi,

I encountered a weird code sequence which presumably was copy and pasted from a driver:
Code: Select all
pushad
xor eax, ebx
sub ebx, ecx
add ecx, 0x989898
sub ecx, eax
xor ebx, 0x87
popad
I googled it and it seemed to be part of some chinese driver. Does anyone have an explanation what the purpose if this code is?
I doon't see any purpose in it since all effects are reverted by the popad anyway. Why would someone add this code to the Driverentry?
 #9023  by EP_X0FF
 Fri Oct 07, 2011 3:23 pm
Some sort of signature maybe for debugging purposes. Don't ask why, it's Chinese code and they love all kind of perversions in drivers :)