Skip to content

Commit

Permalink
Update addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
psiberx committed Dec 3, 2022
1 parent 54485e4 commit 9be1a79
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
13 changes: 11 additions & 2 deletions src/Red/Addresses.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

// Generated by cp77ida.py on 2022-11-08 for Cyberpunk 2077 v.1.61
// Generated by cp77ida.py on 2022-12-03 for Cyberpunk 2077 v.1.61
// DO NOT MODIFY. USE tools\ida\scan.py TO GENERATE THIS FILE.

#include <cstdint>
Expand All @@ -14,21 +14,30 @@ constexpr uintptr_t IsMainThread = 0x142B970C0 - ImageBase; // 83 3D ? ? ? ? 0

constexpr uintptr_t AppearanceChanger_ComputePlayerGarment = 0x141C4BD00 - ImageBase; // 48 89 5C 24 08 48 89 74 24 10 48 89 7C 24 18 4C 89 64 24 20 55 41 56 41 57 48 8D 6C 24 C0, expected: 1, index: 0

constexpr uintptr_t AppearanceChangeRequest_LoadEntityTemplate = 0x141C40D40 - ImageBase; // 48 89 5C 24 18 48 89 74 24 20 55 57 41 56 48 8D 6C 24 B9 48 81 EC C0 00 00 00 45 32 F6 48 8B F9, expected: 1, index: 0

constexpr uintptr_t AppearanceNameVisualTagsPreset_GetVisualTags = 0x1417AC560 - ImageBase; // 48 89 74 24 18 48 89 54 24 10 57 48 83 EC 40 49 8B F8 48 8D 54 24 20 4C 8D 44 24 58 48 83 C1 40 49 8B F1, expected: 1, index: 0

constexpr uintptr_t AppearanceResource_FindAppearanceDefinition = 0x141000690 - ImageBase; // 48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 57 41 56 41 57 48 83 EC 20 48 8B F1 45 8B F9 48 81 C1 F0 00 00 00 49 8B D8 4C 8B F2, expected: 1, index: 0

constexpr uintptr_t AttachmentSlots_InitializeSlots = 0x141653B00 - ImageBase; // 48 8B C4 55 57 48 8D 68 B8 48 81 EC 38 01 00 00 83 7A 0C 00 48 8B FA, expected: 1, index: 0
constexpr uintptr_t AttachmentSlots_IsSlotEmpty = 0x14165C220 - ImageBase; // 48 89 5C 24 08 48 89 74 24 10 57 48 83 EC 20 48 8B F1 48 8B DA 48 81 C1 00 01 00 00, expected: 4, index: 1
constexpr uintptr_t AttachmentSlots_IsSlotSpawning = 0x14165C2D0 - ImageBase; // 48 89 5C 24 08 48 89 74 24 10 57 48 83 EC 20 48 8B F1 48 8B DA 48 81 C1 00 01 00 00, expected: 4, index: 2

constexpr uintptr_t Entity_GetComponents = 0x14104AEC0 - ImageBase; // 48 83 C1 70 E9, expected: 7, index: 1
constexpr uintptr_t Entity_ReassembleAppearance = 0x141046960 - ImageBase; // 40 55 53 56 57 41 54 41 55 41 56 41 57 48 8D 6C 24 88 48 81 EC 78 01 00 00 4C 8B EA 49 8B D9, expected: 1, index: 0

constexpr uintptr_t EntityTemplate_FindAppearance = 0x141067000 - ImageBase; // 40 53 48 83 EC 20 48 8B D9 48 85 D2 74 ? 48 3B 15 ? ? ? ? 75 ? 48 8B 51 60 48 3B 15 ? ? ? ? 48 89 7C 24 30 75, expected: 1, index: 0

constexpr uintptr_t FactoryIndex_LoadFactoryAsync = 0x141058990 - ImageBase; // 48 89 5C 24 18 55 56 57 41 56 41 57 48 8D 6C 24 C9 48 81 EC A0 00 00 00 45 33 FF 48 89 55 DF 4D 8B F0 44 89 7D FB 48 8B D9 4C 89 7D E7, expected: 1, index: 0
constexpr uintptr_t FactoryIndex_ResolveResource = 0x1410585E0 - ImageBase; // 40 53 48 83 EC 10 45 33 C9 48 8B DA 4C 8B D1 44 39 49 70, expected: 1, index: 0

constexpr uintptr_t GameApplication_InitResourceDepot = 0x142CC5910 - ImageBase; // 48 89 74 24 18 55 48 8D 6C 24 A9 48 81 EC C0 00 00 00, expected: 1, index: 0

