Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: compiler and decompiler  (Read 1376 times)

0 Members and 1 Guest are viewing this topic.

Kayser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:August 23, 2006, 03:48:45 am
  • I want to build my own arcade controls!
compiler and decompiler
« on: March 19, 2006, 12:38:46 pm »
i want to extract or modify a jpeg file within a exe program after it has been compiled.
I know it's hard but i was just wondering if it is possible.
I tried reshacker,rc hunter,recstub and no results.
Thanks

RayB

  • I'm not wearing pants! HA!
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11279
  • Last login:July 10, 2025, 01:33:58 am
  • There's my post
    • RayB.com
Re: compiler and decompiler
« Reply #1 on: March 19, 2006, 01:19:11 pm »
Have you considered just doing a screen capture?
NO MORE!!

Kayser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:August 23, 2006, 03:48:45 am
  • I want to build my own arcade controls!
Re: compiler and decompiler
« Reply #2 on: March 19, 2006, 03:47:02 pm »
what i want is to modify the exe picture file.
thanks

krick

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2006
  • Last login:May 23, 2025, 03:48:36 am
  • Gotta have blue hair.
Re: compiler and decompiler
« Reply #3 on: March 19, 2006, 06:13:30 pm »
What program?

Are you positive that it has a JPEG imbedded in the exe?
Hantarex Polo 15KHz
Sapphire Radeon HD 7750 2GB (GCN)
GroovyMAME 0.197.017h_d3d9ex
CRT Emudriver & CRT Tools 2.0 beta 13 (Crimson 16.2.1 for GCN cards)
Windows 7 Home Premium 64-bit
Intel Core i7-4790K @ 4.8GHz
ASUS Z87M-PLUS Motherboard

Kayser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:August 23, 2006, 03:48:45 am
  • I want to build my own arcade controls!
Re: compiler and decompiler
« Reply #4 on: March 19, 2006, 06:58:45 pm »
Any program.
I'm not sure if it is jpeg,pcx,bitmap,etc .I might be any kind of pic format.
i tried hexedit but you just see numbers and letters.
thanks


TalkingOctopus

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1722
  • Last login:Today at 03:56:38 am
  • @!#?@!
    • My Arcade
Re: compiler and decompiler
« Reply #5 on: March 19, 2006, 07:00:51 pm »
I think jpegs all have the same header.  I opened one up and got:

ff d8 ff e0      

Also, I think they all have the same last 2 bytes:

ff d9

If you open your executable in a hex editor, you can search for the jpeg header and extract the image.  There might be some false positives though.

krick

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2006
  • Last login:May 23, 2025, 03:48:36 am
  • Gotta have blue hair.
Re: compiler and decompiler
« Reply #6 on: March 19, 2006, 07:45:51 pm »
Hmm...  if you have access to a Mac, this looks like an interesting product...
http://echoone.com/filejuicer/
Hantarex Polo 15KHz
Sapphire Radeon HD 7750 2GB (GCN)
GroovyMAME 0.197.017h_d3d9ex
CRT Emudriver & CRT Tools 2.0 beta 13 (Crimson 16.2.1 for GCN cards)
Windows 7 Home Premium 64-bit
Intel Core i7-4790K @ 4.8GHz
ASUS Z87M-PLUS Motherboard

Kayser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:August 23, 2006, 03:48:45 am
  • I want to build my own arcade controls!
Re: compiler and decompiler
« Reply #7 on: March 20, 2006, 03:36:38 am »
thanks.
I've found the file using hex editor.
i 've  replaced the image extract from the program FILE JUICER but i got an error.
How can i replace the jpeg in the hex editor without getting an error?
it is possible to decompile a exe file?
Thanks a lot  guys

youki

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1612
  • Last login:November 19, 2016, 01:07:33 pm
  • Atomic Front End Creator
    • Atomic Front End
Re: compiler and decompiler
« Reply #8 on: March 20, 2006, 06:00:58 am »
HI,

You have to use a resource Editor / or Resource Hacker. It is better than a hex editor for this kind of Thing.

there is lot of of this kind of tools on the web.   google for Resource Hacker  PE     (PE is the EXE format for windows) , you should find some.

But using that is not really legal , i think. But for you personnal use it should be ok it you don't diffuse the modified version of the Exe.



 

krick

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2006
  • Last login:May 23, 2025, 03:48:36 am
  • Gotta have blue hair.
Re: compiler and decompiler
« Reply #9 on: March 20, 2006, 11:25:20 am »
How can i replace the jpeg in the hex editor without getting an error?

I'm not sure it's possible without a lot of work.  Is the new jpeg *exactly* the same size in bytes?
Hantarex Polo 15KHz
Sapphire Radeon HD 7750 2GB (GCN)
GroovyMAME 0.197.017h_d3d9ex
CRT Emudriver & CRT Tools 2.0 beta 13 (Crimson 16.2.1 for GCN cards)
Windows 7 Home Premium 64-bit
Intel Core i7-4790K @ 4.8GHz
ASUS Z87M-PLUS Motherboard

Kayser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:August 23, 2006, 03:48:45 am
  • I want to build my own arcade controls!
Re: compiler and decompiler
« Reply #10 on: March 20, 2006, 01:33:38 pm »
I'll give it a try.
No it's not the same size in kb.
Once i edited the jpeg it increases the bytes a little bit.
Thanks for the help guys.

Kayser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:August 23, 2006, 03:48:45 am
  • I want to build my own arcade controls!
Re: compiler and decompiler
« Reply #11 on: March 20, 2006, 01:35:38 pm »
BTW i tried Resource Hacker  but no results.
All i get is the icon and the string value.
Thanks

krick

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2006
  • Last login:May 23, 2025, 03:48:36 am
  • Gotta have blue hair.
Re: compiler and decompiler
« Reply #12 on: March 20, 2006, 01:50:06 pm »
If you can't see the image using resource hacker, then it's imbedded into the file in a proprietary way.  The only way I could see that it *might* work is if the replacement image is *exactly* the same size in bytes.  And even then, the program might have some sort of CRC check on the imbedded image to make sure that someone hasn't modified it.

You could extract the image, modify it, save it at a slightly higher jpeg compression level to make sure that it's smaller than the original, then possibly use some of the jpeg header fields to pad the file to the right size in bytes.

Regardless, it's going to be a lot of work.  I sure hope what you're trying to do is really worth all the trouble.
Hantarex Polo 15KHz
Sapphire Radeon HD 7750 2GB (GCN)
GroovyMAME 0.197.017h_d3d9ex
CRT Emudriver & CRT Tools 2.0 beta 13 (Crimson 16.2.1 for GCN cards)
Windows 7 Home Premium 64-bit
Intel Core i7-4790K @ 4.8GHz
ASUS Z87M-PLUS Motherboard

Kayser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:August 23, 2006, 03:48:45 am
  • I want to build my own arcade controls!
Re: compiler and decompiler
« Reply #13 on: March 20, 2006, 02:58:14 pm »
I did extract the jpeg file using FILE JUICER for MAC OSX from the exe file.
Is there any programs that alow you to insert the modified jpeg back into the exe file?
if there is it would be great.
Once again thanks for the help.