| skipped 8 lines |
9 | 9 | | // GitHub: |
10 | 10 | | // https://github.com/DosX-dev/obfus.h |
11 | 11 | | |
12 | | - | #if !no_obf |
| 12 | + | #if !defined(no_obf) && no_obf != 1 |
13 | 13 | | |
14 | 14 | | #include <conio.h> |
15 | 15 | | #include <stdio.h> |
| skipped 22 lines |
38 | 38 | | #define BREAK_STACK_3 \ |
39 | 39 | | switch (_0) { \ |
40 | 40 | | case 1: \ |
41 | | - | __asm__ __volatile(".byte 0x0F"); \ |
| 41 | + | __asm__ __volatile(".byte 0x00"); \ |
42 | 42 | | } |
43 | 43 | | |
44 | 44 | | void junkFunc(int z, ...) { |
| skipped 292 lines |
337 | 337 | | BREAK_STACK_1; |
338 | 338 | | NOP_FLOOD; |
339 | 339 | | BREAK_STACK_2; |
340 | | - | #if defined hide_antidebug |
| 340 | + | #if !defined(hide_antidebug) && hide_antidebug != 1 |
| 341 | + | NOP_FLOOD; |
| 342 | + | return IsDebuggerPresent(); |
| 343 | + | #else |
341 | 344 | | char result[32]; |
342 | 345 | | sprintf(result, strcat(getCharMask(_6), "%d%d"), _k, _e, _r, _n, _e, _l, _3, _2); |
343 | 346 | | |
| skipped 18 lines |
362 | 365 | | funcName[12] = _e; |
363 | 366 | | |
364 | 367 | | return ((BOOL(*)())GetProcAddress(LoadLibraryA(result), funcName))(); |
365 | | - | #else |
366 | | - | NOP_FLOOD; |
367 | | - | return IsDebuggerPresent(); |
368 | 368 | | #endif |
369 | 369 | | // return ((int (*)())GetProcAddress(LoadLibraryA("kernel32.dll"), "IsDebuggerPresent"))(); |
370 | 370 | | } |
| skipped 1 lines |
372 | 372 | | void crash() { |
373 | 373 | | BREAK_STACK_1; |
374 | 374 | | __asm__ __volatile("int $3"); |
| 375 | + | __asm__ __volatile(".byte 00"); |
375 | 376 | | } |
376 | 377 | | |
377 | 378 | | #define ANTI_DEBUG \ |
378 | 379 | | if (IsDebuggerPresent() || int_Proxy(_0 / !IsDebuggerPresent_Proxy() * (_1 + _0 + _1) / _2)) { \ |
379 | 380 | | BREAK_STACK_1; \ |
| 381 | + | __asm__ __volatile(".byte 0x00"); \ |
380 | 382 | | crash(); \ |
381 | | - | __asm__ __volatile("int $3"); \ |
382 | | - | _0 / _0; \ |
383 | | - | _1 / _0; \ |
384 | | - | _2 / _0; \ |
385 | | - | _3 / _0; \ |
386 | | - | _4 / _0; \ |
387 | 383 | | } else { \ |
388 | 384 | | 0.0 / IsDebuggerPresent(); \ |
389 | 385 | | }; |
| skipped 498 lines |
888 | 884 | | #else |
889 | 885 | | #warning Obfuscation disabled! |
890 | 886 | | #endif; |
891 | | - | |