PeSpin MACROS Help

Just starting out? Need help? Post your questions and find answers here.
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

PeSpin MACROS Help

Post 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
        
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
sec
Enthusiast
Enthusiast
Posts: 792
Joined: Sat Aug 09, 2003 3:13 am
Location: 90-61-92 // EU or ASIA
Contact:

Post 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
Post Reply