Untitled

 avatar
unknown
c_cpp
8 days ago
2.2 kB
4
Indexable
{
	auto CG_ClientModel_RuntimeData = []() -> address_t {
		auto address = mem::find_ida_sig(NULL, { XOR("49 8d 8f ? ? ? ? 42 c6 84 3e") });
		if (address == nullptr)
			return {};

		auto instruction = zydis::decode(address);
		if (instruction.mnemonic == ZYDIS_MNEMONIC_LEA && instruction.operands[1].mem.disp.has_displacement)
			return address_t(instruction.operands[1].mem.disp.value);

		return address;
		};

	Settings::mem.scriptable.CG_ClientModel_RuntimeData = CG_ClientModel_RuntimeData();
	if (log == 1)
		log::NotePad(XOR("CG_ClientModel_RuntimeData"), CG_ClientModel_RuntimeData());
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

{
	auto LUI_DataBinding_Interactions_GetLootItemFromScriptableIndex = []() -> address_t {
		auto address = mem::find_ida_sig(NULL, XOR("E8 ? ? ? ? 48 85 C0 74 20 48 8B 10 48 8B CE E8 ? ? ? ? B8 ? ? ? ? 48 8B 5C 24 ? 48 8B 74 24 ? 48 83 C4 20 5F C3"));
		if (address == nullptr)
			return {};


		return address.self_jmp(1);
		};

	Settings::mem.scriptable.LUI_DataBinding_Interactions_GetLootItemFromScriptableIndex = LUI_DataBinding_Interactions_GetLootItemFromScriptableIndex();
	if (log == 1)
		log::NotePad(XOR("LUI_DataBinding_Interactions_GetLootItemFromScriptableIndex"), LUI_DataBinding_Interactions_GetLootItemFromScriptableIndex());
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

{
	auto scriptable_id = []() -> address_t {
		auto address = mem::find_ida_sig(NULL, { XOR("") });
		if (address == nullptr)
			return {};

		auto instruction = zydis::decode(address);
		if (instruction.mnemonic == ZYDIS_MNEMONIC_MOV)
			return address_t(instruction.operands[0].mem.disp.value);

		return address;
		};

	Settings::mem.scriptable.scriptable_id = scriptable_id();
	if (log == 1)
		log::NotePad(XOR("scriptable_id"), scriptable_id());
}
Leave a Comment