flat assembler
Message board for the users of flat assembler.

Index > Windows > VirtualAlloc align 16 ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1878
Roman 29 Jul 2024, 08:42
I do VirtualAlloc 20 000 000 bytes
And get address.
But how align 16 this address ?
I want using see movaps.
Post 29 Jul 2024, 08:42
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20520
Location: In your JS exploiting you and your system
revolution 29 Jul 2024, 08:46
Works for me.
Code:
virtual at 0
align 16
end virtual    
Post 29 Jul 2024, 08:46
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1878
Roman 29 Jul 2024, 08:47
This not help me.
Because invoke VirtualAlloc function win api.


Last edited by Roman on 29 Jul 2024, 08:49; edited 1 time in total
Post 29 Jul 2024, 08:47
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1878
Roman 29 Jul 2024, 08:48
I needed something like this:
and esp, 0FFFFFFF0h
Post 29 Jul 2024, 08:48
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20520
Location: In your JS exploiting you and your system
revolution 29 Jul 2024, 08:51
In Windows VirtualAlloc is at page granularity. So it is aligned to 4k. 16 is a subset of 4k is it is already aligned.
Post 29 Jul 2024, 08:51
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1878
Roman 29 Jul 2024, 09:13
Its nice.
Post 29 Jul 2024, 09:13
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.