13.07.2013 Views

The art of Unpacking 번역 - SecretOfSh의 블로그

The art of Unpacking 번역 - SecretOfSh의 블로그

The art of Unpacking 번역 - SecretOfSh의 블로그

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

11 | 페이지<br />

push dword [fs:0]<br />

mov [fs:0], esp<br />

;reset flag (eax) invoke int3<br />

xor eax,eax<br />

int3<br />

;restore exception handler<br />

pop dword [fs:0]<br />

add esp,4<br />

;check if the flag had been set<br />

test eax,eax<br />

je .debugger_found<br />

:::<br />

.exception_handler:<br />

;EAX = ContextRecord<br />

mov eax, [esp+0xc]<br />

;set flag (ContextRecord,EAX)<br />

mov dword [eax+0xb0],0xffffffff<br />

;set ContextRecord.EIP<br />

inc dword [eax+0xb8]<br />

xor eax,eax<br />

retn<br />

해결방법<br />

올리디버그에서 단계별로 실행하거나 또는 그냥 실행하던 도중에 디버거가 읶터럽트에 걸리게 되면 멈추게 됩니다.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!