View Full Version : Convert an assembly mnemonic to hex
alan
May 14th, 2005, 06:34
In order to use a hex editor, I need to know how to convert the replacement mnemonic into hex.
For example, I want to replace
test eax, eax
by
xor eax,eax
I know that "xor eax,eax" is "33C0", but are there any free tools that would do this conversion.
I suppose the tool would be similar to the Windows calculator, where I can type in a decimal value and convert it to hex, octal, or binary.
Regards,
Alan
arjuns
May 14th, 2005, 11:34
why don't you try writting your own code.
I thik it is simple to code..
Ricardo Narvaja
May 15th, 2005, 18:21
look in ollydbg, assemble the command you want and look the mnemonic.
Ricardo Narvaja
alan
May 16th, 2005, 04:38
Thanks Ricardo.
Each time someone answers one of my posts on this forum, I learn some more about Ollydbg.
I've spent a few weeks comparing hex editors such as HIEW, BIEW, HDD, Hackman. Some of these editors can patch files, but not memory. I didn't know Ollydbg can do both
Regards,
Alan
PhallGuy
May 25th, 2005, 19:14
This is a BAT script that I run for this type of thing. Create a file named t.asm and write all the code you want to convert, then run this cmd file.
@echo off
ml /c /coff /nologo t.asm
dumpbin /disasm t.obj
del t.obj
Libertyordeath
May 30th, 2005, 20:38
Hello for all of you who dont know there is a program called RTA that converts assembly commands to mnemonic I have uploaded it to Rapidshare here is the URL http://rapidshare.de/files/2078939/RTa_2.0.zip.html ("http://rapidshare.de/files/2078939/RTa_2.0.zip.html") its a free tool

bud_gd
June 25th, 2005, 19:01
For ALL of the need to know: Hiew will take care simply of all editing,Anyone w/ A quable to this?.
Powered by vBulletin® Version 4.2.2 Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.