공부
[IDA] C++ Class 변환
KuroNeko_
2017. 8. 9. 02:37
반응형
변환 방법
1. vtable을 구조체형식으로 선언
2. constructor에서 사용되는 변수들을 기반으로 class를 구조체형식으로 작성
결과적으로는 아래와 같은 구조를 가짐
struct class1{ _vtable_class *vtable; char dummy[168]; _DWORD some; char dummy2[6]; } struct _vtable_class { __int64 (__fastcall *f1)(); __int64 (__fastcall *f2)(); __int64 (__fastcall *f3)(); __int64 (__fastcall *f4)(); };