S-tuner Car builder export.3dm Base64 decoding?

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Argonaut
Posts: 46
Joined: Sat Sep 27, 2014 10:24 pm

S-tuner Car builder export.3dm Base64 decoding?

Post by Argonaut »

Hi,

I was informed by someone at the Xentax forum that the .3dm model files used for these cars were just .objs encoded with base64 and I was directed to luigi's bde64 tool. However, after running it with a .bat and specifying the decode option, output file etc all i'm left with is a 54 byte file that has no 3D Data within it (obviously). Now either, this guy is either incorrect (which I don't think so as he must of downloaded the file to see the encryption method) or there really isn't any data to extract and it's further encrypted OR i'm a pillock who can't use CMD and should be dealt with accordingly. Can someone put me out of my misery? :oops:


.3dm link (the file is in the archive alongside with some necessities for the website itself which aren't needed in this case):

https://www.dropbox.com/s/kwoy7aitb57wf ... t.3dt?dl=0

EDIT: Ignore confusion below, I was using a different .3dm file from the one in the archive.
Last edited by Argonaut on Tue Oct 14, 2014 9:25 pm, edited 1 time in total.
MerlinSVK
Posts: 165
Joined: Wed Aug 13, 2014 10:00 am

Re: S-tuner Car builder export.3dm Base64 decoding?

Post by MerlinSVK »

Well

Code: Select all

bde64 d export.3dm export.obj

works. You will get 6.72MB text file, which begins with "mtllib export.mtl.o Car3_NameSpace_EngineBay_MeshName_EngineBay_EngineBay_VEtest.101.v"
Argonaut
Posts: 46
Joined: Sat Sep 27, 2014 10:24 pm

Re: S-tuner Car builder export.3dm Base64 decoding?

Post by Argonaut »

MerlinSVK wrote:Well

Code: Select all

bde64 d export.3dm export.obj

works. You will get 6.72MB text file, which begins with "mtllib export.mtl.o Car3_NameSpace_EngineBay_MeshName_EngineBay_EngineBay_VEtest.101.v"


Still get the same old 54 byte file.. maybe it's a result of 1) opening bde64 with a .bat reading

Code: Select all

cmd /k bde64.exe
or 2) The fact that the file type is still recognized as a Rhino 3D Model (from when I first tried to open it)
Two of the dumbest explanations for this happening, second one especially (I mean jesus christ :oops: ) but I can't really see what else would cause it. and a 6.72MB Text file? The guy at Xentax must be wrong then :|
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: S-tuner Car builder export.3dm Base64 decoding?

Post by aluigi »

Is your bde64 version the 0.2.3 ?
maybe add a PAUSE at the end of the bat to check if there are warnings and additional information from bde64.
Argonaut
Posts: 46
Joined: Sat Sep 27, 2014 10:24 pm

Re: S-tuner Car builder export.3dm Base64 decoding?

Post by Argonaut »

aluigi wrote:Is your bde64 version the 0.2.3 ?
maybe add a PAUSE at the end of the bat to check if there are warnings and additional information from bde64.


I am using that version, added a space then PAUSE in caps in the .bat, no difference. :( Perhaps there is an older version I can download, like it'd make a difference. Any suggestions on how to decode these then? :?:
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: S-tuner Car builder export.3dm Base64 decoding?

Post by aluigi »

If it's reading the same input file it's not possible that the output is 54 bytes.
If you want you can send me the output via PM, there it's written for sure what's the problem.
Argonaut
Posts: 46
Joined: Sat Sep 27, 2014 10:24 pm

Re: S-tuner Car builder export.3dm Base64 decoding?

Post by Argonaut »

aluigi wrote:If it's reading the same input file it's not possible that the output is 54 bytes.
If you want you can send me the output via PM, there it's written for sure what's the problem.


Sent.
MerlinSVK
Posts: 165
Joined: Wed Aug 13, 2014 10:00 am

Re: S-tuner Car builder export.3dm Base64 decoding?

Post by MerlinSVK »

This is what I got after decoding.
https://www.sendspace.com/file/m1kxaf
jessesevorg1
Posts: 5
Joined: Sat Nov 29, 2014 4:57 am

Re: S-tuner Car builder export.3dm Base64 decoding?

Post by jessesevorg1 »

I have exact same problem, i hope im doing this right since im completely new to most of this. i have a .bat file in the same location as the exe with the code: bde64 d export.3dm export.obj
And i also end up with an incredibly small file with no 3D geometry.
Help will be greatly appreciated, thanks! :D :D
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: S-tuner Car builder export.3dm Base64 decoding?

Post by aluigi »

Upload the file that gives you problems.
jessesevorg1
Posts: 5
Joined: Sat Nov 29, 2014 4:57 am

Re: S-tuner Car builder export.3dm Base64 decoding?

Post by jessesevorg1 »

Here you go, The file i get after decoding is 87 bytes. https://www.dropbox.com/s/auiqunu8frkj3 ... t.3dm?dl=0
jessesevorg1
Posts: 5
Joined: Sat Nov 29, 2014 4:57 am

Re: S-tuner Car builder export.3dm Base64 decoding?

Post by jessesevorg1 »

Any luck?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: S-tuner Car builder export.3dm Base64 decoding?

Post by aluigi »

That file is different than the others.
In my opinion it's still base64 BUT there is some obfuscation on it that avoids to decode it.
I can't figure what type of obfuscation has been used.
jessesevorg1
Posts: 5
Joined: Sat Nov 29, 2014 4:57 am

Re: S-tuner Car builder export.3dm Base64 decoding?

Post by jessesevorg1 »

ive tried many different .3dm files and i get the same problem each time
barti
Posts: 34
Joined: Sun Nov 09, 2014 2:40 pm

Re: S-tuner Car builder export.3dm Base64 decoding?

Post by barti »

Code: Select all

# S-tuner Car builder export.3dm (new format)

encryption math "-= 10"
comtype base64

get NAME basename
string NAME += ".obj"

get ZSIZE asize
math ZSIZE -= 7

idstring "3dmv002"

clog NAME 7 ZSIZE ZSIZE
jessesevorg1
Posts: 5
Joined: Sat Nov 29, 2014 4:57 am

Re: S-tuner Car builder export.3dm Base64 decoding?

Post by jessesevorg1 »

what do i do with this? :/
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: S-tuner Car builder export.3dm Base64 decoding?

Post by aluigi »

@jessesevorg1
Use it. It's a script for quickbms, don't you see it?

@barti
Great job. I'm getting older if I'm unable to see similar things :D
Argonaut
Posts: 46
Joined: Sat Sep 27, 2014 10:24 pm

Re: S-tuner Car builder export.3dm Base64 decoding?

Post by Argonaut »

barti wrote:

Code: Select all

# S-tuner Car builder export.3dm (new format)

encryption math "-= 10"
comtype base64

get NAME basename
string NAME += ".obj"

get ZSIZE asize
math ZSIZE -= 7

idstring "3dmv002"

clog NAME 7 ZSIZE ZSIZE


Barti, I thought this thread was done in for but when I come back I see this beautiful script. You are truly a god amongst men :lol: Thanks