Dead lock

CTF Platform: CyberTalents
Challenge Name: Dead lock
Category: Malware Reverse Engineering
Level: Hard
Points: 200
Description:
Can you play with me?

Given a deadl0ck.rar archive, after extracting it we got 3 files:
Deadlock.exe
data.win
options.ini 


Checking files type:


It seems to be a game, lets open it and see if there is something interesting...


We got nothing, it just a game.

Trying Resource Hacker to get any interesting resource but still nothing. So let's check the data file which is data.win.

At this point I didn't know how can I edit it, so I should google it first xD

I found that there is a tool called 'UndertaleModTool' that can read and edit data.win file ..


You can find the tool [here]

Let's open it and check the data file:


From previous image I found that there are 2 rooms, room0 and Secret room,
So let's try to change their order to make Secret room open before room0...

We can drag the room from left and drop it in the list in right like that:


Now save the file, and then run the game to get the flag ;)