Cin Files

smoochy boys on tour

Kaori

LOMCN MiR3 Queen!
VIP
Jun 3, 2004
3,584
38
285
Canada
tell me those 4 bytes (in asm)

and to reply... XOR is part of it.
 
Last edited:

NickAKAVexus

Golden Oldie
Golden Oldie
Apr 16, 2005
1,427
1
145
New york
Kaori why are you asking her for that info when you can already decode the file? :agree:

@Kaori
does this have anything to do with it 2682133139


@idabiga
pretty cool doing that in vb6, what did you use to draw the image from the bytes? I was attempting a mir2 wil viewer a while back.
 
Last edited:

shorty606

Golden Oldie
Golden Oldie
Apr 10, 2005
867
0
122
Nick found this:
.text:004043D6 mov [esp+23Ch+var_220], 240
.text:004043DB repne scasb
.text:004043DD not ecx
.text:004043DF dec ecx
.text:004043E0 mov edi, offset asc_4CBBEC ; "\\"
.text:004043E5 mov byte ptr [esp+29], 57
.text:004043EA mov [esp+23Ch+var_21E], 171

It uses the first 3 bytes of the header of the cins....we (well Nick) just trying to make it into workable code.
 

NickAKAVexus

Golden Oldie
Golden Oldie
Apr 16, 2005
1,427
1
145
New york
@Kaori

Code:
  Key:=24057171;
  KeyFinal:=key xor 2682133139;

Don't suppose thats correct? or maybe i'm suppose to xor that key against each byte then shr it by 2? I wish you would just help us out would save me loads of time. :/
 

shorty606

Golden Oldie
Golden Oldie
Apr 10, 2005
867
0
122
hehe my guess is kaori wants us to work it out, its nice she giving us little hints :)
 

Kaori

LOMCN MiR3 Queen!
VIP
Jun 3, 2004
3,584
38
285
Canada
now you gotta find the other key. the one very similar to the first 2 or 3 bytes of cin.
 

mythonline

Known Cheater
Golden Oldie
Oct 2, 2005
546
1
125
kaori how did u manage to do it in the first place without some help? :)
and btw y u need to make new .cin? the kaori 1's arent enough for u?
 

shorty606

Golden Oldie
Golden Oldie
Apr 10, 2005
867
0
122
I want it for my client, so people can just open a cin file. Kaori offered to let me link to her site but parsing the html can sometimes take a while with the code I've written. Would be nice to hav ea way to decode cin file therefore.
 

shorty606

Golden Oldie
Golden Oldie
Apr 10, 2005
867
0
122
Kaori u know the header, are the first 3 bytes one key and bytes 4 to 6 another?
 

DjDarkBoyZ

Dev
Golden Oldie
Aug 11, 2006
1,065
228
260
127.Ø.Ø.1
there am lost a little, then the header is not as it thought :S
what is the correct xor metod to decrypt the key or keys?
If anyone know :)

Soz for my english im learning :S
 

NickAKAVexus

Golden Oldie
Golden Oldie
Apr 16, 2005
1,427
1
145
New york
@Kaori

I was wondering why 142 was just sitting there all alone, theres 4 visible numbers first 3 make up the first key, then the 4th sits there all alone.. so I was like hm what relation could they have then I see that it puts first number, and third number and that 4th number into variables and the third number is not put into a variable. Only reason it might do this is to maybe form another key later on? so are any of these numbers the other key?

171142
240142

Hope I wasnt to confusing. :D

Key:=24057171;
Key2:=240142;
KeyFinal:=key xor 2682133139 xor key2;

edit: and on side note I just decrypted some of the numbers woot.. getting close.

More hints kaori more hints!, am I done with key part and now down to just the code to change the bytes?
Code:
Test:=MyWord[i] xor keyfinal;
 
Last edited:

NickAKAVexus

Golden Oldie
Golden Oldie
Apr 16, 2005
1,427
1
145
New york
Not that number...

BTW.. I prefer reading Hex :)

next hint is.. you need 2 keys to do xor'ing...

Would that second key for xoring be in the cin file header?

For example 4to7 bytes?

Getting stumped. -_-

And when you say I need 2 keys to xor you mean to decrypt correct:?
Test:=MyWord xor keyfinal xor keyfinal2;
 

Kaori

LOMCN MiR3 Queen!
VIP
Jun 3, 2004
3,584
38
285
Canada
more hints...

4 byte key for decrypt.
8 byte key for CRC.
there are some shiftings.
 

NickAKAVexus

Golden Oldie
Golden Oldie
Apr 16, 2005
1,427
1
145
New york
more hints...

4 byte key for decrypt.
8 byte key for CRC.
there are some shiftings.



so 4 bytes = decrypt key
after that 8 bytes = crc check..

crc check isn't needed to decrypt correct?
2361762011594361302945

Also shifting as in Shr 2?
 
Last edited:

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,966
110
310
Stoke, UK
@idabiga
pretty cool doing that in vb6, what did you use to draw the image from the bytes? I was attempting a mir2 wil viewer a while back.

I extracted all the wil files using Kaori's MIM into folders with the same file structure (I didn't even want to think about emulating MIM as it wasn't what I was after and Kaori's works fine already).

I then got the filename of the image from the map file, (used GDIPlus to load a png file up in VB6) and loaded it into a Picture box, then copied it from that picture box and placed it into another picture box at the correct co-ordinates.

Thats about the gist of it anyway :D

I have no way of hosting the files, but Shorty does have a set of them already, if she feels like hosting I certainly won't care, the more the merrier, we can all get a nice map editor :D

/Mick
 

Kaori

LOMCN MiR3 Queen!
VIP
Jun 3, 2004
3,584
38
285
Canada
no.. ok more hints...

the first 4 bytes = related to key 1 and related to file size

the next 4 bytes = related to first 4 bytes and related to data and related to offset.