Plants vs. Zombies game analysis: a logical analysis related to the planting function

Post here (make sure thread doesn't exist first) any type of tutorials: text, images, videos or oriented discussions on specific games. No online-related discussions/posts OR warez!
Post Reply
User avatar
mochongli
Expert Cheater
Expert Cheater
Posts: 82
Joined: Wed Apr 22, 2020 7:36 pm
Reputation: 97

Plants vs. Zombies game analysis: a logical analysis related to the planting function

Post by mochongli »

Logical implementation:
Image



Simulation Implementation:

Remote injection, call planting function
Image


Analysis ideas:
By selecting plant planting to start logical analysis, it is assumed that if selected, the mark is 1 (can be other), can be planted, the mark bit can be changed to 0 (can be other), can not be planted.
Determine the existence of the above logic by scanning the memory with CE.
OD append, write the breakpoint to the hardware under the address where the flag is located, and get the assignment point.
Image
after planting
Image
Visit the breakpoint below and pay attention to the similar cmp reg/xxxx,0x1 assignment (as a judgment condition) to get the key decision point
Image
Execute down to get the planting function
Image

Analysis conclusion:
Through the analysis, through the search for the change of the flag bit, the key points of the planting function can be obtained, and then the plug-in can be compiled.
Rewrite the planting judgment logic to prevent the analysis of the address where the planting call is located.

Post Reply

Who is online

Users browsing this forum: No registered users