I am having trouble reverse engineering the outgoing packet encryption for Lunia. It's especially embarrassing because it has been done before, there is debug information, and there are references within the client to "crypto/Encrypt.cpp" and EncryptKey. The latter seems to be part of simple packet structures. It should be a simple task, but I am finding myself completely lost.

My end goal is to create a packet-based, clientless bot for the game. I already have most of the received packets mapped out, I figured out the map format for the game, and I have experience with full game bots from writing pathing and more for d2jsp and a bunch of stuff for openkore. Just when it comes to tasks like this I am weak at reverse engineering things that aren't dictated solely by logic. Hilariously, I reverse engineered very similar packet encryption for Ragnaork Online a few years back, but the way I did it is not possible here because there is no activation/deactivation packet.

Is there anyone with enough interest in reverse engineering shitty cash shop kmmos to point me in the right direction or walk me through this particular step? I really doubt it, so short of that post your favorite reverse engineering tutorials/resources. Maybe throw out some ideas for ways to approach finding it? I am finding it particularly hard to get back in to, and after spending ~14 hours on this with no progress I feel like I am ramming my head in to a wall.

beats farming in a kmmo though