Page 1 of 1

PeSpin MACROS Help

Posted: Sat Aug 20, 2005 3:28 pm
by Num3
PeSpin (an executable packer / criptor) support Macro code to encript zones in you code, i've converted it a bit, but i need help on this one to convert the MASM code into FASM code ;)

PeSpin home:
http://pespin.w.interia.pl/


Can anyone help ???

Code: Select all

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;CRYPT_markers
;this macro is for define start of block for encryption (it will decoded before use and encrypted again after use)

        !macro CRYPT_START
        !{
       	!db	0EBh,08h
       	!db	6 dup(0FCh)
       	!db	27h,54h
        !}
        
        !macro CRYPT_END
        !{
        !db	0EBh,08h
        !db	6 dup(0FDh)
        !db	54h,37h
        !}
        
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

!CRYPT_START
MessageRequester("Hi!", "I'm encripted inside the code!")
!CRYPT_END

MessageRequester("Hum...", "I'm not encripted ;)")
The original code in the include:

Code: Select all

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;CRYPT_markers
;this macro is for define start of block for encryption (it will decoded before use and encrypted again after use)

        CRYPT_START	macro
       	db	0EBh,08h
       	db	6 dup(0FCh)
       	db	27h,54h
        endm

        CRYPT_END macro
        db	0EBh,08h
        db	6 dup(0FDh)
        db	54h,37h
        endm
        
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Posted: Sat Aug 20, 2005 4:21 pm
by sec
Look good but it will compile IF
replace

Code: Select all

!db   6 dup(0FCh) 
by

Code: Select all

!db 0FCh,0FCh,0FCh,0FCh,0FCh,0FCh