本帖最后由 极限度—魔 于 2013-4-5 12:34 编辑
3GQQ永久在线-完美版脱壳去广告教程
PS:该软件最好放在沙盘上运行,我用这个软件这是教大家怎么去除广告和脱壳~
进入正题:
用PEID查看它加了PECompact v2.xx,下面脱这个壳
载入OD后,它会提示压缩代码分析,点击否
然后我们F8单步走- 00401000 > B8 3CA75000 mov eax,3GQQ永久.0050A73C ; //在这里F8走
- 00401005 50 push eax
- 00401006 64:FF35 0000000>push dword ptr fs:[0]
- 0040100D 64:8925 0000000>mov dword ptr fs:[0],esp
- 00401014 33C0 xor eax,eax
- 00401016 8908 mov dword ptr ds:[eax],ecx ; //它在这里自动跳
复制代码 走到00401016后它自动跳转到- 7C92E480 8B1C24 mov ebx,dword ptr ss:[esp] ; //继续F8
- 7C92E483 51 push ecx
- 7C92E484 53 push ebx
- 7C92E485 E8 9AC30100 call ntdll.7C94A824
- 7C92E48A 0AC0 or al,al
- 7C92E48C 74 0C je short ntdll.7C92E49A
- 7C92E48E 5B pop ebx
- 7C92E48F 59 pop ecx
- 7C92E490 6A 00 push 0x0
- 7C92E492 51 push ecx
- 7C92E493 E8 C6EBFFFF call ntdll.ZwContinue ; //在此F7
复制代码
在 “7C92E493”按F7!,进入到这里- 7C92D05E > B8 20000000 mov eax,0x20 ; //继续F8
- 7C92D063 BA 0003FE7F mov edx,0x7FFE0300
- 7C92D068 FF12 call dword ptr ds:[edx] ; //在此F7
复制代码
在“7C92D068”F7!,然后来到这里- 7C92E510 > 8BD4 mov edx,esp ; //继续F8
- 7C92E512 0F34 sysenter ; //自动跳
复制代码 跳到这里- 0050A75F B8 C19450F0 mov eax,0xF05094C1
- 0050A764 64:8F05 0000000>pop dword ptr fs:[0] ; 0012FFE0
- 0050A76B 83C4 04 add esp,0x4
- 0050A76E 55 push ebp
- 0050A76F 53 push ebx
- 0050A770 51 push ecx
- 0050A771 57 push edi
- 0050A772 56 push esi
- 0050A773 52 push edx
- 0050A774 8D98 57120010 lea ebx,dword ptr ds:[eax+0x10001257]
- 0050A77A 8B53 18 mov edx,dword ptr ds:[ebx+0x18]
- 0050A77D 52 push edx
- 0050A77E 8BE8 mov ebp,eax
- 0050A780 6A 40 push 0x40
- 0050A782 68 00100000 push 0x1000
- 0050A787 FF73 04 push dword ptr ds:[ebx+0x4]
- 0050A78A 6A 00 push 0x0
- 0050A78C 8B4B 10 mov ecx,dword ptr ds:[ebx+0x10]
- 0050A78F 03CA add ecx,edx
- 0050A791 8B01 mov eax,dword ptr ds:[ecx]
- 0050A793 FFD0 call eax
- 0050A795 5A pop edx
- 0050A796 8BF8 mov edi,eax
- 0050A798 50 push eax
- 0050A799 52 push edx
- 0050A79A 8B33 mov esi,dword ptr ds:[ebx]
- 0050A79C 8B43 20 mov eax,dword ptr ds:[ebx+0x20]
- 0050A79F 03C2 add eax,edx
- 0050A7A1 8B08 mov ecx,dword ptr ds:[eax]
- 0050A7A3 894B 20 mov dword ptr ds:[ebx+0x20],ecx
- 0050A7A6 8B43 1C mov eax,dword ptr ds:[ebx+0x1C]
- 0050A7A9 03C2 add eax,edx
- 0050A7AB 8B08 mov ecx,dword ptr ds:[eax]
- 0050A7AD 894B 1C mov dword ptr ds:[ebx+0x1C],ecx
- 0050A7B0 03F2 add esi,edx
- 0050A7B2 8B4B 0C mov ecx,dword ptr ds:[ebx+0xC]
- 0050A7B5 03CA add ecx,edx
- 0050A7B7 8D43 1C lea eax,dword ptr ds:[ebx+0x1C]
- 0050A7BA 50 push eax
- 0050A7BB 57 push edi
- 0050A7BC 56 push esi
- 0050A7BD FFD1 call ecx
- 0050A7BF 5A pop edx
- 0050A7C0 58 pop eax
- 0050A7C1 0343 08 add eax,dword ptr ds:[ebx+0x8]
- 0050A7C4 8BF8 mov edi,eax
- 0050A7C6 52 push edx
- 0050A7C7 8BF0 mov esi,eax
- 0050A7C9 8B46 FC mov eax,dword ptr ds:[esi-0x4]
- 0050A7CC 83C0 04 add eax,0x4
- 0050A7CF 2BF0 sub esi,eax
- 0050A7D1 8956 08 mov dword ptr ds:[esi+0x8],edx
- 0050A7D4 8B4B 0C mov ecx,dword ptr ds:[ebx+0xC]
- 0050A7D7 894E 14 mov dword ptr ds:[esi+0x14],ecx
- 0050A7DA FFD7 call edi
- 0050A7DC 8985 3F130010 mov dword ptr ss:[ebp+0x1000133F],eax ; //走到这里F2断点,然后Ctrl+F2,再F9运行到这里,再F8
复制代码 走到“0050A7DC”,F2断点,然后Ctrl+F2重启程序,然后再F9运行到断点处
重启程序后F9跑到断点处后,继续F8- 0050A7E2 8BF0 mov esi,eax
- 0050A7E4 8B4B 14 mov ecx,dword ptr ds:[ebx+0x14]
- 0050A7E7 5A pop edx
- 0050A7E8 EB 0C jmp short 3GQQ永久.0050A7F6
- 0050A7EA 03CA add ecx,edx
- 0050A7EC 68 00800000 push 0x8000
- 0050A7F1 6A 00 push 0x0
- 0050A7F3 57 push edi
- 0050A7F4 FF11 call dword ptr ds:[ecx]
- 0050A7F6 8BC6 mov eax,esi
- 0050A7F8 5A pop edx
- 0050A7F9 5E pop esi
- 0050A7FA 5F pop edi
- 0050A7FB 59 pop ecx
- 0050A7FC 5B pop ebx
- 0050A7FD 5D pop ebp
- 0050A7FE FFE0 jmp eax ; //一个大的跳转,就到达OEP. 这里按F8
复制代码
0050A7FE一个打跳转,跳转完后就到达了OEP,用OD自带的OllyDump脱壳既可以了
最后保存即可~
去除弹窗广告:
载入脱壳后的程序,然后搜索ASCII,然后搜索“作者提示”,然后在段首 push ebp修改为retn即可
- 004010A3 55 push ebp ; //在此双击修改为JMP
- 004010A4 8BEC mov ebp,esp
- 004010A6 81EC 04000000 sub esp,0x4
- 004010AC 68 01000100 push 0x10001
- 004010B1 68 00000106 push 0x6010000
- 004010B6 68 01000152 push 0x52010001
- 004010BB 68 01000000 push 0x1
- 004010C0 BB C0124000 mov ebx,1.004012C0
- 004010C5 E8 E5010000 call 1.004012AF
- 004010CA 83C4 10 add esp,0x10
- 004010CD 8945 FC mov dword ptr ss:[ebp-0x4],eax
- 004010D0 6A 01 push 0x1
- 004010D2 68 14000000 push 0x14
- 004010D7 FF75 FC push dword ptr ss:[ebp-0x4]
- 004010DA E8 5D000000 call 1.0040113C
- 004010DF 68 04000080 push 0x80000004
- 004010E4 6A 00 push 0x0
- 004010E6 68 911D4700 push 1.00471D91 ; 作者提示
复制代码
最后还是保存~ |