[Win API] CryptProtectData example
Source Code1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950#pragma comment(lib, "crypt32.lib") #include #include #include void hexdump(unsigned char *p, unsigned int len){ unsigned char *line = p; unsigned int i, thisline, offset = 0; while (offset 16) thisline = 16; for (i = 0; i
Programming/C
2018. 8. 6. 17:01
[C] Streaming SIMD Extensions(SSE) API
Intel 기반의 프로그램을 분석하다 보면 부동 소수점 연산이나 최적화를 하기 위해서 xmm 레지스터를 사용하는 것을 볼 수 있다. 이 때 instruction도 레지스터를 지원하기 위해서 변하게 된다. IDA로 리버싱을 하면 이러한 instruction을 '_mm'으로 시작하는 api로 보여주는데 단순히 어떤 연산을 하는지는 이해할 수 있지만, 실제로 어떻게 레지스터가 사용되는지는 조금 이해가 어렵다고 생각한다. SSE 관련 헤더 : emmintrin.h SSE 관련 API(참고 : https://software.intel.com/sites/landingpage/IntrinsicsGuide/)_mm_cvtsi32_si128 : https://msdn.microsoft.com/zh-cn/library/c..
Reversing
2018. 8. 1. 11:12
OLE read, write API
보호되어 있는 글입니다.
보호글
2018. 7. 27. 15:12