Upload CREBench benchmark corpus (48 algorithms, 432 instances) (part 6)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_0010125c_decompiled +28 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_00101331_decompiled +12 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_00101389_decompiled +68 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_001015c2_decompiled +16 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_0010162c_decompiled +14 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_0010167f_decompiled +125 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_00101fbd_decompiled +80 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_00102666_decompiled +8 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_0010269f_decompiled +8 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_001026de_decompiled +32 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_001027cb_decompiled +35 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/_DT_FINI_decompiled +7 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/_DT_INIT_decompiled +10 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/_FINI_0_decompiled +15 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/_INIT_0_decompiled +8 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/_ITM_deregisterTMCloneTable_decompiled +10 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/_ITM_registerTMCloneTable_decompiled +10 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/__cxa_finalize_decompiled +10 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/__gmon_start___decompiled +10 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/__libc_start_main_decompiled +10 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/__stack_chk_fail_decompiled +10 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/entry_decompiled +13 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/fprintf_decompiled +11 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/fwrite_decompiled +11 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/memcmp_decompiled +11 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/printf_decompiled +11 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/putchar_decompiled +11 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/strlen_decompiled +11 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/address.json +29 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/challenge +0 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/FUN_00101020_decompiled +9 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/FUN_001010e0_decompiled +410 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/FUN_00102130_decompiled +10 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/FUN_00102160_decompiled +10 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/FUN_001021f0_decompiled +16 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/FUN_00102260_decompiled +14 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/_DT_FINI_decompiled +7 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/_DT_INIT_decompiled +10 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/_FINI_0_decompiled +15 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/_INIT_0_decompiled +8 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/_ITM_deregisterTMCloneTable_decompiled +10 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/_ITM_registerTMCloneTable_decompiled +10 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/__cxa_finalize_decompiled +10 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/__fprintf_chk_decompiled +10 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/__gmon_start___decompiled +10 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/__libc_start_main_decompiled +10 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/__printf_chk_decompiled +10 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/__stack_chk_fail_decompiled +10 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/entry_decompiled +13 -0
- CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/memcmp_decompiled +11 -0
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_0010125c_decompiled
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
undefined8 FUN_0010125c(char *param_1,long param_2,ulong param_3)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
int iVar1;
|
| 6 |
+
int iVar2;
|
| 7 |
+
size_t sVar3;
|
| 8 |
+
undefined8 uVar4;
|
| 9 |
+
ulong local_18;
|
| 10 |
+
|
| 11 |
+
sVar3 = strlen(param_1);
|
| 12 |
+
if (sVar3 == param_3 * 2) {
|
| 13 |
+
for (local_18 = 0; local_18 < param_3; local_18 = local_18 + 1) {
|
| 14 |
+
iVar1 = FUN_00101209((int)param_1[local_18 * 2]);
|
| 15 |
+
iVar2 = FUN_00101209((int)param_1[local_18 * 2 + 1]);
|
| 16 |
+
if ((iVar1 < 0) || (iVar2 < 0)) {
|
| 17 |
+
return 0;
|
| 18 |
+
}
|
| 19 |
+
*(byte *)(local_18 + param_2) = (byte)(iVar1 << 4) | (byte)iVar2;
|
| 20 |
+
}
|
| 21 |
+
uVar4 = 1;
|
| 22 |
+
}
|
| 23 |
+
else {
|
| 24 |
+
uVar4 = 0;
|
| 25 |
+
}
|
| 26 |
+
return uVar4;
|
| 27 |
+
}
|
| 28 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_00101331_decompiled
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void FUN_00101331(long param_1,ulong param_2)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
ulong local_10;
|
| 6 |
+
|
| 7 |
+
for (local_10 = 0; local_10 < param_2; local_10 = local_10 + 1) {
|
| 8 |
+
printf("%02x",(ulong)*(byte *)(local_10 + param_1));
|
| 9 |
+
}
|
| 10 |
+
return;
|
| 11 |
+
}
|
| 12 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_00101389_decompiled
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
bool FUN_00101389(int param_1,undefined8 *param_2)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
int iVar1;
|
| 6 |
+
char *pcVar2;
|
| 7 |
+
long in_FS_OFFSET;
|
| 8 |
+
bool bVar3;
|
| 9 |
+
undefined local_308 [624];
|
| 10 |
+
undefined local_98 [16];
|
| 11 |
+
undefined8 local_88;
|
| 12 |
+
undefined8 local_80;
|
| 13 |
+
undefined8 local_78;
|
| 14 |
+
undefined8 local_70;
|
| 15 |
+
undefined8 local_68;
|
| 16 |
+
undefined8 local_60;
|
| 17 |
+
undefined local_58 [32];
|
| 18 |
+
undefined local_38 [40];
|
| 19 |
+
long local_10;
|
| 20 |
+
|
| 21 |
+
local_10 = *(long *)(in_FS_OFFSET + 0x28);
|
| 22 |
+
if (param_1 == 2) {
|
| 23 |
+
FUN_0010162c(local_98,0x10);
|
| 24 |
+
local_88 = 0xb0cc01d1435734c;
|
| 25 |
+
local_80 = 0xecee764be3cb7a79;
|
| 26 |
+
local_78 = 0x60f90958ae48a3b2;
|
| 27 |
+
local_70 = 0xecd0b25ef9463be1;
|
| 28 |
+
local_68 = 0x621f10842f35d33d;
|
| 29 |
+
local_60 = 0x98917faff714a659;
|
| 30 |
+
iVar1 = FUN_0010125c(param_2[1],local_58,0x20);
|
| 31 |
+
if (iVar1 == 0) {
|
| 32 |
+
fwrite("Bad input hex. Expecting 64 hex chars (32 bytes).\n",1,0x32,stderr);
|
| 33 |
+
bVar3 = true;
|
| 34 |
+
}
|
| 35 |
+
else {
|
| 36 |
+
iVar1 = FUN_0010167f(local_308,local_98,0x10);
|
| 37 |
+
if (iVar1 == 0) {
|
| 38 |
+
FUN_001026de(local_308,&local_88,local_58,local_38,0x20);
|
| 39 |
+
printf("Ciphertext(hex): ");
|
| 40 |
+
FUN_00101331(local_38,0x20);
|
| 41 |
+
putchar(10);
|
| 42 |
+
iVar1 = memcmp(local_38,&local_78,0x20);
|
| 43 |
+
bVar3 = iVar1 != 0;
|
| 44 |
+
if (bVar3) {
|
| 45 |
+
pcVar2 = "False";
|
| 46 |
+
}
|
| 47 |
+
else {
|
| 48 |
+
pcVar2 = "True";
|
| 49 |
+
}
|
| 50 |
+
printf("Match: %s\n",pcVar2);
|
| 51 |
+
}
|
| 52 |
+
else {
|
| 53 |
+
fwrite("Key setup failed.\n",1,0x12,stderr);
|
| 54 |
+
bVar3 = true;
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
else {
|
| 59 |
+
fprintf(stderr,"Usage: %s <64-hex-chars>\n",*param_2);
|
| 60 |
+
bVar3 = true;
|
| 61 |
+
}
|
| 62 |
+
if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {
|
| 63 |
+
/* WARNING: Subroutine does not return */
|
| 64 |
+
__stack_chk_fail();
|
| 65 |
+
}
|
| 66 |
+
return bVar3;
|
| 67 |
+
}
|
| 68 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_001015c2_decompiled
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
byte FUN_001015c2(ulong param_1)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
byte local_19;
|
| 6 |
+
|
| 7 |
+
if ((param_1 & 1) == 0) {
|
| 8 |
+
local_19 = (&DAT_00103098)[param_1 >> 1];
|
| 9 |
+
}
|
| 10 |
+
else {
|
| 11 |
+
local_19 = (&DAT_001030a0)[param_1 >> 1];
|
| 12 |
+
}
|
| 13 |
+
local_19 = local_19 ^ 0x5b;
|
| 14 |
+
return local_19;
|
| 15 |
+
}
|
| 16 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_0010162c_decompiled
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void FUN_0010162c(long param_1,ulong param_2)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
undefined uVar1;
|
| 6 |
+
ulong local_18;
|
| 7 |
+
|
| 8 |
+
for (local_18 = 0; local_18 < param_2; local_18 = local_18 + 1) {
|
| 9 |
+
uVar1 = FUN_001015c2((uint)local_18 & 0xf);
|
| 10 |
+
*(undefined *)(param_1 + local_18) = uVar1;
|
| 11 |
+
}
|
| 12 |
+
return;
|
| 13 |
+
}
|
| 14 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_0010167f_decompiled
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
undefined8 FUN_0010167f(long param_1,long param_2,ulong param_3)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
uint uVar1;
|
| 6 |
+
int iVar2;
|
| 7 |
+
int iVar3;
|
| 8 |
+
undefined8 uVar4;
|
| 9 |
+
long in_FS_OFFSET;
|
| 10 |
+
int local_90;
|
| 11 |
+
int local_8c;
|
| 12 |
+
int local_88;
|
| 13 |
+
uint local_84;
|
| 14 |
+
uint local_80;
|
| 15 |
+
uint local_7c;
|
| 16 |
+
uint local_78;
|
| 17 |
+
uint local_6c [13];
|
| 18 |
+
uint local_38 [10];
|
| 19 |
+
long local_10;
|
| 20 |
+
|
| 21 |
+
local_10 = *(long *)(in_FS_OFFSET + 0x28);
|
| 22 |
+
if (((param_3 < 0x10) || (0x28 < param_3)) || ((param_3 & 3) != 0)) {
|
| 23 |
+
uVar4 = 0xffffffff;
|
| 24 |
+
}
|
| 25 |
+
else {
|
| 26 |
+
iVar2 = (int)(param_3 >> 2);
|
| 27 |
+
iVar3 = iVar2 + 8;
|
| 28 |
+
*(int *)(param_1 + 0x260) = iVar3;
|
| 29 |
+
for (local_90 = 0; local_90 < iVar2; local_90 = local_90 + 1) {
|
| 30 |
+
local_6c[(long)local_90 + 1] =
|
| 31 |
+
(uint)*(byte *)(param_2 + (local_90 << 2)) << 0x18 |
|
| 32 |
+
(uint)*(byte *)(param_2 + (long)(local_90 << 2) + 1) << 0x10 |
|
| 33 |
+
(uint)*(byte *)(param_2 + (long)(local_90 << 2) + 2) << 8 |
|
| 34 |
+
(uint)*(byte *)(param_2 + (long)(local_90 << 2) + 3);
|
| 35 |
+
}
|
| 36 |
+
for (local_8c = 0; local_8c <= iVar3; local_8c = local_8c + 1) {
|
| 37 |
+
local_84 = *(uint *)(&DAT_001040c0 + (long)(int)(local_6c[(long)(iVar2 + -1) + 1] >> 0x18) * 4
|
| 38 |
+
);
|
| 39 |
+
local_80 = *(uint *)(&DAT_001040c0 +
|
| 40 |
+
(long)(int)(local_6c[(long)(iVar2 + -1) + 1] >> 0x10 & 0xff) * 4);
|
| 41 |
+
local_7c = *(uint *)(&DAT_001040c0 +
|
| 42 |
+
(long)(int)(local_6c[(long)(iVar2 + -1) + 1] >> 8 & 0xff) * 4);
|
| 43 |
+
local_78 = *(uint *)(&DAT_001040c0 + (long)(int)(local_6c[(long)(iVar2 + -1) + 1] & 0xff) * 4)
|
| 44 |
+
;
|
| 45 |
+
for (local_88 = iVar2 + -2; -1 < local_88; local_88 = local_88 + -1) {
|
| 46 |
+
local_84 = *(uint *)(&DAT_001044c0 + (long)(int)(local_84 & 0xff) * 4) & 0xff ^
|
| 47 |
+
*(uint *)(&DAT_001040c0 + (long)(int)(local_6c[(long)local_88 + 1] >> 0x18) * 4)
|
| 48 |
+
^ *(uint *)(&DAT_001044c0 + (long)(int)(local_84 >> 0x18) * 4) & 0xff000000 ^
|
| 49 |
+
*(uint *)(&DAT_001044c0 + (long)(int)(local_84 >> 0x10 & 0xff) * 4) & 0xff0000 ^
|
| 50 |
+
*(uint *)(&DAT_001044c0 + (long)(int)(local_84 >> 8 & 0xff) * 4) & 0xff00;
|
| 51 |
+
local_80 = *(uint *)(&DAT_001044c0 + (long)(int)(local_80 & 0xff) * 4) & 0xff ^
|
| 52 |
+
*(uint *)(&DAT_001040c0 +
|
| 53 |
+
(long)(int)(local_6c[(long)local_88 + 1] >> 0x10 & 0xff) * 4) ^
|
| 54 |
+
*(uint *)(&DAT_001044c0 + (long)(int)(local_80 >> 0x18) * 4) & 0xff000000 ^
|
| 55 |
+
*(uint *)(&DAT_001044c0 + (long)(int)(local_80 >> 0x10 & 0xff) * 4) & 0xff0000 ^
|
| 56 |
+
*(uint *)(&DAT_001044c0 + (long)(int)(local_80 >> 8 & 0xff) * 4) & 0xff00;
|
| 57 |
+
local_7c = *(uint *)(&DAT_001044c0 + (long)(int)(local_7c & 0xff) * 4) & 0xff ^
|
| 58 |
+
*(uint *)(&DAT_001040c0 +
|
| 59 |
+
(long)(int)(local_6c[(long)local_88 + 1] >> 8 & 0xff) * 4) ^
|
| 60 |
+
*(uint *)(&DAT_001044c0 + (long)(int)(local_7c >> 0x18) * 4) & 0xff000000 ^
|
| 61 |
+
*(uint *)(&DAT_001044c0 + (long)(int)(local_7c >> 0x10 & 0xff) * 4) & 0xff0000 ^
|
| 62 |
+
*(uint *)(&DAT_001044c0 + (long)(int)(local_7c >> 8 & 0xff) * 4) & 0xff00;
|
| 63 |
+
local_78 = *(uint *)(&DAT_001044c0 + (long)(int)(local_78 & 0xff) * 4) & 0xff ^
|
| 64 |
+
*(uint *)(&DAT_001040c0 + (long)(int)(local_6c[(long)local_88 + 1] & 0xff) * 4) ^
|
| 65 |
+
*(uint *)(&DAT_001044c0 + (long)(int)(local_78 >> 0x18) * 4) & 0xff000000 ^
|
| 66 |
+
*(uint *)(&DAT_001044c0 + (long)(int)(local_78 >> 0x10 & 0xff) * 4) & 0xff0000 ^
|
| 67 |
+
*(uint *)(&DAT_001044c0 + (long)(int)(local_78 >> 8 & 0xff) * 4) & 0xff00;
|
| 68 |
+
}
|
| 69 |
+
*(uint *)(param_1 + (long)local_8c * 0x10) = local_84;
|
| 70 |
+
*(uint *)((long)local_8c * 0x10 + param_1 + 4) = local_80;
|
| 71 |
+
*(uint *)((long)local_8c * 0x10 + param_1 + 8) = local_7c;
|
| 72 |
+
*(uint *)((long)local_8c * 0x10 + param_1 + 0xc) = local_78;
|
| 73 |
+
for (local_90 = 0; local_90 < iVar2; local_90 = local_90 + 1) {
|
| 74 |
+
local_38[local_90] =
|
| 75 |
+
*(uint *)(&DAT_001030c0 + (long)(int)(local_6c[(long)local_90 + 1] >> 0x18) * 4) ^
|
| 76 |
+
*(uint *)(&DAT_001034c0 +
|
| 77 |
+
(long)(int)(local_6c[(long)((local_90 + iVar2 + -1) % iVar2) + 1] >> 0x10 &
|
| 78 |
+
0xff) * 4) ^
|
| 79 |
+
*(uint *)(&DAT_001038c0 +
|
| 80 |
+
(long)(int)(local_6c[(long)((local_90 + iVar2 + -2) % iVar2) + 1] >> 8 & 0xff)
|
| 81 |
+
* 4) ^
|
| 82 |
+
*(uint *)(&DAT_00103cc0 +
|
| 83 |
+
(long)(int)(local_6c[(long)((local_90 + iVar2 + -3) % iVar2) + 1] & 0xff) * 4)
|
| 84 |
+
;
|
| 85 |
+
}
|
| 86 |
+
local_6c[1] = local_38[0] ^
|
| 87 |
+
(*(uint *)(&DAT_001030c0 + (long)(local_8c << 2) * 4) & 0xff000000 |
|
| 88 |
+
*(uint *)(&DAT_001034c0 + (long)(local_8c * 4 + 1) * 4) & 0xff0000) ^
|
| 89 |
+
*(uint *)(&DAT_001038c0 + (long)(local_8c * 4 + 2) * 4) & 0xff00 ^
|
| 90 |
+
*(uint *)(&DAT_00103cc0 + (long)(local_8c * 4 + 3) * 4) & 0xff;
|
| 91 |
+
for (local_90 = 1; local_90 < iVar2; local_90 = local_90 + 1) {
|
| 92 |
+
local_6c[(long)local_90 + 1] = local_38[local_90];
|
| 93 |
+
}
|
| 94 |
+
}
|
| 95 |
+
for (local_90 = 0; local_90 < 4; local_90 = local_90 + 1) {
|
| 96 |
+
*(undefined4 *)(param_1 + ((long)local_90 + 0x4c) * 4) =
|
| 97 |
+
*(undefined4 *)(param_1 + ((long)iVar3 * 4 + (long)local_90) * 4);
|
| 98 |
+
*(undefined4 *)(param_1 + ((long)iVar3 * 4 + (long)local_90 + 0x4c) * 4) =
|
| 99 |
+
*(undefined4 *)(param_1 + (long)local_90 * 4);
|
| 100 |
+
}
|
| 101 |
+
for (local_8c = 1; local_8c < iVar3; local_8c = local_8c + 1) {
|
| 102 |
+
for (local_90 = 0; local_90 < 4; local_90 = local_90 + 1) {
|
| 103 |
+
uVar1 = *(uint *)(param_1 + ((long)(iVar3 - local_8c) * 4 + (long)local_90) * 4);
|
| 104 |
+
*(uint *)(param_1 + ((long)local_8c * 4 + (long)local_90 + 0x4c) * 4) =
|
| 105 |
+
*(uint *)(&DAT_001030c0 +
|
| 106 |
+
(ulong)(*(uint *)(&DAT_001040c0 + (long)(int)(uVar1 >> 0x18) * 4) & 0xff) * 4)
|
| 107 |
+
^ *(uint *)(&DAT_001034c0 +
|
| 108 |
+
(ulong)(*(uint *)(&DAT_001040c0 + (long)(int)(uVar1 >> 0x10 & 0xff) * 4) &
|
| 109 |
+
0xff) * 4) ^
|
| 110 |
+
*(uint *)(&DAT_001038c0 +
|
| 111 |
+
(ulong)(*(uint *)(&DAT_001040c0 + (long)(int)(uVar1 >> 8 & 0xff) * 4) & 0xff)
|
| 112 |
+
* 4) ^
|
| 113 |
+
*(uint *)(&DAT_00103cc0 +
|
| 114 |
+
(ulong)(*(uint *)(&DAT_001040c0 + (long)(int)(uVar1 & 0xff) * 4) & 0xff) * 4);
|
| 115 |
+
}
|
| 116 |
+
}
|
| 117 |
+
uVar4 = 0;
|
| 118 |
+
}
|
| 119 |
+
if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {
|
| 120 |
+
/* WARNING: Subroutine does not return */
|
| 121 |
+
__stack_chk_fail();
|
| 122 |
+
}
|
| 123 |
+
return uVar4;
|
| 124 |
+
}
|
| 125 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_00101fbd_decompiled
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void FUN_00101fbd(long param_1,int param_2,long param_3,long param_4)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
uint uVar1;
|
| 6 |
+
long in_FS_OFFSET;
|
| 7 |
+
int local_44;
|
| 8 |
+
int local_40;
|
| 9 |
+
uint local_38 [4];
|
| 10 |
+
uint local_28 [6];
|
| 11 |
+
long local_10;
|
| 12 |
+
|
| 13 |
+
local_10 = *(long *)(in_FS_OFFSET + 0x28);
|
| 14 |
+
for (local_40 = 0; local_40 < 4; local_40 = local_40 + 1) {
|
| 15 |
+
local_38[local_40] =
|
| 16 |
+
(uint)*(byte *)(param_3 + (local_40 << 2)) << 0x18 ^
|
| 17 |
+
(uint)*(byte *)(param_3 + (long)(local_40 << 2) + 1) << 0x10 ^
|
| 18 |
+
(uint)*(byte *)(param_3 + (long)(local_40 << 2) + 2) << 8 ^
|
| 19 |
+
(uint)*(byte *)(param_3 + (long)(local_40 << 2) + 3) ^
|
| 20 |
+
*(uint *)(param_1 + (long)local_40 * 4);
|
| 21 |
+
}
|
| 22 |
+
for (local_44 = 1; local_44 < param_2; local_44 = local_44 + 1) {
|
| 23 |
+
local_28[0] = *(uint *)(param_1 + (long)local_44 * 0x10) ^
|
| 24 |
+
*(uint *)(&DAT_001030c0 + (long)(int)(local_38[0] >> 0x18) * 4) ^
|
| 25 |
+
*(uint *)(&DAT_001034c0 + (long)(int)(local_38[1] >> 0x18) * 4) ^
|
| 26 |
+
*(uint *)(&DAT_001038c0 + (long)(int)(local_38[2] >> 0x18) * 4) ^
|
| 27 |
+
*(uint *)(&DAT_00103cc0 + (long)(int)(local_38[3] >> 0x18) * 4);
|
| 28 |
+
local_28[1] = *(uint *)(param_1 + (long)local_44 * 0x10 + 4) ^
|
| 29 |
+
*(uint *)(&DAT_001030c0 + (long)(int)(local_38[0] >> 0x10 & 0xff) * 4) ^
|
| 30 |
+
*(uint *)(&DAT_001034c0 + (long)(int)(local_38[1] >> 0x10 & 0xff) * 4) ^
|
| 31 |
+
*(uint *)(&DAT_001038c0 + (long)(int)(local_38[2] >> 0x10 & 0xff) * 4) ^
|
| 32 |
+
*(uint *)(&DAT_00103cc0 + (long)(int)(local_38[3] >> 0x10 & 0xff) * 4);
|
| 33 |
+
local_28[2] = *(uint *)(param_1 + (long)local_44 * 0x10 + 8) ^
|
| 34 |
+
*(uint *)(&DAT_001030c0 + (long)(int)(local_38[0] >> 8 & 0xff) * 4) ^
|
| 35 |
+
*(uint *)(&DAT_001034c0 + (long)(int)(local_38[1] >> 8 & 0xff) * 4) ^
|
| 36 |
+
*(uint *)(&DAT_001038c0 + (long)(int)(local_38[2] >> 8 & 0xff) * 4) ^
|
| 37 |
+
*(uint *)(&DAT_00103cc0 + (long)(int)(local_38[3] >> 8 & 0xff) * 4);
|
| 38 |
+
local_28[3] = *(uint *)(param_1 + (long)local_44 * 0x10 + 0xc) ^
|
| 39 |
+
*(uint *)(&DAT_001030c0 + (long)(int)(local_38[0] & 0xff) * 4) ^
|
| 40 |
+
*(uint *)(&DAT_001034c0 + (long)(int)(local_38[1] & 0xff) * 4) ^
|
| 41 |
+
*(uint *)(&DAT_001038c0 + (long)(int)(local_38[2] & 0xff) * 4) ^
|
| 42 |
+
*(uint *)(&DAT_00103cc0 + (long)(int)(local_38[3] & 0xff) * 4);
|
| 43 |
+
for (local_40 = 0; local_40 < 4; local_40 = local_40 + 1) {
|
| 44 |
+
local_38[local_40] = local_28[local_40];
|
| 45 |
+
}
|
| 46 |
+
}
|
| 47 |
+
local_28[0] = *(uint *)(param_1 + (long)param_2 * 0x10) ^
|
| 48 |
+
(*(uint *)(&DAT_001030c0 + (long)(int)(local_38[0] >> 0x18) * 4) & 0xff000000 |
|
| 49 |
+
*(uint *)(&DAT_001034c0 + (long)(int)(local_38[1] >> 0x18) * 4) & 0xff0000) ^
|
| 50 |
+
*(uint *)(&DAT_001038c0 + (long)(int)(local_38[2] >> 0x18) * 4) & 0xff00 ^
|
| 51 |
+
*(uint *)(&DAT_00103cc0 + (long)(int)(local_38[3] >> 0x18) * 4) & 0xff;
|
| 52 |
+
local_28[1] = *(uint *)(param_1 + (long)param_2 * 0x10 + 4) ^
|
| 53 |
+
(*(uint *)(&DAT_001030c0 + (long)(int)(local_38[0] >> 0x10 & 0xff) * 4) & 0xff000000
|
| 54 |
+
| *(uint *)(&DAT_001034c0 + (long)(int)(local_38[1] >> 0x10 & 0xff) * 4) & 0xff0000)
|
| 55 |
+
^ *(uint *)(&DAT_001038c0 + (long)(int)(local_38[2] >> 0x10 & 0xff) * 4) & 0xff00 ^
|
| 56 |
+
*(uint *)(&DAT_00103cc0 + (long)(int)(local_38[3] >> 0x10 & 0xff) * 4) & 0xff;
|
| 57 |
+
local_28[2] = *(uint *)(param_1 + (long)param_2 * 0x10 + 8) ^
|
| 58 |
+
(*(uint *)(&DAT_001030c0 + (long)(int)(local_38[0] >> 8 & 0xff) * 4) & 0xff000000 |
|
| 59 |
+
*(uint *)(&DAT_001034c0 + (long)(int)(local_38[1] >> 8 & 0xff) * 4) & 0xff0000) ^
|
| 60 |
+
*(uint *)(&DAT_001038c0 + (long)(int)(local_38[2] >> 8 & 0xff) * 4) & 0xff00 ^
|
| 61 |
+
*(uint *)(&DAT_00103cc0 + (long)(int)(local_38[3] >> 8 & 0xff) * 4) & 0xff;
|
| 62 |
+
local_28[3] = *(uint *)(param_1 + (long)param_2 * 0x10 + 0xc) ^
|
| 63 |
+
(*(uint *)(&DAT_001030c0 + (long)(int)(local_38[0] & 0xff) * 4) & 0xff000000 |
|
| 64 |
+
*(uint *)(&DAT_001034c0 + (long)(int)(local_38[1] & 0xff) * 4) & 0xff0000) ^
|
| 65 |
+
*(uint *)(&DAT_001038c0 + (long)(int)(local_38[2] & 0xff) * 4) & 0xff00 ^
|
| 66 |
+
*(uint *)(&DAT_00103cc0 + (long)(int)(local_38[3] & 0xff) * 4) & 0xff;
|
| 67 |
+
for (local_40 = 0; local_40 < 4; local_40 = local_40 + 1) {
|
| 68 |
+
uVar1 = local_28[local_40];
|
| 69 |
+
*(char *)(param_4 + (local_40 << 2)) = (char)(uVar1 >> 0x18);
|
| 70 |
+
*(char *)(param_4 + (long)(local_40 << 2) + 1) = (char)(uVar1 >> 0x10);
|
| 71 |
+
*(char *)(param_4 + (long)(local_40 << 2) + 2) = (char)(uVar1 >> 8);
|
| 72 |
+
*(char *)(param_4 + (long)(local_40 << 2) + 3) = (char)uVar1;
|
| 73 |
+
}
|
| 74 |
+
if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {
|
| 75 |
+
/* WARNING: Subroutine does not return */
|
| 76 |
+
__stack_chk_fail();
|
| 77 |
+
}
|
| 78 |
+
return;
|
| 79 |
+
}
|
| 80 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_00102666_decompiled
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void FUN_00102666(long param_1,undefined8 param_2,undefined8 param_3)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
FUN_00101fbd(param_1,*(undefined4 *)(param_1 + 0x260),param_2,param_3);
|
| 6 |
+
return;
|
| 7 |
+
}
|
| 8 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_0010269f_decompiled
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void FUN_0010269f(long param_1,undefined8 param_2,undefined8 param_3)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
FUN_00101fbd(param_1 + 0x130,*(undefined4 *)(param_1 + 0x260),param_2,param_3);
|
| 6 |
+
return;
|
| 7 |
+
}
|
| 8 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_001026de_decompiled
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void FUN_001026de(undefined8 param_1,undefined8 *param_2,long param_3,long param_4,ulong param_5)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
long in_FS_OFFSET;
|
| 6 |
+
int local_44;
|
| 7 |
+
ulong local_40;
|
| 8 |
+
undefined8 local_38;
|
| 9 |
+
undefined8 local_30;
|
| 10 |
+
byte local_28 [24];
|
| 11 |
+
long local_10;
|
| 12 |
+
|
| 13 |
+
local_10 = *(long *)(in_FS_OFFSET + 0x28);
|
| 14 |
+
local_38 = *param_2;
|
| 15 |
+
local_30 = param_2[1];
|
| 16 |
+
for (local_40 = 0; local_40 < param_5; local_40 = local_40 + 0x10) {
|
| 17 |
+
for (local_44 = 0; local_44 < 0x10; local_44 = local_44 + 1) {
|
| 18 |
+
local_28[local_44] =
|
| 19 |
+
*(byte *)(param_3 + (long)local_44 + local_40) ^
|
| 20 |
+
*(byte *)((long)&local_38 + (long)local_44);
|
| 21 |
+
}
|
| 22 |
+
FUN_00102666(param_1,local_28,param_4 + local_40);
|
| 23 |
+
local_38 = *(undefined8 *)(local_40 + param_4);
|
| 24 |
+
local_30 = ((undefined8 *)(local_40 + param_4))[1];
|
| 25 |
+
}
|
| 26 |
+
if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {
|
| 27 |
+
/* WARNING: Subroutine does not return */
|
| 28 |
+
__stack_chk_fail();
|
| 29 |
+
}
|
| 30 |
+
return;
|
| 31 |
+
}
|
| 32 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/FUN_001027cb_decompiled
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void FUN_001027cb(undefined8 param_1,undefined8 *param_2,long param_3,long param_4,ulong param_5)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
long in_FS_OFFSET;
|
| 6 |
+
int local_54;
|
| 7 |
+
ulong local_50;
|
| 8 |
+
undefined8 local_48;
|
| 9 |
+
undefined8 local_40;
|
| 10 |
+
undefined8 local_38;
|
| 11 |
+
undefined8 local_30;
|
| 12 |
+
byte local_28 [24];
|
| 13 |
+
long local_10;
|
| 14 |
+
|
| 15 |
+
local_10 = *(long *)(in_FS_OFFSET + 0x28);
|
| 16 |
+
local_40 = param_2[1];
|
| 17 |
+
local_48 = *param_2;
|
| 18 |
+
for (local_50 = 0; local_50 < param_5; local_50 = local_50 + 0x10) {
|
| 19 |
+
local_30 = ((undefined8 *)(local_50 + param_3))[1];
|
| 20 |
+
local_38 = *(undefined8 *)(local_50 + param_3);
|
| 21 |
+
FUN_0010269f(param_1,param_3 + local_50,local_28);
|
| 22 |
+
for (local_54 = 0; local_54 < 0x10; local_54 = local_54 + 1) {
|
| 23 |
+
*(byte *)(param_4 + (long)local_54 + local_50) =
|
| 24 |
+
*(byte *)((long)&local_48 + (long)local_54) ^ local_28[local_54];
|
| 25 |
+
}
|
| 26 |
+
local_48 = local_38;
|
| 27 |
+
local_40 = local_30;
|
| 28 |
+
}
|
| 29 |
+
if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {
|
| 30 |
+
/* WARNING: Subroutine does not return */
|
| 31 |
+
__stack_chk_fail();
|
| 32 |
+
}
|
| 33 |
+
return;
|
| 34 |
+
}
|
| 35 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/_DT_FINI_decompiled
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void _DT_FINI(void)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
return;
|
| 6 |
+
}
|
| 7 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/_DT_INIT_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void _DT_INIT(void)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
if (PTR___gmon_start___00105fe8 != (undefined *)0x0) {
|
| 6 |
+
(*(code *)PTR___gmon_start___00105fe8)();
|
| 7 |
+
}
|
| 8 |
+
return;
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/_FINI_0_decompiled
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void _FINI_0(void)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
if (DAT_00106028 == '\0') {
|
| 6 |
+
if (PTR___cxa_finalize_00105ff8 != (undefined *)0x0) {
|
| 7 |
+
FUN_001010a0(PTR_LOOP_00106008);
|
| 8 |
+
}
|
| 9 |
+
FUN_00101150();
|
| 10 |
+
DAT_00106028 = 1;
|
| 11 |
+
return;
|
| 12 |
+
}
|
| 13 |
+
return;
|
| 14 |
+
}
|
| 15 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/_INIT_0_decompiled
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void _INIT_0(void)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
FUN_00101180();
|
| 6 |
+
return;
|
| 7 |
+
}
|
| 8 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/_ITM_deregisterTMCloneTable_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
|
| 4 |
+
void _ITM_deregisterTMCloneTable(void)
|
| 5 |
+
|
| 6 |
+
{
|
| 7 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 8 |
+
halt_baddata();
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/_ITM_registerTMCloneTable_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
|
| 4 |
+
void _ITM_registerTMCloneTable(void)
|
| 5 |
+
|
| 6 |
+
{
|
| 7 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 8 |
+
halt_baddata();
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/__cxa_finalize_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
|
| 4 |
+
void __cxa_finalize(void)
|
| 5 |
+
|
| 6 |
+
{
|
| 7 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 8 |
+
halt_baddata();
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/__gmon_start___decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
|
| 4 |
+
void __gmon_start__(void)
|
| 5 |
+
|
| 6 |
+
{
|
| 7 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 8 |
+
halt_baddata();
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/__libc_start_main_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
|
| 4 |
+
void __libc_start_main(void)
|
| 5 |
+
|
| 6 |
+
{
|
| 7 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 8 |
+
halt_baddata();
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/__stack_chk_fail_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
|
| 4 |
+
void __stack_chk_fail(void)
|
| 5 |
+
|
| 6 |
+
{
|
| 7 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 8 |
+
halt_baddata();
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/entry_decompiled
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void processEntry entry(undefined8 param_1,undefined8 param_2)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
undefined auStack_8 [8];
|
| 6 |
+
|
| 7 |
+
(*(code *)PTR___libc_start_main_00105fd8)
|
| 8 |
+
(FUN_00101389,param_2,&stack0x00000008,0,0,param_1,auStack_8);
|
| 9 |
+
do {
|
| 10 |
+
/* WARNING: Do nothing block with infinite loop */
|
| 11 |
+
} while( true );
|
| 12 |
+
}
|
| 13 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/fprintf_decompiled
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
|
| 4 |
+
|
| 5 |
+
int fprintf(FILE *__stream,char *__format,...)
|
| 6 |
+
|
| 7 |
+
{
|
| 8 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 9 |
+
halt_baddata();
|
| 10 |
+
}
|
| 11 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/fwrite_decompiled
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
|
| 4 |
+
|
| 5 |
+
size_t fwrite(void *__ptr,size_t __size,size_t __n,FILE *__s)
|
| 6 |
+
|
| 7 |
+
{
|
| 8 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 9 |
+
halt_baddata();
|
| 10 |
+
}
|
| 11 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/memcmp_decompiled
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
|
| 4 |
+
|
| 5 |
+
int memcmp(void *__s1,void *__s2,size_t __n)
|
| 6 |
+
|
| 7 |
+
{
|
| 8 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 9 |
+
halt_baddata();
|
| 10 |
+
}
|
| 11 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/printf_decompiled
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
|
| 4 |
+
|
| 5 |
+
int printf(char *__format,...)
|
| 6 |
+
|
| 7 |
+
{
|
| 8 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 9 |
+
halt_baddata();
|
| 10 |
+
}
|
| 11 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/putchar_decompiled
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
|
| 4 |
+
|
| 5 |
+
int putchar(int __c)
|
| 6 |
+
|
| 7 |
+
{
|
| 8 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 9 |
+
halt_baddata();
|
| 10 |
+
}
|
| 11 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O0/decompile/strlen_decompiled
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
|
| 4 |
+
|
| 5 |
+
size_t strlen(char *__s)
|
| 6 |
+
|
| 7 |
+
{
|
| 8 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 9 |
+
halt_baddata();
|
| 10 |
+
}
|
| 11 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/address.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"00101020": "FUN_00101020",
|
| 3 |
+
"00107028": "__gmon_start__",
|
| 4 |
+
"00101000": "_DT_INIT",
|
| 5 |
+
"00102130": "FUN_00102130",
|
| 6 |
+
"00107000": "__libc_start_main",
|
| 7 |
+
"00107020": "memcmp",
|
| 8 |
+
"00101080": "__cxa_finalize",
|
| 9 |
+
"00107040": "_ITM_registerTMCloneTable",
|
| 10 |
+
"001022b4": "_DT_FINI",
|
| 11 |
+
"001010a0": "__stack_chk_fail",
|
| 12 |
+
"001021f0": "FUN_001021f0",
|
| 13 |
+
"001010e0": "FUN_001010e0",
|
| 14 |
+
"001010c0": "__printf_chk",
|
| 15 |
+
"00107018": "__stack_chk_fail",
|
| 16 |
+
"00102100": "entry",
|
| 17 |
+
"00107038": "__fprintf_chk",
|
| 18 |
+
"00102160": "FUN_00102160",
|
| 19 |
+
"00102260": "FUN_00102260",
|
| 20 |
+
"00107010": "strlen",
|
| 21 |
+
"00101090": "strlen",
|
| 22 |
+
"00107030": "__printf_chk",
|
| 23 |
+
"00107050": "__cxa_finalize",
|
| 24 |
+
"001010b0": "memcmp",
|
| 25 |
+
"001021a0": "_FINI_0",
|
| 26 |
+
"001021e0": "_INIT_0",
|
| 27 |
+
"001010d0": "__fprintf_chk",
|
| 28 |
+
"00107008": "_ITM_deregisterTMCloneTable"
|
| 29 |
+
}
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/challenge
ADDED
|
Binary file (22.7 kB). View file
|
|
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/FUN_00101020_decompiled
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void FUN_00101020(void)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
/* WARNING: Treating indirect jump as call */
|
| 6 |
+
(*(code *)PTR_00105fa0)();
|
| 7 |
+
return;
|
| 8 |
+
}
|
| 9 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/FUN_001010e0_decompiled
ADDED
|
@@ -0,0 +1,410 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
|
| 3 |
+
|
| 4 |
+
bool FUN_001010e0(int param_1,undefined8 *param_2)
|
| 5 |
+
|
| 6 |
+
{
|
| 7 |
+
char cVar1;
|
| 8 |
+
undefined uVar2;
|
| 9 |
+
undefined4 uVar3;
|
| 10 |
+
undefined4 uVar4;
|
| 11 |
+
undefined4 uVar5;
|
| 12 |
+
undefined4 uVar6;
|
| 13 |
+
undefined4 uVar7;
|
| 14 |
+
undefined4 uVar8;
|
| 15 |
+
undefined4 uVar9;
|
| 16 |
+
undefined4 uVar10;
|
| 17 |
+
undefined4 uVar11;
|
| 18 |
+
undefined4 uVar12;
|
| 19 |
+
int iVar13;
|
| 20 |
+
uint uVar14;
|
| 21 |
+
uint uVar15;
|
| 22 |
+
uint uVar16;
|
| 23 |
+
size_t sVar17;
|
| 24 |
+
ulong uVar18;
|
| 25 |
+
uint uVar19;
|
| 26 |
+
uint uVar20;
|
| 27 |
+
long lVar21;
|
| 28 |
+
long lVar22;
|
| 29 |
+
ulong uVar23;
|
| 30 |
+
undefined8 *puVar24;
|
| 31 |
+
char *pcVar25;
|
| 32 |
+
uint uVar26;
|
| 33 |
+
uint uVar27;
|
| 34 |
+
byte bVar28;
|
| 35 |
+
uint uVar29;
|
| 36 |
+
undefined8 *puVar30;
|
| 37 |
+
uint uVar31;
|
| 38 |
+
uint uVar32;
|
| 39 |
+
long lVar33;
|
| 40 |
+
undefined8 *puVar34;
|
| 41 |
+
long lVar35;
|
| 42 |
+
undefined8 *puVar36;
|
| 43 |
+
ulong *puVar37;
|
| 44 |
+
long lVar38;
|
| 45 |
+
ulong uVar39;
|
| 46 |
+
long in_FS_OFFSET;
|
| 47 |
+
bool bVar40;
|
| 48 |
+
byte local_3b8;
|
| 49 |
+
ulong *local_3a0;
|
| 50 |
+
byte local_390;
|
| 51 |
+
byte local_38c;
|
| 52 |
+
byte local_330;
|
| 53 |
+
uint local_318;
|
| 54 |
+
uint uStack_314;
|
| 55 |
+
uint uStack_310;
|
| 56 |
+
uint uStack_30c;
|
| 57 |
+
undefined8 local_308;
|
| 58 |
+
uint local_300 [38];
|
| 59 |
+
undefined8 local_268;
|
| 60 |
+
uint local_260 [5];
|
| 61 |
+
uint uStack_24c;
|
| 62 |
+
uint local_1e8;
|
| 63 |
+
uint uStack_1e4;
|
| 64 |
+
uint uStack_1e0;
|
| 65 |
+
uint uStack_1dc;
|
| 66 |
+
undefined8 local_1d8 [36];
|
| 67 |
+
undefined4 local_b8;
|
| 68 |
+
byte local_a8;
|
| 69 |
+
byte local_a7;
|
| 70 |
+
byte local_a6;
|
| 71 |
+
byte local_a5;
|
| 72 |
+
byte local_a4;
|
| 73 |
+
byte local_a3;
|
| 74 |
+
byte local_a2;
|
| 75 |
+
byte local_a1;
|
| 76 |
+
byte local_a0;
|
| 77 |
+
byte local_9f;
|
| 78 |
+
byte local_9e;
|
| 79 |
+
byte local_9d;
|
| 80 |
+
byte local_9c;
|
| 81 |
+
byte local_9b;
|
| 82 |
+
byte local_9a;
|
| 83 |
+
byte local_99;
|
| 84 |
+
ulong local_98 [4];
|
| 85 |
+
undefined8 local_78;
|
| 86 |
+
byte local_70 [24];
|
| 87 |
+
undefined4 local_58;
|
| 88 |
+
undefined4 uStack_54;
|
| 89 |
+
undefined4 uStack_50;
|
| 90 |
+
undefined4 uStack_4c;
|
| 91 |
+
undefined4 local_48;
|
| 92 |
+
undefined4 uStack_44;
|
| 93 |
+
undefined4 uStack_40;
|
| 94 |
+
undefined4 uStack_3c;
|
| 95 |
+
long local_30;
|
| 96 |
+
|
| 97 |
+
local_30 = *(long *)(in_FS_OFFSET + 0x28);
|
| 98 |
+
if (param_1 == 2) {
|
| 99 |
+
FUN_00102260(&local_a8);
|
| 100 |
+
pcVar25 = (char *)param_2[1];
|
| 101 |
+
local_58 = _DAT_00104900;
|
| 102 |
+
uStack_54 = _UNK_00104904;
|
| 103 |
+
uStack_50 = _UNK_00104908;
|
| 104 |
+
uStack_4c = _UNK_0010490c;
|
| 105 |
+
local_48 = _DAT_00104910;
|
| 106 |
+
uStack_44 = _UNK_00104914;
|
| 107 |
+
uStack_40 = _UNK_00104918;
|
| 108 |
+
uStack_3c = _UNK_0010491c;
|
| 109 |
+
sVar17 = strlen(pcVar25);
|
| 110 |
+
if (sVar17 == 0x40) {
|
| 111 |
+
lVar21 = 0;
|
| 112 |
+
do {
|
| 113 |
+
cVar1 = pcVar25[lVar21 * 2];
|
| 114 |
+
iVar13 = (int)cVar1;
|
| 115 |
+
if ((byte)(cVar1 - 0x30U) < 10) {
|
| 116 |
+
uVar14 = iVar13 - 0x30;
|
| 117 |
+
}
|
| 118 |
+
else if ((byte)(cVar1 + 0x9fU) < 6) {
|
| 119 |
+
uVar14 = iVar13 - 0x57;
|
| 120 |
+
}
|
| 121 |
+
else {
|
| 122 |
+
uVar14 = iVar13 - 0x37;
|
| 123 |
+
if (5 < (byte)(cVar1 + 0xbfU)) {
|
| 124 |
+
uVar14 = 0xffffffff;
|
| 125 |
+
}
|
| 126 |
+
}
|
| 127 |
+
cVar1 = pcVar25[lVar21 * 2 + 1];
|
| 128 |
+
iVar13 = (int)cVar1;
|
| 129 |
+
if ((byte)(cVar1 - 0x30U) < 10) {
|
| 130 |
+
uVar15 = iVar13 - 0x30;
|
| 131 |
+
}
|
| 132 |
+
else if ((byte)(cVar1 + 0x9fU) < 6) {
|
| 133 |
+
uVar15 = iVar13 - 0x57;
|
| 134 |
+
}
|
| 135 |
+
else {
|
| 136 |
+
if (5 < (byte)(cVar1 + 0xbfU)) goto LAB_00101227;
|
| 137 |
+
uVar15 = iVar13 - 0x37;
|
| 138 |
+
}
|
| 139 |
+
if ((int)(uVar14 | uVar15) < 0) goto LAB_00101227;
|
| 140 |
+
puVar36 = &local_78;
|
| 141 |
+
*(byte *)((long)&local_78 + lVar21) = (byte)(uVar14 << 4) | (byte)uVar15;
|
| 142 |
+
lVar21 = lVar21 + 1;
|
| 143 |
+
} while (lVar21 != 0x20);
|
| 144 |
+
local_b8 = 0xc;
|
| 145 |
+
uVar14 = (uint)local_a8 << 0x18 | (uint)local_a7 << 0x10 | (uint)local_a5 |
|
| 146 |
+
(uint)local_a6 << 8;
|
| 147 |
+
uVar15 = (uint)local_a3 << 0x10 | (uint)local_a4 << 0x18 | (uint)local_a1 |
|
| 148 |
+
(uint)local_a2 << 8;
|
| 149 |
+
uVar16 = (uint)local_9f << 0x10 | (uint)local_a0 << 0x18 | (uint)local_9d |
|
| 150 |
+
(uint)local_9e << 8;
|
| 151 |
+
uVar19 = (uint)local_9c << 0x18 | (uint)local_9b << 0x10 | (uint)local_99 |
|
| 152 |
+
(uint)local_9a << 8;
|
| 153 |
+
lVar21 = 0;
|
| 154 |
+
do {
|
| 155 |
+
uVar23 = (ulong)(uVar19 >> 0x10 & 0xff);
|
| 156 |
+
uVar26 = *(uint *)(&DAT_001034c0 + (ulong)(uVar19 >> 0x18) * 4);
|
| 157 |
+
uVar20 = *(uint *)(&DAT_001034c0 + uVar23 * 4);
|
| 158 |
+
lVar38 = (long)(int)(uVar19 >> 8 & 0xff);
|
| 159 |
+
uVar27 = *(uint *)(&DAT_001034c0 + (ulong)(uVar19 & 0xff) * 4);
|
| 160 |
+
uVar29 = *(uint *)(&DAT_001034c0 + lVar38 * 4);
|
| 161 |
+
uVar26 = ((&DAT_001030c0)[(int)(uVar26 >> 0x18)] & 0xff000000 |
|
| 162 |
+
(uint)*(byte *)(&DAT_001030c0 + (uVar26 & 0xff))) ^
|
| 163 |
+
((&DAT_001030c0)[uVar26 >> 0x10 & 0xff] & 0xff0000 |
|
| 164 |
+
(&DAT_001030c0)[(int)(uVar26 >> 8 & 0xff)] & 0xff00) ^
|
| 165 |
+
*(uint *)(&DAT_001034c0 + (long)(int)(uVar16 >> 0x18) * 4);
|
| 166 |
+
uVar39 = (ulong)(uVar16 >> 0x10 & 0xff);
|
| 167 |
+
uVar31 = ((&DAT_001030c0)[uVar20 >> 0x10 & 0xff] & 0xff0000 |
|
| 168 |
+
(&DAT_001030c0)[(int)(uVar20 >> 8 & 0xff)] & 0xff00) ^
|
| 169 |
+
*(uint *)(&DAT_001034c0 + uVar39 * 4) ^
|
| 170 |
+
((&DAT_001030c0)[(int)(uVar20 >> 0x18)] & 0xff000000 |
|
| 171 |
+
(uint)*(byte *)(&DAT_001030c0 + (uVar20 & 0xff)));
|
| 172 |
+
lVar33 = (long)(int)(uVar16 >> 8 & 0xff);
|
| 173 |
+
uVar20 = ((&DAT_001030c0)[(int)(uVar29 >> 0x18)] & 0xff000000 |
|
| 174 |
+
(uint)*(byte *)(&DAT_001030c0 + (uVar29 & 0xff))) ^
|
| 175 |
+
((&DAT_001030c0)[uVar29 >> 0x10 & 0xff] & 0xff0000 |
|
| 176 |
+
(&DAT_001030c0)[(int)(uVar29 >> 8 & 0xff)] & 0xff00) ^
|
| 177 |
+
*(uint *)(&DAT_001034c0 + lVar33 * 4);
|
| 178 |
+
uVar32 = ((&DAT_001030c0)[uVar27 >> 0x10 & 0xff] & 0xff0000 |
|
| 179 |
+
(&DAT_001030c0)[(int)(uVar27 >> 8 & 0xff)] & 0xff00) ^
|
| 180 |
+
*(uint *)(&DAT_001034c0 + (ulong)(uVar16 & 0xff) * 4) ^
|
| 181 |
+
((&DAT_001030c0)[(int)(uVar27 >> 0x18)] & 0xff000000 |
|
| 182 |
+
(uint)*(byte *)(&DAT_001030c0 + (uVar27 & 0xff)));
|
| 183 |
+
uVar26 = ((&DAT_001030c0)[(int)(uVar26 >> 8 & 0xff)] & 0xff00 |
|
| 184 |
+
(&DAT_001030c0)[uVar26 >> 0x10 & 0xff] & 0xff0000) ^
|
| 185 |
+
*(uint *)(&DAT_001034c0 + (long)(int)(uVar15 >> 0x18) * 4) ^
|
| 186 |
+
((&DAT_001030c0)[(int)(uVar26 >> 0x18)] & 0xff000000 |
|
| 187 |
+
(uint)*(byte *)(&DAT_001030c0 + (uVar26 & 0xff)));
|
| 188 |
+
uVar18 = (ulong)(uVar15 >> 0x10 & 0xff);
|
| 189 |
+
uVar29 = uVar15 & 0xff;
|
| 190 |
+
lVar35 = (long)(int)(uVar15 >> 8 & 0xff);
|
| 191 |
+
uVar27 = ((&DAT_001030c0)[uVar31 >> 0x18] & 0xff000000 |
|
| 192 |
+
(uint)*(byte *)(&DAT_001030c0 + (uVar31 & 0xff))) ^
|
| 193 |
+
((&DAT_001030c0)[(int)(uVar31 >> 8 & 0xff)] & 0xff00 |
|
| 194 |
+
(&DAT_001030c0)[uVar31 >> 0x10 & 0xff] & 0xff0000) ^
|
| 195 |
+
*(uint *)(&DAT_001034c0 + uVar18 * 4);
|
| 196 |
+
uVar31 = ((&DAT_001030c0)[uVar20 >> 0x10 & 0xff] & 0xff0000 |
|
| 197 |
+
(&DAT_001030c0)[(int)(uVar20 >> 8 & 0xff)] & 0xff00) ^
|
| 198 |
+
*(uint *)(&DAT_001034c0 + lVar35 * 4) ^
|
| 199 |
+
((&DAT_001030c0)[uVar20 >> 0x18] & 0xff000000 |
|
| 200 |
+
(uint)*(byte *)(&DAT_001030c0 + (uVar20 & 0xff)));
|
| 201 |
+
uVar20 = ((&DAT_001030c0)[(int)(uVar32 >> 8 & 0xff)] & 0xff00 |
|
| 202 |
+
(&DAT_001030c0)[uVar32 >> 0x10 & 0xff] & 0xff0000) ^
|
| 203 |
+
*(uint *)(&DAT_001034c0 + (ulong)uVar29 * 4) ^
|
| 204 |
+
((&DAT_001030c0)[uVar32 >> 0x18] & 0xff000000 |
|
| 205 |
+
(uint)*(byte *)(&DAT_001030c0 + (uVar32 & 0xff)));
|
| 206 |
+
uVar3 = (&DAT_001030c0)[uVar20 >> 0x10 & 0xff];
|
| 207 |
+
uVar4 = (&DAT_001030c0)[uVar31 >> 0x10 & 0xff];
|
| 208 |
+
uVar5 = (&DAT_001030c0)[(int)(uVar31 >> 8 & 0xff)];
|
| 209 |
+
uVar6 = (&DAT_001030c0)[(int)(uVar20 >> 8 & 0xff)];
|
| 210 |
+
uVar7 = (&DAT_001030c0)[uVar20 >> 0x18];
|
| 211 |
+
uVar8 = (&DAT_001030c0)[uVar20 & 0xff];
|
| 212 |
+
uVar9 = (&DAT_001030c0)[uVar31 >> 0x18];
|
| 213 |
+
local_3b8 = (byte)uVar14;
|
| 214 |
+
uVar10 = (&DAT_001030c0)[uVar31 & 0xff];
|
| 215 |
+
lVar22 = (long)(int)(uVar14 >> 8 & 0xff);
|
| 216 |
+
local_330 = (byte)(uVar14 >> 0x10);
|
| 217 |
+
uVar11 = *(undefined4 *)(&DAT_001034c0 + lVar22 * 4);
|
| 218 |
+
uVar12 = *(undefined4 *)(&DAT_001034c0 + (ulong)local_3b8 * 4);
|
| 219 |
+
*(ulong *)((long)&local_318 + lVar21) =
|
| 220 |
+
CONCAT44((&DAT_001030c0)[uVar27 >> 0x10 & 0xff],(&DAT_001030c0)[uVar26 >> 0x10 & 0xff])
|
| 221 |
+
& _DAT_001048c0 ^
|
| 222 |
+
CONCAT44((&DAT_001030c0)[(int)(uVar27 >> 8 & 0xff)],
|
| 223 |
+
(&DAT_001030c0)[(int)(uVar26 >> 8 & 0xff)]) & _DAT_001048d0 ^
|
| 224 |
+
(CONCAT44((&DAT_001030c0)[(int)(uVar27 >> 0x18)],(&DAT_001030c0)[(int)(uVar26 >> 0x18)]
|
| 225 |
+
) & _DAT_001048e0 |
|
| 226 |
+
CONCAT44((&DAT_001030c0)[uVar27 & 0xff],(&DAT_001030c0)[uVar26 & 0xff]) & _DAT_001048f0
|
| 227 |
+
) ^ CONCAT44(*(undefined4 *)(&DAT_001034c0 + (ulong)local_330 * 4),
|
| 228 |
+
*(undefined4 *)(&DAT_001034c0 + (long)(int)(uVar14 >> 0x18) * 4));
|
| 229 |
+
*(ulong *)((long)&uStack_310 + lVar21) =
|
| 230 |
+
CONCAT44(uVar3,uVar4) & _UNK_001048c8 ^ CONCAT44(uVar6,uVar5) & _UNK_001048d8 ^
|
| 231 |
+
(CONCAT44(uVar7,uVar9) & _UNK_001048e8 | CONCAT44(uVar8,uVar10) & _UNK_001048f8) ^
|
| 232 |
+
CONCAT44(uVar12,uVar11);
|
| 233 |
+
uVar15 = (&DAT_001044c0)[(int)(uVar15 >> 0x18)] ^
|
| 234 |
+
*(uint *)(&DAT_001038c0 + (ulong)(uVar16 & 0xff) * 4) ^
|
| 235 |
+
*(uint *)(&DAT_001040c0 + (ulong)local_330 * 4) ^
|
| 236 |
+
*(uint *)(&DAT_00103cc0 + lVar38 * 4);
|
| 237 |
+
uVar16 = (&DAT_001044c0)[(int)(uVar16 >> 0x18)] ^
|
| 238 |
+
*(uint *)(&DAT_001038c0 + (ulong)(uVar19 & 0xff) * 4) ^
|
| 239 |
+
*(uint *)(&DAT_001040c0 + uVar18 * 4) ^ *(uint *)(&DAT_00103cc0 + lVar22 * 4);
|
| 240 |
+
uVar19 = (&DAT_001044c0)[uVar19 >> 0x18] ^ *(uint *)(&DAT_001038c0 + (ulong)local_3b8 * 4) ^
|
| 241 |
+
*(uint *)(&DAT_001040c0 + uVar39 * 4) ^ *(uint *)(&DAT_00103cc0 + lVar35 * 4);
|
| 242 |
+
lVar22 = lVar21 + 0x10;
|
| 243 |
+
uVar14 = (*(uint *)((long)&DAT_00103cc8 + lVar21) & 0xff00 |
|
| 244 |
+
(uint)(byte)(&DAT_001038cc)[lVar21]) ^ (&DAT_001044c0)[(int)(uVar14 >> 0x18)] ^
|
| 245 |
+
*(uint *)(&DAT_001038c0 + (ulong)uVar29 * 4) ^
|
| 246 |
+
(*(uint *)((long)&DAT_001044c0 + lVar21) & 0xff000000 |
|
| 247 |
+
*(uint *)((long)&DAT_001040c4 + lVar21) & 0xff0000) ^
|
| 248 |
+
*(uint *)(&DAT_001040c0 + uVar23 * 4) ^ *(uint *)(&DAT_00103cc0 + lVar33 * 4);
|
| 249 |
+
lVar21 = lVar22;
|
| 250 |
+
} while (lVar22 != 0xd0);
|
| 251 |
+
local_1e8 = local_260[2];
|
| 252 |
+
uStack_1e4 = local_260[3];
|
| 253 |
+
uStack_1e0 = local_260[4];
|
| 254 |
+
uStack_1dc = uStack_24c;
|
| 255 |
+
puVar24 = &local_268;
|
| 256 |
+
puVar34 = local_1d8;
|
| 257 |
+
do {
|
| 258 |
+
puVar30 = puVar24;
|
| 259 |
+
uVar14 = *(uint *)puVar30;
|
| 260 |
+
uVar15 = *(uint *)((long)puVar30 + 4);
|
| 261 |
+
uVar16 = *(uint *)(puVar30 + 1);
|
| 262 |
+
uVar19 = *(uint *)((long)puVar30 + 0xc);
|
| 263 |
+
uVar26 = (&DAT_001044c0)[(byte)(&DAT_001034c0)[(ulong)(uVar16 >> 0x18) * 4]];
|
| 264 |
+
uVar20 = *(uint *)(&DAT_001038c0 +
|
| 265 |
+
(ulong)(byte)(&DAT_001034c0)[(ulong)(uVar16 & 0xff) * 4] * 4);
|
| 266 |
+
uVar27 = *(uint *)(&DAT_001040c0 +
|
| 267 |
+
(ulong)(byte)(&DAT_001034c0)[(ulong)(uVar16 >> 0x10 & 0xff) * 4] * 4);
|
| 268 |
+
uVar16 = *(uint *)(&DAT_00103cc0 +
|
| 269 |
+
(ulong)(byte)(&DAT_001034c0)[(long)(int)(uVar16 >> 8 & 0xff) * 4] * 4);
|
| 270 |
+
uVar29 = (&DAT_001044c0)[(byte)(&DAT_001034c0)[(ulong)(uVar19 >> 0x18) * 4]];
|
| 271 |
+
uVar31 = *(uint *)(&DAT_001038c0 +
|
| 272 |
+
(ulong)(byte)(&DAT_001034c0)[(ulong)(uVar19 & 0xff) * 4] * 4);
|
| 273 |
+
uVar32 = *(uint *)(&DAT_001040c0 +
|
| 274 |
+
(ulong)(byte)(&DAT_001034c0)[(ulong)(uVar19 >> 0x10 & 0xff) * 4] * 4);
|
| 275 |
+
uVar19 = *(uint *)(&DAT_00103cc0 +
|
| 276 |
+
(ulong)(byte)(&DAT_001034c0)[(long)(int)(uVar19 >> 8 & 0xff) * 4] * 4);
|
| 277 |
+
*puVar34 = CONCAT44((&DAT_001044c0)[(byte)(&DAT_001034c0)[(ulong)(uVar15 >> 0x18) * 4]] ^
|
| 278 |
+
*(uint *)(&DAT_001038c0 +
|
| 279 |
+
(ulong)(byte)(&DAT_001034c0)[(ulong)(uVar15 & 0xff) * 4] * 4) ^
|
| 280 |
+
*(uint *)(&DAT_001040c0 +
|
| 281 |
+
(ulong)(byte)(&DAT_001034c0)
|
| 282 |
+
[(ulong)(uVar15 >> 0x10 & 0xff) * 4] * 4) ^
|
| 283 |
+
*(uint *)(&DAT_00103cc0 +
|
| 284 |
+
(ulong)(byte)(&DAT_001034c0)
|
| 285 |
+
[(long)(int)(uVar15 >> 8 & 0xff) * 4] * 4),
|
| 286 |
+
(&DAT_001044c0)[(byte)(&DAT_001034c0)[(ulong)(uVar14 >> 0x18) * 4]] ^
|
| 287 |
+
*(uint *)(&DAT_001038c0 +
|
| 288 |
+
(ulong)(byte)(&DAT_001034c0)[(ulong)(uVar14 & 0xff) * 4] * 4) ^
|
| 289 |
+
*(uint *)(&DAT_001040c0 +
|
| 290 |
+
(ulong)(byte)(&DAT_001034c0)
|
| 291 |
+
[(ulong)(uVar14 >> 0x10 & 0xff) * 4] * 4) ^
|
| 292 |
+
*(uint *)(&DAT_00103cc0 +
|
| 293 |
+
(ulong)(byte)(&DAT_001034c0)
|
| 294 |
+
[(long)(int)(uVar14 >> 8 & 0xff) * 4] * 4));
|
| 295 |
+
puVar34[1] = CONCAT44(uVar29 ^ uVar31 ^ uVar32 ^ uVar19,uVar26 ^ uVar20 ^ uVar27 ^ uVar16);
|
| 296 |
+
puVar24 = puVar30 + -2;
|
| 297 |
+
puVar34 = puVar34 + 2;
|
| 298 |
+
} while ((undefined8 *)&local_318 != puVar30 + -2);
|
| 299 |
+
uVar18 = 0xb0cc01d1435734c;
|
| 300 |
+
uVar23 = 0xecee764be3cb7a79;
|
| 301 |
+
local_3a0 = local_98;
|
| 302 |
+
do {
|
| 303 |
+
uVar19 = (byte)((byte)(uVar23 >> 0x18) ^ *(byte *)((long)puVar36 + 0xb)) ^ uStack_310 ^
|
| 304 |
+
((uint)*(byte *)(puVar36 + 1) ^ (uint)uVar23) << 0x18 ^
|
| 305 |
+
(uint)(byte)((byte)(uVar23 >> 8) ^ *(byte *)((long)puVar36 + 9)) << 0x10 ^
|
| 306 |
+
(uint)(byte)((byte)(uVar23 >> 0x10) ^ *(byte *)((long)puVar36 + 10)) << 8;
|
| 307 |
+
uVar16 = (uint)(byte)((byte)(uVar23 >> 0x28) ^ *(byte *)((long)puVar36 + 0xd)) << 0x10 ^
|
| 308 |
+
(byte)((byte)(uVar23 >> 0x38) ^ *(byte *)((long)puVar36 + 0xf)) ^ uStack_30c ^
|
| 309 |
+
(uint)(byte)((byte)(uVar23 >> 0x20) ^ *(byte *)((long)puVar36 + 0xc)) << 0x18 ^
|
| 310 |
+
(uint)(byte)((byte)(uVar23 >> 0x30) ^ *(byte *)((long)puVar36 + 0xe)) << 8;
|
| 311 |
+
puVar24 = &local_308;
|
| 312 |
+
uVar14 = ((uint)*(byte *)puVar36 ^ (uint)uVar18) << 0x18 ^
|
| 313 |
+
(byte)((byte)(uVar18 >> 0x18) ^ *(byte *)((long)puVar36 + 3)) ^ local_318 ^
|
| 314 |
+
(uint)(byte)((byte)(uVar18 >> 8) ^ *(byte *)((long)puVar36 + 1)) << 0x10 ^
|
| 315 |
+
(uint)(byte)((byte)(uVar18 >> 0x10) ^ *(byte *)((long)puVar36 + 2)) << 8;
|
| 316 |
+
uVar15 = (uint)(byte)((byte)(uVar18 >> 0x28) ^ *(byte *)((long)puVar36 + 5)) << 0x10 ^
|
| 317 |
+
(byte)((byte)(uVar18 >> 0x38) ^ *(byte *)((long)puVar36 + 7)) ^ uStack_314 ^
|
| 318 |
+
(uint)(byte)((byte)(uVar18 >> 0x20) ^ *(byte *)((long)puVar36 + 4)) << 0x18 ^
|
| 319 |
+
(uint)(byte)((byte)(uVar18 >> 0x30) ^ *(byte *)((long)puVar36 + 6)) << 8;
|
| 320 |
+
do {
|
| 321 |
+
puVar34 = puVar24 + 2;
|
| 322 |
+
uVar20 = (&DAT_001044c0)[(int)(uVar14 >> 0x18)] ^
|
| 323 |
+
*(uint *)(&DAT_001040c0 + (ulong)(uVar15 >> 0x18) * 4) ^ *(uint *)puVar24 ^
|
| 324 |
+
*(uint *)(&DAT_00103cc0 + (ulong)(uVar19 >> 0x18) * 4) ^
|
| 325 |
+
*(uint *)(&DAT_001038c0 + (ulong)(uVar16 >> 0x18) * 4);
|
| 326 |
+
uVar26 = (&DAT_001044c0)[uVar14 >> 0x10 & 0xff] ^
|
| 327 |
+
*(uint *)(&DAT_001040c0 + ((ulong)(uVar15 >> 0x10) & 0xff) * 4) ^
|
| 328 |
+
*(uint *)((long)puVar24 + 4) ^
|
| 329 |
+
*(uint *)(&DAT_00103cc0 + (ulong)(uVar19 >> 0x10 & 0xff) * 4) ^
|
| 330 |
+
*(uint *)(&DAT_001038c0 + (ulong)(uVar16 >> 0x10 & 0xff) * 4);
|
| 331 |
+
bVar28 = (byte)uVar19;
|
| 332 |
+
uVar19 = (&DAT_001044c0)[(int)(uVar14 >> 8 & 0xff)] ^
|
| 333 |
+
*(uint *)(&DAT_001040c0 + (long)(int)(uVar15 >> 8 & 0xff) * 4) ^
|
| 334 |
+
*(uint *)(puVar24 + 1) ^
|
| 335 |
+
*(uint *)(&DAT_00103cc0 + (long)(int)(uVar19 >> 8 & 0xff) * 4) ^
|
| 336 |
+
*(uint *)(&DAT_001038c0 + (long)(int)(uVar16 >> 8 & 0xff) * 4);
|
| 337 |
+
local_3b8 = (byte)uVar14;
|
| 338 |
+
uVar16 = (&DAT_001044c0)[local_3b8] ^ *(uint *)(&DAT_001040c0 + (ulong)(byte)uVar15 * 4) ^
|
| 339 |
+
*(uint *)((long)puVar24 + 0xc) ^ *(uint *)(&DAT_00103cc0 + (ulong)bVar28 * 4) ^
|
| 340 |
+
*(uint *)(&DAT_001038c0 + (ulong)(uVar16 & 0xff) * 4);
|
| 341 |
+
puVar24 = puVar34;
|
| 342 |
+
uVar14 = uVar20;
|
| 343 |
+
uVar15 = uVar26;
|
| 344 |
+
} while (puVar30 + 0x16 != puVar34);
|
| 345 |
+
uVar29 = (byte)(&DAT_001038c0)[(ulong)(uVar16 >> 0x18) * 4] ^ local_260[2] ^
|
| 346 |
+
*(uint *)(&DAT_00103cc0 + (ulong)(uVar19 >> 0x18) * 4) & 0xff00 ^
|
| 347 |
+
((&DAT_001044c0)[uVar20 >> 0x18] & 0xff000000 |
|
| 348 |
+
*(uint *)(&DAT_001040c0 + (ulong)(uVar26 >> 0x18) * 4) & 0xff0000);
|
| 349 |
+
uVar27 = (byte)(&DAT_001038c0)[(ulong)(uVar16 >> 0x10 & 0xff) * 4] ^ local_260[3] ^
|
| 350 |
+
*(uint *)(&DAT_00103cc0 + (ulong)(uVar19 >> 0x10 & 0xff) * 4) & 0xff00 ^
|
| 351 |
+
((&DAT_001044c0)[uVar20 >> 0x10 & 0xff] & 0xff000000 |
|
| 352 |
+
*(uint *)(&DAT_001040c0 + (ulong)(uVar26 >> 0x10 & 0xff) * 4) & 0xff0000);
|
| 353 |
+
uVar15 = (byte)(&DAT_001038c0)[(long)(int)(uVar16 >> 8 & 0xff) * 4] ^ local_260[4] ^
|
| 354 |
+
*(uint *)(&DAT_00103cc0 + (long)(int)(uVar19 >> 8 & 0xff) * 4) & 0xff00 ^
|
| 355 |
+
((&DAT_001044c0)[(int)(uVar20 >> 8 & 0xff)] & 0xff000000 |
|
| 356 |
+
*(uint *)(&DAT_001040c0 + (long)(int)(uVar26 >> 8 & 0xff) * 4) & 0xff0000);
|
| 357 |
+
uVar14 = *(uint *)(&DAT_00103cc0 + (ulong)(uVar19 & 0xff) * 4) & 0xff00 ^
|
| 358 |
+
(byte)(&DAT_001038c0)[(ulong)(uVar16 & 0xff) * 4] ^ uStack_24c ^
|
| 359 |
+
((&DAT_001044c0)[uVar20 & 0xff] & 0xff000000 |
|
| 360 |
+
*(uint *)(&DAT_001040c0 + (ulong)(uVar26 & 0xff) * 4) & 0xff0000);
|
| 361 |
+
local_3b8 = (byte)(uVar29 >> 0x18);
|
| 362 |
+
puVar36 = puVar36 + 2;
|
| 363 |
+
uVar18 = (((((((ulong)(uVar27 & 0xff) << 8 | (ulong)(uVar27 >> 8 & 0xff)) << 8 |
|
| 364 |
+
(ulong)(uVar27 >> 0x10) & 0xff) << 8 | (ulong)(uVar27 >> 0x18)) << 8 |
|
| 365 |
+
(ulong)(uVar29 & 0xff)) << 8 | (ulong)(uVar29 >> 8 & 0xff)) << 8 |
|
| 366 |
+
(ulong)(uVar29 >> 0x10 & 0xff)) << 8 | (ulong)local_3b8;
|
| 367 |
+
local_38c = (byte)(uVar15 >> 0x10);
|
| 368 |
+
local_390 = (byte)(uVar15 >> 0x18);
|
| 369 |
+
*local_3a0 = uVar18;
|
| 370 |
+
local_3a0[1] = (((((((ulong)(uVar14 & 0xff) << 8 | (ulong)(uVar14 >> 8 & 0xff)) << 8 |
|
| 371 |
+
(ulong)(uVar14 >> 0x10 & 0xff)) << 8 | (ulong)(uVar14 >> 0x18)) << 8 |
|
| 372 |
+
(ulong)(uVar15 & 0xff)) << 8 | (ulong)(uVar15 >> 8) & 0xff) << 8 |
|
| 373 |
+
(ulong)local_38c) << 8 | (ulong)local_390;
|
| 374 |
+
uVar23 = local_3a0[1];
|
| 375 |
+
local_3a0 = local_3a0 + 2;
|
| 376 |
+
} while (puVar36 != (undefined8 *)&local_58);
|
| 377 |
+
__printf_chk(1,"Ciphertext(hex): ");
|
| 378 |
+
puVar37 = local_98;
|
| 379 |
+
do {
|
| 380 |
+
uVar2 = *(undefined *)puVar37;
|
| 381 |
+
puVar37 = (ulong *)((long)puVar37 + 1);
|
| 382 |
+
__printf_chk(1,&DAT_0010303b,uVar2);
|
| 383 |
+
} while (&local_78 != puVar37);
|
| 384 |
+
__printf_chk(1,"\n");
|
| 385 |
+
iVar13 = memcmp(local_98,&local_58,0x20);
|
| 386 |
+
pcVar25 = "True";
|
| 387 |
+
if (iVar13 != 0) {
|
| 388 |
+
pcVar25 = "False";
|
| 389 |
+
}
|
| 390 |
+
__printf_chk(1,"Match: %s\n",pcVar25);
|
| 391 |
+
bVar40 = iVar13 != 0;
|
| 392 |
+
}
|
| 393 |
+
else {
|
| 394 |
+
LAB_00101227:
|
| 395 |
+
__fprintf_chk(*(undefined8 *)PTR_stderr_00105ff8,1,
|
| 396 |
+
"Bad input hex. Expecting 64 hex chars (32 bytes).\n");
|
| 397 |
+
bVar40 = true;
|
| 398 |
+
}
|
| 399 |
+
}
|
| 400 |
+
else {
|
| 401 |
+
__fprintf_chk(*(undefined8 *)PTR_stderr_00105ff8,1,"Usage: %s <64-hex-chars>\n",*param_2);
|
| 402 |
+
bVar40 = true;
|
| 403 |
+
}
|
| 404 |
+
if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
|
| 405 |
+
return bVar40;
|
| 406 |
+
}
|
| 407 |
+
/* WARNING: Subroutine does not return */
|
| 408 |
+
__stack_chk_fail();
|
| 409 |
+
}
|
| 410 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/FUN_00102130_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Removing unreachable block (ram,0x00102143) */
|
| 3 |
+
/* WARNING: Removing unreachable block (ram,0x0010214f) */
|
| 4 |
+
|
| 5 |
+
void FUN_00102130(void)
|
| 6 |
+
|
| 7 |
+
{
|
| 8 |
+
return;
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/FUN_00102160_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Removing unreachable block (ram,0x00102184) */
|
| 3 |
+
/* WARNING: Removing unreachable block (ram,0x00102190) */
|
| 4 |
+
|
| 5 |
+
void FUN_00102160(void)
|
| 6 |
+
|
| 7 |
+
{
|
| 8 |
+
return;
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/FUN_001021f0_decompiled
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
byte FUN_001021f0(ulong param_1)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
byte local_19;
|
| 6 |
+
|
| 7 |
+
if ((param_1 & 1) == 0) {
|
| 8 |
+
local_19 = (&DAT_001030a8)[param_1 >> 1];
|
| 9 |
+
}
|
| 10 |
+
else {
|
| 11 |
+
local_19 = (&DAT_001030a0)[param_1 >> 1];
|
| 12 |
+
}
|
| 13 |
+
local_19 = local_19 ^ 0x5b;
|
| 14 |
+
return local_19;
|
| 15 |
+
}
|
| 16 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/FUN_00102260_decompiled
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void FUN_00102260(long param_1,ulong param_2)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
undefined uVar1;
|
| 6 |
+
ulong local_18;
|
| 7 |
+
|
| 8 |
+
for (local_18 = 0; local_18 < param_2; local_18 = local_18 + 1) {
|
| 9 |
+
uVar1 = FUN_001021f0((uint)local_18 & 0xf);
|
| 10 |
+
*(undefined *)(param_1 + local_18) = uVar1;
|
| 11 |
+
}
|
| 12 |
+
return;
|
| 13 |
+
}
|
| 14 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/_DT_FINI_decompiled
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void _DT_FINI(void)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
return;
|
| 6 |
+
}
|
| 7 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/_DT_INIT_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void _DT_INIT(void)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
if (PTR___gmon_start___00105fe0 != (undefined *)0x0) {
|
| 6 |
+
(*(code *)PTR___gmon_start___00105fe0)();
|
| 7 |
+
}
|
| 8 |
+
return;
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/_FINI_0_decompiled
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void _FINI_0(void)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
if (DAT_00106010 == '\0') {
|
| 6 |
+
if (PTR___cxa_finalize_00105ff0 != (undefined *)0x0) {
|
| 7 |
+
__cxa_finalize(PTR_LOOP_00106008);
|
| 8 |
+
}
|
| 9 |
+
FUN_00102130();
|
| 10 |
+
DAT_00106010 = 1;
|
| 11 |
+
return;
|
| 12 |
+
}
|
| 13 |
+
return;
|
| 14 |
+
}
|
| 15 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/_INIT_0_decompiled
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void _INIT_0(void)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
FUN_00102160();
|
| 6 |
+
return;
|
| 7 |
+
}
|
| 8 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/_ITM_deregisterTMCloneTable_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
|
| 4 |
+
void _ITM_deregisterTMCloneTable(void)
|
| 5 |
+
|
| 6 |
+
{
|
| 7 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 8 |
+
halt_baddata();
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/_ITM_registerTMCloneTable_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
|
| 4 |
+
void _ITM_registerTMCloneTable(void)
|
| 5 |
+
|
| 6 |
+
{
|
| 7 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 8 |
+
halt_baddata();
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/__cxa_finalize_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
|
| 4 |
+
void __cxa_finalize(void)
|
| 5 |
+
|
| 6 |
+
{
|
| 7 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 8 |
+
halt_baddata();
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/__fprintf_chk_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
|
| 4 |
+
void __fprintf_chk(void)
|
| 5 |
+
|
| 6 |
+
{
|
| 7 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 8 |
+
halt_baddata();
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/__gmon_start___decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
|
| 4 |
+
void __gmon_start__(void)
|
| 5 |
+
|
| 6 |
+
{
|
| 7 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 8 |
+
halt_baddata();
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/__libc_start_main_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
|
| 4 |
+
void __libc_start_main(void)
|
| 5 |
+
|
| 6 |
+
{
|
| 7 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 8 |
+
halt_baddata();
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/__printf_chk_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
|
| 4 |
+
void __printf_chk(void)
|
| 5 |
+
|
| 6 |
+
{
|
| 7 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 8 |
+
halt_baddata();
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/__stack_chk_fail_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
|
| 4 |
+
void __stack_chk_fail(void)
|
| 5 |
+
|
| 6 |
+
{
|
| 7 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 8 |
+
halt_baddata();
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/entry_decompiled
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void processEntry entry(undefined8 param_1,undefined8 param_2)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
undefined auStack_8 [8];
|
| 6 |
+
|
| 7 |
+
(*(code *)PTR___libc_start_main_00105fd0)
|
| 8 |
+
(FUN_001010e0,param_2,&stack0x00000008,0,0,param_1,auStack_8);
|
| 9 |
+
do {
|
| 10 |
+
/* WARNING: Do nothing block with infinite loop */
|
| 11 |
+
} while( true );
|
| 12 |
+
}
|
| 13 |
+
|
CREBench/Anubis-128-CBC/public-fragmented_build-O3/decompile/memcmp_decompiled
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Control flow encountered bad instruction data */
|
| 3 |
+
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
|
| 4 |
+
|
| 5 |
+
int memcmp(void *__s1,void *__s2,size_t __n)
|
| 6 |
+
|
| 7 |
+
{
|
| 8 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 9 |
+
halt_baddata();
|
| 10 |
+
}
|
| 11 |
+
|