Question: 7) Given the following code, what command-line arguments fianction gokill to be called, given that the program is called joy text 00411600 sub 4116DO proc
7) Given the following code, what command-line arguments fianction gokill to be called, given that the program is called joy text 00411600 sub 4116DO proc near xt 00411600 text 00411600 var_Co text:00411600 arg.o .text:00411600 arp 4 dword ptr-0COh dword per OCh text:00411600 text 00411600 text 004116D1 text 004116D3 text:004116EE push ebp movebp, esp sub esp, OCOh text:004116F2 text:004116F4 text 004116F9 text:004116FE text:00411701 text:00411704 text:00411707 short loe 41173F push offset ecx, (ebp arg 41 mov mov edx, [ecx eax] char" text:00411708 text:0041170D add esp test eax, eax text:00411710 text:00411712 short loc-41173F text:00411714 text:00411719 text:0041171E text:00411720 text:00411723 text:00411726 ext:00411727 ext:0041172C push offset aXorxor mov eax, 4 mov ecx, [ebp+arg 4 mov edx push edx call strcmp add esp, 8 test eax, eax jz short loc_41173F call sub_gokill char xt:00411731 mov eax, 1 jmp short loc 411741 xor eax, eax t:0041173F 0041173F t:00411741 loc_411741: 00411751 mov esp, ebp pop ebp 00411754 00411754 sub 4116DO endp 7) Given the following code, what command-line arguments fianction gokill to be called, given that the program is called joy text 00411600 sub 4116DO proc near xt 00411600 text 00411600 var_Co text:00411600 arg.o .text:00411600 arp 4 dword ptr-0COh dword per OCh text:00411600 text 00411600 text 004116D1 text 004116D3 text:004116EE push ebp movebp, esp sub esp, OCOh text:004116F2 text:004116F4 text 004116F9 text:004116FE text:00411701 text:00411704 text:00411707 short loe 41173F push offset ecx, (ebp arg 41 mov mov edx, [ecx eax] char" text:00411708 text:0041170D add esp test eax, eax text:00411710 text:00411712 short loc-41173F text:00411714 text:00411719 text:0041171E text:00411720 text:00411723 text:00411726 ext:00411727 ext:0041172C push offset aXorxor mov eax, 4 mov ecx, [ebp+arg 4 mov edx push edx call strcmp add esp, 8 test eax, eax jz short loc_41173F call sub_gokill char xt:00411731 mov eax, 1 jmp short loc 411741 xor eax, eax t:0041173F 0041173F t:00411741 loc_411741: 00411751 mov esp, ebp pop ebp 00411754 00411754 sub 4116DO endp
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
