Upload CREBench benchmark corpus (48 algorithms, 432 instances) (part 8)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- CREBench/CAST5/public-hardcode_plain-O0/decompile/FUN_001016fb_decompiled +21 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/FUN_001017b4_decompiled +21 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/FUN_0010186b_decompiled +21 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/FUN_00101924_decompiled +352 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/FUN_00102b21_decompiled +48 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/FUN_00102d62_decompiled +46 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/FUN_00102fa3_decompiled +28 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/FUN_0010307c_decompiled +30 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/_DT_FINI_decompiled +7 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/_DT_INIT_decompiled +10 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/_FINI_0_decompiled +15 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/_INIT_0_decompiled +8 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/_ITM_deregisterTMCloneTable_decompiled +10 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/_ITM_registerTMCloneTable_decompiled +10 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/__cxa_finalize_decompiled +10 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/__gmon_start___decompiled +10 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/__libc_start_main_decompiled +10 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/__stack_chk_fail_decompiled +10 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/entry_decompiled +13 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/fprintf_decompiled +11 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/fwrite_decompiled +11 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/memcmp_decompiled +11 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/memset_decompiled +11 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/printf_decompiled +11 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/putchar_decompiled +11 -0
- CREBench/CAST5/public-hardcode_plain-O0/decompile/strlen_decompiled +11 -0
- CREBench/CAST5/public-hardcode_plain-O3/address.json +28 -0
- CREBench/CAST5/public-hardcode_plain-O3/challenge +0 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/FUN_00101020_decompiled +9 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/FUN_001010e0_decompiled +492 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/FUN_00102020_decompiled +10 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/FUN_00102050_decompiled +10 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/FUN_001020e0_decompiled +12 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/_DT_FINI_decompiled +7 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/_DT_INIT_decompiled +10 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/_FINI_0_decompiled +15 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/_INIT_0_decompiled +8 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/_ITM_deregisterTMCloneTable_decompiled +10 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/_ITM_registerTMCloneTable_decompiled +10 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/__cxa_finalize_decompiled +10 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/__fprintf_chk_decompiled +10 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/__gmon_start___decompiled +10 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/__libc_start_main_decompiled +10 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/__printf_chk_decompiled +10 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/__stack_chk_fail_decompiled +10 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/entry_decompiled +13 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/memcmp_decompiled +11 -0
- CREBench/CAST5/public-hardcode_plain-O3/decompile/strlen_decompiled +11 -0
- CREBench/CAST5/public-hardcode_plain-constxor/address.json +41 -0
- CREBench/CAST5/public-hardcode_plain-constxor/challenge +0 -0
CREBench/CAST5/public-hardcode_plain-O0/decompile/FUN_001016fb_decompiled
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
int FUN_001016fb(int param_1,int param_2,undefined4 param_3)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
uint uVar1;
|
| 6 |
+
uint uVar2;
|
| 7 |
+
int iVar3;
|
| 8 |
+
byte bVar4;
|
| 9 |
+
undefined4 uVar5;
|
| 10 |
+
|
| 11 |
+
uVar5 = FUN_001016df(param_2 + param_1,param_3);
|
| 12 |
+
bVar4 = FUN_001016a6(uVar5);
|
| 13 |
+
uVar1 = *(uint *)(&DAT_001040a0 + (long)(int)(uint)bVar4 * 4);
|
| 14 |
+
bVar4 = FUN_001016b5(uVar5);
|
| 15 |
+
uVar2 = *(uint *)(&DAT_001044a0 + (long)(int)(uint)bVar4 * 4);
|
| 16 |
+
bVar4 = FUN_001016c4(uVar5);
|
| 17 |
+
iVar3 = *(int *)(&DAT_001048a0 + (long)(int)(uint)bVar4 * 4);
|
| 18 |
+
bVar4 = FUN_001016d3(uVar5);
|
| 19 |
+
return *(int *)(&DAT_00104ca0 + (long)(int)(uint)bVar4 * 4) + ((uVar1 ^ uVar2) - iVar3);
|
| 20 |
+
}
|
| 21 |
+
|
CREBench/CAST5/public-hardcode_plain-O0/decompile/FUN_001017b4_decompiled
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
uint FUN_001017b4(uint param_1,uint param_2,undefined4 param_3)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
int iVar1;
|
| 6 |
+
int iVar2;
|
| 7 |
+
int iVar3;
|
| 8 |
+
byte bVar4;
|
| 9 |
+
undefined4 uVar5;
|
| 10 |
+
|
| 11 |
+
uVar5 = FUN_001016df(param_2 ^ param_1,param_3);
|
| 12 |
+
bVar4 = FUN_001016a6(uVar5);
|
| 13 |
+
iVar1 = *(int *)(&DAT_001040a0 + (long)(int)(uint)bVar4 * 4);
|
| 14 |
+
bVar4 = FUN_001016b5(uVar5);
|
| 15 |
+
iVar2 = *(int *)(&DAT_001044a0 + (long)(int)(uint)bVar4 * 4);
|
| 16 |
+
bVar4 = FUN_001016c4(uVar5);
|
| 17 |
+
iVar3 = *(int *)(&DAT_001048a0 + (long)(int)(uint)bVar4 * 4);
|
| 18 |
+
bVar4 = FUN_001016d3(uVar5);
|
| 19 |
+
return *(uint *)(&DAT_00104ca0 + (long)(int)(uint)bVar4 * 4) ^ (iVar1 - iVar2) + iVar3;
|
| 20 |
+
}
|
| 21 |
+
|
CREBench/CAST5/public-hardcode_plain-O0/decompile/FUN_0010186b_decompiled
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
int FUN_0010186b(int param_1,int param_2,undefined4 param_3)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
int iVar1;
|
| 6 |
+
int iVar2;
|
| 7 |
+
uint uVar3;
|
| 8 |
+
byte bVar4;
|
| 9 |
+
undefined4 uVar5;
|
| 10 |
+
|
| 11 |
+
uVar5 = FUN_001016df(param_2 - param_1,param_3);
|
| 12 |
+
bVar4 = FUN_001016a6(uVar5);
|
| 13 |
+
iVar1 = *(int *)(&DAT_001040a0 + (long)(int)(uint)bVar4 * 4);
|
| 14 |
+
bVar4 = FUN_001016b5(uVar5);
|
| 15 |
+
iVar2 = *(int *)(&DAT_001044a0 + (long)(int)(uint)bVar4 * 4);
|
| 16 |
+
bVar4 = FUN_001016c4(uVar5);
|
| 17 |
+
uVar3 = *(uint *)(&DAT_001048a0 + (long)(int)(uint)bVar4 * 4);
|
| 18 |
+
bVar4 = FUN_001016d3(uVar5);
|
| 19 |
+
return (iVar1 + iVar2 ^ uVar3) - *(int *)(&DAT_00104ca0 + (long)(int)(uint)bVar4 * 4);
|
| 20 |
+
}
|
| 21 |
+
|
CREBench/CAST5/public-hardcode_plain-O0/decompile/FUN_00101924_decompiled
ADDED
|
@@ -0,0 +1,352 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
undefined8 FUN_00101924(long param_1,long param_2,ulong param_3)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
uint uVar1;
|
| 6 |
+
uint uVar2;
|
| 7 |
+
uint uVar3;
|
| 8 |
+
uint uVar4;
|
| 9 |
+
uint uVar5;
|
| 10 |
+
uint uVar6;
|
| 11 |
+
byte bVar7;
|
| 12 |
+
uint uVar8;
|
| 13 |
+
undefined8 uVar9;
|
| 14 |
+
undefined4 uVar10;
|
| 15 |
+
long in_FS_OFFSET;
|
| 16 |
+
uint local_5c;
|
| 17 |
+
uint local_58;
|
| 18 |
+
uint local_54;
|
| 19 |
+
uint local_50;
|
| 20 |
+
uint local_4c;
|
| 21 |
+
uint local_48;
|
| 22 |
+
uint local_44;
|
| 23 |
+
uint local_40;
|
| 24 |
+
uint local_3c;
|
| 25 |
+
uint local_38 [6];
|
| 26 |
+
long local_20;
|
| 27 |
+
|
| 28 |
+
local_20 = *(long *)(in_FS_OFFSET + 0x28);
|
| 29 |
+
if ((((param_1 == 0) || (param_2 == 0)) || (param_3 < 5)) || (0x10 < param_3)) {
|
| 30 |
+
uVar9 = 0xffffffff;
|
| 31 |
+
}
|
| 32 |
+
else {
|
| 33 |
+
if (param_3 < 0xb) {
|
| 34 |
+
uVar10 = 0xc;
|
| 35 |
+
}
|
| 36 |
+
else {
|
| 37 |
+
uVar10 = 0x10;
|
| 38 |
+
}
|
| 39 |
+
*(undefined4 *)(param_1 + 0x80) = uVar10;
|
| 40 |
+
for (local_5c = 0; (int)local_5c < 4; local_5c = local_5c + 1) {
|
| 41 |
+
local_38[(int)local_5c] = 0;
|
| 42 |
+
if ((ulong)(long)(int)(local_5c << 2) < param_3) {
|
| 43 |
+
local_38[(int)local_5c] = (uint)*(byte *)(param_2 + (int)(local_5c << 2)) << 0x18;
|
| 44 |
+
}
|
| 45 |
+
if ((ulong)(long)(int)(local_5c * 4 + 1) < param_3) {
|
| 46 |
+
local_38[(int)local_5c] =
|
| 47 |
+
local_38[(int)local_5c] |
|
| 48 |
+
(uint)*(byte *)(param_2 + (long)(int)(local_5c << 2) + 1) << 0x10;
|
| 49 |
+
}
|
| 50 |
+
if ((ulong)(long)(int)(local_5c * 4 + 2) < param_3) {
|
| 51 |
+
local_38[(int)local_5c] =
|
| 52 |
+
local_38[(int)local_5c] |
|
| 53 |
+
(uint)*(byte *)(param_2 + (long)(int)(local_5c << 2) + 2) << 8;
|
| 54 |
+
}
|
| 55 |
+
if ((ulong)(long)(int)(local_5c * 4 + 3) < param_3) {
|
| 56 |
+
local_38[(int)local_5c] =
|
| 57 |
+
local_38[(int)local_5c] | (uint)*(byte *)(param_2 + (long)(int)(local_5c << 2) + 3);
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
for (local_5c = 0; uVar3 = local_38[0], uVar8 = local_40, (int)local_5c < 0x20;
|
| 61 |
+
local_5c = local_5c + 4) {
|
| 62 |
+
if ((local_5c & 4) == 0) {
|
| 63 |
+
bVar7 = FUN_001016b5(local_38[3]);
|
| 64 |
+
uVar8 = *(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4);
|
| 65 |
+
bVar7 = FUN_001016d3(local_38[3]);
|
| 66 |
+
uVar4 = *(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 67 |
+
bVar7 = FUN_001016a6(local_38[3]);
|
| 68 |
+
uVar1 = *(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 69 |
+
bVar7 = FUN_001016c4(local_38[3]);
|
| 70 |
+
uVar2 = *(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4);
|
| 71 |
+
bVar7 = FUN_001016a6(local_38[2]);
|
| 72 |
+
uVar5 = local_38[2];
|
| 73 |
+
local_58 = *(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4) ^
|
| 74 |
+
uVar3 ^ uVar8 ^ uVar4 ^ uVar1 ^ uVar2;
|
| 75 |
+
local_48 = local_58;
|
| 76 |
+
bVar7 = FUN_001016a6(local_58);
|
| 77 |
+
uVar8 = *(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4);
|
| 78 |
+
bVar7 = FUN_001016c4(local_48);
|
| 79 |
+
uVar3 = *(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 80 |
+
bVar7 = FUN_001016b5(local_48);
|
| 81 |
+
uVar4 = *(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 82 |
+
bVar7 = FUN_001016d3(local_48);
|
| 83 |
+
uVar1 = *(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4);
|
| 84 |
+
bVar7 = FUN_001016c4(local_38[2]);
|
| 85 |
+
uVar6 = local_38[3];
|
| 86 |
+
local_54 = *(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4) ^
|
| 87 |
+
uVar5 ^ uVar8 ^ uVar3 ^ uVar4 ^ uVar1;
|
| 88 |
+
local_44 = local_54;
|
| 89 |
+
bVar7 = FUN_001016d3(local_54);
|
| 90 |
+
uVar8 = *(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4);
|
| 91 |
+
bVar7 = FUN_001016c4(local_44);
|
| 92 |
+
uVar3 = *(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 93 |
+
bVar7 = FUN_001016b5(local_44);
|
| 94 |
+
uVar4 = *(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 95 |
+
bVar7 = FUN_001016a6(local_44);
|
| 96 |
+
uVar1 = *(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4);
|
| 97 |
+
bVar7 = FUN_001016b5(local_38[2]);
|
| 98 |
+
uVar2 = local_38[1];
|
| 99 |
+
local_50 = *(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4) ^
|
| 100 |
+
uVar6 ^ uVar8 ^ uVar3 ^ uVar4 ^ uVar1;
|
| 101 |
+
local_40 = local_50;
|
| 102 |
+
bVar7 = FUN_001016c4(local_50);
|
| 103 |
+
uVar8 = *(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4);
|
| 104 |
+
bVar7 = FUN_001016b5(local_40);
|
| 105 |
+
uVar3 = *(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 106 |
+
bVar7 = FUN_001016d3(local_40);
|
| 107 |
+
uVar4 = *(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 108 |
+
bVar7 = FUN_001016a6(local_40);
|
| 109 |
+
uVar1 = *(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4);
|
| 110 |
+
bVar7 = FUN_001016d3(local_38[2]);
|
| 111 |
+
local_4c = *(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4) ^
|
| 112 |
+
uVar2 ^ uVar8 ^ uVar3 ^ uVar4 ^ uVar1;
|
| 113 |
+
local_3c = local_4c;
|
| 114 |
+
}
|
| 115 |
+
else if ((local_5c & 4) == 4) {
|
| 116 |
+
bVar7 = FUN_001016b5(local_44);
|
| 117 |
+
uVar3 = *(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4);
|
| 118 |
+
bVar7 = FUN_001016d3(local_44);
|
| 119 |
+
uVar4 = *(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 120 |
+
bVar7 = FUN_001016a6(local_44);
|
| 121 |
+
uVar1 = *(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 122 |
+
bVar7 = FUN_001016c4(local_44);
|
| 123 |
+
uVar2 = *(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4);
|
| 124 |
+
bVar7 = FUN_001016a6(local_48);
|
| 125 |
+
uVar5 = local_48;
|
| 126 |
+
local_58 = *(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4) ^
|
| 127 |
+
uVar8 ^ uVar3 ^ uVar4 ^ uVar1 ^ uVar2;
|
| 128 |
+
local_38[0] = local_58;
|
| 129 |
+
bVar7 = FUN_001016a6(local_58);
|
| 130 |
+
uVar8 = *(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4);
|
| 131 |
+
bVar7 = FUN_001016c4(local_38[0]);
|
| 132 |
+
uVar3 = *(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 133 |
+
bVar7 = FUN_001016b5(local_38[0]);
|
| 134 |
+
uVar4 = *(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 135 |
+
bVar7 = FUN_001016d3(local_38[0]);
|
| 136 |
+
uVar1 = *(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4);
|
| 137 |
+
bVar7 = FUN_001016c4(local_48);
|
| 138 |
+
uVar2 = local_44;
|
| 139 |
+
local_54 = *(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4) ^
|
| 140 |
+
uVar5 ^ uVar8 ^ uVar3 ^ uVar4 ^ uVar1;
|
| 141 |
+
local_38[1] = local_54;
|
| 142 |
+
bVar7 = FUN_001016d3(local_54);
|
| 143 |
+
uVar8 = *(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4);
|
| 144 |
+
bVar7 = FUN_001016c4(local_38[1]);
|
| 145 |
+
uVar3 = *(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 146 |
+
bVar7 = FUN_001016b5(local_38[1]);
|
| 147 |
+
uVar4 = *(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 148 |
+
bVar7 = FUN_001016a6(local_38[1]);
|
| 149 |
+
uVar1 = *(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4);
|
| 150 |
+
bVar7 = FUN_001016b5(local_48);
|
| 151 |
+
uVar5 = local_3c;
|
| 152 |
+
local_50 = *(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4) ^
|
| 153 |
+
uVar2 ^ uVar8 ^ uVar3 ^ uVar4 ^ uVar1;
|
| 154 |
+
local_38[2] = local_50;
|
| 155 |
+
bVar7 = FUN_001016c4(local_50);
|
| 156 |
+
uVar8 = *(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4);
|
| 157 |
+
bVar7 = FUN_001016b5(local_38[2]);
|
| 158 |
+
uVar3 = *(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 159 |
+
bVar7 = FUN_001016d3(local_38[2]);
|
| 160 |
+
uVar4 = *(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 161 |
+
bVar7 = FUN_001016a6(local_38[2]);
|
| 162 |
+
uVar1 = *(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4);
|
| 163 |
+
bVar7 = FUN_001016d3(local_48);
|
| 164 |
+
local_4c = *(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4) ^
|
| 165 |
+
uVar5 ^ uVar8 ^ uVar3 ^ uVar4 ^ uVar1;
|
| 166 |
+
local_38[3] = local_4c;
|
| 167 |
+
}
|
| 168 |
+
uVar8 = local_5c & 0xc;
|
| 169 |
+
if (uVar8 == 0xc) {
|
| 170 |
+
LAB_001020e2:
|
| 171 |
+
bVar7 = FUN_001016a6(local_50);
|
| 172 |
+
uVar8 = *(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4);
|
| 173 |
+
bVar7 = FUN_001016b5(local_50);
|
| 174 |
+
uVar3 = *(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 175 |
+
bVar7 = FUN_001016d3(local_54);
|
| 176 |
+
uVar4 = *(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 177 |
+
bVar7 = FUN_001016c4(local_54);
|
| 178 |
+
*(uint *)(param_1 + (long)(int)local_5c * 4) =
|
| 179 |
+
uVar8 ^ uVar3 ^ uVar4 ^ *(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4);
|
| 180 |
+
bVar7 = FUN_001016c4(local_50);
|
| 181 |
+
uVar8 = *(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4);
|
| 182 |
+
bVar7 = FUN_001016d3(local_50);
|
| 183 |
+
uVar3 = *(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 184 |
+
bVar7 = FUN_001016b5(local_54);
|
| 185 |
+
uVar4 = *(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 186 |
+
bVar7 = FUN_001016a6(local_54);
|
| 187 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 1) * 4) =
|
| 188 |
+
*(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4) ^ uVar8 ^ uVar3 ^ uVar4;
|
| 189 |
+
bVar7 = FUN_001016a6(local_4c);
|
| 190 |
+
uVar8 = *(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4);
|
| 191 |
+
bVar7 = FUN_001016b5(local_4c);
|
| 192 |
+
uVar3 = *(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 193 |
+
bVar7 = FUN_001016d3(local_58);
|
| 194 |
+
uVar4 = *(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 195 |
+
bVar7 = FUN_001016c4(local_58);
|
| 196 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 2) * 4) =
|
| 197 |
+
*(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4) ^ uVar8 ^ uVar3 ^ uVar4;
|
| 198 |
+
bVar7 = FUN_001016c4(local_4c);
|
| 199 |
+
uVar8 = *(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4);
|
| 200 |
+
bVar7 = FUN_001016d3(local_4c);
|
| 201 |
+
uVar3 = *(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 202 |
+
bVar7 = FUN_001016b5(local_58);
|
| 203 |
+
uVar4 = *(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 204 |
+
bVar7 = FUN_001016a6(local_58);
|
| 205 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 3) * 4) =
|
| 206 |
+
*(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4) ^ uVar8 ^ uVar3 ^ uVar4;
|
| 207 |
+
}
|
| 208 |
+
else if (uVar8 < 0xd) {
|
| 209 |
+
if (uVar8 == 8) {
|
| 210 |
+
LAB_0010234e:
|
| 211 |
+
bVar7 = FUN_001016d3(local_58);
|
| 212 |
+
uVar8 = *(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4);
|
| 213 |
+
bVar7 = FUN_001016c4(local_58);
|
| 214 |
+
uVar3 = *(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 215 |
+
bVar7 = FUN_001016a6(local_4c);
|
| 216 |
+
uVar4 = *(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 217 |
+
bVar7 = FUN_001016b5(local_4c);
|
| 218 |
+
*(uint *)(param_1 + (long)(int)local_5c * 4) =
|
| 219 |
+
uVar8 ^ uVar3 ^ uVar4 ^ *(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4);
|
| 220 |
+
bVar7 = FUN_001016b5(local_58);
|
| 221 |
+
uVar8 = *(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4);
|
| 222 |
+
bVar7 = FUN_001016a6(local_58);
|
| 223 |
+
uVar3 = *(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 224 |
+
bVar7 = FUN_001016c4(local_4c);
|
| 225 |
+
uVar4 = *(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 226 |
+
bVar7 = FUN_001016d3(local_4c);
|
| 227 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 1) * 4) =
|
| 228 |
+
*(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4) ^ uVar8 ^ uVar3 ^ uVar4;
|
| 229 |
+
bVar7 = FUN_001016d3(local_54);
|
| 230 |
+
uVar8 = *(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4);
|
| 231 |
+
bVar7 = FUN_001016c4(local_54);
|
| 232 |
+
uVar3 = *(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 233 |
+
bVar7 = FUN_001016a6(local_50);
|
| 234 |
+
uVar4 = *(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 235 |
+
bVar7 = FUN_001016b5(local_50);
|
| 236 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 2) * 4) =
|
| 237 |
+
*(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4) ^ uVar8 ^ uVar3 ^ uVar4;
|
| 238 |
+
bVar7 = FUN_001016b5(local_54);
|
| 239 |
+
uVar8 = *(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4);
|
| 240 |
+
bVar7 = FUN_001016a6(local_54);
|
| 241 |
+
uVar3 = *(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 242 |
+
bVar7 = FUN_001016c4(local_50);
|
| 243 |
+
uVar4 = *(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 244 |
+
bVar7 = FUN_001016d3(local_50);
|
| 245 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 3) * 4) =
|
| 246 |
+
*(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4) ^ uVar8 ^ uVar3 ^ uVar4;
|
| 247 |
+
}
|
| 248 |
+
else if (uVar8 < 9) {
|
| 249 |
+
if (uVar8 == 0) goto LAB_001020e2;
|
| 250 |
+
if (uVar8 == 4) goto LAB_0010234e;
|
| 251 |
+
}
|
| 252 |
+
}
|
| 253 |
+
uVar8 = local_5c & 0xc;
|
| 254 |
+
if (uVar8 == 0xc) {
|
| 255 |
+
bVar7 = FUN_001016d3(local_38[0]);
|
| 256 |
+
*(uint *)(param_1 + (long)(int)local_5c * 4) =
|
| 257 |
+
*(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4) ^
|
| 258 |
+
*(uint *)(param_1 + (long)(int)local_5c * 4);
|
| 259 |
+
bVar7 = FUN_001016d3(local_38[1]);
|
| 260 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 1) * 4) =
|
| 261 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 1) * 4) ^
|
| 262 |
+
*(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 263 |
+
bVar7 = FUN_001016a6(local_38[2]);
|
| 264 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 2) * 4) =
|
| 265 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 2) * 4) ^
|
| 266 |
+
*(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 267 |
+
bVar7 = FUN_001016b5(local_38[3]);
|
| 268 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 3) * 4) =
|
| 269 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 3) * 4) ^
|
| 270 |
+
*(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4);
|
| 271 |
+
}
|
| 272 |
+
else if (uVar8 < 0xd) {
|
| 273 |
+
if (uVar8 == 8) {
|
| 274 |
+
bVar7 = FUN_001016b5(local_40);
|
| 275 |
+
*(uint *)(param_1 + (long)(int)local_5c * 4) =
|
| 276 |
+
*(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4) ^
|
| 277 |
+
*(uint *)(param_1 + (long)(int)local_5c * 4);
|
| 278 |
+
bVar7 = FUN_001016a6(local_3c);
|
| 279 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 1) * 4) =
|
| 280 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 1) * 4) ^
|
| 281 |
+
*(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 282 |
+
bVar7 = FUN_001016c4(local_48);
|
| 283 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 2) * 4) =
|
| 284 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 2) * 4) ^
|
| 285 |
+
*(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 286 |
+
bVar7 = FUN_001016c4(local_44);
|
| 287 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 3) * 4) =
|
| 288 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 3) * 4) ^
|
| 289 |
+
*(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4);
|
| 290 |
+
}
|
| 291 |
+
else if (uVar8 < 9) {
|
| 292 |
+
if (uVar8 == 0) {
|
| 293 |
+
bVar7 = FUN_001016c4(local_48);
|
| 294 |
+
*(uint *)(param_1 + (long)(int)local_5c * 4) =
|
| 295 |
+
*(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4) ^
|
| 296 |
+
*(uint *)(param_1 + (long)(int)local_5c * 4);
|
| 297 |
+
bVar7 = FUN_001016c4(local_44);
|
| 298 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 1) * 4) =
|
| 299 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 1) * 4) ^
|
| 300 |
+
*(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 301 |
+
bVar7 = FUN_001016b5(local_40);
|
| 302 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 2) * 4) =
|
| 303 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 2) * 4) ^
|
| 304 |
+
*(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 305 |
+
bVar7 = FUN_001016a6(local_3c);
|
| 306 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 3) * 4) =
|
| 307 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 3) * 4) ^
|
| 308 |
+
*(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4);
|
| 309 |
+
}
|
| 310 |
+
else if (uVar8 == 4) {
|
| 311 |
+
bVar7 = FUN_001016a6(local_38[2]);
|
| 312 |
+
*(uint *)(param_1 + (long)(int)local_5c * 4) =
|
| 313 |
+
*(uint *)(&DAT_001050a0 + (long)(int)(uint)bVar7 * 4) ^
|
| 314 |
+
*(uint *)(param_1 + (long)(int)local_5c * 4);
|
| 315 |
+
bVar7 = FUN_001016b5(local_38[3]);
|
| 316 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 1) * 4) =
|
| 317 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 1) * 4) ^
|
| 318 |
+
*(uint *)(&DAT_001054a0 + (long)(int)(uint)bVar7 * 4);
|
| 319 |
+
bVar7 = FUN_001016d3(local_38[0]);
|
| 320 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 2) * 4) =
|
| 321 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 2) * 4) ^
|
| 322 |
+
*(uint *)(&DAT_001058a0 + (long)(int)(uint)bVar7 * 4);
|
| 323 |
+
bVar7 = FUN_001016d3(local_38[1]);
|
| 324 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 3) * 4) =
|
| 325 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 3) * 4) ^
|
| 326 |
+
*(uint *)(&DAT_00105ca0 + (long)(int)(uint)bVar7 * 4);
|
| 327 |
+
}
|
| 328 |
+
}
|
| 329 |
+
}
|
| 330 |
+
if (0xf < (int)local_5c) {
|
| 331 |
+
*(uint *)(param_1 + (long)(int)local_5c * 4) =
|
| 332 |
+
*(uint *)(param_1 + (long)(int)local_5c * 4) & 0x1f;
|
| 333 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 1) * 4) =
|
| 334 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 1) * 4) & 0x1f;
|
| 335 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 2) * 4) =
|
| 336 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 2) * 4) & 0x1f;
|
| 337 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 3) * 4) =
|
| 338 |
+
*(uint *)(param_1 + (long)(int)(local_5c + 3) * 4) & 0x1f;
|
| 339 |
+
}
|
| 340 |
+
}
|
| 341 |
+
memset(&local_58,0,0x10);
|
| 342 |
+
memset(local_38,0,0x10);
|
| 343 |
+
memset(&local_48,0,0x10);
|
| 344 |
+
uVar9 = 0;
|
| 345 |
+
}
|
| 346 |
+
if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
|
| 347 |
+
return uVar9;
|
| 348 |
+
}
|
| 349 |
+
/* WARNING: Subroutine does not return */
|
| 350 |
+
__stack_chk_fail();
|
| 351 |
+
}
|
| 352 |
+
|
CREBench/CAST5/public-hardcode_plain-O0/decompile/FUN_00102b21_decompiled
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void FUN_00102b21(undefined4 *param_1,long param_2,long param_3)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
uint uVar1;
|
| 6 |
+
uint uVar2;
|
| 7 |
+
uint uVar3;
|
| 8 |
+
uint uVar4;
|
| 9 |
+
uint local_10;
|
| 10 |
+
uint local_c;
|
| 11 |
+
|
| 12 |
+
uVar1 = FUN_0010160a(param_2);
|
| 13 |
+
uVar2 = FUN_0010160a(param_2 + 4);
|
| 14 |
+
uVar3 = FUN_001016fb(uVar2,*param_1,param_1[0x10]);
|
| 15 |
+
uVar4 = FUN_001017b4(uVar1 ^ uVar3,param_1[1],param_1[0x11]);
|
| 16 |
+
local_10 = FUN_0010186b(uVar2 ^ uVar4,param_1[2],param_1[0x12]);
|
| 17 |
+
local_10 = uVar1 ^ uVar3 ^ local_10;
|
| 18 |
+
local_c = FUN_001016fb(local_10,param_1[3],param_1[0x13]);
|
| 19 |
+
local_c = uVar2 ^ uVar4 ^ local_c;
|
| 20 |
+
uVar1 = FUN_001017b4(local_c,param_1[4],param_1[0x14]);
|
| 21 |
+
local_10 = local_10 ^ uVar1;
|
| 22 |
+
uVar1 = FUN_0010186b(local_10,param_1[5],param_1[0x15]);
|
| 23 |
+
local_c = local_c ^ uVar1;
|
| 24 |
+
uVar1 = FUN_001016fb(local_c,param_1[6],param_1[0x16]);
|
| 25 |
+
local_10 = local_10 ^ uVar1;
|
| 26 |
+
uVar1 = FUN_001017b4(local_10,param_1[7],param_1[0x17]);
|
| 27 |
+
local_c = local_c ^ uVar1;
|
| 28 |
+
uVar1 = FUN_0010186b(local_c,param_1[8],param_1[0x18]);
|
| 29 |
+
local_10 = local_10 ^ uVar1;
|
| 30 |
+
uVar1 = FUN_001016fb(local_10,param_1[9],param_1[0x19]);
|
| 31 |
+
local_c = local_c ^ uVar1;
|
| 32 |
+
uVar1 = FUN_001017b4(local_c,param_1[10],param_1[0x1a]);
|
| 33 |
+
local_10 = local_10 ^ uVar1;
|
| 34 |
+
uVar1 = FUN_0010186b(local_10,param_1[0xb],param_1[0x1b]);
|
| 35 |
+
local_c = local_c ^ uVar1;
|
| 36 |
+
if (0xc < (uint)param_1[0x20]) {
|
| 37 |
+
uVar1 = FUN_001016fb(local_c,param_1[0xc],param_1[0x1c]);
|
| 38 |
+
uVar2 = FUN_001017b4(local_10 ^ uVar1,param_1[0xd],param_1[0x1d]);
|
| 39 |
+
uVar3 = FUN_0010186b(local_c ^ uVar2,param_1[0xe],param_1[0x1e]);
|
| 40 |
+
local_10 = local_10 ^ uVar1 ^ uVar3;
|
| 41 |
+
uVar1 = FUN_001016fb(local_10,param_1[0xf],param_1[0x1f]);
|
| 42 |
+
local_c = local_c ^ uVar2 ^ uVar1;
|
| 43 |
+
}
|
| 44 |
+
FUN_00101659(param_3,local_c);
|
| 45 |
+
FUN_00101659(param_3 + 4,local_10);
|
| 46 |
+
return;
|
| 47 |
+
}
|
| 48 |
+
|
CREBench/CAST5/public-hardcode_plain-O0/decompile/FUN_00102d62_decompiled
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void FUN_00102d62(undefined4 *param_1,long param_2,long param_3)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
uint uVar1;
|
| 6 |
+
uint uVar2;
|
| 7 |
+
uint uVar3;
|
| 8 |
+
uint local_10;
|
| 9 |
+
uint local_c;
|
| 10 |
+
|
| 11 |
+
local_10 = FUN_0010160a(param_2);
|
| 12 |
+
local_c = FUN_0010160a(param_2 + 4);
|
| 13 |
+
if (0xc < (uint)param_1[0x20]) {
|
| 14 |
+
uVar1 = FUN_001016fb(local_c,param_1[0xf],param_1[0x1f]);
|
| 15 |
+
uVar2 = FUN_0010186b(local_10 ^ uVar1,param_1[0xe],param_1[0x1e]);
|
| 16 |
+
uVar3 = FUN_001017b4(local_c ^ uVar2,param_1[0xd],param_1[0x1d]);
|
| 17 |
+
local_10 = local_10 ^ uVar1 ^ uVar3;
|
| 18 |
+
uVar1 = FUN_001016fb(local_10,param_1[0xc],param_1[0x1c]);
|
| 19 |
+
local_c = local_c ^ uVar2 ^ uVar1;
|
| 20 |
+
}
|
| 21 |
+
uVar1 = FUN_0010186b(local_c,param_1[0xb],param_1[0x1b]);
|
| 22 |
+
uVar3 = FUN_001017b4(local_10 ^ uVar1,param_1[10],param_1[0x1a]);
|
| 23 |
+
uVar2 = FUN_001016fb(local_c ^ uVar3,param_1[9],param_1[0x19]);
|
| 24 |
+
uVar2 = local_10 ^ uVar1 ^ uVar2;
|
| 25 |
+
uVar1 = FUN_0010186b(uVar2,param_1[8],param_1[0x18]);
|
| 26 |
+
uVar1 = local_c ^ uVar3 ^ uVar1;
|
| 27 |
+
uVar3 = FUN_001017b4(uVar1,param_1[7],param_1[0x17]);
|
| 28 |
+
uVar2 = uVar2 ^ uVar3;
|
| 29 |
+
uVar3 = FUN_001016fb(uVar2,param_1[6],param_1[0x16]);
|
| 30 |
+
uVar1 = uVar1 ^ uVar3;
|
| 31 |
+
uVar3 = FUN_0010186b(uVar1,param_1[5],param_1[0x15]);
|
| 32 |
+
uVar2 = uVar2 ^ uVar3;
|
| 33 |
+
uVar3 = FUN_001017b4(uVar2,param_1[4],param_1[0x14]);
|
| 34 |
+
uVar1 = uVar1 ^ uVar3;
|
| 35 |
+
uVar3 = FUN_001016fb(uVar1,param_1[3],param_1[0x13]);
|
| 36 |
+
uVar2 = uVar2 ^ uVar3;
|
| 37 |
+
uVar3 = FUN_0010186b(uVar2,param_1[2],param_1[0x12]);
|
| 38 |
+
uVar1 = uVar1 ^ uVar3;
|
| 39 |
+
uVar3 = FUN_001017b4(uVar1,param_1[1],param_1[0x11]);
|
| 40 |
+
uVar2 = uVar2 ^ uVar3;
|
| 41 |
+
uVar3 = FUN_001016fb(uVar2,*param_1,param_1[0x10]);
|
| 42 |
+
FUN_00101659(param_3,uVar1 ^ uVar3);
|
| 43 |
+
FUN_00101659(param_3 + 4,uVar2);
|
| 44 |
+
return;
|
| 45 |
+
}
|
| 46 |
+
|
CREBench/CAST5/public-hardcode_plain-O0/decompile/FUN_00102fa3_decompiled
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void FUN_00102fa3(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_2c;
|
| 7 |
+
ulong local_28;
|
| 8 |
+
undefined8 local_20;
|
| 9 |
+
byte local_18 [8];
|
| 10 |
+
long local_10;
|
| 11 |
+
|
| 12 |
+
local_10 = *(long *)(in_FS_OFFSET + 0x28);
|
| 13 |
+
local_20 = *param_2;
|
| 14 |
+
for (local_28 = 0; local_28 < param_5; local_28 = local_28 + 8) {
|
| 15 |
+
for (local_2c = 0; local_2c < 8; local_2c = local_2c + 1) {
|
| 16 |
+
local_18[local_2c] =
|
| 17 |
+
*(byte *)(param_3 + (long)local_2c + local_28) ^ local_18[(long)local_2c + -8];
|
| 18 |
+
}
|
| 19 |
+
FUN_00102b21(param_1,local_18,param_4 + local_28);
|
| 20 |
+
local_20 = *(undefined8 *)(local_28 + param_4);
|
| 21 |
+
}
|
| 22 |
+
if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {
|
| 23 |
+
/* WARNING: Subroutine does not return */
|
| 24 |
+
__stack_chk_fail();
|
| 25 |
+
}
|
| 26 |
+
return;
|
| 27 |
+
}
|
| 28 |
+
|
CREBench/CAST5/public-hardcode_plain-O0/decompile/FUN_0010307c_decompiled
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void FUN_0010307c(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_34;
|
| 7 |
+
ulong local_30;
|
| 8 |
+
undefined8 local_28;
|
| 9 |
+
undefined8 local_20;
|
| 10 |
+
byte local_18 [8];
|
| 11 |
+
long local_10;
|
| 12 |
+
|
| 13 |
+
local_10 = *(long *)(in_FS_OFFSET + 0x28);
|
| 14 |
+
local_28 = *param_2;
|
| 15 |
+
for (local_30 = 0; local_30 < param_5; local_30 = local_30 + 8) {
|
| 16 |
+
local_20 = *(undefined8 *)(local_30 + param_3);
|
| 17 |
+
FUN_00102d62(param_1,param_3 + local_30,local_18);
|
| 18 |
+
for (local_34 = 0; local_34 < 8; local_34 = local_34 + 1) {
|
| 19 |
+
*(byte *)(param_4 + (long)local_34 + local_30) =
|
| 20 |
+
*(byte *)((long)&local_28 + (long)local_34) ^ local_18[local_34];
|
| 21 |
+
}
|
| 22 |
+
local_28 = local_20;
|
| 23 |
+
}
|
| 24 |
+
if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {
|
| 25 |
+
/* WARNING: Subroutine does not return */
|
| 26 |
+
__stack_chk_fail();
|
| 27 |
+
}
|
| 28 |
+
return;
|
| 29 |
+
}
|
| 30 |
+
|
CREBench/CAST5/public-hardcode_plain-O0/decompile/_DT_FINI_decompiled
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void _DT_FINI(void)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
return;
|
| 6 |
+
}
|
| 7 |
+
|
CREBench/CAST5/public-hardcode_plain-O0/decompile/_DT_INIT_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void _DT_INIT(void)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
if (PTR___gmon_start___00107fe8 != (undefined *)0x0) {
|
| 6 |
+
(*(code *)PTR___gmon_start___00107fe8)();
|
| 7 |
+
}
|
| 8 |
+
return;
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/CAST5/public-hardcode_plain-O0/decompile/_FINI_0_decompiled
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void _FINI_0(void)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
if (DAT_00108028 == '\0') {
|
| 6 |
+
if (PTR___cxa_finalize_00107ff8 != (undefined *)0x0) {
|
| 7 |
+
FUN_001010b0(PTR_LOOP_00108008);
|
| 8 |
+
}
|
| 9 |
+
FUN_00101170();
|
| 10 |
+
DAT_00108028 = 1;
|
| 11 |
+
return;
|
| 12 |
+
}
|
| 13 |
+
return;
|
| 14 |
+
}
|
| 15 |
+
|
CREBench/CAST5/public-hardcode_plain-O0/decompile/_INIT_0_decompiled
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void _INIT_0(void)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
FUN_001011a0();
|
| 6 |
+
return;
|
| 7 |
+
}
|
| 8 |
+
|
CREBench/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-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_00107fd8)
|
| 8 |
+
(FUN_001013a9,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/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-O0/decompile/memset_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 |
+
void * memset(void *__s,int __c,size_t __n)
|
| 6 |
+
|
| 7 |
+
{
|
| 8 |
+
/* WARNING: Bad instruction - Truncating control flow here */
|
| 9 |
+
halt_baddata();
|
| 10 |
+
}
|
| 11 |
+
|
CREBench/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-O3/address.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"00101020": "FUN_00101020",
|
| 3 |
+
"00108018": "__stack_chk_fail",
|
| 4 |
+
"00101000": "_DT_INIT",
|
| 5 |
+
"00101ff0": "entry",
|
| 6 |
+
"00108038": "__fprintf_chk",
|
| 7 |
+
"00102050": "FUN_00102050",
|
| 8 |
+
"00102090": "_FINI_0",
|
| 9 |
+
"00108010": "strlen",
|
| 10 |
+
"00101080": "__cxa_finalize",
|
| 11 |
+
"00108030": "__printf_chk",
|
| 12 |
+
"00108050": "__cxa_finalize",
|
| 13 |
+
"001010a0": "__stack_chk_fail",
|
| 14 |
+
"0010213c": "_DT_FINI",
|
| 15 |
+
"001010e0": "FUN_001010e0",
|
| 16 |
+
"001020d0": "_INIT_0",
|
| 17 |
+
"001010c0": "__printf_chk",
|
| 18 |
+
"00108008": "_ITM_deregisterTMCloneTable",
|
| 19 |
+
"00108028": "__gmon_start__",
|
| 20 |
+
"00102020": "FUN_00102020",
|
| 21 |
+
"00108000": "__libc_start_main",
|
| 22 |
+
"00101090": "strlen",
|
| 23 |
+
"00108020": "memcmp",
|
| 24 |
+
"00108040": "_ITM_registerTMCloneTable",
|
| 25 |
+
"001010b0": "memcmp",
|
| 26 |
+
"001020e0": "FUN_001020e0",
|
| 27 |
+
"001010d0": "__fprintf_chk"
|
| 28 |
+
}
|
CREBench/CAST5/public-hardcode_plain-O3/challenge
ADDED
|
Binary file (26.8 kB). View file
|
|
|
CREBench/CAST5/public-hardcode_plain-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_00106fa0)();
|
| 7 |
+
return;
|
| 8 |
+
}
|
| 9 |
+
|
CREBench/CAST5/public-hardcode_plain-O3/decompile/FUN_001010e0_decompiled
ADDED
|
@@ -0,0 +1,492 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
uint uVar3;
|
| 10 |
+
uint uVar4;
|
| 11 |
+
uint uVar5;
|
| 12 |
+
uint uVar6;
|
| 13 |
+
uint uVar7;
|
| 14 |
+
uint uVar8;
|
| 15 |
+
int iVar9;
|
| 16 |
+
uint uVar10;
|
| 17 |
+
uint uVar11;
|
| 18 |
+
byte bVar14;
|
| 19 |
+
size_t sVar12;
|
| 20 |
+
ulong uVar13;
|
| 21 |
+
byte bVar16;
|
| 22 |
+
uint uVar15;
|
| 23 |
+
uint uVar17;
|
| 24 |
+
byte bVar20;
|
| 25 |
+
long lVar18;
|
| 26 |
+
char *pcVar19;
|
| 27 |
+
ulong *puVar21;
|
| 28 |
+
undefined8 *puVar22;
|
| 29 |
+
uint uVar23;
|
| 30 |
+
uint uVar24;
|
| 31 |
+
ulong *puVar25;
|
| 32 |
+
long in_FS_OFFSET;
|
| 33 |
+
bool bVar26;
|
| 34 |
+
uint local_1c8;
|
| 35 |
+
uint local_1c4;
|
| 36 |
+
uint local_1c0;
|
| 37 |
+
uint local_1bc;
|
| 38 |
+
uint local_1b8;
|
| 39 |
+
uint local_1b4;
|
| 40 |
+
uint local_1b0;
|
| 41 |
+
uint local_1ac;
|
| 42 |
+
uint local_1a8;
|
| 43 |
+
uint local_1a4;
|
| 44 |
+
undefined8 local_138;
|
| 45 |
+
undefined8 uStack_130;
|
| 46 |
+
uint local_128;
|
| 47 |
+
int local_124;
|
| 48 |
+
int local_120;
|
| 49 |
+
uint local_11c;
|
| 50 |
+
int local_118;
|
| 51 |
+
int local_114;
|
| 52 |
+
uint local_110;
|
| 53 |
+
int local_10c;
|
| 54 |
+
int local_108;
|
| 55 |
+
uint local_104;
|
| 56 |
+
int local_100;
|
| 57 |
+
int local_fc;
|
| 58 |
+
undefined4 local_f8;
|
| 59 |
+
undefined4 local_f4;
|
| 60 |
+
undefined4 local_f0;
|
| 61 |
+
undefined4 local_ec;
|
| 62 |
+
undefined4 local_e8;
|
| 63 |
+
undefined4 local_e4;
|
| 64 |
+
undefined4 local_e0;
|
| 65 |
+
undefined4 local_dc;
|
| 66 |
+
undefined4 local_d8;
|
| 67 |
+
undefined4 local_d4;
|
| 68 |
+
undefined4 local_d0;
|
| 69 |
+
undefined4 local_cc;
|
| 70 |
+
undefined4 local_c8;
|
| 71 |
+
undefined4 local_c4;
|
| 72 |
+
undefined4 local_c0;
|
| 73 |
+
undefined4 local_bc;
|
| 74 |
+
byte local_a8;
|
| 75 |
+
byte local_a7;
|
| 76 |
+
byte local_a6;
|
| 77 |
+
byte local_a5;
|
| 78 |
+
byte local_a4;
|
| 79 |
+
byte local_a3;
|
| 80 |
+
byte local_a2;
|
| 81 |
+
byte local_a1;
|
| 82 |
+
byte local_a0;
|
| 83 |
+
byte local_9f;
|
| 84 |
+
byte local_9e;
|
| 85 |
+
byte local_9d;
|
| 86 |
+
byte local_9c;
|
| 87 |
+
byte local_9b;
|
| 88 |
+
byte local_9a;
|
| 89 |
+
byte local_99;
|
| 90 |
+
ulong local_98 [4];
|
| 91 |
+
ulong local_78 [4];
|
| 92 |
+
undefined4 local_58;
|
| 93 |
+
undefined4 uStack_54;
|
| 94 |
+
undefined4 uStack_50;
|
| 95 |
+
undefined4 uStack_4c;
|
| 96 |
+
undefined4 local_48;
|
| 97 |
+
undefined4 uStack_44;
|
| 98 |
+
undefined4 uStack_40;
|
| 99 |
+
undefined4 uStack_3c;
|
| 100 |
+
long local_30;
|
| 101 |
+
|
| 102 |
+
local_30 = *(long *)(in_FS_OFFSET + 0x28);
|
| 103 |
+
if (param_1 == 2) {
|
| 104 |
+
FUN_001020e0(&local_a8);
|
| 105 |
+
pcVar19 = (char *)param_2[1];
|
| 106 |
+
local_58 = _DAT_001050c0;
|
| 107 |
+
uStack_54 = _UNK_001050c4;
|
| 108 |
+
uStack_50 = _UNK_001050c8;
|
| 109 |
+
uStack_4c = _UNK_001050cc;
|
| 110 |
+
local_48 = _DAT_001050d0;
|
| 111 |
+
uStack_44 = _UNK_001050d4;
|
| 112 |
+
uStack_40 = _UNK_001050d8;
|
| 113 |
+
uStack_3c = _UNK_001050dc;
|
| 114 |
+
sVar12 = strlen(pcVar19);
|
| 115 |
+
if (sVar12 == 0x40) {
|
| 116 |
+
lVar18 = 0;
|
| 117 |
+
do {
|
| 118 |
+
cVar1 = pcVar19[lVar18 * 2];
|
| 119 |
+
iVar9 = (int)cVar1;
|
| 120 |
+
if ((byte)(cVar1 - 0x30U) < 10) {
|
| 121 |
+
uVar10 = iVar9 - 0x30;
|
| 122 |
+
}
|
| 123 |
+
else if ((byte)(cVar1 + 0x9fU) < 6) {
|
| 124 |
+
uVar10 = iVar9 - 0x57;
|
| 125 |
+
}
|
| 126 |
+
else {
|
| 127 |
+
uVar10 = iVar9 - 0x37;
|
| 128 |
+
if (5 < (byte)(cVar1 + 0xbfU)) {
|
| 129 |
+
uVar10 = 0xffffffff;
|
| 130 |
+
}
|
| 131 |
+
}
|
| 132 |
+
cVar1 = pcVar19[lVar18 * 2 + 1];
|
| 133 |
+
iVar9 = (int)cVar1;
|
| 134 |
+
if ((byte)(cVar1 - 0x30U) < 10) {
|
| 135 |
+
uVar24 = iVar9 - 0x30;
|
| 136 |
+
}
|
| 137 |
+
else if ((byte)(cVar1 + 0x9fU) < 6) {
|
| 138 |
+
uVar24 = iVar9 - 0x57;
|
| 139 |
+
}
|
| 140 |
+
else {
|
| 141 |
+
if (5 < (byte)(cVar1 + 0xbfU)) goto LAB_00101227;
|
| 142 |
+
uVar24 = iVar9 - 0x37;
|
| 143 |
+
}
|
| 144 |
+
if ((int)(uVar10 | uVar24) < 0) goto LAB_00101227;
|
| 145 |
+
puVar21 = local_78;
|
| 146 |
+
*(byte *)((long)local_78 + lVar18) = (byte)(uVar10 << 4) | (byte)uVar24;
|
| 147 |
+
lVar18 = lVar18 + 1;
|
| 148 |
+
} while (lVar18 != 0x20);
|
| 149 |
+
uVar10 = 0;
|
| 150 |
+
puVar22 = &local_138;
|
| 151 |
+
local_1c0 = (uint)local_a7 << 0x10 | (uint)local_a8 << 0x18 | (uint)local_a5 |
|
| 152 |
+
(uint)local_a6 << 8;
|
| 153 |
+
local_1b8 = (uint)local_a3 << 0x10 | (uint)local_a4 << 0x18 | (uint)local_a1 |
|
| 154 |
+
(uint)local_a2 << 8;
|
| 155 |
+
local_1bc = (uint)local_9f << 0x10 | (uint)local_a0 << 0x18 | (uint)local_9d |
|
| 156 |
+
(uint)local_9e << 8;
|
| 157 |
+
local_1b4 = (uint)local_9c << 0x18 | (uint)local_9b << 0x10 | (uint)local_99 |
|
| 158 |
+
(uint)local_9a << 8;
|
| 159 |
+
do {
|
| 160 |
+
if ((uVar10 & 4) == 0) {
|
| 161 |
+
uVar11 = *(uint *)(&DAT_00103840 + (ulong)(local_1b4 & 0xff) * 4) ^
|
| 162 |
+
*(uint *)(&DAT_00103440 + (ulong)(local_1b4 >> 0x18) * 4) ^ local_1c0 ^
|
| 163 |
+
*(uint *)(&DAT_00103440 + (ulong)(local_1bc >> 0x18) * 4) ^
|
| 164 |
+
*(uint *)(&DAT_00103c40 + (ulong)(local_1b4 >> 0x10 & 0xff) * 4) ^
|
| 165 |
+
*(uint *)(&DAT_00103040 + (long)(int)(local_1b4 >> 8 & 0xff) * 4);
|
| 166 |
+
uVar15 = local_1bc ^ *(uint *)(&DAT_00103040 + (long)(int)(local_1bc >> 8 & 0xff) * 4) ^
|
| 167 |
+
*(uint *)(&DAT_00103c40 + (ulong)(uVar11 >> 0x18) * 4) ^
|
| 168 |
+
*(uint *)(&DAT_00103040 + (ulong)(uVar11 & 0xff) * 4) ^
|
| 169 |
+
*(uint *)(&DAT_00103840 + (long)(int)(uVar11 >> 8 & 0xff) * 4) ^
|
| 170 |
+
*(uint *)(&DAT_00103440 + (ulong)(uVar11 >> 0x10 & 0xff) * 4);
|
| 171 |
+
uVar17 = local_1b4 ^ *(uint *)(&DAT_00103c40 + (ulong)(local_1bc >> 0x10 & 0xff) * 4) ^
|
| 172 |
+
*(uint *)(&DAT_00103c40 + (ulong)(uVar15 & 0xff) * 4) ^
|
| 173 |
+
*(uint *)(&DAT_00103040 + (ulong)(uVar15 >> 0x18) * 4) ^
|
| 174 |
+
*(uint *)(&DAT_00103840 + (long)(int)(uVar15 >> 8 & 0xff) * 4) ^
|
| 175 |
+
*(uint *)(&DAT_00103440 + (ulong)(uVar15 >> 0x10 & 0xff) * 4);
|
| 176 |
+
local_1b0 = local_1b8 ^ *(uint *)(&DAT_00103840 + (ulong)(local_1bc & 0xff) * 4) ^
|
| 177 |
+
*(uint *)(&DAT_00103440 + (ulong)(uVar17 & 0xff) * 4) ^
|
| 178 |
+
*(uint *)(&DAT_00103040 + (ulong)(uVar17 >> 0x18) * 4) ^
|
| 179 |
+
*(uint *)(&DAT_00103c40 + (long)(int)(uVar17 >> 8 & 0xff) * 4) ^
|
| 180 |
+
*(uint *)(&DAT_00103840 + (ulong)(uVar17 >> 0x10 & 0xff) * 4);
|
| 181 |
+
local_1ac = uVar11;
|
| 182 |
+
local_1a8 = uVar15;
|
| 183 |
+
local_1a4 = uVar17;
|
| 184 |
+
uVar24 = local_1b0;
|
| 185 |
+
}
|
| 186 |
+
else {
|
| 187 |
+
uVar11 = *(uint *)(&DAT_00103840 + (ulong)(local_1a8 & 0xff) * 4) ^
|
| 188 |
+
*(uint *)(&DAT_00103440 + (ulong)(local_1a8 >> 0x18) * 4) ^ local_1a4 ^
|
| 189 |
+
*(uint *)(&DAT_00103440 + (ulong)(local_1ac >> 0x18) * 4) ^
|
| 190 |
+
*(uint *)(&DAT_00103c40 + (ulong)(local_1a8 >> 0x10 & 0xff) * 4) ^
|
| 191 |
+
*(uint *)(&DAT_00103040 + (long)(int)(local_1a8 >> 8 & 0xff) * 4);
|
| 192 |
+
uVar15 = local_1ac ^ *(uint *)(&DAT_00103040 + (long)(int)(local_1ac >> 8 & 0xff) * 4) ^
|
| 193 |
+
*(uint *)(&DAT_00103c40 + (ulong)(uVar11 >> 0x18) * 4) ^
|
| 194 |
+
*(uint *)(&DAT_00103040 + (ulong)(uVar11 & 0xff) * 4) ^
|
| 195 |
+
*(uint *)(&DAT_00103840 + (long)(int)(uVar11 >> 8 & 0xff) * 4) ^
|
| 196 |
+
*(uint *)(&DAT_00103440 + (ulong)(uVar11 >> 0x10 & 0xff) * 4);
|
| 197 |
+
uVar17 = local_1a8 ^ *(uint *)(&DAT_00103c40 + (ulong)(local_1ac >> 0x10 & 0xff) * 4) ^
|
| 198 |
+
*(uint *)(&DAT_00103c40 + (ulong)(uVar15 & 0xff) * 4) ^
|
| 199 |
+
*(uint *)(&DAT_00103040 + (ulong)(uVar15 >> 0x18) * 4) ^
|
| 200 |
+
*(uint *)(&DAT_00103840 + (long)(int)(uVar15 >> 8 & 0xff) * 4) ^
|
| 201 |
+
*(uint *)(&DAT_00103440 + (ulong)(uVar15 >> 0x10 & 0xff) * 4);
|
| 202 |
+
local_1b4 = local_1b0 ^ *(uint *)(&DAT_00103840 + (ulong)(local_1ac & 0xff) * 4) ^
|
| 203 |
+
*(uint *)(&DAT_00103440 + (ulong)(uVar17 & 0xff) * 4) ^
|
| 204 |
+
*(uint *)(&DAT_00103040 + (ulong)(uVar17 >> 0x18) * 4) ^
|
| 205 |
+
*(uint *)(&DAT_00103c40 + (long)(int)(uVar17 >> 8 & 0xff) * 4) ^
|
| 206 |
+
*(uint *)(&DAT_00103840 + (ulong)(uVar17 >> 0x10 & 0xff) * 4);
|
| 207 |
+
local_1c0 = uVar11;
|
| 208 |
+
local_1bc = uVar17;
|
| 209 |
+
local_1b8 = uVar15;
|
| 210 |
+
uVar24 = local_1b4;
|
| 211 |
+
}
|
| 212 |
+
local_1c4 = uVar11 & 0xff;
|
| 213 |
+
local_1c8 = uVar17 & 0xff;
|
| 214 |
+
uVar23 = uVar10 & 0xc;
|
| 215 |
+
bVar14 = (byte)(uVar11 >> 8);
|
| 216 |
+
bVar20 = (byte)(uVar17 >> 8);
|
| 217 |
+
bVar16 = (byte)(uVar15 >> 8);
|
| 218 |
+
if (uVar23 == 8) {
|
| 219 |
+
LAB_00101379:
|
| 220 |
+
uVar3 = *(uint *)(&DAT_00103c40 + (ulong)(uVar15 & 0xff) * 4);
|
| 221 |
+
uVar4 = *(uint *)(&DAT_00103440 + (ulong)(uVar17 >> 0x18) * 4);
|
| 222 |
+
uVar5 = *(uint *)(&DAT_00103840 + (long)(int)(uint)bVar16 * 4);
|
| 223 |
+
uVar17 = *(uint *)(&DAT_00103040 + (ulong)(uVar17 >> 0x10 & 0xff) * 4);
|
| 224 |
+
uVar6 = *(uint *)(&DAT_00103840 + (ulong)(uVar15 >> 0x18) * 4);
|
| 225 |
+
uVar7 = *(uint *)(&DAT_00103040 + (long)(int)local_1c8 * 4);
|
| 226 |
+
uVar15 = *(uint *)(&DAT_00103c40 + (ulong)(uVar15 >> 0x10 & 0xff) * 4);
|
| 227 |
+
uVar8 = *(uint *)(&DAT_00103440 + (long)(int)(uint)bVar20 * 4);
|
| 228 |
+
*puVar22 = CONCAT44(*(uint *)(&DAT_00103840 + (ulong)(uVar11 >> 0x18) * 4) ^
|
| 229 |
+
*(uint *)(&DAT_00103040 + (ulong)(uVar24 & 0xff) * 4) ^
|
| 230 |
+
*(uint *)(&DAT_00103c40 + (ulong)(uVar11 >> 0x10 & 0xff) * 4) ^
|
| 231 |
+
*(uint *)(&DAT_00103440 + (long)(int)(uVar24 >> 8 & 0xff) * 4),
|
| 232 |
+
*(uint *)(&DAT_00103c40 + (long)(int)local_1c4 * 4) ^
|
| 233 |
+
*(uint *)(&DAT_00103440 + (long)(int)(uVar24 >> 0x18) * 4) ^
|
| 234 |
+
*(uint *)(&DAT_00103840 + (long)(int)(uint)bVar14 * 4) ^
|
| 235 |
+
*(uint *)(&DAT_00103040 + (ulong)(uVar24 >> 0x10 & 0xff) * 4));
|
| 236 |
+
puVar22[1] = CONCAT44(uVar6 ^ uVar7 ^ uVar15 ^ uVar8,uVar3 ^ uVar4 ^ uVar5 ^ uVar17);
|
| 237 |
+
if (uVar23 == 8) {
|
| 238 |
+
*(uint *)puVar22 =
|
| 239 |
+
*(uint *)puVar22 ^ *(uint *)(&DAT_00103c40 + (ulong)(local_1a4 >> 0x10 & 0xff) * 4)
|
| 240 |
+
;
|
| 241 |
+
*(uint *)((long)puVar22 + 4) =
|
| 242 |
+
*(uint *)((long)puVar22 + 4) ^
|
| 243 |
+
*(uint *)(&DAT_00103840 + (ulong)(local_1b0 >> 0x18) * 4);
|
| 244 |
+
*(uint *)(puVar22 + 1) =
|
| 245 |
+
*(uint *)(puVar22 + 1) ^
|
| 246 |
+
*(uint *)(&DAT_00103440 + (long)(int)(local_1ac >> 8 & 0xff) * 4);
|
| 247 |
+
*(uint *)((long)puVar22 + 0xc) =
|
| 248 |
+
*(uint *)((long)puVar22 + 0xc) ^
|
| 249 |
+
*(uint *)(&DAT_00103040 + (long)(int)(local_1a8 >> 8 & 0xff) * 4);
|
| 250 |
+
goto LAB_00101488;
|
| 251 |
+
}
|
| 252 |
+
LAB_0010169e:
|
| 253 |
+
if (uVar23 < 9) {
|
| 254 |
+
if (uVar23 == 0) {
|
| 255 |
+
*(uint *)puVar22 =
|
| 256 |
+
*(uint *)puVar22 ^
|
| 257 |
+
*(uint *)(&DAT_00103c40 + (long)(int)(local_1ac >> 8 & 0xff) * 4);
|
| 258 |
+
*(uint *)((long)puVar22 + 4) =
|
| 259 |
+
*(uint *)((long)puVar22 + 4) ^
|
| 260 |
+
*(uint *)(&DAT_00103840 + (long)(int)(local_1a8 >> 8 & 0xff) * 4);
|
| 261 |
+
*(uint *)(puVar22 + 1) =
|
| 262 |
+
*(uint *)(puVar22 + 1) ^
|
| 263 |
+
*(uint *)(&DAT_00103440 + (ulong)(local_1a4 >> 0x10 & 0xff) * 4);
|
| 264 |
+
*(uint *)((long)puVar22 + 0xc) =
|
| 265 |
+
*(uint *)((long)puVar22 + 0xc) ^
|
| 266 |
+
*(uint *)(&DAT_00103040 + (ulong)(local_1b0 >> 0x18) * 4);
|
| 267 |
+
}
|
| 268 |
+
else if (uVar23 == 4) {
|
| 269 |
+
*(uint *)puVar22 =
|
| 270 |
+
*(uint *)puVar22 ^ *(uint *)(&DAT_00103c40 + (ulong)(local_1bc >> 0x18) * 4);
|
| 271 |
+
*(uint *)((long)puVar22 + 4) =
|
| 272 |
+
*(uint *)((long)puVar22 + 4) ^
|
| 273 |
+
*(uint *)(&DAT_00103840 + (ulong)(local_1b4 >> 0x10 & 0xff) * 4);
|
| 274 |
+
*(uint *)(puVar22 + 1) =
|
| 275 |
+
*(uint *)(puVar22 + 1) ^ *(uint *)(&DAT_00103440 + (ulong)(byte)local_1c0 * 4);
|
| 276 |
+
*(uint *)((long)puVar22 + 0xc) =
|
| 277 |
+
*(uint *)((long)puVar22 + 0xc) ^
|
| 278 |
+
*(uint *)(&DAT_00103040 + (ulong)(byte)local_1b8 * 4);
|
| 279 |
+
}
|
| 280 |
+
}
|
| 281 |
+
else if (uVar23 == 0xc) {
|
| 282 |
+
*(uint *)puVar22 =
|
| 283 |
+
*(uint *)puVar22 ^ *(uint *)(&DAT_00103c40 + (ulong)(byte)local_1c0 * 4);
|
| 284 |
+
*(uint *)((long)puVar22 + 4) =
|
| 285 |
+
*(uint *)((long)puVar22 + 4) ^
|
| 286 |
+
*(uint *)(&DAT_00103840 + (ulong)(byte)local_1b8 * 4);
|
| 287 |
+
*(uint *)(puVar22 + 1) =
|
| 288 |
+
*(uint *)(puVar22 + 1) ^ *(uint *)(&DAT_00103440 + (ulong)(local_1bc >> 0x18) * 4);
|
| 289 |
+
*(uint *)((long)puVar22 + 0xc) =
|
| 290 |
+
*(uint *)((long)puVar22 + 0xc) ^
|
| 291 |
+
*(uint *)(&DAT_00103040 + (ulong)(local_1b4 >> 0x10 & 0xff) * 4);
|
| 292 |
+
}
|
| 293 |
+
}
|
| 294 |
+
else if (uVar23 < 9) {
|
| 295 |
+
if (uVar23 == 0) goto LAB_001015d4;
|
| 296 |
+
if (uVar23 == 4) goto LAB_00101379;
|
| 297 |
+
}
|
| 298 |
+
else if (uVar23 == 0xc) {
|
| 299 |
+
LAB_001015d4:
|
| 300 |
+
uVar3 = *(uint *)(&DAT_00103c40 + (ulong)(uVar24 >> 0x18) * 4);
|
| 301 |
+
uVar4 = *(uint *)(&DAT_00103440 + (long)(int)local_1c4 * 4);
|
| 302 |
+
uVar5 = *(uint *)(&DAT_00103840 + (ulong)(uVar24 >> 0x10 & 0xff) * 4);
|
| 303 |
+
uVar6 = *(uint *)(&DAT_00103040 + (long)(int)(uint)bVar14 * 4);
|
| 304 |
+
uVar7 = *(uint *)(&DAT_00103840 + (ulong)(uVar24 & 0xff) * 4);
|
| 305 |
+
uVar8 = *(uint *)(&DAT_00103040 + (ulong)(uVar11 >> 0x18) * 4);
|
| 306 |
+
uVar24 = *(uint *)(&DAT_00103c40 + (long)(int)(uVar24 >> 8 & 0xff) * 4);
|
| 307 |
+
uVar11 = *(uint *)(&DAT_00103440 + (ulong)(uVar11 >> 0x10 & 0xff) * 4);
|
| 308 |
+
*puVar22 = CONCAT44(*(uint *)(&DAT_00103840 + (long)(int)local_1c8 * 4) ^
|
| 309 |
+
*(uint *)(&DAT_00103040 + (ulong)(uVar15 >> 0x18) * 4) ^
|
| 310 |
+
*(uint *)(&DAT_00103c40 + (long)(int)(uint)bVar20 * 4) ^
|
| 311 |
+
*(uint *)(&DAT_00103440 + (ulong)(uVar15 >> 0x10 & 0xff) * 4),
|
| 312 |
+
*(uint *)(&DAT_00103c40 + (ulong)(uVar17 >> 0x18) * 4) ^
|
| 313 |
+
*(uint *)(&DAT_00103440 + (ulong)(uVar15 & 0xff) * 4) ^
|
| 314 |
+
*(uint *)(&DAT_00103840 + (ulong)(uVar17 >> 0x10 & 0xff) * 4) ^
|
| 315 |
+
*(uint *)(&DAT_00103040 + (long)(int)(uint)bVar16 * 4));
|
| 316 |
+
puVar22[1] = CONCAT44(uVar7 ^ uVar8 ^ uVar24 ^ uVar11,uVar3 ^ uVar4 ^ uVar5 ^ uVar6);
|
| 317 |
+
goto LAB_0010169e;
|
| 318 |
+
}
|
| 319 |
+
LAB_00101488:
|
| 320 |
+
if (0xf < (int)uVar10) {
|
| 321 |
+
*(uint *)puVar22 = *(uint *)puVar22 & 0x1f;
|
| 322 |
+
*(uint *)((long)puVar22 + 4) = *(uint *)((long)puVar22 + 4) & 0x1f;
|
| 323 |
+
*(uint *)(puVar22 + 1) = *(uint *)(puVar22 + 1) & 0x1f;
|
| 324 |
+
*(uint *)((long)puVar22 + 0xc) = *(uint *)((long)puVar22 + 0xc) & 0x1f;
|
| 325 |
+
}
|
| 326 |
+
uVar10 = uVar10 + 4;
|
| 327 |
+
puVar22 = puVar22 + 2;
|
| 328 |
+
} while (uVar10 != 0x20);
|
| 329 |
+
uVar13 = 0x943b6869fdfbdced;
|
| 330 |
+
puVar25 = local_98;
|
| 331 |
+
do {
|
| 332 |
+
uVar11 = (uint)(byte)((byte)(uVar13 >> 0x28) ^ *(byte *)((long)puVar21 + 5)) << 0x10 |
|
| 333 |
+
(uint)(byte)((byte)(uVar13 >> 0x20) ^ *(byte *)((long)puVar21 + 4)) << 0x18 |
|
| 334 |
+
(uint)(byte)((byte)(uVar13 >> 0x38) ^ *(byte *)((long)puVar21 + 7)) |
|
| 335 |
+
(uint)(byte)((byte)(uVar13 >> 0x30) ^ *(byte *)((long)puVar21 + 6)) << 8;
|
| 336 |
+
uVar10 = uVar11 + (int)local_138;
|
| 337 |
+
bVar14 = (byte)local_f8 & 0x1f;
|
| 338 |
+
uVar10 = uVar10 << bVar14 | uVar10 >> 0x20 - bVar14;
|
| 339 |
+
uVar24 = ((uint)(byte)((byte)(uVar13 >> 0x18) ^ *(byte *)((long)puVar21 + 3)) |
|
| 340 |
+
((uint)*(byte *)puVar21 ^ (uint)uVar13) << 0x18 |
|
| 341 |
+
(uint)(byte)((byte)(uVar13 >> 8) ^ *(byte *)((long)puVar21 + 1)) << 0x10 |
|
| 342 |
+
(uint)(byte)((byte)(uVar13 >> 0x10) ^ *(byte *)((long)puVar21 + 2)) << 8) ^
|
| 343 |
+
((*(uint *)(&DAT_00104840 + (ulong)(uVar10 >> 0x10 & 0xff) * 4) ^
|
| 344 |
+
*(uint *)(&DAT_00104c40 + (ulong)(uVar10 >> 0x18) * 4)) -
|
| 345 |
+
*(int *)(&DAT_00104440 + (long)(int)(uVar10 >> 8 & 0xff) * 4)) +
|
| 346 |
+
*(int *)(&DAT_00104040 + (ulong)(uVar10 & 0xff) * 4);
|
| 347 |
+
uVar10 = local_138._4_4_ ^ uVar24;
|
| 348 |
+
bVar14 = (byte)local_f4 & 0x1f;
|
| 349 |
+
uVar10 = uVar10 << bVar14 | uVar10 >> 0x20 - bVar14;
|
| 350 |
+
uVar11 = uVar11 ^ *(uint *)(&DAT_00104040 + (ulong)(uVar10 & 0xff) * 4) ^
|
| 351 |
+
(*(int *)(&DAT_00104c40 + (ulong)(uVar10 >> 0x18) * 4) +
|
| 352 |
+
*(int *)(&DAT_00104440 + (long)(int)(uVar10 >> 8 & 0xff) * 4)) -
|
| 353 |
+
*(int *)(&DAT_00104840 + (ulong)(uVar10 >> 0x10 & 0xff) * 4);
|
| 354 |
+
uVar10 = (int)uStack_130 - uVar11;
|
| 355 |
+
bVar14 = (byte)local_f0 & 0x1f;
|
| 356 |
+
uVar10 = uVar10 << bVar14 | uVar10 >> 0x20 - bVar14;
|
| 357 |
+
uVar24 = (*(int *)(&DAT_00104c40 + (ulong)(uVar10 >> 0x18) * 4) +
|
| 358 |
+
*(int *)(&DAT_00104840 + (ulong)(uVar10 >> 0x10 & 0xff) * 4) ^
|
| 359 |
+
*(uint *)(&DAT_00104440 + (long)(int)(uVar10 >> 8 & 0xff) * 4)) -
|
| 360 |
+
*(int *)(&DAT_00104040 + (ulong)(uVar10 & 0xff) * 4) ^ uVar24;
|
| 361 |
+
uVar10 = uVar24 + uStack_130._4_4_;
|
| 362 |
+
bVar14 = (byte)local_ec & 0x1f;
|
| 363 |
+
uVar10 = uVar10 << bVar14 | uVar10 >> 0x20 - bVar14;
|
| 364 |
+
uVar11 = ((*(uint *)(&DAT_00104840 + (ulong)(uVar10 >> 0x10 & 0xff) * 4) ^
|
| 365 |
+
*(uint *)(&DAT_00104c40 + (ulong)(uVar10 >> 0x18) * 4)) -
|
| 366 |
+
*(int *)(&DAT_00104440 + (long)(int)(uVar10 >> 8 & 0xff) * 4)) +
|
| 367 |
+
*(int *)(&DAT_00104040 + (ulong)(uVar10 & 0xff) * 4) ^ uVar11;
|
| 368 |
+
uVar10 = local_128 ^ uVar11;
|
| 369 |
+
bVar14 = (byte)local_e8 & 0x1f;
|
| 370 |
+
uVar10 = uVar10 << bVar14 | uVar10 >> 0x20 - bVar14;
|
| 371 |
+
uVar24 = (*(int *)(&DAT_00104c40 + (ulong)(uVar10 >> 0x18) * 4) +
|
| 372 |
+
*(int *)(&DAT_00104440 + (long)(int)(uVar10 >> 8 & 0xff) * 4)) -
|
| 373 |
+
*(int *)(&DAT_00104840 + (ulong)(uVar10 >> 0x10 & 0xff) * 4) ^
|
| 374 |
+
uVar24 ^ *(uint *)(&DAT_00104040 + (ulong)(uVar10 & 0xff) * 4);
|
| 375 |
+
uVar10 = local_124 - uVar24;
|
| 376 |
+
bVar14 = (byte)local_e4 & 0x1f;
|
| 377 |
+
uVar10 = uVar10 << bVar14 | uVar10 >> 0x20 - bVar14;
|
| 378 |
+
uVar11 = (*(int *)(&DAT_00104c40 + (ulong)(uVar10 >> 0x18) * 4) +
|
| 379 |
+
*(int *)(&DAT_00104840 + (ulong)(uVar10 >> 0x10 & 0xff) * 4) ^
|
| 380 |
+
*(uint *)(&DAT_00104440 + (long)(int)(uVar10 >> 8 & 0xff) * 4)) -
|
| 381 |
+
*(int *)(&DAT_00104040 + (ulong)(uVar10 & 0xff) * 4) ^ uVar11;
|
| 382 |
+
uVar10 = uVar11 + local_120;
|
| 383 |
+
bVar14 = (byte)local_e0 & 0x1f;
|
| 384 |
+
uVar10 = uVar10 << bVar14 | uVar10 >> 0x20 - bVar14;
|
| 385 |
+
uVar24 = ((*(uint *)(&DAT_00104840 + (ulong)(uVar10 >> 0x10 & 0xff) * 4) ^
|
| 386 |
+
*(uint *)(&DAT_00104c40 + (ulong)(uVar10 >> 0x18) * 4)) -
|
| 387 |
+
*(int *)(&DAT_00104440 + (long)(int)(uVar10 >> 8 & 0xff) * 4)) +
|
| 388 |
+
*(int *)(&DAT_00104040 + (ulong)(uVar10 & 0xff) * 4) ^ uVar24;
|
| 389 |
+
uVar10 = local_11c ^ uVar24;
|
| 390 |
+
bVar14 = (byte)local_dc & 0x1f;
|
| 391 |
+
uVar10 = uVar10 << bVar14 | uVar10 >> 0x20 - bVar14;
|
| 392 |
+
uVar11 = (*(int *)(&DAT_00104c40 + (ulong)(uVar10 >> 0x18) * 4) +
|
| 393 |
+
*(int *)(&DAT_00104440 + (long)(int)(uVar10 >> 8 & 0xff) * 4)) -
|
| 394 |
+
*(int *)(&DAT_00104840 + (ulong)(uVar10 >> 0x10 & 0xff) * 4) ^
|
| 395 |
+
uVar11 ^ *(uint *)(&DAT_00104040 + (ulong)(uVar10 & 0xff) * 4);
|
| 396 |
+
uVar10 = local_118 - uVar11;
|
| 397 |
+
bVar14 = (byte)local_d8 & 0x1f;
|
| 398 |
+
uVar10 = uVar10 << bVar14 | uVar10 >> 0x20 - bVar14;
|
| 399 |
+
uVar24 = (*(int *)(&DAT_00104c40 + (ulong)(uVar10 >> 0x18) * 4) +
|
| 400 |
+
*(int *)(&DAT_00104840 + (ulong)(uVar10 >> 0x10 & 0xff) * 4) ^
|
| 401 |
+
*(uint *)(&DAT_00104440 + (long)(int)(uVar10 >> 8 & 0xff) * 4)) -
|
| 402 |
+
*(int *)(&DAT_00104040 + (ulong)(uVar10 & 0xff) * 4) ^ uVar24;
|
| 403 |
+
uVar10 = uVar24 + local_114;
|
| 404 |
+
bVar14 = (byte)local_d4 & 0x1f;
|
| 405 |
+
uVar10 = uVar10 << bVar14 | uVar10 >> 0x20 - bVar14;
|
| 406 |
+
uVar11 = ((*(uint *)(&DAT_00104840 + (ulong)(uVar10 >> 0x10 & 0xff) * 4) ^
|
| 407 |
+
*(uint *)(&DAT_00104c40 + (ulong)(uVar10 >> 0x18) * 4)) -
|
| 408 |
+
*(int *)(&DAT_00104440 + (long)(int)(uVar10 >> 8 & 0xff) * 4)) +
|
| 409 |
+
*(int *)(&DAT_00104040 + (ulong)(uVar10 & 0xff) * 4) ^ uVar11;
|
| 410 |
+
uVar10 = local_110 ^ uVar11;
|
| 411 |
+
bVar14 = (byte)local_d0 & 0x1f;
|
| 412 |
+
uVar10 = uVar10 << bVar14 | uVar10 >> 0x20 - bVar14;
|
| 413 |
+
uVar24 = (*(int *)(&DAT_00104c40 + (ulong)(uVar10 >> 0x18) * 4) +
|
| 414 |
+
*(int *)(&DAT_00104440 + (long)(int)(uVar10 >> 8 & 0xff) * 4)) -
|
| 415 |
+
*(int *)(&DAT_00104840 + (ulong)(uVar10 >> 0x10 & 0xff) * 4) ^
|
| 416 |
+
uVar24 ^ *(uint *)(&DAT_00104040 + (ulong)(uVar10 & 0xff) * 4);
|
| 417 |
+
uVar10 = local_10c - uVar24;
|
| 418 |
+
bVar14 = (byte)local_cc & 0x1f;
|
| 419 |
+
uVar10 = uVar10 << bVar14 | uVar10 >> 0x20 - bVar14;
|
| 420 |
+
uVar11 = (*(int *)(&DAT_00104c40 + (ulong)(uVar10 >> 0x18) * 4) +
|
| 421 |
+
*(int *)(&DAT_00104840 + (ulong)(uVar10 >> 0x10 & 0xff) * 4) ^
|
| 422 |
+
*(uint *)(&DAT_00104440 + (long)(int)(uVar10 >> 8 & 0xff) * 4)) -
|
| 423 |
+
*(int *)(&DAT_00104040 + (ulong)(uVar10 & 0xff) * 4) ^ uVar11;
|
| 424 |
+
uVar10 = uVar11 + local_108;
|
| 425 |
+
bVar14 = (byte)local_c8 & 0x1f;
|
| 426 |
+
uVar10 = uVar10 << bVar14 | uVar10 >> 0x20 - bVar14;
|
| 427 |
+
uVar24 = ((*(uint *)(&DAT_00104840 + (ulong)(uVar10 >> 0x10 & 0xff) * 4) ^
|
| 428 |
+
*(uint *)(&DAT_00104c40 + (ulong)(uVar10 >> 0x18) * 4)) -
|
| 429 |
+
*(int *)(&DAT_00104440 + (long)(int)(uVar10 >> 8 & 0xff) * 4)) +
|
| 430 |
+
*(int *)(&DAT_00104040 + (ulong)(uVar10 & 0xff) * 4) ^ uVar24;
|
| 431 |
+
uVar10 = local_104 ^ uVar24;
|
| 432 |
+
bVar14 = (byte)local_c4 & 0x1f;
|
| 433 |
+
uVar10 = uVar10 << bVar14 | uVar10 >> 0x20 - bVar14;
|
| 434 |
+
uVar11 = (*(int *)(&DAT_00104c40 + (ulong)(uVar10 >> 0x18) * 4) +
|
| 435 |
+
*(int *)(&DAT_00104440 + (long)(int)(uVar10 >> 8 & 0xff) * 4)) -
|
| 436 |
+
*(int *)(&DAT_00104840 + (ulong)(uVar10 >> 0x10 & 0xff) * 4) ^
|
| 437 |
+
uVar11 ^ *(uint *)(&DAT_00104040 + (ulong)(uVar10 & 0xff) * 4);
|
| 438 |
+
uVar10 = local_100 - uVar11;
|
| 439 |
+
bVar14 = (byte)local_c0 & 0x1f;
|
| 440 |
+
uVar10 = uVar10 << bVar14 | uVar10 >> 0x20 - bVar14;
|
| 441 |
+
uVar24 = (*(int *)(&DAT_00104c40 + (ulong)(uVar10 >> 0x18) * 4) +
|
| 442 |
+
*(int *)(&DAT_00104840 + (ulong)(uVar10 >> 0x10 & 0xff) * 4) ^
|
| 443 |
+
*(uint *)(&DAT_00104440 + (long)(int)(uVar10 >> 8 & 0xff) * 4)) -
|
| 444 |
+
*(int *)(&DAT_00104040 + (ulong)(uVar10 & 0xff) * 4) ^ uVar24;
|
| 445 |
+
bVar14 = (byte)local_bc & 0x1f;
|
| 446 |
+
uVar10 = local_fc + uVar24 << bVar14 | local_fc + uVar24 >> 0x20 - bVar14;
|
| 447 |
+
uVar11 = ((*(uint *)(&DAT_00104840 + (ulong)(uVar10 >> 0x10 & 0xff) * 4) ^
|
| 448 |
+
*(uint *)(&DAT_00104c40 + (ulong)(uVar10 >> 0x18) * 4)) -
|
| 449 |
+
*(int *)(&DAT_00104440 + (long)(int)(uVar10 >> 8 & 0xff) * 4)) +
|
| 450 |
+
*(int *)(&DAT_00104040 + (ulong)(uVar10 & 0xff) * 4) ^ uVar11;
|
| 451 |
+
puVar21 = puVar21 + 1;
|
| 452 |
+
uVar13 = (((((((ulong)(uVar24 & 0xff) << 8 | (ulong)(uVar24 >> 8 & 0xff)) << 8 |
|
| 453 |
+
(ulong)(uVar24 >> 0x10 & 0xff)) << 8 | (ulong)(uVar24 >> 0x18)) << 8 |
|
| 454 |
+
(ulong)(uVar11 & 0xff)) << 8 | (ulong)(uVar11 >> 8 & 0xff)) << 8 |
|
| 455 |
+
(ulong)(uVar11 >> 0x10 & 0xff)) << 8 | (ulong)(uVar11 >> 0x18);
|
| 456 |
+
*puVar25 = uVar13;
|
| 457 |
+
puVar25 = puVar25 + 1;
|
| 458 |
+
} while (puVar21 != (ulong *)&local_58);
|
| 459 |
+
__printf_chk(1,"Ciphertext(hex): ");
|
| 460 |
+
puVar21 = local_98;
|
| 461 |
+
do {
|
| 462 |
+
uVar2 = *(undefined *)puVar21;
|
| 463 |
+
puVar21 = (ulong *)((long)puVar21 + 1);
|
| 464 |
+
__printf_chk(1,&DAT_00105077,uVar2);
|
| 465 |
+
} while (puVar21 != local_78);
|
| 466 |
+
__printf_chk(1,"\n");
|
| 467 |
+
iVar9 = memcmp(local_98,&local_58,0x20);
|
| 468 |
+
pcVar19 = "True";
|
| 469 |
+
if (iVar9 != 0) {
|
| 470 |
+
pcVar19 = "False";
|
| 471 |
+
}
|
| 472 |
+
__printf_chk(1,"Match: %s\n",pcVar19);
|
| 473 |
+
bVar26 = iVar9 != 0;
|
| 474 |
+
}
|
| 475 |
+
else {
|
| 476 |
+
LAB_00101227:
|
| 477 |
+
__fprintf_chk(*(undefined8 *)PTR_stderr_00106ff8,1,
|
| 478 |
+
"Bad input hex. Expecting 64 hex chars (32 bytes).\n");
|
| 479 |
+
bVar26 = true;
|
| 480 |
+
}
|
| 481 |
+
}
|
| 482 |
+
else {
|
| 483 |
+
__fprintf_chk(*(undefined8 *)PTR_stderr_00106ff8,1,"Usage: %s <64-hex-chars>\n",*param_2);
|
| 484 |
+
bVar26 = true;
|
| 485 |
+
}
|
| 486 |
+
if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
|
| 487 |
+
return bVar26;
|
| 488 |
+
}
|
| 489 |
+
/* WARNING: Subroutine does not return */
|
| 490 |
+
__stack_chk_fail();
|
| 491 |
+
}
|
| 492 |
+
|
CREBench/CAST5/public-hardcode_plain-O3/decompile/FUN_00102020_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Removing unreachable block (ram,0x00102033) */
|
| 3 |
+
/* WARNING: Removing unreachable block (ram,0x0010203f) */
|
| 4 |
+
|
| 5 |
+
void FUN_00102020(void)
|
| 6 |
+
|
| 7 |
+
{
|
| 8 |
+
return;
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/CAST5/public-hardcode_plain-O3/decompile/FUN_00102050_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/* WARNING: Removing unreachable block (ram,0x00102074) */
|
| 3 |
+
/* WARNING: Removing unreachable block (ram,0x00102080) */
|
| 4 |
+
|
| 5 |
+
void FUN_00102050(void)
|
| 6 |
+
|
| 7 |
+
{
|
| 8 |
+
return;
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/CAST5/public-hardcode_plain-O3/decompile/FUN_001020e0_decompiled
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void FUN_001020e0(long param_1,ulong param_2)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
ulong local_18;
|
| 6 |
+
|
| 7 |
+
for (local_18 = 0; local_18 < param_2; local_18 = local_18 + 1) {
|
| 8 |
+
*(undefined *)(local_18 + param_1) = (&DAT_00103020)[(uint)local_18 & 0xf];
|
| 9 |
+
}
|
| 10 |
+
return;
|
| 11 |
+
}
|
| 12 |
+
|
CREBench/CAST5/public-hardcode_plain-O3/decompile/_DT_FINI_decompiled
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void _DT_FINI(void)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
return;
|
| 6 |
+
}
|
| 7 |
+
|
CREBench/CAST5/public-hardcode_plain-O3/decompile/_DT_INIT_decompiled
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void _DT_INIT(void)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
if (PTR___gmon_start___00106fe0 != (undefined *)0x0) {
|
| 6 |
+
(*(code *)PTR___gmon_start___00106fe0)();
|
| 7 |
+
}
|
| 8 |
+
return;
|
| 9 |
+
}
|
| 10 |
+
|
CREBench/CAST5/public-hardcode_plain-O3/decompile/_FINI_0_decompiled
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void _FINI_0(void)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
if (DAT_00107010 == '\0') {
|
| 6 |
+
if (PTR___cxa_finalize_00106ff0 != (undefined *)0x0) {
|
| 7 |
+
__cxa_finalize(PTR_LOOP_00107008);
|
| 8 |
+
}
|
| 9 |
+
FUN_00102020();
|
| 10 |
+
DAT_00107010 = 1;
|
| 11 |
+
return;
|
| 12 |
+
}
|
| 13 |
+
return;
|
| 14 |
+
}
|
| 15 |
+
|
CREBench/CAST5/public-hardcode_plain-O3/decompile/_INIT_0_decompiled
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
void _INIT_0(void)
|
| 3 |
+
|
| 4 |
+
{
|
| 5 |
+
FUN_00102050();
|
| 6 |
+
return;
|
| 7 |
+
}
|
| 8 |
+
|
CREBench/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-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/CAST5/public-hardcode_plain-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_00106fd0)
|
| 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/CAST5/public-hardcode_plain-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 |
+
|
CREBench/CAST5/public-hardcode_plain-O3/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/CAST5/public-hardcode_plain-constxor/address.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"00101020": "FUN_00101020",
|
| 3 |
+
"00102330": "FUN_00102330",
|
| 4 |
+
"0010c028": "__gmon_start__",
|
| 5 |
+
"00101000": "_DT_INIT",
|
| 6 |
+
"00102210": "FUN_00102210",
|
| 7 |
+
"00102530": "FUN_00102530",
|
| 8 |
+
"00102470": "FUN_00102470",
|
| 9 |
+
"0010c008": "_ITM_deregisterTMCloneTable",
|
| 10 |
+
"00101080": "__cxa_finalize",
|
| 11 |
+
"001026b0": "FUN_001026b0",
|
| 12 |
+
"001023d0": "FUN_001023d0",
|
| 13 |
+
"001010a0": "__stack_chk_fail",
|
| 14 |
+
"001010e0": "FUN_001010e0",
|
| 15 |
+
"001010c0": "__printf_chk",
|
| 16 |
+
"001022d0": "FUN_001022d0",
|
| 17 |
+
"00102700": "FUN_00102700",
|
| 18 |
+
"00102744": "_DT_FINI",
|
| 19 |
+
"0010c020": "memcmp",
|
| 20 |
+
"0010c040": "_ITM_registerTMCloneTable",
|
| 21 |
+
"0010c000": "__libc_start_main",
|
| 22 |
+
"00102340": "FUN_00102340",
|
| 23 |
+
"0010c018": "__stack_chk_fail",
|
| 24 |
+
"00102660": "FUN_00102660",
|
| 25 |
+
"0010c038": "__fprintf_chk",
|
| 26 |
+
"00102420": "FUN_00102420",
|
| 27 |
+
"00102380": "FUN_00102380",
|
| 28 |
+
"00102240": "FUN_00102240",
|
| 29 |
+
"00101090": "strlen",
|
| 30 |
+
"00102280": "_FINI_0",
|
| 31 |
+
"001025a0": "FUN_001025a0",
|
| 32 |
+
"001010b0": "memcmp",
|
| 33 |
+
"001022c0": "_INIT_0",
|
| 34 |
+
"001024c0": "FUN_001024c0",
|
| 35 |
+
"0010c050": "__cxa_finalize",
|
| 36 |
+
"001021e0": "entry",
|
| 37 |
+
"001010d0": "__fprintf_chk",
|
| 38 |
+
"0010c010": "strlen",
|
| 39 |
+
"0010c030": "__printf_chk",
|
| 40 |
+
"00102610": "FUN_00102610"
|
| 41 |
+
}
|
CREBench/CAST5/public-hardcode_plain-constxor/challenge
ADDED
|
Binary file (35 kB). View file
|
|
|