A3 mmorpg Wiki
(Created page with 'There is a "code phrase" which is used to decode the ULL files. That is: #### For our everlasting love. From 24 Dec, 1994. #### Ooops. Who are you? You are not sup…')
 
No edit summary
Line 2: Line 2:
   
 
That is:
 
That is:
#### For our everlasting love. From 24 Dec, 1994. #### Ooops. Who are you? You are not supposed to read this message. Please close this, Enjoy our game A3, and always be happy~~! - The Extra-Terrestrial -
+
#### For our everlasting love. From 24 Dec, 1994. #### Ooops. Who are you? You are not supposed to read this message. Please close this, Enjoy our game A3, and always be happy~~! - The Extra-Terrestrial -
   
   
Line 8: Line 8:
   
   
 
 
current = getbyte from file
 
current = getbyte from file
 
previous = current - 1
 
previous = current - 1
xorkey1 = substring(<code phrase>,ASCIICODE(previous),1)
+
xorkey1 = substring(codephrase,ascii_code(previous),1)
 
result1 = xor previous,xorkey1
 
result1 = xor previous,xorkey1
 
xorkey2 = filesize AND 0FF
 
xorkey2 = filesize AND 0FF
Line 20: Line 19:
   
   
 
And voila, your file is decoded
 
And voila! You have your file decoded
 
 
[[Category:Binary Files]]
 
[[Category:Binary Files]]

Revision as of 12:17, 8 February 2010

There is a "code phrase" which is used to decode the ULL files.

That is:

#### For our everlasting love. From 24 Dec, 1994. ####        Ooops. Who are you? You are not supposed to read this message. Please close this, Enjoy our game A3, and always be happy~~!         - The Extra-Terrestrial -


So after that we start reading the encoded file


current = getbyte from file
previous = current - 1
xorkey1 = substring(codephrase,ascii_code(previous),1)
result1 = xor previous,xorkey1
xorkey2 = filesize AND 0FF
result2 = xor result1, xorkey2
result3 = current_byte_position AND 0ff
finalchar = result2 XOR result3


And voila, your file is decoded