Skip to content

Commit

Permalink
no idea
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Jun 2, 2024
1 parent 8a6bbf8 commit 6d6d6b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/convention/Windows64Convention.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void ThiscallConvention::generateIntoDefault(BaseAssembler& a_, AbstractFunction
int stackOffset = 0;

for (auto i = 0; i < stackParamSize; i += 8) {
a.mov(RAX, m[RBP + (16 + i)]);
a.mov(RAX, m[RBP + (32 + i)]);
a.mov(m[RSP + i], RAX);
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/generator/X64Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace {
void* TULIP_HOOK_DEFAULT_CONV preHandler(HandlerContent* content) {
Handler::incrementIndex(content);
auto ret = Handler::getNextFunction(content);
std::cout << "next function " << ret << std::endl;

return ret;
}
Expand Down Expand Up @@ -167,7 +168,7 @@ std::vector<uint8_t> X64HandlerGenerator::handlerBytes(uint64_t address) {
m_metadata.m_convention->generateIntoDefault(a, m_metadata.m_abstract);

a.mov(RAX, m[RBP - 0x10]);
// // a.int3();
a.int3();
a.call(RAX);
// // a.int3();
m_metadata.m_convention->generateDefaultCleanup(a, m_metadata.m_abstract);
Expand Down

0 comments on commit 6d6d6b5

Please sign in to comment.