Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Delphi Inline Asm

Featured Replies

Posted

I wonder if there is a way to hide calls i make from inlined asm?

For example if i call RDTSC regullary (every few sec's) to check if

code execution is geting too slow (usualy means: i'm being debuged)

by searching my exe for '0F 31' bytes or RDTSC command in olly

this anti-debug trick is very easy to be found.

So is there a simple way to get around this?

Regards, ChupaChu!

You could make the code self modifying so that just before the command is run, it decrypts itself. A simple XOR would do the job, and you could even choose an XOR value which turns it into another seemingly legit command.

  • Author
You could make the code self modifying so that just before the command is run, it decrypts itself. A simple XOR would do the job, and you could even choose an XOR value which turns it into another seemingly legit command.

Sounds good enough for me. I have never coded something like that.

Do You have any examples i coud take look at?

at the moment i am thinking to create a variable, lets say string with hex

code i need to encrypt. Then i would xored it with lets say 33h.. byte by

byte and create new string - now this string i can use to decypher whole

command in my exe.. ok.. i think i might be correct by now..

But how do i then make jump to that decyphered string!?

can you provide simple asm sample (to work with delphi inline)?

Thanks, ChupaChu!

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.