Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
SlideShare a Scribd company logo
Reverse Engineering
TDOH x Tigerduck
LegBone
• BY PASS Hackshield
• TDOHacker
• SITCON 2014/2015 short talk
• HITCON 2015
•
• …..
About Me
台科逆向簡報
台科逆向簡報
• Windows XP
• VMware
台科逆向簡報
台科逆向簡報
台科逆向簡報
台科逆向簡報
台科逆向簡報
台科逆向簡報
台科逆向簡報
台科逆向簡報
1.
2.OD/IDA
3. upx asp...
4. ring3 anti debugger
•
•
•
•
•
•
•
•
•
•
•
•
•
•
• , 1010101
• Binary
(* ́∀`*)
(* ́∀`*)
CPU , CPU
VC ,return EAX
ESP,EBP
EIP
AF
CF
OF
SF ( )
PF
ZF
DF
IF
TF
AF
CF
OF
SF ( )
PF
ZF
DF
IF
TF
台科逆向簡報
XD
•
• mov → move EX : mov ecx, 1
• add / sub → EX : add eax,10
• cmp / test →
• jmp →
• push / pop → Stack
XD
•
• mov → move EX : mov ecx, 1
• add / sub → EX : add eax,10
• cmp / test →
• jmp →
• push / pop → Stack
XD
•
• mov → move EX : mov ecx, 1
• add / sub → EX : add eax,10
• cmp / test →
• jmp →
• push / pop → Stack
XD
•
• mov → move EX : mov ecx, 1
• add / sub → EX : add eax,10
• cmp / test →
• jmp →
• push / pop → Stack
XD
•
• mov → move EX : mov ecx, 1
• add / sub → EX : add eax,10
• cmp / test →
• jmp →
• push / pop → Stack
• inc eax → eax+1
• dec eax → eax-1
• xor eax,ebx → eax ebx xor eax
• or eax,ebx → eax ebx or eax
• and eax,ebx → eax ebx and eax
• inc eax → eax+1
• dec eax → eax-1
• xor eax,ebx → eax ebx xor eax
• or eax,ebx → eax ebx or eax
• and eax,ebx → eax ebx and eax
• inc eax → eax+1
• dec eax → eax-1
• xor eax,ebx → eax ebx xor eax
• or eax,ebx → eax ebx or eax
• and eax,ebx → eax ebx and eax
• inc eax → eax+1
• dec eax → eax-1
• xor eax,ebx → eax ebx xor eax
• or eax,ebx → eax ebx or eax
• and eax,ebx → eax ebx and eax
• inc eax → eax+1
• dec eax → eax-1
• xor eax,ebx → eax ebx xor eax
• or eax,ebx → eax ebx or eax
• and eax,ebx → eax ebx and eax
• byte ptr[ebp+8] → ebp+8 byte
• dword ptr[ebp+8] → ebp+8 dword
• lea , →
• byte ptr[ebp+8] → ebp+8 byte
• dword ptr[ebp+8] → ebp+8 dword
• lea , →
• byte ptr[ebp+8] → ebp+8 byte
• dword ptr[ebp+8] → ebp+8 dword
• lea , →
T_T
(?
台科逆向簡報
(?
•
•
• Code
•
•
•
•
• ollydbg
• ida pro
• cheat engine
• …
OLLYDBG
台科逆向簡報
台科逆向簡報
台科逆向簡報
台科逆向簡報
台科逆向簡報
台科逆向簡報
台科逆向簡報
台科逆向簡報
OD
IDA PRO
台科逆向簡報
台科逆向簡報
台科逆向簡報
台科逆向簡報
DEOM
台科逆向簡報
•
•
•
•
• : (σ ・ω・)σ
台科逆向簡報
/
/
/
or
•
•
• upx mpress
/
or
•
•
• upx mpress
•
• asprotect themida
/
or
•
•
• upx mpress
•
• asprotect themida
• by
• vmprotect
/
/
/
/
•
/
•
•
/
( •̀ . ̫•́)✧
/
/
/
memory
dump
/
memory
dump
/
•
•
• PEID….
/
•
•
• PEID….
•
•
/
/
•
•
•
/
•
•
•
•
•
• oep
•
• ......
/
Delphi
/
BC++
/
VB
/
VC6.0
/
VC7.0
/
http://drops.wooyun.org/binary/8640
/
• memory dump
• memory dump
• code
•
/
• memory dump
• memory dump
• code
•
•
• ollydbg
• LordPE
/
/
/
•
•
•
•
/
•
•
•
•
•
•
•
• ImportRec
• Scylla
•
/
/
/
/
esp
/
• esp
•
•
• pushad popad
/
• esp
•
•
• pushad popad
•
• esp
•
• oep
/
/
DEOM
/
/
/
DEOM
/
/
/
DEOM
/
/
Ring3 anti debugger
Ring3 anti debugger
Ring3 anti debugger
Ring3 anti debugger
Ring3 anti debugger
/
Ring3 anti debugger
Ring3 anti debugger
Ring3 anti debugger
Ring3 anti debugger
Ring0
Ring3 anti debugger
Ring0
Ring3 anti debugger
Ring0
Ring3 anti debugger
anti debugger
debugger
Ring3 anti debugger
deubgger debug
DbgUiRemoteBreakin
DbgUiRemoteBreakin DbgBreakPoint
Ring3 anti debugger
debugger sitcon 2014
https://speakerdeck.com/cowby123/di-ci-zi-gan-
debuggerjiu-shang-shou
Ring3 anti debugger
Ring3 anti debugger
NtCurrentPeb()->BeingDebugged
PEB BeingDebugged
Ring3 anti debugger
Ring3 anti debugger
ret
Ring3 anti debugger
demo
Ring3 anti debugger
demo
Ring3 anti debugger
Ring3 anti debugger
Ring3 anti debugger
anti debugger
Ring3 anti debugger
Ring3 anti debugger
a.exe b.exe
a.exe b.exe
Ring3 anti debugger
Ring3 anti debugger
cmd.exe explorer.exe
debug
Ring3 anti debugger
Ring3 anti debugger
debugger
Ring3 anti debugger
debugger
Ring3 anti debugger
debugger
Ring3 anti debugger
Ring3 anti debugger
Ring3 anti debugger
anti debugger
od
Ring3 anti debugger
Ring3 anti debugger
StrongOD
ring0
Ring3 anti debugger
StrongOD
StrongOD
Ring3 anti debugger
Ring3 anti debugger
Ring3 anti debugger

More Related Content

台科逆向簡報