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.

Explain struct in assembly?

Featured Replies

Posted

I am having trouble understanding struct in assembly from disassembly. can you please explain the code below. Disassembly pseudo code.

Thanks

enter image description here

enter image description here

well you picked a terrible example...

as those arent really a good example for referencing structs.. they're just doing the strcpy inline

as dwords.. thats why its +4, +8 and so on, with a null terminator

4 th line in the asm for example

mov dword ptr [eax] , 'orP C'

mov dword ptr [eax+4], 'marg'

infact the only struct usage you'll probably see is in the book id portion

all the rest is just filling in strings into the structs

 

Edited by evlncrn8

1) Get a basic book about assembly language. Read it and learn it. Then get a basic book about IDA disassembler. Read that too. That will answer all the questions you've asked so far on this forum and most of the questions you might ask in next few days.

2) If you're compiling your own example code to learn assembly language, disable all code optimizations in the compiler settings and enable PDB file generation. Make sure IDA loads the PDB file - it will make disassembly much more readable and understandable.

3) What you see in the disassembly screenshot, is inlined strcpy method. I don't want to repeat what's already be explained lots of times, so I'll just refer you to evlncrn8 's answer and https://reverseengineering.stackexchange.com/questions/18252/some-question-about-ida

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.