flat assembler
Message board for the users of flat assembler.

Index > Windows > adding windows debug info into .obj file generated fasm

Goto page Previous  1, 2, 3
Author
Thread Post new topic Reply to topic
habran



Joined: 31 Aug 2008
Posts: 82
Location: South Australia
habran
What I meant was to use disassembler to convert it and then create all beautiful "invoke" and "stdcall" and ".if" and other macro things, and of course "repare" bad codes (so that we can show that we are smarter than the computer and make an Assembler art of it), but it can be done the other way, because we have nice C++ code thanks to strap89
I actually like a reverse engineering (Paycheck movie), because I fill like a cool hacker. ReactOS is doing that with their system but they do not have source code to look at

regards
Post 17 Mar 2009, 11:34
View user's profile Send private message Reply with quote
habran



Joined: 31 Aug 2008
Posts: 82
Location: South Australia
habran
Hi revolution, I solved problem with the VC2005 Error spawning 'cmd.exe'.
(I am not that smart, I found it on the web)
solution:
Quote:

What you must do is change MSVS 2005 options (Tools menu > Options > Project and Solutions > VC++ Directories) to ensure that
$(SystemRoot)
$(SystemRoot)\System32
$(SystemRoot)\System32\wbem
are specified BEFORE $(PATH).

and now I am happy

_________________
down under
Post 17 Mar 2009, 12:42
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17667
Location: In your JS exploiting you and your system
revolution
Oh, a compiler problem. Hehe, well, thankfully, I have never used that compiler. Well done on solving the problem. Looks like the compiler doesn't know how to set it self up properly. Doesn't say much good about the automated installer from MS.
Post 17 Mar 2009, 13:15
View user's profile Send private message Visit poster's website Reply with quote
habran



Joined: 31 Aug 2008
Posts: 82
Location: South Australia
habran
You are right, but I enjoyed programing C# with it
Post 17 Mar 2009, 13:42
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
That means he has something else named cmd.exe in his PATH. Since %SystemRoot%\system32 is the first thing there. Definitely not a good idea.
Post 17 Mar 2009, 13:43
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
habran



Joined: 31 Aug 2008
Posts: 82
Location: South Australia
habran
If you have %SystemRoot%\system32 instead of $(SystemRoot)\System32
then you are in deep trouble
Post 17 Mar 2009, 13:51
View user's profile Send private message Reply with quote
onlytest2



Joined: 14 Apr 2009
Posts: 1
onlytest2
Terrible code. Real programmer's horror.
Post 15 Apr 2009, 10:58
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17667
Location: In your JS exploiting you and your system
revolution
onlytest2 wrote:
Terrible code. Real programmer's horror.
Care to elaborate please? We would all be happy to learn from you.
Post 15 Apr 2009, 11:42
View user's profile Send private message Visit poster's website Reply with quote
Dreamz



Joined: 10 Apr 2009
Posts: 25
Location: US
Dreamz
hey, im no expert(but use to be a 3D modeler), but isnt .obj a 3d model file?
Post 17 Apr 2009, 01:50
View user's profile Send private message Send e-mail Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17667
Location: In your JS exploiting you and your system
revolution
.obj could be anything. But in the programming world, .obj usually means an intermediate file that can be linked into an executable.
Post 17 Apr 2009, 02:23
View user's profile Send private message Visit poster's website Reply with quote
chenhy



Joined: 20 Oct 2009
Posts: 2
chenhy
Hi Sir:

Where can I get the pecvt.exe utility or source code of it?

Please tell me , thank you.

My email is chychen.chen@msa.hinet.net
Post 20 Oct 2009, 03:01
View user's profile Send private message Reply with quote
chenhy



Joined: 20 Oct 2009
Posts: 2
chenhy
Ok, after i Register an login account and I get all the code I need, thank you all!
Post 20 Oct 2009, 03:05
View user's profile Send private message Reply with quote
n1kt0



Joined: 20 Jul 2008
Posts: 11
Location: Ukraine
n1kt0
how can I automate this process (*.fas2pdb) in the sheaf radasm+ollydbg? Manually this process is a very slow & labor-consuming
Post 22 Nov 2009, 10:32
View user's profile Send private message Reply with quote
n1kt0



