UnReg_Crypt 标识
UnReg_Crypt 标识可以让您选择一部分代码在仅在未注册时候运行,The Enigma Protector支持16个标识区间解密,每个标识可以单独选择部分代码,点击查看 reg_crypt 标识。
Content
Show/Hide Delphi marker content
unreg_crypt_beginXX.inc
asm
DB $EB, $08, $55, $4E, $52, $47, $43, $52, $42, $XX
end;
unreg_crypt_endXX.inc
asm
DB $EB, $08, $55, $4E, $52, $47, $43, $52, $45, $XX
end;
Show/Hide C++ marker content
unreg_crypt_beginXX.inc
__asm
{
DB 0xEB, 0x08, 0x55, 0x4E, 0x52, 0x47, 0x43, 0x52, 0x42, 0xXX
}
unreg_crypt_endXX.inc
__asm
{
DB 0xEB, 0x08, 0x55, 0x4E, 0x52, 0x47, 0x43, 0x52, 0x45, 0xXX
}
Show/Hide Visual Basic marker content
Call VarPtr("UNREG_CRYPT_BEGINXX")
Call VarPtr("UNREG_CRYPT_ENDXX")
Examples
Show/Hide Delphi marker example
uses
enigma_ide;
begin
{$I include/unreg_crypt_begin1.inc}
if EP_RegLoadAndCheckKey then
begin
MessageBox(0, 'Application is registered!'#13#10 +
'The registration key created with the Unlock Section #1 disabled!'#13#10 +
'Marker unreg_crypt1 is deciphered', 'Application', 0);
end else
begin
MessageBox(0, 'Application is not registered!'#13#10 +
'Marker unreg_crypt1 is deciphered', 'Application', 0);
end;
{$I include/unreg_crypt_end1.inc}
{$I include/reg_crypt_begin1.inc}
MessageBox(0, 'Application is registered!'#13#10 +
'The registration key created with the Unlock Section #1 enabled!'#13#10 +
'Marker reg_crypt1 is deciphered', 'Application', 0);
{$I include/reg_crypt_end1.inc}
end.
Show/Hide C++ marker example
#include "include/enigma_api.h"
#pragma link "include/enigma_ide.lib"
BOOL TestMarkers () {
#include "include\unreg_crypt_begin1.inc"
if (EP_RegLoadAndCheckKey()){
MessageBox(0, "Application is registered!\n\rThe registration key created with the Unlock Section #1 disabled!\n\rMarker unreg_crypt1 is deciphered", "Application", 0);
} else {
MessageBox(0, "Application is not registered!\n\rMarker unreg_crypt1 is deciphered", "Application", 0);
};
#include "include\unreg_crypt_end1.inc"
#include "include\reg_crypt_begin1.inc"
MessageBox(0, "Application is registered!\n\rThe registration key created with the Unlock Section #1 enabled!\n\rMarker reg_crypt1 is deciphered", "Application", 0);
#include "include\reg_crypt_end1.inc"
return TRUE;
Show/Hide Visual Basic marker example
Call VarPtr("UNREG_CRYPT_BEGIN1")
MsgBox "Application is unregistered or key does not unlock Section #1!"
Call VarPtr("UNREG_CRYPT_END1")
Call VarPtr("UNREG_CRYPT_BEGIN2")
MsgBox "Application is unregistered or key does not unlock Section #2!"
Call VarPtr("UNREG_CRYPT_END2")
Call VarPtr("UNREG_CRYPT_BEGIN3")
MsgBox "Application is unregistered or key does not unlock Section #3!"
Call VarPtr("UNREG_CRYPT_END3")
Call VarPtr("UNREG_CRYPT_BEGIN4")
MsgBox "Application is unregistered or key does not unlock Section #4!"
Call VarPtr("UNREG_CRYPT_END4")
Call VarPtr("UNREG_CRYPT_BEGIN5")
MsgBox "Application is unregistered or key does not unlock Section #5!"
Call VarPtr("UNREG_CRYPT_END5")
MsgBox "If you did not see any message then this application is registered and key unlocks sections #1, #2, #3, #4 and #5!"
可以在安装目录下 Examples\UnRegCryptMarkers 子文件夹里查看更多实例