flat assembler
Message board for the users of flat assembler.
Index
> Main > No imports... |
Author |
|
M!kro$ 11 Nov 2004, 09:06
I whant create program whithout import section.
Now i heve adress of kernel, how i can take address functions, such as Kernel32.LoadLibrary ???? |
|||
11 Nov 2004, 09:06 |
|
polygon7 11 Nov 2004, 11:12
M!kro$ wrote: I whant create program whithout import section. Look at MASM32 package into EXAMPLES8/MOB/NOIMPORT directory (http://www.masm32.com/masmdl.htm) or read http://vx.netlux.org/lib/vlj02.html _________________ best regards p7 |
|||
11 Nov 2004, 11:12 |
|
Reverend 11 Nov 2004, 11:24
M!kro$ wrote: I whant create program whithout import section. See the sources of my program to deal with PE files. The code is in MASM, but there should be no problem to do it with FASM
|
|||||||||||
11 Nov 2004, 11:24 |
|
M!kro$ 11 Nov 2004, 11:40
Thanks polygon7 your sample work. If i use noimport function, my program can work under all windows??? And what for viruses use this tehnolies???
|
|||
11 Nov 2004, 11:40 |
|
roticv 11 Nov 2004, 11:45
It needs to have at least one import for it to work on Windows2000 (not very sure about Windows XP, though) as mentioned by wanderer
|
|||
11 Nov 2004, 11:45 |
|
Vasilev Vjacheslav 11 Nov 2004, 11:56
another way to get executable with minimal imports is using LoadLibrary and GetProcAddress api-calls
ps. kernel32.dll address can be get without any calls |
|||
11 Nov 2004, 11:56 |
|
comrade 11 Nov 2004, 14:30
if you are programming for some specific version of Windows, you can even import by ordinals
|
|||
11 Nov 2004, 14:30 |
|
vbVeryBeginner 11 Nov 2004, 17:29
hi reverend,
the agp program doesn't function inside win95 |
|||
11 Nov 2004, 17:29 |
|
Reverend 12 Nov 2004, 10:26
vbVeryBeginner wrote: the agp program doesn't function inside win95 Weird, because I checked it many times on my xp and my win98 and it worked alright. I don't have win95... so more precisely - what doesn't work for you? Thanks in advance |
|||
12 Nov 2004, 10:26 |
|
vbVeryBeginner 13 Nov 2004, 12:33
i guess pictures worth thousand words
|
|||||||||||
13 Nov 2004, 12:33 |
|
Reverend 13 Nov 2004, 21:56
Check this now
P.S: I am sending it the second time. No idea why it didn't work after the first...
|
|||||||||||
13 Nov 2004, 21:56 |
|
vbVeryBeginner 13 Nov 2004, 22:58
yup, it works now and could i know what you change in ur code (coz the second version doesn't come along with code )
|
|||
13 Nov 2004, 22:58 |
|
Reverend 13 Nov 2004, 23:12
I changed code that was to check if some function return -1. I had something like this:
Code:
test eax,eax
js _eax_equal_minus_one
Which was stupid, because on win9x the function returned something like 80xxxxxxh and on NT <7FFFFFFFh So now: AGP should work for all of you? What do you think about my biggest project ? (Unfortuantely I didn't code in FASM then ) |
|||
13 Nov 2004, 23:12 |
|
vbVeryBeginner 13 Nov 2004, 23:28
it is great
em, wanna ask your permission, could i convert it to fasm? |
|||
13 Nov 2004, 23:28 |
|
Reverend 14 Nov 2004, 17:07
vbVeryBeginner wrote: it is great Big thanks vbVeryBeginner wrote: em, wanna ask your permission, could i convert it to fasm? Of course you can. I even thought about doing it myself, but lack of time and some other things made me change decision. This prog has also many things that could be done better, so it's up to you if you change them or not. Also there could be a problem, because some code may be unreadable as it was my first bigger program in asm. Here's the fixed source code I may say this program is on some kind of GNU License so don't worry and change what you want But please just let me know when you finish
|
|||||||||||
14 Nov 2004, 17:07 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.