Joined: 20 Jul 2008
Posts: 11
Location: Ukraine
n1kt0
D:\1\tools>FASM.EXE -s "C:\Documents and Settings\admin\Рабочий стол\some_progra
m.fas" "C:\Documents and Settings\admin\Рабочий стол\some_program.Asm" "C:\Docum
ents and Settings\admin\Рабочий стол\some_program.obj"
flat assembler version 1.68 (1144758 kilobytes memory)
2 passes, 0.1 seconds, 1024 bytes.

D:\1\tools>pecvt.exe -v "C:\Documents and Settings\admin\Рабочий стол\some_progr
am.fas"
incorrect fas file signature

D:\1\tools>pecvt.exe -v "C:\Documents and Settings\admin\Рабочий стол\some_progr
am.fas"
incorrect fas file signature

D:\1\tools>pecvt.exe -v "C:\Documents and Settings\admin\Рабочий стол\some_progr
am.fas" "C:\Documents and Settings\admin\Рабочий стол\some_program.obj"
incorrect fas file signature

What I do wrang ?
Post 22 Nov 2009, 15:54
View user's profile Send private message Reply with quote
tooros



Joined: 22 Apr 2010
Posts: 1
tooros
i recompile pecvt with if(head.signature!=0x1A736166) and now get error Unsupported machine type
use fasm 168
Post 28 Apr 2010, 13:54
View user's profile Send private message Reply with quote
alorent



Joined: 05 Dec 2005
Posts: 201
alorent
Hello,

I'm trying to use this nice tool "pecvt.exe" on a file assembled with FASM 1.69.29 but I get "incorrect fas file signature"

I have older version of FASM 1.68 but it also says the same error.

Any help in making "pecvt.exe" to work with FASM 1.69.29?

Thanks!
Post 29 Jan 2011, 19:33
View user's profile Send private message Reply with quote
SFeLi



Joined: 03 Nov 2004
Posts: 140
SFeLi
alorent, hex-edit pecvt.exe. Search for byte sequence 66 61 73 1b and replace 1b with 1a. Or you can fix it in the source: file fas_dispatcher.cpp line 312.
Post 30 Jan 2011, 09:46
View user's profile Send private message Reply with quote
alorent



Joined: 05 Dec 2005
Posts: 201
alorent
Thanks SFeLi!!! That did the trick! Very Happy
Post 30 Jan 2011, 10:51
View user's profile Send private message Reply with quote
alorent



Joined: 05 Dec 2005
Posts: 201
alorent
Hello again,

I have seen that debug information for procedures ("proc") parameters and local variables in procedures are not added in the debug information with "pecvt".

Would it be possible to add it to the debug ouput?

Thanks!
Post 06 Feb 2011, 11:14
View user's profile Send private message Reply with quote
r88



Joined: 26 Feb 2016
Posts: 2
r88
pectv file.fas file.obj

I'm debbugin in ollydbg and reading topic after.

for pecvt15-03-09-SE:

004046C9 |. 8D77 09 LEA ESI,DWORD PTR DS:[EDI+9] ; |
004046CC |. 6A 38 PUSH 38 ; |size = 38 (56.)
004046CE |. 56 PUSH ESI ; |ptr
004046CF |. FF15 44D14000 CALL DWORD PTR DS:[<&MSVCR80.fread>] ; \fread
004046D5 |. 83C4 10 ADD ESP,10
004046D8 |. 813E 6661731B CMP DWORD PTR DS:[ESI],1B736166
004046DE |. 74 25 JE SHORT pecvt.00404705
004046E0 |. 68 98D44000 PUSH pecvt.0040D498 ; /format = "incorrect fas file signature
"
004046E5 |. FF15 A4D04000 CALL DWORD PTR DS:[<&MSVCR80.printf>] ; \printf
004046EB |. 83C4 04 ADD ESP,4
004046EE |. 68 58DC4000 PUSH pecvt.0040DC58


need for pectv 1B736166, in *.fas 1A736166
search for 813E6661731B in winhex and replace 1B on 1A
Post 26 Feb 2016, 08:10
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.