git-svn: trunk@3216
aCaB authored on 2007/09/13 21:49:46... | ... |
@@ -1177,7 +1177,7 @@ int cli_scanpe(int desc, cli_ctx *ctx) |
1177 | 1177 |
*/ |
1178 | 1178 |
/* upack 0.39-3s + sample 0151477*/ |
1179 | 1179 |
while(((upack && nsections == 3) && /* 3 sections */ |
1180 |
- ( |
|
1180 |
+ (( |
|
1181 | 1181 |
epbuff[0] == '\xbe' && cli_readint32(epbuff + 1) - EC32(optional_hdr32.ImageBase) > min && /* mov esi */ |
1182 | 1182 |
epbuff[5] == '\xad' && epbuff[6] == '\x50' /* lodsd; push eax */ |
1183 | 1183 |
) |
... | ... |
@@ -1186,10 +1186,10 @@ int cli_scanpe(int desc, cli_ctx *ctx) |
1186 | 1186 |
(epbuff[0] == '\xbe' && cli_readint32(epbuff + 1) - EC32(optional_hdr32.ImageBase) > min && /* mov esi */ |
1187 | 1187 |
epbuff[5] == '\xff' && epbuff[6] == '\x36' /* push [esi] */ |
1188 | 1188 |
) |
1189 |
- ) |
|
1189 |
+ )) |
|
1190 | 1190 |
|| |
1191 | 1191 |
((!upack && nsections == 2) && /* 2 sections */ |
1192 |
- ( /* upack 0.39-2s */ |
|
1192 |
+ (( /* upack 0.39-2s */ |
|
1193 | 1193 |
epbuff[0] == '\x60' && epbuff[1] == '\xe8' && cli_readint32(epbuff+2) == 0x9 /* pusha; call+9 */ |
1194 | 1194 |
) |
1195 | 1195 |
|| |
... | ... |
@@ -1198,7 +1198,7 @@ int cli_scanpe(int desc, cli_ctx *ctx) |
1198 | 1198 |
cli_readint32(epbuff + 1) - EC32(optional_hdr32.ImageBase) > 0 && |
1199 | 1199 |
epbuff[5] == '\xad' && epbuff[6] == '\x8b' && epbuff[7] == '\xf8' /* loads; mov edi, eax */ |
1200 | 1200 |
) |
1201 |
- ) |
|
1201 |
+ )) |
|
1202 | 1202 |
) { |
1203 | 1203 |
uint32_t vma, off; |
1204 | 1204 |
int a,b,c; |