Source code from Og0

Joined
Jul 27, 2005
Messages
287
Reaction score
0
I dont know what is this. May be you know. This source form Og0.6600.org.

You can use Google to translate Chinese to English


var_48=lpbuffer=地址指针

filesize=getfilesize(); //取得文件大小(data)
if filesize>12(0ch) then
//继续执行
var_2c=filesize;
nNumberOfbytestoread=var_2c-12;
var_14=(4-7); [d835694ch]
var_c=(8-11); [7bec883ah]
buffer=(0-3); [35f5d222h]
lpbuffer指针指向剩余的位置

var_14=var_14-((var_c and 0fafah) and (buffer and 0adadh)); [e13e1e00h]
实际运算:
{
var_14=var_14 and 390a4f16h; [e13f265ah]
ecx=var_c and fafah; [0000883ah]
edx=buffer and adad; [00008020h]
ecx=ecx+edx; [0001085ah]
eax=var_14; [e13f265ah]
eax=eax-ecx; [e13e1e00h]
var_14=eax;
**
var_38=0; //循环变量?
::jmp loc_412dc7
循环:
{
lpbuffer //实际值地址
xor ecx,ecx;
读取一个字节,tmp
ecx=tmp+7;
edx=var_38;
edx=edx+3;
ecx=ecx*edx;
eax=var_20;
eax=eax+ecx;
var_20=eax;

var_38=var_38+1;
**
循环结束:
loc_412def:
比较 var_14和var_20的值 如果值不相等,退出
var_40=(var_c and ff000000)>>18h; [7bh]
var_3f=(var_c and ff0000)>>10h; [ech]
var_3e=(var_c and ff); [3ah]
var_3d=(var_c and ff00)>>8h; [88h]

var_44=(buffer and ff0000)>>10h; [f5h]
var_43=(buffer and ff000000)>>18h; [35h]
var_42=(buffer and ff00)>>8h; [d2h]
var_41=(buffer and ff); [22h]

var_3c=0;
var_38=0; //循环变量

loc_412e99:
循环开始:
{
var_3c=var_3c+var_38; 第一位由[1e]变成[eb]
if var_3c<nNumberofbytestoread then

loc_412eb4:
ecx=var_38;
ecx=ecx and 80000003h;
如果是 jns? 正号 SF=0

loc_412ec4:
取一个字节 tmp
al=al xor (var_44+ecx的偏移值);
ecx=[ebp+var_3c];
[ecx]=al;
回写到原位置去,替换值。
loc_412e90:
var_38=var_38+1;
loc_412e99:
循环开始的地方!

else
dec ecx
or ecx,fffffffch
inc ecx
再进入上面的运算过程
如果结束

loc_412eda:
var_38=0;

loc_412eec:
循环开始:
{ 第一位变成[90]
eax=var_38;
if eax>=nNumberofbytestoread then goto loc_412f1a;
ecx=var_38;
ecx=(ecx and 80000003h);
if (jns) then {
loc_412f04:
取一个字节 tmp
al=tmp xor [var_40+ecx的偏移值]
回写入原位置;

loc_412ee3:
var_38=var_38+1;
goto loc_412eec:
**else{
dec ecx
ecx=ecx or fffffffch
inc ecx
goto loc_412f04;
**
**
循环结束:

loc_412f1a:
var_38=0;

loc_412f2c:
if var_38>=nNumberofbytestoread then goto loc_412f7f
var_18=0;
循环开始:
取一个字节,tmp
edx=tmp*(var_38+1);
ecx=var_18;
var_18=edx+ecx;
eax=0;
eax=tmp;
ecx=eax;
eax=var_38;
eax=eax+0dh;
edx=var_38;
edx=edx+0dh;
eax=eax*edx;
cdq 把eax的符号扩展到edx中去
esi=7bh
ecx \ esi (eax=整数) (edx=余数)
ecx=ecx*edx;
eax=var_1c; (刚开始是0?)
eax=eax+ecx;
var_1c=eax;

loc_412f23:
var_38=var_38+1;

goto 412f2c;

循环结束: (var_1c=[0cff60ffh] frame.data)

loc_412f7f:
ecx=var_4; [unk_1335360]好象是什么地址,不知是怎么得出来的!
edx=var_18; [42e7e667h] 不知道又是从哪里得来的,呆会儿再说
edx=edx xor [ecx+24h]; [7bec883ah] 得出的结果 [ecx+24h]的值 是390b6e5d
var_18=edx;

eax=var_4;
ecx=var_1c;
xor ecx,[eax+28h]( 28 ) [35f5d222] [eax+28h]=[390ab2dd]
var_1c=ecx;
edx=var_18;
cmp edx,var_c
if edx<>var_c 继续 else goto loc_412fa7;
eax=var_1c;
cmp eax,buffer;
if eax=buffer then
goto loc_412fbd;
else
goto loc_412fa7;

loc_412fbd:

arg_4是nNumberofbytestoread的一个地址,不是同一个,新建的一个

push 0
push filesize-4
push 90代码的地址
ecx=var_4; var_4 是密文地址?[1335360h]
函数:decrypt解密文件
{
push ebp; [0012ea5c] 不清楚来源
ebp=esp; [012e9ac] 不清楚
esp=esp-60h; [012e94c]
push ebx; [00810410]
push esi; [0000007b]
push edi; [0012ea5c]
push ecx; [01335360]
edi=var_60; var_60 是保存内容的指针
ecx=18h;
eax=cccccccch;
var_60以下全部置CC,包括:var_20/1C/18/14/10/c/8/4
pop ecx; ecx=[01335360]
var_4=ecx;

loc_413411:
loc_413423:
edx=var_4;
var_8=0;
goto loc_413442;

loc_413442:
循环:
{
ecx=var_8;
cmp ecx,arg_4 (总长度-12)
如果大于到 loc_4134da;
eax=var_8;
edx=0;
ecx=4;
div ecx; (eax 整数,edx余数)
var_20=edx;
if var_20=0 then loc_4134b7;
edx=var_20;
(0==>loc_41346d:1==>loc_413481:2==>loc_413494:3==>loc_4134a5)
执行过程:
jmp ds:off_4136bc[edx*4];
** 循环结束:::jmp loc_4134da;

loc_4134da:
{
eax=var_4;
eax=[eax+24h]; [390b6e5d]
edx=0;
eax=0;
edx=edx and ffh;
ecx=18h;
call __allshr;
{
if cl>40h goto loc_4a079b;
if cl>20h goto loc_4a0790;
shrd eax,edx,cl; [0][0][18] 没变?
sar edx,cl; 算术右移!=shr [0][18] 又没变?

return
**
ecx=arg_0; 内容指针
ecx=ecx+arg_4; arg_4截取的内容长度 ,得到结尾地址?
dl=[ecx-1]; 得到最后一个字节内容
dl=dl xor al;
eax=arg_0;
eax=eax+arg_4;
把DL回写到最后一位、


if arg_4<3 jmp loc_413546;
eax=arg_4; [1bb94]
shl eax,1; //左移一位 [37728]
cdq 把eax的符号扩展到edx里 [0]
ecx=3;
idiv ecx; eax \3 (eax整数 edx余数) [127b8][0]
edx=var_4; //密钥地址?
ecx=[edx+24h]; [390b6e5d]
ecx=ecx and ff0000; [000b0000];
shr ecx,10h; [0b]
edx=arg_0; //内容地址
bl=[edx+eax]; // [7f]
bl=bl xor cl; // [7f] xor [0b]=[74]
eax=arg_4; //内容长度[1bb94]
shl eax,1; //左移一位[37728]
cdq;
mov ecx,3;
idiv ecx; eax=[127b8] edx=[0]
edx=arg_0; //内容地址
mov [edx+eax],bl; //把BL的值写入刚才读的字节里去

loc_413546:
{
if arg_4<2 then jmp loc_413579; [1bb94]
eax=arg_4;
cdq; edx取得eax的扩展符[0]
eax=eax-edx; [1bb94]
sar eax,1; [ddca] 右移一位
ecx=var_4; //密钥地址?
edx=[ecx+24h]; [390b6e5d]
edx=edx and ff00; [6e00]
edx=edx shr 8; [6e]
ecx=arg_0; //内容地址
cl=[ecx+eax]; //[ee] 取内容偏移值
cl=cl xor dl; //[ee] xor [6e]=[80]
eax=arg_4; //内容长度 [1bb94]
cdq; //edx取eax的符号扩展 0
eax=eax-edx; //[1bb94]
sar eax,1; //[ddca]
edx=arg_0; //内容地址
mov [edx+eax],cl; //CL的值写入原位置
**

loc_413579:
{
eax=var_4; //密钥地址?
ecx=[eax+24h]; //[390b6e5d]
ecx=ecx and ff; //[5d]
edx=arg_0; //内容地址!
al=[edx]; //取一个字节
al=al xor cl; //[29] xor [5d]=74
mov [ecx],al; 回写!
var_10=0;
var_14=0;
edx=var_4; //密钥地址?
eax=[edx+24h]; //[390b6e5d]
edx=0;
ecx=1bh;
div ecx; //[390b6e5d]\3==>eax=[021cde29] edx=
var_18=edx;
**
loc_4135b1:
{
edx=1;
test edx,edx;
jz loc_4136a9; //不可能的任务!
mov esi,esp; [12e940]
push 0
eax=var_4; //密钥地址?
eax=eax+var_14; //var_14=[0]
ecx=0;
cl=[eax+4]; //[32]
ecx=ecx+var_10; //var_10=[0] [32]
ecx=ecx+arg_4; //内容长度[1bb94] ==>[1bb36]
push ecx;
edx=var_4; //密钥地址?
ecx=[edx+30h]; //[01335290]
eax=var_4;
edx=[eax+30h]; //[01335290]
eax=[edx]; //[57b4a0]
call [eax+4]; //[57b4a4]
{ //randomtable
push ebp; //[12e9ac]
ebp=esp; //[0012e930]
esp=esp-4c; //[0012e8e4]
push ebx; //[00810474]
push esi; //[0012e940]
push edi; //[0012e9ac]
push ecx; //[01335290]
var_4c值清CCCCCCCC /C/8/4
pop ecx; //[01335290]
var_4=ecx; //[01335290]
eax=var_4;
ecx=[eax+4]; //[1000]
var_8=ecx;
if arg_4>0 then //[0]
edx=[arg_4];
var_8=edx;
end if
jmp loc_483662;
loc_483662:
{
eax=arg_0; //[1bbc6]
push eax;
call _srand;
{
push ebp; //[0012e930]
ebp=esp; //[0012e8cc]
call __getptd;
ecx=arg_0; //[1bbc6]
mov [eax+14h],ecx; 位置:[01330f94]写入 ecx;
pop ebp; //[0012e930]
return
**
esp=esp+4; //[0012e8dr+4]
var_c=0;
jmp loc_483680;
**
loc_483680:
{
edx=var_c; //[0]
if edx>=var_8 jmp loc_48369b; //var_8=[1000]
call _rand;
{
push ebp;
move epb,esp;
push ecx;
call __getptd;
var_4=eax;
eax=var_4;
ecx=[eax+14h];
ecx=ecx*343fdh;
ecx=ecx+269ec3h;
edx=var_4;
mov [edx+14h],ecx;
eax=var_4;
eax=[eax+14h];
shr eax,10h;
eax=eax and 7fffh;
esp=ebp;
pop ebp;
return;
**
ecx=var_4;
edx=[ecx+0ch]; //[01c5c138]
ecx=var_c; //[0]
mov [edx+ecx*4],eax; //eax=[2954]
jmp loc_483677;
**
loc_483677:
{
var_c=var_c+1;
jmp loc_483680;
**
var_1c=0;
jmp loc_4135fe;
**
loc_4135fe:
{
edx=var_4; //密钥地址?
edx=edx+var_14; //[0]
eax=0;
al=[edx+4]; //[32]
and eax,80000fffh;
if 负数(jns) then
dec eax
or eax,fffff000h
inc eax
end if
jmp loc_413617
**
loc_413617:
{
if var_1c>=eax jmp loc_413684;
ecx=var_1c; //[0]
ecx=ecx and 8000001fh;
if 负数(jns) then
dec ecx
or eax,ffffffe0h
inc ecx
end if
jmp loc_41362c
**
loc_41362c:
{
edx=arg_0; //内容地址
edx=edx+var_10; //[0] var_10循环变量?
eax=var_4; //密钥地址
dl=取一个字节的值; //[74]
dl=dl xor [eax+ecx+4]; //xor [32]==[46]
回写内内容dl!
ecx=var_10;
ecx=ecx*0dh;
edx=var_18; //[0a]
edx=edx+ecx; //[0a]
push edx;
eax=var_4; //密钥地址
ecx=[eax+30h]; //[01335290]
call Get(); //CRandomTable::Get(ulong)
{
push ebp; //[12e9ac]
ebp=esp; //[12e934]
esp=esp-44h; //[12e8f0]
push ebx; //[00810474]
push esi; //[0012e940]
push edi; //[0012e9ac]
edi=var_44的地址; //[12e8f0]
var_44/4 置CC
pop ecx; //[01335290]
var_4=ecx;
ecx=var_4;
eax=arg_0; //[0a]
edx=0;
div dword ptr [ecx+4]; //[1000] eax=[0] edx=
eax=var_4;
ecx=[eax+0ch]; //[01c5c138]
eax=[ecx+edx*4]; //[3208]
pop edi
pop esi
pop ebx
mov esp,ebp
pop ebp
return 4
**
ecx=arg_0; //内容地址
ecx=ecx+var_10; //循环变量?
dl=取一个字节的值; //[46]
dl=dl xor al; //[4e]
再回写
 
var_48=lpbuffer= address indicator filesize=getfilesize (); // obtains the document size (data) if filesize>12 (0ch) then // continues to carry out var_2c=filesize; nNumberOfbytestoread=var_2c-12; var_14= (4-7); [ d835694ch ] var_c= (8-11); [ 7bec883ah ] buffer= (0-3); [ 35f5d222h ] lpbuffer indicator direction surplus position var_14=var_14- ((var_c and 0fafah) and (buffer and 0adadh)); [ e13e1e00h ] actual operation: { var_14=var_14 and 390a4f16h; [ e13f265ah ] ecx=var_c and fafah; [ 0000883ah ] edx=buffer and adad; [ 00008020h ] ecx=ecx+edx; [ 0001085ah ] eax=var_14; [ e13f265ah ] eax=eax-ecx; [ e13e1e00h ] var_14=eax; ** var_38=0; // circulation variable? loc_412dc7 circulation: { lpbuffer // actual value address xor ecx, ecx; Reads takes one byte, tmp ecx=tmp+7; edx=var_38; edx=edx+3; ecx=ecx*edx; eax=var_20; eax=eax+ecx; var_20=eax; var_38=var_38+1; ** circulation conclusion: loc_412def: Compared with var_14 and var_20 value if the value is not equal, withdraws from var_40= (var_c and ff000000) >>18h; [ 7bh ] var_3f= (var_c and ff0000) >>10h; [ ech ] var_3e= (var_c and ff); [ 3ah ] var_3d= (var_c and ff00) >>8h; [ 88h ] var_44= (buffer and ff0000) >>10h; [ f5h ] var_43= (buffer and ff000000) >>18h; [ 35h ] var_42= (buffer and ff00) >>8h; [ d2h ] var_41= (buffer and ff); [ 22h ] var_3c=0; var_38=0; // circulation variable loc_412e99: Circulation start: { var_3c=var_3c+var_38; First turns [ eb ] by [ 1e ] if var_3c<nNumberofbytestoread then loc_412eb4: ecx=var_38; ecx=ecx and 80000003h; If is jns? Plus sign SF=0 loc_412ec4: Takes one byte tmp al=al xor (var_44+ecx 偏移值); ecx= [ ebp+var_3c ]; [ ecx ] =al; Returns writes the original position goes, replace value. loc_412e90: var_38=var_38+1; loc_412e99: The circulation starts place! else dec ecx or ecx, fffffffch inc ecx enters above again the operation process if finishes loc_412eda: var_38=0; loc_412eec: Circulation start: { First turns [ 90 ] eax=var_38; if eax>=nNumberofbytestoread then goto loc_412f1a; ecx=var_38; ecx= (ecx and 80000003h); if (jns) then { loc_412f04: Takes one byte tmp al=tmp xor [ var_40+ecx 偏移值 ] returns reads in the original position; loc_412ee3: var_38=var_38+1; goto loc_412eec: **else { dec ecx ecx=ecx or fffffffch inc ecx goto loc_412f04; ** ** circulation conclusion: loc_412f1a: var_38=0; loc_412f2c: if var_38>=nNumberofbytestoread then goto loc_412f7f var_18=0; Circulation start: Takes one byte, tmp edx=tmp* (var_38+1); ecx=var_18; var_18=edx+ecx; eax=0; eax=tmp; ecx=eax; eax=var_38; eax=eax+0dh; edx=var_38; edx=edx+0dh; eax=eax*edx; cdq expands the eax mark to edx in goes esi=7bh ecx \ esi (the eax= integer) (edx= Yu Shu) ecx=ecx*edx; eax=var_1c; (Just started is 0?) eax=eax+ecx; var_1c=eax; loc_412f23: var_38=var_38+1; goto 412f2c; Circulation conclusion: (var_1c= [ 0cff60ffh ] frame.data) loc_412f7f: ecx=var_4; What address [ does unk_1335360 ] resemble is, does not know is how obtains! edx=var_18; [ 42e7e667h ] does not know again is comes from where, the dull meeting son said edx=edx xor again [ ecx+24h ]; [ 7bec883ah ] obtains result [ ecx+24h ] the value is 390b6e5d var_18=edx; eax=var_4; ecx=var_1c; xor ecx, [ eax+28h ] (28) [ 35f5d222 ] [ eax+28h ] = [ 390ab2dd ] var_1c=ecx; edx=var_18; cmp edx, var_c if edx<>var_c continues else goto loc_412fa7; eax=var_1c; cmp eax, buffer; if eax=buffer then goto loc_412fbd; else goto loc_412fa7; loc_412fbd: arg_4 is the nNumberofbytestoread one address, is not identical, newly built one push 0 push filesize-4 push 90 codes address ecx=var_4; var_4 is the scrambled text address? [ 1335360h ] function: decrypt decipher document { push ebp; [ 0012ea5c ] not clearly originates ebp=esp; [ 012e9ac ] not clear esp=esp-60h; [ 012e94c ] push ebx; [ 00810410 ] push esi; [ 0000007b ] push edi; [ 0012ea5c ] push ecx; [ 01335360 ] edi=var_60; var_60 is preserves the content indicator ecx=18h; eax=cccccccch; Below var_60 all installs in parts CC, includes: var_20/1C/18/14/10/c/8/4 pop ecx; ecx= [ 01335360 ] var_4=ecx; loc_413411: loc_413423: edx=var_4; var_8=0; goto loc_413442; loc_413442: Circulation: { ecx=var_8; cmp ecx, arg_4 (total length -12) if is bigger than loc_4134da; eax=var_8; edx=0; ecx=4; div ecx; (eax integer, edx Yu Shu) var_20=edx; if var_20=0 then loc_4134b7; edx=var_20; (0==>loc_41346d:1==>loc_413481:2==>loc_413494:3==> loc_4134a5) implementation: jmp ds:off_4136bc [ edx*4 ]; ** circulation conclusion: jmp loc_4134da; loc_4134da: { eax=var_4; eax= [ eax+24h ]; [ 390b6e5d ] edx=0; eax=0; edx=edx and ffh; ecx=18h; call __allshr; { if cl>40h goto loc_4a079b; if cl>20h goto loc_4a0790; shrd eax, edx, cl; [ 0 ] [ 0 ] [ 18 ] has not changed? sar edx, cl; Arithmetic right lateral! =shr [ 0 ] [ 18 ] has not again changed? return ** ecx=arg_0; Content indicator ecx=ecx+arg_4; The arg_4 interception content length, obtains the ending address? dl= [ ecx-1 ]; Obtains last byte content dl=dl xor al; eax=arg_0; eax=eax+arg_4; Returns to DL writes last, if arg_4<3 jmp loc_413546; eax=arg_4; [ 1bb94 ] shl eax,1; // shifts to the left one [ 37728 ] cdq expands the eax mark to edx in [ 0 ] ecx=3; idiv ecx; eax \3 (eax integer edx extra number) [ 127b8 ] [ 0 ] edx=var_4; // dense key address? ecx= [ edx+24h ]; [ 390b6e5d ] ecx=ecx and ff0000; [ 000b0000 ]; shr ecx,10h; [ 0b ] edx=arg_0; // content address bl= [ edx+eax ]; // [ 7f ] bl=bl xor cl; // [ 7f ] xor [ 0b ] = [ 74 ] eax=arg_4; // content length [ 1bb94 ] shl eax,1; // shifts to the left one [ 37728 ] cdq; mov ecx,3; idiv ecx; eax= [ 127b8 ] edx= [ 0 ] edx=arg_0; // content address mov [ edx+eax ], bl; // reads in the BL value in the byte which a moment ago read goes loc_413546: { if arg_4<2 then jmp loc_413579; [ 1bb94 ] eax=arg_4; cdq; edx obtains eax the expansion symbol [ 0 ] eax=eax-edx; [ 1bb94 ] sar eax,1; [ ddca ] right lateral one ecx=var_4; // dense key address? edx= [ ecx+24h ]; [ 390b6e5d ] edx=edx and ff00; [ 6e00 ] edx=edx shr 8; [ 6e ] ecx=arg_0; // content address cl= [ ecx+eax ]; // [ ee ] takes content 偏移值 cl=cl xor dl; // [ ee ] xor [ 6e ] = [ 80 ] eax=arg_4; // content length [ 1bb94 ] cdq; //edx takes eax the mark expands 0 eax=eax-edx; // [ 1bb94 ] sar eax,1; // [ ddca ] edx=arg_0; // content address mov [ edx+eax ], cl; The //CL value reads in original position ** loc_413579: { eax=var_4; // dense key address? ecx= [ eax+24h ]; // [ 390b6e5d ] ecx=ecx and ff; // [ 5d ] edx=arg_0; // content address! al= [ edx ]; // takes one byte al=al xor cl; // [ 29 ] xor [ 5d ] =74 mov [ ecx ], al; Returns writes! var_10=0; var_14=0; edx=var_4; // dense key address? eax= [ edx+24h ]; // [ 390b6e5d ] edx=0; ecx=1bh; div ecx; // [ 390b6e5d ] \3==>eax= [ 021cde29 ] edx= var_18=edx; ** loc_4135b1: { edx=1; test edx, edx; jz loc_4136a9; // impossible duty! mov esi, esp; [ 12e940 ] push 0 eax=var_4; // dense key address? eax=eax+var_14; //var_14= [ 0 ] ecx=0; cl= [ eax+4 ]; // [ 32 ] ecx=ecx+var_10; //var_10= [ 0 ] [ 32 ] ecx=ecx+arg_4; // content length [ 1bb94 ] ==> [ 1bb36 ] push ecx; edx=var_4; // dense key address? ecx= [ edx+30h ]; // [ 01335290 ] eax=var_4; edx= [ eax+30h ]; // [ 01335290 ] eax= [ edx ]; // [ 57b4a0 ] call [ eax+4 ]; // [ 57b4a4 ] { //randomtable push ebp; // [ 12e9ac ] ebp=esp; // [ 0012e930 ] esp=esp-4c; // [ 0012e8e4 ] push ebx; // [ 00810474 ] push esi; // [ 0012e940 ] push edi; // [ 0012e9ac ] push ecx; // [ 01335290 ] var_4c value clear CCCCCCCC /C/8/4 pop ecx; // [ 01335290 ] var_4=ecx; // [ 01335290 ] eax=var_4; ecx= [ eax+4 ]; // [ 1000 ] var_8=ecx; if arg_4>0 then // [ 0 ] edx= [ arg_4 ]; var_8=edx; end if jmp loc_483662; loc_483662: { eax=arg_0; // [ 1bbc6 ] push eax; call _srand; { push ebp; // [ 0012e930 ] ebp=esp; // [ 0012e8cc ] call __getptd; ecx=arg_0; // [ 1bbc6 ] mov [ eax+14h ], ecx; Position: [ 01330f94 ] reads in ecx; pop ebp; // [ 0012e930 ] return ** esp=esp+4; // [ 0012e8dr+4 ] var_c=0; jmp loc_483680; ** loc_483680: { edx=var_c; // [ 0 ] if edx>=var_8 jmp loc_48369b; //var_8= [ 1000 ] call _rand; { push ebp; move epb, esp; push ecx; call __getptd; var_4=eax; eax=var_4; ecx= [ eax+14h ]; ecx=ecx*343fdh; ecx=ecx+269ec3h; edx=var_4; mov [ edx+14h ], ecx; eax=var_4; eax= [ eax+14h ]; shr eax,10h; eax=eax and 7fffh; esp=ebp; pop ebp; return; ** ecx=var_4; edx= [ ecx+0ch ]; // [ 01c5c138 ] ecx=var_c; // [ 0 ] mov [ edx+ecx*4 ], eax; //eax= [ 2954 ] jmp loc_483677; ** loc_483677: { var_c=var_c+1; jmp loc_483680; ** var_1c=0; jmp loc_4135fe; ** loc_4135fe: { edx=var_4; // dense key address? edx=edx+var_14; // [ 0 ] eax=0; al= [ edx+4 ]; // [ 32 ] and eax,80000fffh; if negative number (jns) then dec eax or eax, fffff000h inc eax end if jmp loc_413617 ** loc_413617: { if var_1c>=eax jmp loc_413684; ecx=var_1c; // [ 0 ] ecx=ecx and 8000001fh; if negative number (jns) then dec ecx or eax, ffffffe0h inc ecx end if jmp loc_41362c ** loc_41362c: { edx=arg_0; // content address edx=edx+var_10; // [ 0 ] var_10 circulation variable? eax=var_4; // dense key address dl= takes one byte the value; // [ 74 ] dl=dl xor [ eax+ecx+4 ]; //xor [ 32 ] == [ 46 ] returns writes inside content dl! ecx=var_10; ecx=ecx*0dh; edx=var_18; // [ 0a ] edx=edx+ecx; // [ 0a ] push edx; eax=var_4; // dense key address ecx= [ eax+30h ]; // [ 01335290 ] call Get (); //C$$RandomTable::Get (ulong) { push ebp; // [ 12e9ac ] ebp=esp; // [ 12e934 ] esp=esp-44h; // [ 12e8f0 ] push ebx; // [ 00810474 ] push esi; // [ 0012e940 ] push edi; // [ 0012e9ac ] edi=var_44 address; // [ 12e8f0 ] var_44/4 sets at CC pop ecx; // [ 01335290 ] var_4=ecx; ecx=var_4; eax=arg_0; // [ 0a ] edx=0; div dword ptr [ ecx+4 ]; // [ 1000 ] eax= [ 0 ] edx= eax=var_4; ecx= [ eax+0ch ]; // [ 01c5c138 ] eax= [ ecx+edx*4 ]; // [ 3208 ] pop edi pop esi pop ebx mov esp, ebp pop ebp return 4 ** ecx=arg_0; // content address ecx=ecx+var_10; // circulation variable? dl= takes one byte the value; // [ 46 ] dl=dl xor al; // [ 4e ] returns again writes... Here only then is the correct value! var_10=var_10+1; if var_10<arg_4 then //arg_4 content length jmp loc_41367f; { loc_41367f: { jmp loc_4135f5; loc_4135f5: { var_1c=var_1c+1; jmp loc_4135fe; ** ** ** ELSE jmp loc_413684; end if ** ** ** //================================================== ========================= loc_41346d: { eax=var_4; Dense key address indicator? ecx= [ eax+28h ]; Displaces 28 bytes the values: [ 390ab2dd ] ecx=ecx and ff00; [ b200 ] 0 shr ecx,8 [ b2 ] var_c=cl; [ C$C$C$C$C$cb2 ] jmp loc_4134b7; ** loc_413481: { edx=var_4; eax= [ edx+28h ]; [ 390ab2dd ]; 1 eax=eax and ff000000h; [ 39000000 ] shr eax,18h; [ 39 ]; var_c=al; [ CCCCCC39 ]; jmp loc_4134b7; ** loc_413494: { ecx=var_4; 2 edx= [ ecx+28h ]; [ 390ab2dd ] edx=edx and ffh; [ dd ] var_c=dl; [ C$C$C$C$C$cdd ] jmp loc_4134b7; ** loc_4134a5: { eax=var_4; 3 ecx= [ eax+28h ]; [ 390ab2dd ] ecx=ecx and ff0000; [ 000a0000 ] shr ecx,10h; [ a0 ] var_c=ecx; [ C$C$C$C$C$ca0 ] jmp loc_4134b7; ** loc_4134b7: { edx=var_c; edx=edx and ff; edx=edx+7; [ b9 ] cl= takes value tmp; [ 90 ] cl=cl xor dl; [ 29 ] returns to writes value cl [ 29 ] jmp loc_413439; ** loc_413439: { var_8=var_8+1; jmp loc_413442; ** //================================================== ========================= ** loc_4134da: ** var_8=0; Circulation variable arg_4=nNumberofbytestoread; { eax=var_8; edx=0; ecx=4; div ecx; ecx ** else continues to circulate; end if ** circulation conclusion: end if closehandle (); // closure document And some one fix var_40= (var_c and ff000000) >>18h; [ 7bh ] var_3f= (var_c and ff0000) >>10h; [ ech ] var_3e= (var_c and ff); [ 3ah ] var_3d= (var_c and ff00) >>8h; [ 88h ] var_44= (buffer and ff0000) >>10h; [ f5h ] var_43= (buffer and ff000000) >>18h; [ 35h ] var_42= (buffer and ff00) >>8h; [ d2h ] var_41= (buffer and ff); [ 22h ] And var_14= (4-7); [ d835694ch ] var_c= (8-11); [ 7bec883ah ] buffer= (0-3); [ 35f5d222h ] var_14= (var_14 xor 390a4f16h) - ((var_c and 0fafah) + (buffer and 0adadh)); [ e13e1e00h ] actual operation: { var_14=var_14 xor 390a4f16h; [ e13f265ah ] ecx=var_c and fafah; [ 0000883ah ] edx=buffer and adad; [ 00008020h ] ecx=ecx+edx; [ 0001085ah ] eax=var_14; [ e13f265ah ] eax=eax-ecx; [ e13e1e00h ] var_14=eax; ** var_38=0; // circulation variable? loc_412dc7 circulation: { Reads takes one byte, tmp ecx=tmp+7; edx=var_38; edx=edx+3; ecx=ecx*edx; eax=var_20; eax=eax+ecx; var_20=eax; var_38=var_38+1; ** circulation conclusion: loc_412def: Compared with var_14 and var_20 value if the value is not equal, withdraws

This comes out.
Its all SQL if you ask me.
So I don't know Sry :geek:
 
Because the origin name of this thread is "data文件反编译后的成果,大部分是汇编,有高手能写出解码程序吗?"
Translate : "The after data document counter- translation achievement, majority of is the assembly, has the master can write the decoding procedure?"

?????
 
With my limited Chinese, it translates to...
"After playing around with the coding [reverse engineering], a majority is ...(some word that I don't understand)..., can any programmers decode this."
 
Very good men! You are the one i need.
Can you translate this page and send to my mailbox????






Thank you very much.
TidusKG
 
Back