Import scrips to decompile web exe files

General discussion about Atmosphir.
User avatar
markb
New Member
Posts: 5
Joined: October 4th, 2014, 11:38 pm

Import scrips to decompile web exe files

Postby markb » July 22nd, 2016, 10:09 pm

Unity Web Player (unity3d files) (script 0.2)
# thanks to Chipicao for additional info
# script for QuickBMS http://quickbms.aluigi.org

endian big
comtype lzma86head
idstring "UnityWeb"
get DUMMY long
get VER1 byte
get VER2 string
get VER3 string
get SIZE long
get DUMMY short # not supported at the moment
get OFFSET short

get DUMMY long
get ENTRIES long
for i = 0 < ENTRIES # last entry remain saved
get ZSIZE long
get SIZE long
next i
get LAST_OFFSET long
get DUMMY byte

get NAME filename
string NAME += "_unpacked"
#unpacker only
#clog NAME OFFSET SIZE SIZE
set PATH string NAME

clog MEMORY_FILE OFFSET ZSIZE SIZE
get FILES long MEMORY_FILE
for i = 0 < FILES
get NAME string MEMORY_FILE
get OFFSET long MEMORY_FILE
get SIZE long MEMORY_FILE
set FNAME string PATH
string FNAME += /
string FNAME += NAME
log FNAME OFFSET SIZE MEMORY_FILE
next i

User avatar
markb
New Member
Posts: 5
Joined: October 4th, 2014, 11:38 pm

Re: Import scrips to decompile web exe files

Postby markb » July 22nd, 2016, 10:10 pm

# Unity Engine assets extractor (script 0.2.4)
# written by aluigi
# type distinction, split files combining and sound resource retrieval by AlphaTwentyThree
#
# It supports the following versions and probably others:
# 6 used in Unity ??? (probably 2.x)
# 8 used in Unity 3.x
# 9 used in Unity 4.x
# 0xe used in Unity 5.x
#
# Press 'r' when QuickBMS will ask you to overwrite existent files!
# That's necessary because some resources have the same name
#
# The script will extract the resources in folders having the file type as name
# so it's more easy to edit and identify the files of the same type
#
# script for QuickBMS http://quickbms.aluigi.org

math GUESS_NAMES = 1 # set to 0 to avoid possible rare problems
# or if you are sure that there are no names

quickbmsver "0.6.7"

# from my tests:
# - all the mainData are nameless
# - only some *.assets are nameless
# I have not found a point where it's written if a resource is nameless or not
get FULL_NAME filename
if FULL_NAME == "mainData"
math GUESS_NAMES = 0
endif

get EXT extension
if EXT == "split0"
callfunction combine_splits 1
open FDSE BNAME
endif

endian big

getdstring SIGN 8
if SIGN == "UnityRaw"
get ZERO long
get DUMMY byte
get VERSION_STRING string
get VERSION_STRING string
for x = 0 < 9
get DUMMY long
next x
get ENTRIES byte
savepos BASE_OFF

User avatar
bionicnacho
Administrator
Posts: 5679
Joined: October 30th, 2012, 7:11 am
Contact:

Re: Import scrips to decompile web exe files

Postby bionicnacho » July 23rd, 2016, 9:26 pm

What exactly is this for? What's it supposed to do?

Probably would be a good idea to describe what you're posting first before just dumping a script here.
Image


Return to “Atmosphir General”

Who is online

Registered users: No registered users