Spaces:
Sleeping
Sleeping
Edward J. Schwartz commited on
Commit ·
633934d
1
Parent(s): 677f017
examples
Browse files- examples/example1.c +0 -13
- examples/example2.c +11 -0
examples/example1.c
CHANGED
|
@@ -18,16 +18,3 @@ int __fastcall main(int argc, const char **argv, const char **envp)
|
|
| 18 |
return 1;
|
| 19 |
}
|
| 20 |
}
|
| 21 |
-
|
| 22 |
-
//----- (00000000000012DD) ----------------------------------------------------
|
| 23 |
-
__int64 __fastcall encrypt(__int64 a1)
|
| 24 |
-
{
|
| 25 |
-
int i; // [rsp+18h] [rbp-18h]
|
| 26 |
-
|
| 27 |
-
for ( i = 0; i < strlen(secret); ++i )
|
| 28 |
-
{
|
| 29 |
-
if ( (8 * *(char *)(i + a1) + 19) % 61 + 65 != secret[i] )
|
| 30 |
-
return 0LL;
|
| 31 |
-
}
|
| 32 |
-
return 1LL;
|
| 33 |
-
}
|
|
|
|
| 18 |
return 1;
|
| 19 |
}
|
| 20 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
examples/example2.c
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__int64 __fastcall encrypt(__int64 a1)
|
| 2 |
+
{
|
| 3 |
+
int i; // [rsp+18h] [rbp-18h]
|
| 4 |
+
|
| 5 |
+
for ( i = 0; i < strlen(secret); ++i )
|
| 6 |
+
{
|
| 7 |
+
if ( (8 * *(char *)(i + a1) + 19) % 61 + 65 != secret[i] )
|
| 8 |
+
return 0LL;
|
| 9 |
+
}
|
| 10 |
+
return 1LL;
|
| 11 |
+
}
|