flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 23 Sep 2023, 15:36
The hex bytes in the ENTRYPOINT tag look like code.
Code: push 0 ; 6a00 call ... ; ff15 |
|||
![]() |
|
FlierMate7 23 Sep 2023, 15:58
revolution wrote: The hex bytes in the ENTRYPOINT tag look like code. You're right, I guess it is signatures used to detect the version of FASM used to assemble the program? But the CFF Explorer is wrong. My COLORDUMP.asm code coincidentally meet the code pattern 0x6A XX FF 15: Code: start: push -11 call [GetStdHandle] Code: L_00402000: push -0xb L_00402002: call [0x403060] And it was reported as FASM 1.3. ![]() Now if I assemble a dummy program: Code: entry $ mov ax, 1 ret The File Info will say "No match found" even it was assembled by FASM. What an inaccurate way to read signature. ![]() But I understand that CFF Explorer has not been updated since long ago.... maybe should try PE-bear.
|
||||||||||
![]() |
|
FlierMate7 23 Sep 2023, 16:10
Another signature example used in CFF Explorer to detect Dev-C++ v5:
Code: <ENTRY> <NAME>Dev-C++ v5</NAME> <COMMENTS> </COMMENTS> <ENTRYPOINT> </ENTRYPOINT> <ENTIREPE>5589E583EC146A??FF15??????00????????????????????????????00000000</ENTIREPE> </ENTRY> ...which is... Code: 0: 55 push ebp 1: 89 e5 mov ebp,esp 3: 83 ec 14 sub esp,0x14 6: 6a .byte 0x6a Is this how rich header in PE file should behave? |
|||
![]() |
|
revolution 23 Sep 2023, 16:50
The Rich Header is an MS link.exe undocumented format. So it can be literally anything and we wouldn't know if that is how "should behave" unless you can convince MS to say something about it.
The only "signature" fasm leaves in an MZ header is the DOS stub code. It isn't a real signature. It is just that fasm uses the same stub for all PE outputs. You can change the stub to anything of your liking. Tools that try to guess the compiler with heuristics can't be 100% accurate. Anyone can create a unique file with no recognised patterns. |
|||
![]() |
|
FlierMate7 23 Sep 2023, 17:13
Thanks for your useful info, revolution.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.