The Stack and ESP in Assembly Language - What happens when you call a procedure?

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2024

Комментарии • 39

  • @ArunaSrivastava-xb5eq
    @ArunaSrivastava-xb5eq Год назад +9

    This was one of the most thoughtful, well prepared videos on assembly I have ever seen. You have a real knack for explaining this content visually. Thank you!

  • @pavolpanisz3251
    @pavolpanisz3251 2 года назад +7

    Thank you very much for this. I watched 2-3 videos prior to this one, but yours made it click. Especially because you gave multiple analogies (the deck of cards one being my favorite) to explain the same thing - this approach really makes a person understand the topic by having to think about what all the analogies have in common.

  • @kellyshields3392
    @kellyshields3392 9 месяцев назад +1

    This was hurting my brain yesterday but you made it click! Thanks! :)

    • @Boneplayer123
      @Boneplayer123  9 месяцев назад +2

      I’m glad! Can’t tell you how much time I spent banging my head against the desk before it clicked for me

  • @elecmayte4267
    @elecmayte4267 Год назад

    thank you, It was very hard to find a video that actually explains this correctly.

  • @techtechlearn3438
    @techtechlearn3438 2 года назад +3

    Great video !!! Indeed there aren't other videos that explain the concept well enough, that's why I thank you a lot!! :)

  • @hodayfa000h
    @hodayfa000h Месяц назад +2

    I went to a few videos, they sucked, went to copilot, it explained it nicely... but sucked, yours is good

    • @Boneplayer123
      @Boneplayer123  Месяц назад +2

      Thanks! It's my only instructional video and only made it because I too couldn't find it anywhere else. Glad it was useful!

  • @sayanhalder6470
    @sayanhalder6470 3 месяца назад

    The best vdo. U explained so simply and easlily. I was looking for this for months 😅

  • @alexandrumarcel3696
    @alexandrumarcel3696 2 месяца назад

    it's good to mention that this could vary depending on what calling convention (__stdcall, __cdecl, __fastcall) and CPU architecture (x86, x64) you are using

  • @miguelmendez241
    @miguelmendez241 2 месяца назад

    Best explanation ever!

  • @AD-wg8ik
    @AD-wg8ik Месяц назад

    Yes this definitely helped visualize. Thanks

  • @robsawyer8034
    @robsawyer8034 6 месяцев назад

    Well done. Excellent explanation

  • @gristlelollygag
    @gristlelollygag 4 месяца назад

    Great video, wish you went into recursion

  • @effsixteenblock50
    @effsixteenblock50 7 месяцев назад +1

    What were the ESP and EBP doing through all of this?

  • @hansqid
    @hansqid 11 месяцев назад

    thank you so much! although at first i kinda had a headache but rb i understand

  • @ZettaiKatsu2013
    @ZettaiKatsu2013 5 месяцев назад

    I just want to say to people who don't get why SP changes : Every push and pop is implicitely modifiying SP, the person writing instruction doesn't need to manage it in this case.

  • @kyledrewes6552
    @kyledrewes6552 Год назад

    This was a good video thank you. Do you have have any videos on what the EBP does? Thanks

  • @gurpreetkhamba5399
    @gurpreetkhamba5399 Год назад

    educational, although I was looking for EBP basics.

  • @rigbyb
    @rigbyb 2 года назад

    Very well explained thank you

  • @ezaki6576
    @ezaki6576 11 месяцев назад

    well done dude!

  • @tobiasschwarz6021
    @tobiasschwarz6021 Год назад

    Strong Vid, Bro!

  • @deedewald1707
    @deedewald1707 2 года назад

    Very useful and detailed thanks !

  • @tsunningwah3471
    @tsunningwah3471 8 месяцев назад

    when you pop, does the value goes to eip by default

  • @vortex_7574
    @vortex_7574 3 года назад

    Same boat as you, mate! But this helped!

  • @MFXScript
    @MFXScript Год назад

    What any amazing video thanks!

  • @-boiadeiro-
    @-boiadeiro- 2 года назад

    wow nice explanation

  • @ion4497
    @ion4497 Год назад +1

    great !!

  • @AKKJ420
    @AKKJ420 3 месяца назад

    I wish you made more videos

    • @Boneplayer123
      @Boneplayer123  2 месяца назад

      I wish I stuck with low level programming! Started doing detection development instead. Now I make videos at www.youtube.com/@DailyDecrypt

  • @edevaaao
    @edevaaao 3 года назад

    Very useful thanks !

  • @gtamta4190
    @gtamta4190 2 года назад

    what happen if we push another register in to stack when program executing the call function , at that point stack pop out that we push into the stack to EIP register ? if it does what happen to program executing instruction ?

    • @MFXScript
      @MFXScript Год назад

      Call macro already pushes return address for you. If you push another address before call macro. It will execute it arg1 and stack will corrupt. If you want to push custom address for return,you must do push return address then jmp function location. This is which is equal to a call macro. But keep in mind there is a high change custom return address will crash program. You need to adjust that.

  • @mqasimkhan6920
    @mqasimkhan6920 Год назад

    thanks alot man

  • @emilyem9685
    @emilyem9685 3 года назад

    Thanks a lot!

  • @phanhoangnam699
    @phanhoangnam699 2 года назад

    very useful

  • @nandorbacso4625
    @nandorbacso4625 Год назад

    What does add/sub esp, hexValue do?

    • @Baebon6259
      @Baebon6259 8 месяцев назад

      convert the hex value to decimal value then subtract (sub) that decimal value from esp or add that decimal value to esp.

  • @echohuang3158
    @echohuang3158 2 года назад

    Thank you so much man you save my ass!