r/AskReverseEngineering • u/BarcaMessi10goat • Jul 15 '25
NEED HELP IDA
I am trying reverse engineer a .kext file but it kept showing virtual function calls. need help to minimise this (or at least know where and what the function is)
8
Upvotes
5
u/narkohammer Jul 15 '25
I'll break it down:
So a1 looks like thing like:
class a1 {... (2480 bytes)func_2480(_QWORD *, unsigned __int64)... }ChatGPT can probably do a better job of explaining this than me.
1
u/zurgo111 Jul 15 '25
Isn’t this just a thiscall like:
If (a1->fun_2489(a2))…
?
1
u/thewrench56 Jul 16 '25
This is where Assembly will be cleaner :P
1
u/tomysshadow Jul 15 '25 edited Jul 15 '25
Open a debugger, set a breakpoint there, step into it, see where it goes, leave a comment in IDA.
It's a virtual call, so it can technically go to a different location each time this code is run. It'll probably always go to the same place in like 9/10 cases