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.

meaning of instruction call $+5 in IDA Disassembly

Featured Replies

Posted

I found in IDA Disassembly an instruction

CALL $+5

Can anybody tell me the meaning of this.

I suppose it calls the instruction 5 bytes after the call instruction.

($ being the address of the next instruction after the CALL)

e.g.

0x400000: CALL $+5 ; = CALL 40000A (address of CALL + size of CALL instruction[=5] + 5 = 10 [A in hex])

0x400005:

0x40000A:

CALL $+0 would call 400005

Edited by Killboy
no maths skills :x

I don't know with IDA, but in MASM if you use the '$' operator, it is the offset of the instruction that you use it with, not the following instruction.

call $+5assembles to:00401000 $  E8 00000000       CALL 00401005

Which could be used with stuff such as code-flow obfuscation or gaining a delta value to offset references with (GetDelta offset independant code), just two examples.

HR,

Ghandi

Edited by ghandi

  • 6 months later...

In IDA, $ is beginning of same instruction (which is not the EIP which would point to the next instruction).

CALL $+5 is probably call to next instruction

x86 assembly

(based off of EIP, not IDA's $ for beginning of same instruction).

CALL near (rel32)

E8 xxxxxxxx (5 bytes)

For details, read the intel or amd manuals.

Edited by Ressa

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.