|
地板
楼主 |
发表于 2013-11-20 13:31:41
|
只看该作者
newdiy 发表于 2013-11-20 12:42
我分析过代码,都是这种方式
那你看看这段是个啥个算法来着??知道了这个算法的名称,就可以替换了,这东西就是把签名密文解码成明文的函数。
- 00AA10D0 55 push ebp
- 00AA10D1 8BEC mov ebp,esp
- 00AA10D3 81EC 1C020000 sub esp,21C
- 00AA10D9 A1 E05EAC01 mov eax,dword ptr ds:[1AC5EE0]
- 00AA10DE 33C5 xor eax,ebp
- 00AA10E0 8945 FC mov dword ptr ss:[ebp-4],eax
- 00AA10E3 8B45 08 mov eax,dword ptr ss:[ebp+8]
- 00AA10E6 53 push ebx
- 00AA10E7 8B5D 10 mov ebx,dword ptr ss:[ebp+10]
- 00AA10EA 56 push esi
- 00AA10EB 8985 E8FDFFFF mov dword ptr ss:[ebp-218],eax
- 00AA10F1 8B45 0C mov eax,dword ptr ss:[ebp+C]
- 00AA10F4 57 push edi
- 00AA10F5 33F6 xor esi,esi
- 00AA10F7 8BFA mov edi,edx
- 00AA10F9 898D E4FDFFFF mov dword ptr ss:[ebp-21C],ecx
- 00AA10FF 48 dec eax
- 00AA1100 85C0 test eax,eax
- 00AA1102 78 29 js short mailserv.00AA112D
- 00AA1104 33D2 xor edx,edx
- 00AA1106 33C9 xor ecx,ecx
- 00AA1108 83F9 20 cmp ecx,20
- 00AA110B 73 11 jnb short mailserv.00AA111E
- 00AA110D 0FB61C38 movzx ebx,byte ptr ds:[eax+edi]
- 00AA1111 D3E3 shl ebx,cl
- 00AA1113 83C1 08 add ecx,8
- 00AA1116 0BD3 or edx,ebx
- 00AA1118 48 dec eax
- 00AA1119 8B5D 10 mov ebx,dword ptr ss:[ebp+10]
- 00AA111C ^ 79 EA jns short mailserv.00AA1108
- 00AA111E 8994B5 70FEFFFF mov dword ptr ss:[ebp+esi*4-190],edx
- 00AA1125 46 inc esi
- 00AA1126 83FE 21 cmp esi,21
- 00AA1129 ^ 72 D5 jb short mailserv.00AA1100
- 00AA112B EB 17 jmp short mailserv.00AA1144
- 00AA112D 83FE 21 cmp esi,21
- 00AA1130 73 12 jnb short mailserv.00AA1144
- 00AA1132 B9 21000000 mov ecx,21
- 00AA1137 2BCE sub ecx,esi
- 00AA1139 8DBCB5 70FEFFFF lea edi,dword ptr ss:[ebp+esi*4-190]
- 00AA1140 33C0 xor eax,eax
- 00AA1142 F3:AB rep stosd
- 00AA1144 33F6 xor esi,esi
- 00AA1146 B8 7F000000 mov eax,7F
- 00AA114B EB 03 jmp short mailserv.00AA1150
- 00AA114D 8D49 00 lea ecx,dword ptr ds:[ecx]
- 00AA1150 85C0 test eax,eax
- 00AA1152 78 27 js short mailserv.00AA117B
- 00AA1154 33D2 xor edx,edx
- 00AA1156 33C9 xor ecx,ecx
- 00AA1158 83F9 20 cmp ecx,20
- 00AA115B 73 0F jnb short mailserv.00AA116C
- 00AA115D 0FB67C18 04 movzx edi,byte ptr ds:[eax+ebx+4]
- 00AA1162 D3E7 shl edi,cl
- 00AA1164 83C1 08 add ecx,8
- 00AA1167 0BD7 or edx,edi
- 00AA1169 48 dec eax
- 00AA116A ^ 79 EC jns short mailserv.00AA1158
- 00AA116C 8994B5 78FFFFFF mov dword ptr ss:[ebp+esi*4-88],edx
- 00AA1173 46 inc esi
- 00AA1174 83FE 21 cmp esi,21
- 00AA1177 ^ 72 D7 jb short mailserv.00AA1150
- 00AA1179 EB 17 jmp short mailserv.00AA1192
- 00AA117B 83FE 21 cmp esi,21
- 00AA117E 73 12 jnb short mailserv.00AA1192
- 00AA1180 B9 21000000 mov ecx,21
- 00AA1185 2BCE sub ecx,esi
- 00AA1187 8DBCB5 78FFFFFF lea edi,dword ptr ss:[ebp+esi*4-88]
- 00AA118E 33C0 xor eax,eax
- 00AA1190 F3:AB rep stosd
- 00AA1192 33F6 xor esi,esi
- 00AA1194 B8 7F000000 mov eax,7F
- 00AA1199 8DA424 00000000 lea esp,dword ptr ss:[esp]
- 00AA11A0 85C0 test eax,eax
- 00AA11A2 78 2A js short mailserv.00AA11CE
- 00AA11A4 33D2 xor edx,edx
- 00AA11A6 33C9 xor ecx,ecx
- 00AA11A8 83F9 20 cmp ecx,20
- 00AA11AB 73 12 jnb short mailserv.00AA11BF
- 00AA11AD 0FB6BC18 84000000 movzx edi,byte ptr ds:[eax+ebx+84]
- 00AA11B5 D3E7 shl edi,cl
- 00AA11B7 83C1 08 add ecx,8
- 00AA11BA 0BD7 or edx,edi
- 00AA11BC 48 dec eax
- 00AA11BD ^ 79 E9 jns short mailserv.00AA11A8
- 00AA11BF 8994B5 F4FEFFFF mov dword ptr ss:[ebp+esi*4-10C],edx
- 00AA11C6 46 inc esi
- 00AA11C7 83FE 21 cmp esi,21
- 00AA11CA ^ 72 D4 jb short mailserv.00AA11A0
- 00AA11CC EB 17 jmp short mailserv.00AA11E5
- 00AA11CE 83FE 21 cmp esi,21
- 00AA11D1 73 12 jnb short mailserv.00AA11E5
- 00AA11D3 B9 21000000 mov ecx,21
- 00AA11D8 2BCE sub ecx,esi
- 00AA11DA 8DBCB5 F4FEFFFF lea edi,dword ptr ss:[ebp+esi*4-10C]
- 00AA11E1 33C0 xor eax,eax
- 00AA11E3 F3:AB rep stosd
- 00AA11E5 B9 20000000 mov ecx,20
- 00AA11EA 8D45 F0 lea eax,dword ptr ss:[ebp-10]
- 00AA11ED 8D49 00 lea ecx,dword ptr ds:[ecx]
- 00AA11F0 8378 08 00 cmp dword ptr ds:[eax+8],0
- 00AA11F4 75 1B jnz short mailserv.00AA1211
- 00AA11F6 8378 04 00 cmp dword ptr ds:[eax+4],0
- 00AA11FA 75 0F jnz short mailserv.00AA120B
- 00AA11FC 8338 00 cmp dword ptr ds:[eax],0
- 00AA11FF 75 0D jnz short mailserv.00AA120E
- 00AA1201 83E8 0C sub eax,0C
- 00AA1204 83E9 03 sub ecx,3
- 00AA1207 ^ 79 E7 jns short mailserv.00AA11F0
- 00AA1209 EB 06 jmp short mailserv.00AA1211
- 00AA120B 49 dec ecx
- 00AA120C EB 03 jmp short mailserv.00AA1211
- 00AA120E 83E9 02 sub ecx,2
- 00AA1211 8D79 01 lea edi,dword ptr ds:[ecx+1]
- 00AA1214 B8 20000000 mov eax,20
- 00AA1219 8D8D 6CFFFFFF lea ecx,dword ptr ss:[ebp-94]
- 00AA121F 90 nop
- 00AA1220 8379 08 00 cmp dword ptr ds:[ecx+8],0
- 00AA1224 75 1B jnz short mailserv.00AA1241
- 00AA1226 8379 04 00 cmp dword ptr ds:[ecx+4],0
- 00AA122A 75 0F jnz short mailserv.00AA123B
- 00AA122C 8339 00 cmp dword ptr ds:[ecx],0
- 00AA122F 75 0D jnz short mailserv.00AA123E
- 00AA1231 83E9 0C sub ecx,0C
- 00AA1234 83E8 03 sub eax,3
- 00AA1237 ^ 79 E7 jns short mailserv.00AA1220
- 00AA1239 EB 06 jmp short mailserv.00AA1241
- 00AA123B 48 dec eax
- 00AA123C EB 03 jmp short mailserv.00AA1241
- 00AA123E 83E8 02 sub eax,2
- 00AA1241 8D70 01 lea esi,dword ptr ds:[eax+1]
- 00AA1244 8D47 FF lea eax,dword ptr ds:[edi-1]
- 00AA1247 85C0 test eax,eax
- 00AA1249 78 1C js short mailserv.00AA1267
- 00AA124B EB 03 jmp short mailserv.00AA1250
- 00AA124D 8D49 00 lea ecx,dword ptr ds:[ecx]
- 00AA1250 8B8C85 78FFFFFF mov ecx,dword ptr ss:[ebp+eax*4-88]
- 00AA1257 8B9485 70FEFFFF mov edx,dword ptr ss:[ebp+eax*4-190]
- 00AA125E 3BD1 cmp edx,ecx
- 00AA1260 77 05 ja short mailserv.00AA1267
- 00AA1262 72 19 jb short mailserv.00AA127D
- 00AA1264 48 dec eax
- 00AA1265 ^ 79 E9 jns short mailserv.00AA1250
- 00AA1267 5F pop edi
- 00AA1268 5E pop esi
- 00AA1269 B8 01040000 mov eax,401
- 00AA126E 5B pop ebx
- 00AA126F 8B4D FC mov ecx,dword ptr ss:[ebp-4]
- 00AA1272 33CD xor ecx,ebp
- 00AA1274 E8 BF5C7A00 call mailserv.01246F38
- 00AA1279 8BE5 mov esp,ebp
- 00AA127B 5D pop ebp
- 00AA127C C3 retn
- 00AA127D 57 push edi
- 00AA127E 8D95 78FFFFFF lea edx,dword ptr ss:[ebp-88]
- 00AA1284 52 push edx
- 00AA1285 56 push esi
- 00AA1286 8D85 F4FEFFFF lea eax,dword ptr ss:[ebp-10C]
- 00AA128C 50 push eax
- 00AA128D 8D8D 70FEFFFF lea ecx,dword ptr ss:[ebp-190]
- 00AA1293 51 push ecx
- 00AA1294 8D95 ECFDFFFF lea edx,dword ptr ss:[ebp-214]
- 00AA129A 52 push edx
- 00AA129B E8 00F8FFFF call mailserv.00AA0AA0
- 00AA12A0 8B03 mov eax,dword ptr ds:[ebx]
- 00AA12A2 8B8D E4FDFFFF mov ecx,dword ptr ss:[ebp-21C]
- 00AA12A8 83C0 07 add eax,7
- 00AA12AB 57 push edi
- 00AA12AC C1E8 03 shr eax,3
- 00AA12AF 8D95 ECFDFFFF lea edx,dword ptr ss:[ebp-214]
- 00AA12B5 52 push edx
- 00AA12B6 50 push eax
- 00AA12B7 8901 mov dword ptr ds:[ecx],eax
- 00AA12B9 8B85 E8FDFFFF mov eax,dword ptr ss:[ebp-218]
- 00AA12BF 50 push eax
- 00AA12C0 E8 9BEEFFFF call mailserv.00AA0160
- 00AA12C5 8B4D FC mov ecx,dword ptr ss:[ebp-4]
- 00AA12C8 83C4 28 add esp,28
- 00AA12CB 5F pop edi
- 00AA12CC 5E pop esi
- 00AA12CD 33CD xor ecx,ebp
- 00AA12CF 33C0 xor eax,eax
- 00AA12D1 5B pop ebx
- 00AA12D2 E8 615C7A00 call mailserv.01246F38
- 00AA12D7 8BE5 mov esp,ebp
- 00AA12D9 5D pop ebp
- 00AA12DA C3 retn
复制代码
|
|