当前位置:网站首页>Reverse Analysis Practice 2
Reverse Analysis Practice 2
2022-07-30 03:59:00 【Chicken Island~】
1. Reverse analysis of game windowing function
Trigger condition: add -window
to the game propertiesThe debugger attaches the game to run, and starts to analyze
Guess: The game implements windowing and must determine whether there is **-window** in the command line parameters, and obtain this parameterInformation can be obtained in two ways(1) WindowApi:GetCommandLineA(2) PEB structureEvidence: Set a breakpoint at the GetCommandLineA function and run the game.

Guess: According to msdn, the function of this function is Retrieves the command-line string for the current process and The return value is a pointer to the command-line string for the current process..The next step should be to cut the string, then compare, and the character constants are placed in the constant area, we can locate the constant area by string searchstrong>where is window
usedReverse analysis
task1: Get [the game's command line characters through Win32APIString ] to [EAX]task2: [exe absolute path in the split string], [parameter ] to [stack] to [register]task3: Use while and if statements to determine whether the command line isNot in debug mode, ebp=1 means not in debug mode
Continue to execute backwards and find that we have come to a familiar place, yes!This is where we last analyzed screen resolution.Guess: After observing the code, guess 0 means windowed, 1 means full screen mode
Empirical evidence: Re-run the game without -winow, and set a breakpoint at this place
Following:

Make patch, copy to executable:
new question: windowing function is implemented, why does the screen resolution 1920×1080 patch fail
Guess: screen resolution handling is different in full screen mode and window mode
Reverse analysis: based on the analysis of the previous resolution, analyze again on this basis


Evidence: By analyzing the data flow of local variables, we only need to modify the source of the data
- Summary:
The breakthrough to locate where you want to analyze:(1) WinddowAPI: Which WindowAPI will be called in this place,(2) String lookup: is there any string used in this place?
边栏推荐
- Alibaba search new product data API by keyword
- The curl command to get the network IP
- Flink学习第一天——什么是批量、流式计算?
- 运行时间监控:如何确保网络设备运行时间
- 弘玑再度入围Gartner 2022 RPA魔力象限并实现位置大幅跃升
- Taobao/Tmall get Taobao store details API
- Drools (7): WorkBench
- The difference between BGP room and ordinary room in Beijing
- Flutter records and learns different animations (1)
- LeetCode 114. Expand Binary Tree into Linked List (One Question Three Eats)
猜你喜欢

Operational configuration: How to run multiple EasyCVR programs as a service in one server?

小程序毕设作品之微信积分商城小程序毕业设计成品(6)开题答辩PPT

Mini Program Graduation Works WeChat Points Mall Mini Program Graduation Design Finished Work (7) Interim Inspection Report

骁龙7系芯片表现如何?Reno8 Pro佐证新一代神U

小程序毕设作品之微信二手交易小程序毕业设计成品(8)毕业设计论文模板

WeChat second-hand transaction small program graduation design finished works (8) graduation design thesis template

Organizations Going Online: A New Trend in Organizational Digital Transformation

Pytorch框架学习记录2——TensorBoard的使用

小程序毕设作品之微信二手交易小程序毕业设计成品(2)小程序功能

小程序毕设作品之微信二手交易小程序毕业设计成品(5)任务书
随机推荐
RRU, BBU, AAU
OpenFeign implementation downgrade
对均匀采样信号进行重采样
Nacos cluster partition
ospf 综合实验(重发布,特殊区域)
Mini Program Graduation Works WeChat Second-hand Trading Mini Program Graduation Design Finished Work (2) Mini Program Function
Pytorch framework learning record 1 - Dataset class code combat
Mini Program Graduation Works WeChat Second-hand Trading Mini Program Graduation Design Finished Works (4) Opening Report
智能答题功能,CRMEB知识付费系统必须有!
Nacos namespace
Anti-shake and throttling
Mini Program Graduation Works WeChat Second-hand Trading Mini Program Graduation Design Finished Works (5) Task Book
Mini Program Graduation Works WeChat Points Mall Mini Program Graduation Design Finished Products (3) Background Functions
Reverse Theory Knowledge 3 [UI Modification]
Process priority nice
新型LaaS协议Elephant Swap给ePLATO提供可持续溢价空间
Gateway routing gateway
The curl command to get the network IP
Pytorch framework learning record 7 - convolutional layer
Usage of exists in sql