LocalSize(0)

The function LocalSize retrieves the current size of the specified local memory object, in bytes. By setting the hMem parameters with 0 will trigger an exception in a debugger that can be used as an anti-debugging mechanism.


Technique Identifier

U0128

Technique Tag

localsize

Evasion Categories

Code Snippets

Detection Rules

Additional Resources

External Links
The resources provided below are associated links that will give you even more detailed information and research on current evasion technique. It is important to note that, while these resources may be helpful, it is important to exercise caution when following external links. As always, be careful when clicking on links from unknown sources, as they may lead to malicious content.

Matching Samples 10 most recent

Sample Name Matching Techniques First Seen Last Seen
al-khaser.exe 24 2024-11-13 1 year, 4 months ago
View All

Created

April 29, 2021

Last Revised

March 24, 2026