Jump to content
Tuts 4 You
CodeExplorer

Change of ImageBase in code section - MASM disassembler??

Rate this topic

Recommended Posts

CodeExplorer

On x64 there is no need for fixing code section, so all worked ok.
For x32 I have to change ImageBase (rebase) for code section.
For doing that I have disassemble code section or at last parse instruction and add its size,
then check for instructions I wanna fix, is there any MASM disassembler with source code?
 

Share this post


Link to post
Share on other sites
evlncrn8

why is masm a criteria ? ...

just use beaengine / distorm or similar to do the disassembly, you dont need the source, (even thougth it is available)

Share this post


Link to post
Share on other sites
CodeExplorer

My project is in MASM (that's the reason!)
Also source code needed since I wanna change some thing like getting relative address where is the dword to be fixed!

Thanks for your help!
 

Edited by CodeCracker (see edit history)

Share this post


Link to post
Share on other sites
evlncrn8

well masm can just call and load from any lib when linked, so just grab beaengine (easiest), look at its diassm struct and just process the structs on the disasm, its relatively easy and pretty quick and the structs would contain the dword you're looking for etc.. just grab it, read the doc, learn the struct, i think theres masm examples too

 

http://beatrix2004.free.fr/BeaEngine/index1.php

Edited by evlncrn8 (see edit history)

Share this post


Link to post
Share on other sites
CodeExplorer

Great news, I was able to build that myself, it taked me  a while.
The project is named gBurnerx32Mount,
you can get the source code and other nice projects from:
https://gitlab.com/CodeCracker
https://github.com/CodeCrackerSND
https://bitbucket.org/CodeCrackerSND/

 

Edited by CodeCracker (see edit history)
  • Like 4

Share this post


Link to post
Share on other sites
evlncrn8

nice one, congrats

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...