constexpr uintptr_t GarmentAssembler_AddItem = 0x141C2D0C0 - ImageBase; // 48 89 5C 24 08 57 48 83 EC 60 49 8B F8 4C 8B C2 48 8D 54 24 40 E8 ? ? ? ? 48 8B 07, expected: 2, index: 0
constexpr uintptr_t GarmentAssembler_OverrideItem = 0x141C2D190 - ImageBase; // 48 89 5C 24 08 57 48 83 EC 60 49 8B F8 4C 8B C2 48 8D 54 24 40 E8 ? ? ? ? 48 8B 07, expected: 2, index: 1
constexpr uintptr_t GarmentAssembler_AddCustomItem = 0x141C2D190 - ImageBase; // 48 89 5C 24 08 57 48 83 EC 60 49 8B F8 4C 8B C2 48 8D 54 24 40 E8 ? ? ? ? 48 8B 07, expected: 2, index: 1
constexpr uintptr_t GarmentAssembler_ChangeItem = 0x141C2F760 - ImageBase; // 48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 57 48 83 EC 50 49 8B F8 4C 8B C2 48 8D 54 24 30 E8, expected: 2, index: 0
constexpr uintptr_t GarmentAssembler_ChangeCustomItem = 0x141C2F810 - ImageBase; // 48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 57 48 83 EC 50 49 8B F8 4C 8B C2 48 8D 54 24 30 E8, expected: 2, index: 1
constexpr uintptr_t GarmentAssembler_RemoveItem = 0x141C2F0C0 - ImageBase; // 48 89 5C 24 08 57 48 83 EC 40 49 8B F8 4C 8B C2 48 8D 54 24 20 E8 ? ? ? ? 44 8B 47, expected: 1, index: 0
constexpr uintptr_t GarmentAssembler_OnGameDetach = 0x141C2F8C0 - ImageBase; // 40 53 48 83 EC 20 8B 51 14 48 8B D9 48 8B 49 08 E8 ? ? ? ? C7 43 14 00 00 00 00, expected: 2, index: 1

Expand Down
28 changes: 27 additions & 1 deletion tools/ida/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ def patterns():
Item(name="ComputePlayerGarment",
pattern="48 89 5C 24 08 48 89 74 24 10 48 89 7C 24 18 4C 89 64 24 20 55 41 56 41 57 48 8D 6C 24 C0"),
]),
Group(name="AppearanceChangeRequest", functions=[
Item(name="LoadEntityTemplate",
pattern="48 89 5C 24 18 48 89 74 24 20 55 57 41 56 48 8D 6C 24 B9 48 81 EC C0 00 00 00 45 32 F6 48 8B F9"),
]),
Group(name="AppearanceNameVisualTagsPreset", functions=[
Item(name="GetVisualTags",
pattern="48 89 74 24 18 48 89 54 24 10 57 48 83 EC 40 49 8B F8 48 8D 54 24 20 4C 8D 44 24 58 48 83 C1 40 49 8B F1"),
Expand All @@ -24,6 +28,18 @@ def patterns():
Item(name="FindAppearanceDefinition",
pattern="48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 57 41 56 41 57 48 83 EC 20 48 8B F1 45 8B F9 48 81 C1 F0 00 00 00 49 8B D8 4C 8B F2"),
]),
Group(name="AttachmentSlots", functions=[
Item(name="InitializeSlots",
pattern="48 8B C4 55 57 48 8D 68 B8 48 81 EC 38 01 00 00 83 7A 0C 00 48 8B FA"),
Item(name="IsSlotEmpty",
pattern="48 89 5C 24 08 48 89 74 24 10 57 48 83 EC 20 48 8B F1 48 8B DA 48 81 C1 00 01 00 00",
expected=4,
index=1),
Item(name="IsSlotSpawning",
pattern="48 89 5C 24 08 48 89 74 24 10 57 48 83 EC 20 48 8B F1 48 8B DA 48 81 C1 00 01 00 00",
expected=4,
index=2),
]),
Group(name="Entity", functions=[
Item(name="GetComponents",
pattern="48 83 C1 70 E9",
Expand All @@ -39,6 +55,8 @@ def patterns():
Group(name="FactoryIndex", functions=[
Item(name="LoadFactoryAsync",
pattern="48 89 5C 24 18 55 56 57 41 56 41 57 48 8D 6C 24 C9 48 81 EC A0 00 00 00 45 33 FF 48 89 55 DF 4D 8B F0 44 89 7D FB 48 8B D9 4C 89 7D E7"),
Item(name="ResolveResource",
pattern="40 53 48 83 EC 10 45 33 C9 48 8B DA 4C 8B D1 44 39 49 70"),
]),
Group(name="GameApplication", functions=[
Item(name="InitResourceDepot",
Expand All @@ -49,10 +67,18 @@ def patterns():
pattern="48 89 5C 24 08 57 48 83 EC 60 49 8B F8 4C 8B C2 48 8D 54 24 40 E8 ? ? ? ? 48 8B 07",
expected=2,
index=0),
Item(name="OverrideItem",
Item(name="AddCustomItem",
pattern="48 89 5C 24 08 57 48 83 EC 60 49 8B F8 4C 8B C2 48 8D 54 24 40 E8 ? ? ? ? 48 8B 07",
expected=2,
index=1),
Item(name="ChangeItem",
pattern="48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 57 48 83 EC 50 49 8B F8 4C 8B C2 48 8D 54 24 30 E8",
expected=2,
index=0),
Item(name="ChangeCustomItem",
pattern="48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 57 48 83 EC 50 49 8B F8 4C 8B C2 48 8D 54 24 30 E8",
expected=2,
index=1),
Item(name="RemoveItem",
pattern="48 89 5C 24 08 57 48 83 EC 40 49 8B F8 4C 8B C2 48 8D 54 24 20 E8 ? ? ? ? 44 8B 47"),
Item(name="OnGameDetach",
Expand Down

0 comments on commit 9be1a79

Please sign in to comment.