Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9237591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:34:06+00:00 2026-06-18T07:34:06+00:00

I am sorry i know this is a really noobish question but can someone

  • 0

I am sorry i know this is a really noobish question but can someone see this code and explain what this code is supposed to do, and delphi 7 keeps giving me error on the line begin stating expecting : or ,

{$IFDEF CRYPT_BLOCK}
  nested blocks not allowed!
{$ENDIF}
{$DEFINE CRYPT_BLOCK}
{$IFOPT O+}
  {$DEFINE SAVE_OPT}
{$ENDIF}
{$O-}
{$IfNDef UNSAFE_CRYPT}
begin
{$ENDIF}
asm db   $EB, $06, $EB, $FC, $EB, $FC, $FF, $F8 end;

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T07:34:08+00:00Added an answer on June 18, 2026 at 7:34 am

    Step-by-step;

    {$IFDEF CRYPT_BLOCK}
      nested blocks not allowed!
    {$ENDIF}
    

    I assume this code is somehow {$INCLUDE}-ed. This code doesn’t want to be included twice, so it will (later) define the precompiler symbol CRYPT_BLOCK; The code above tests if the symbol is defined {$IFDEF CRYPT_BLOCK} and if it is then it does something that’s not going to compile (nested blocks not allowed!). When the programmer sees that she’s going to know she {$INCLUDE} -ed this stuff twice.

    {$DEFINE CRYPT_BLOCK}
    

    This defines the symbol that’s tested with the block above. If the compiler got here without complaints then the symbol hasn’t already been defined.

    {$IFOPT O+}
      {$DEFINE SAVE_OPT}
    {$ENDIF}
    

    Checks whether compiler optimization is enabled. If it is then the symbol SAVE_OPT is defined, so that the compiler option can be restored. When we see this we assume the code is going to change the {$O} compiler option.

    {$O-}
    

    Sure enough, optimization is now disabled.

    {$IfNDef UNSAFE_CRYPT}
    begin
    {$ENDIF}
    

    If the symbol UNSAFE_CRYPT is not defined then let the compiler see a begin keyword.

    asm db   $EB, $06, $EB, $FC, $EB, $FC, $FF, $F8 end;
    

    This is just a bit of scary assembler code; Someone’s idea of “obfuscating” code; Not a very good idea. The first two bytes ($EB, $06) is a relative jump to exactly after all this code. In other words, you could include this series of assembly almost anywhere, the CPU will simply jump over it. Then follows a weird series of jumps, the second $Eb $FC is actually a jump to where the first jump would be, and so one. The final two bytes ($FF, $F8) don’t actually make any sense (they’re not valid Intel x86 instructions) so I assume that’s ome kind of payload.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

sorry, I know this question might be too common, but I really couldn't figure
Sorry, I know this question is easy, but I don't know how to get
Sorry that I can't find the answer through google - But I know this
sorry for this question, but i dont know where to search for it, or
Sorry for the beginner question, but I can't figure out cProfile (I'm really new
I really don't know it this question fits stackoverflow and so sorry if it
I know this is a lot of code but I really need help making
Sorry but this is really confusing me and I know the answer is staring
I know this has a stupid solution but, sorry, I'm little bit confused. I
sorry, i know this lots on this topic, but i couldnt find one where

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.