00402F5C /$ 55 PUSH EBP
00402F5D |. 8BEC MOV EBP,ESP
00402F5F |. 53 PUSH EBX
00402F60 |. 56 PUSH ESI
00402F61 |. 66:BA ACD3 MOV DX,0D3AC
00402F65 |. 33F6 XOR ESI,ESI
00402F67 |. 8B45 08 MOV EAX,DWORD PTR SS:[EBP+8]
00402F6A |. EB 24 JMP SHORT LHB.00402F90
00402F6C |> 0FB7DA /MOVZX EBX,DX
00402F6F |. 0FB7D2 |MOVZX EDX,DX
00402F72 |. C1FB 08 |SAR EBX,8
00402F75 |. 8A08 |MOV CL,BYTE PTR DS:[EAX]
00402F77 |. 32D9 |XOR BL,CL
00402F79 |. 81E1 FF000000 |AND ECX,0FF
00402F7F |. 03CA |ADD ECX,EDX
00402F81 |. 8818 |MOV BYTE PTR DS:[EAX],BL
00402F83 |. 69D1 6DCE0000 |IMUL EDX,ECX,0CE6D
00402F89 |. 66:81C2 BF58 |ADD DX,58BF
00402F8E |. 46 |INC ESI
00402F8F |. 40 |INC EAX
00402F90 |> 0FB7CE MOVZX ECX,SI
00402F93 |. 3B4D 0C |CMP ECX,DWORD PTR SS:[EBP+C]
00402F96 |.^ 7C D4 \JL SHORT LHB.00402F6C
00402F98 |. 5E POP ESI
00402F99 |. 5B POP EBX
00402F9A |. 5D POP EBP
00402F9B \. C3 RETN
小虾
『Win32/Win64编程』版主给出的高级语言
--------------------------------------------------------------------------------
//就是加密一串字符串之类的函数。
void func(char* lpszChar,int len)
{
int var1;
WORD var2=0xd3ac;
for (int i=0; i<=len; i++)
{
var1 = (var2 >> 8) ^ lpszChar[i];
var2 = (lpszChar[i] + var2) * 0xce6d + 0x58bf;
lpszChar[i] = (char)var1;
}
}
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课