TAILIEUCHUNG - reversing secrets of reverse engineering phần 7

có được xử lý lưu trữ từ cuộc gọi đó, và đặt một breakpoint có chọn lọc trên ReadFile rằng chỉ phá vỡ khi xử lý cụ thể để các kho lưu trữ Cryptex được quy định cụ thể (breakpoint như được hỗ trợ bởi hầu hết các các trình gỡ rối). Điều này thực sự sẽ làm giảm số lượng | Antireversing Techniques 343 The disadvantage of all of these tricks is that they count on the disassembler being relatively dumb. Luckily most Windows disassemblers are dumb enough that you can fool them. What would happen if you ran into a clever disassembler that actually analyzes each line of code and traces the flow of data Such a disassembler would not fall for any of these tricks because it would detect your opaque predicate how difficult is it to figure out that a conditional jump that is taken when 2 equals 3 is never actually going to be taken Moreover a simple data-flow analysis would expose the fact that the final JMP sequence is essentially equivalent to a JMP After which would probably be enough to correct the disassembly anyhow. Still even a cleverer disassembler could be easily fooled by exporting the real jump addresses into a central runtime generated data structure. It would be borderline impossible to perform a global data-flow analysis so comprehensive that it would be able to find the real addresses without actually running the program. Applications Let s see how one would use the previous techniques in a real program. I ve created a simple macro called OBFUSCATE which adds a little assembly language sequence to a C program see Listing . This sequence would temporarily confuse most disassemblers until they resynchronized. The number of instructions it will take to resynchronize depends not only on the specific disassembler used but also on the specific code that comes after the macro. define paste a b a b define pastesymbols a b paste a b define OBFUSCATE _asm mov eax __LINE__ 0x635186f1 _asm cmp eax __LINE__ 0x9cb16d48 _asm je pastesymbols Junk LINE__ _asm mov eax pastesymbols After LINE__ _asm jmp eax _asm pastesymbols Junk LINE_ _asm _emit 0xd8 __LINE__ 8 _asm pastesymbols After __LINE Listing A simple code obfuscation macro that aims at confusing disassemblers. This macro was tested on the Microsoft C C compiler .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.