Closed rjzak closed 3 years ago
I guess you need: https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#section-table-section-headers Is your code public?
We have just released PE32 and PE32+ support in version 1.4.0.
Please note that we currently only output MASM assembly syntax so reassembly should be done with ML
and ML64
.
For example,
ddisasm --asm test.asm test.exe
ml64 test.asm /link /subsystem:console /entry:__EntryPoint
Thanks again!
Is it possible to get updated windows binaries built? i.e. replacements for these? https://grammatech.github.io/gtirb/pkgs/windows-release/
Yeah building it yourself is a painful experience.
Please note that we currently only output MASM assembly syntax so reassembly should be done with
ML
andML64
.
Is it possible to get updated windows binaries built? i.e. replacements for these? https://grammatech.github.io/gtirb/pkgs/windows-release/
We are working on the first tagged release of ddisasm now! This should include Windows binary builds.
I have not used uasm yet. Very interested, thank you.
Yeah building it yourself is a painful experience.
Please note that we currently only output MASM assembly syntax so reassembly should be done with
ML
andML64
.
Or perhaps llvm-ml
Please note that we currently only output MASM assembly syntax so reassembly should be done with
ML
andML64
.
It did make a few mistakes:
error A2008: syntax error : pushal
error A2008: syntax error : popal
error A2152: coprocessor register cannot be first operand : fdivr ST(0)
Should be pushad
/popad
and fdivr ST(0),ST(0)
(D8 F8).
And there are false positives where it identified RGB data in the resource section as references:
_RSRC SEGMENT
ALIGN 16
...
BYTE 077H
BYTE 077H
BYTE 077H
BYTE 000H
DWORD $L_6b6b6b
DWORD $L_5f5f5f
DWORD $L_535353
BYTE 047H
BYTE 047H
BYTE 047H
BYTE 000H
I was trying to create a PE32 parser modeled after the ELF parser, but got caught up with trying to figure out the PE32 equivalents of:
I'm not familiar with this project, and this is probably a feature best left to those who are.