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.

How to define this loop in C Language from asm ?

Featured Replies

Posted

what is this loop equivalent to in C++ / C language ? 

YdOetmd.png

 

2)

what is this in reverse engineering 

mov edx, [eax+4]

or

mov edx, [eax] 

I suggest you to learn assembly language. Nobody will explain to you all the ASM syntax in a forum.

Read this one:

https://www.amazon.com/Art-Assembly-Language-Randall-Hyde/dp/1593272073/ref=sr_1_4?s=books&ie=UTF8&qid=1474894924&sr=1-4&keywords=assembly

Or start with lena151 tutorials:

https://tuts4you.com/download.php?list.17

To reply to your question:

mov edx, [eax] 

When the instruction mov edx, [eax] is executed EDX will contain the DWORD at the address pointed by EAX.

According to the picture you posted you're using IDA for disassembling,If I'm not mistaken you could just use 'F5' (if you have IDA with HexRey of course) to show code of that assembly.

for exemple:

 

 

idaq_2016-09-26_16-49-46.png

idaq_2016-09-26_16-50-08.png

int i = 36;
char *c = [eax+0x124]
while(i-- >0)
{
  *c++=0;
}

 

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.