In a earlier thread it was written that you could bloat your code using random bytes using a random generator at macro level.
The code below is taken from that thread. My question to this is how it's possible to implement to make it functional.

Ok, I got a prng which is real asm code. Then I need to seed it to make useful. Can this also be done at macro level?
And if my prng is real asm code will it execute from the preprocessor?
For simplicity I assume we need 32 bit (DWORD) to seed the prng with.

// CyberHeg

---------
RANDOM macro
LOCAL num
;; you favorite random number algo here...
EXITM %num
ENDM

$BLOAT macro val:REQ
_DATA segment
REPEAT val
db RANDOM AND 255
ENDM
_DATA ends
ENDM
Posted on 2002-09-23 12:37:27 by CyberHeg