Question: What is the Assembly code doing ? I've been working on this for days can't figure out what code does. Dump of assembler code for

What is the Assembly code doing ?

I've been working on this for days can't figure out what code does.

What is the Assembly code doing ? I've been working on this

Dump of assembler code for function func4: => 0x0000000000400fe2 : sub mov sub mov shr $0x8, % rsp %edx, %eax %esi,%eax %eax, %ecx $0x1f, %ecx %ecx, %eax %eax (erax,ersi,1),%ecx 0x0000000000400fe6 : 0x0000000000400fe8 : 0x0000000000400fef 0x0000000000400ff1 ; 0x0000000000400ff3 ; 0x0000000000400f16 +20> : cmp %edi,%ecx 0x0000000000400ff8 : jle 0x401006 0x0000000000400ffa 0x0000000000400ffd ; 0x0000000000401002 : 0x0000000000401004 :jmp0x40101b : 0x000000000040100b : 0x000000000040100d ; 0x0000000000401012 : callq 0x400fe2 0x0000000000401017 0x000000000040101b add $0x8,srsp 0x000000000040101f sar lea lea callg add -0x1 ( %rcx),%edx 0x400fe2 %eax, %eax $0x8, %eax %edi, %ecx mov cmp lea x1(srcx),sesi lea 0x1(srax,srax,1),seax ret

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!