
void sha256_key(void *handle,uchar *key)

{
  int iVar1;
  byte *pbVar2;
  SHA256_State *s;
  byte *pbVar3;
  uchar *puVar4;
  uchar *digest;
  SHA256_CTX *c;
  int iVar5;
  byte *pbVar6;
  uint32 uVar7;
  int iVar8;
  byte *pbVar9;
  undefined *puVar10;
  code *pcVar11;
  undefined1 uStack_e4;
  undefined1 uStack_e3;
  undefined1 uStack_e2;
  byte bStack_e1;
  undefined1 uStack_e0;
  undefined1 uStack_df;
  undefined1 uStack_de;
  undefined1 uStack_dd;
  int iStack_a4;
  SHA256_State *pSStack_9c;
  SHA256_CTX *pSStack_98;
  uchar *puStack_94;
  byte *pbStack_90;
  byte *pbStack_8c;
  byte *pbStack_88;
  code *pcStack_84;
  uchar foo [64];
  
  iVar1 = *(int *)PTR___stack_chk_guard_00122654;
  pbVar6 = foo;
  (*(code *)PTR_memset_001220dc)(pbVar6,0x36,0x40);
  pbVar9 = foo + 0x20;
  pbVar2 = pbVar6;
  pbVar3 = key;
  do {
    *pbVar2 = *pbVar2 ^ *pbVar3;
    pbVar2 = pbVar2 + 1;
    pbVar3 = pbVar3 + 1;
  } while (pbVar2 != pbVar9);
  SHA256_Init((SHA256_CTX *)handle);
  SHA256_Bytes((SHA256_State *)handle,foo,0x40);
  (*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);
  pbVar2 = key;
  do {
    *pbVar6 = *pbVar6 ^ *pbVar2;
    pbVar6 = pbVar6 + 1;
    pbVar2 = pbVar2 + 1;
  } while (pbVar6 != pbVar9);
  c = (SHA256_CTX *)((int)handle + 0x6c);
  SHA256_Init(c);
  SHA256_Bytes((SHA256_State *)c,(SHA256_State *)foo,0x40);
  puVar4 = &DAT_00000040;
  s = (SHA256_State *)foo;
  (*(code *)PTR_smemclr_00121358)();
  if (iVar1 == *(int *)PTR___stack_chk_guard_00122654) {
    return;
  }
  pcVar11 = SHA256_Final;
  puVar10 = PTR___stack_chk_fail_001222ec;
  (*(code *)PTR___stack_chk_fail_001222ec)();
  iStack_a4 = **(int **)(puVar10 + 0x94be8);
  iVar1 = s->blkused;
  if (iVar1 < 0x38) {
    iVar1 = 0x38 - iVar1;
  }
  else {
    iVar1 = 0x78 - iVar1;
  }
  uVar7 = s->lenlo;
  iVar5 = s->lenhi << 3;
  iVar8 = uVar7 << 3;
  pSStack_9c = (SHA256_State *)foo;
  pSStack_98 = c;
  puStack_94 = key;
  pbStack_90 = pbVar6;
  pbStack_8c = pbVar2;
  pbStack_88 = pbVar9;
  pcStack_84 = pcVar11;
  (**(code **)(puVar10 + 0x94790))(&uStack_e4,0,iVar1,0x40);
  uStack_e4 = 0x80;
  SHA256_Bytes(s,&uStack_e4,iVar1);
  uStack_e4 = (undefined1)((uint)iVar5 >> 0x18);
  uStack_e3 = (undefined1)((uint)iVar5 >> 0x10);
  uStack_e2 = (undefined1)((uint)iVar5 >> 8);
  uStack_e0 = (undefined1)((uint)iVar8 >> 0x18);
  uStack_df = (undefined1)((uint)iVar8 >> 0x10);
  uStack_de = (undefined1)((uint)iVar8 >> 8);
  uStack_dd = (undefined1)iVar8;
  bStack_e1 = (byte)iVar5 | (byte)(uVar7 >> 0x1d);
  SHA256_Bytes(s,&uStack_e4,8);
  digest = puVar4 + 0x20;
  do {
    *puVar4 = *(uchar *)s->h;
    puVar4[1] = (uchar)*(undefined2 *)s->h;
    puVar4[2] = (uchar)(s->h[0] >> 8);
    puVar4[3] = (uchar)s->h[0];
    puVar4 = puVar4 + 4;
    s = (SHA256_State *)(s->h + 1);
  } while (puVar4 != digest);
  if (iStack_a4 == **(int **)(puVar10 + 0x94be8)) {
    return;
  }
  (**(code **)(puVar10 + 0x94880))();
  SHA256_Final(s,digest);
  sha256_free(s);
  return;
}



void FUN_0008d8dc(SHA256_CTX *param_1,byte *param_2)

{
  byte *pbVar1;
  byte *md;
  byte *pbVar2;
  SHA256_CTX *c;
  uint *c_00;
  int iVar3;
  byte *pbVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  undefined *puVar8;
  code *pcVar9;
  undefined1 uStack_e4;
  undefined1 uStack_e3;
  undefined1 uStack_e2;
  byte bStack_e1;
  undefined1 uStack_e0;
  undefined1 uStack_df;
  undefined1 uStack_de;
  undefined1 uStack_dd;
  int iStack_a4;
  byte *pbStack_9c;
  uint *puStack_98;
  byte *pbStack_94;
  byte *pbStack_90;
  byte *pbStack_8c;
  byte *pbStack_88;
  code *pcStack_84;
  byte local_64 [32];
  byte abStack_44 [32];
  int local_24;
  
  local_24 = *(int *)PTR___stack_chk_guard_00122654;
  pbVar4 = local_64;
  (*(code *)PTR_memset_001220dc)(pbVar4,0x36,0x40);
  pbVar1 = pbVar4;
  pbVar2 = param_2;
  do {
    *pbVar1 = *pbVar1 ^ *pbVar2;
    pbVar1 = pbVar1 + 1;
    pbVar2 = pbVar2 + 1;
  } while (pbVar1 != abStack_44);
  SHA256_Init(param_1);
  SHA256_Bytes(param_1,local_64,0x40);
  (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);
  pbVar1 = param_2;
  do {
    *pbVar4 = *pbVar4 ^ *pbVar1;
    pbVar4 = pbVar4 + 1;
    pbVar1 = pbVar1 + 1;
  } while (pbVar4 != abStack_44);
  c_00 = &param_1->md_len;
  SHA256_Init((SHA256_CTX *)c_00);
  SHA256_Bytes(c_00,local_64,0x40);
  pbVar2 = &DAT_00000040;
  md = local_64;
  (*(code *)PTR_smemclr_00121358)();
  if (local_24 == *(int *)PTR___stack_chk_guard_00122654) {
    return;
  }
  pcVar9 = SHA256_Final;
  puVar8 = PTR___stack_chk_fail_001222ec;
  (*(code *)PTR___stack_chk_fail_001222ec)();
  iStack_a4 = **(int **)(puVar8 + 0x94be8);
  iVar5 = *(int *)(md + 0x60);
  if (iVar5 < 0x38) {
    iVar5 = 0x38 - iVar5;
  }
  else {
    iVar5 = 0x78 - iVar5;
  }
  iVar6 = *(int *)(md + 0x68);
  iVar3 = *(int *)(md + 100) << 3;
  iVar7 = iVar6 << 3;
  pbStack_9c = local_64;
  puStack_98 = c_00;
  pbStack_94 = param_2;
  pbStack_90 = pbVar4;
  pbStack_8c = pbVar1;
  pbStack_88 = abStack_44;
  pcStack_84 = pcVar9;
  (**(code **)(puVar8 + 0x94790))(&uStack_e4,0,iVar5,0x40);
  uStack_e4 = 0x80;
  SHA256_Bytes(md,&uStack_e4,iVar5);
  uStack_e4 = (undefined1)((uint)iVar3 >> 0x18);
  uStack_e3 = (undefined1)((uint)iVar3 >> 0x10);
  uStack_e2 = (undefined1)((uint)iVar3 >> 8);
  uStack_e0 = (undefined1)((uint)iVar7 >> 0x18);
  uStack_df = (undefined1)((uint)iVar7 >> 0x10);
  uStack_de = (undefined1)((uint)iVar7 >> 8);
  uStack_dd = (undefined1)iVar7;
  bStack_e1 = (byte)iVar3 | (byte)((uint)iVar6 >> 0x1d);
  SHA256_Bytes(md,&uStack_e4,8);
  c = (SHA256_CTX *)(pbVar2 + 0x20);
  do {
    *pbVar2 = *md;
    pbVar2[1] = (byte)*(undefined2 *)md;
    pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);
    pbVar2[3] = (byte)*(undefined4 *)md;
    pbVar2 = pbVar2 + 4;
    md = md + 4;
  } while ((SHA256_CTX *)pbVar2 != c);
  if (iStack_a4 == **(int **)(puVar8 + 0x94be8)) {
    return;
  }
  (**(code **)(puVar8 + 0x94880))();
  SHA256_Final(md,c);
  FUN_0008cf24(md);
  return;
}


lui gp,0xa
addiu gp,gp,-0x462c
addu gp,gp,t9
addiu sp,sp,-0x80
sw ra,0x7c(sp)
sw s5,0x78(sp)
sw s4,0x74(sp)
sw s3,0x70(sp)
sw s2,0x6c(sp)
sw s1,0x68(sp)
sw s0,0x64(sp)
sw gp,0x10(sp)
or s1,a0,zero
or s2,a1,zero
lw v0,-0x6c5c(gp)
lw v0,0x0(v0)
sw v0,0x5c(sp)
li a2,0x40
li a1,0x36
addiu s0,sp,0x1c
or a0,s0,zero
lw t9,-0x71d4(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s3,s0,zero
or s4,s2,zero
addiu s5,sp,0x3c
or a1,s2,zero
or a0,s0,zero
lbu v0,0x0(a0)
lbu v1,0x0(a1)
xor v0,v0,v1
sb v0,0x0(a0)
addiu a0,a0,0x1
bne a0,s5,0x0008d954
_addiu a1,a1,0x1
or a0,s1,zero
lw t9,-0x7830(gp)
bal 0x0008d600
_nop
lw gp,0x10(sp)
li a2,0x40
addiu s0,sp,0x1c
or a1,s0,zero
or a0,s1,zero
lw t9,-0x7828(gp)
bal 0x0008d6ac
_nop
lw gp,0x10(sp)
li a2,0x40
li a1,0x5c
or a0,s0,zero
lw t9,-0x71d4(gp)
jalr t9
_nop
lw gp,0x10(sp)
lbu v0,0x0(s3)
lbu v1,0x0(s4)
xor v0,v0,v1
sb v0,0x0(s3)
addiu s3,s3,0x1
bne s3,s5,0x0008d9c0
_addiu s4,s4,0x1
addiu s1,s1,0x6c
or a0,s1,zero
lw t9,-0x7830(gp)
bal 0x0008d600
_nop
lw gp,0x10(sp)
li a2,0x40
addiu s0,sp,0x1c
or a1,s0,zero
or a0,s1,zero
lw t9,-0x7828(gp)
bal 0x0008d6ac
_nop
lw gp,0x10(sp)
li a1,0x40
or a0,s0,zero
lw t9,-0x7f58(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw v1,0x5c(sp)
lw v0,-0x6c5c(gp)
lw v0,0x0(v0)
bne v1,v0,0x0008da60
_lw ra,0x7c(sp)
lw s5,0x78(sp)
lw s4,0x74(sp)
lw s3,0x70(sp)
lw s2,0x6c(sp)
lw s1,0x68(sp)
lw s0,0x64(sp)
jr ra
_addiu sp,sp,0x80
lw t9,-0x6fc4(gp)
jalr t9
_nop
(translation_unit "void FUN_0008d8dc(SHA256_CTX *param_1,byte *param_2)\n\n{\n  byte *pbVar1;\n  byte *md;\n  byte *pbVar2;\n  SHA256_CTX *c;\n  uint *c_00;\n  int iVar3;\n  byte *pbVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  undefined1 uStack_e4;\n  undefined1 uStack_e3;\n  undefined1 uStack_e2;\n  byte bStack_e1;\n  undefined1 uStack_e0;\n  undefined1 uStack_df;\n  undefined1 uStack_de;\n  undefined1 uStack_dd;\n  int iStack_a4;\n  byte *pbStack_9c;\n  uint *puStack_98;\n  byte *pbStack_94;\n  byte *pbStack_90;\n  byte *pbStack_8c;\n  byte *pbStack_88;\n  code *pcStack_84;\n  byte local_64 [32];\n  byte abStack_44 [32];\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_00122654;\n  pbVar4 = local_64;\n  (*(code *)PTR_memset_001220dc)(pbVar4,0x36,0x40);\n  pbVar1 = pbVar4;\n  pbVar2 = param_2;\n  do {\n    *pbVar1 = *pbVar1 ^ *pbVar2;\n    pbVar1 = pbVar1 + 1;\n    pbVar2 = pbVar2 + 1;\n  } while (pbVar1 != abStack_44);\n  SHA256_Init(param_1);\n  SHA256_Bytes(param_1,local_64,0x40);\n  (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  pbVar1 = param_2;\n  do {\n    *pbVar4 = *pbVar4 ^ *pbVar1;\n    pbVar4 = pbVar4 + 1;\n    pbVar1 = pbVar1 + 1;\n  } while (pbVar4 != abStack_44);\n  c_00 = &param_1->md_len;\n  SHA256_Init((SHA256_CTX *)c_00);\n  SHA256_Bytes(c_00,local_64,0x40);\n  pbVar2 = &DAT_00000040;\n  md = local_64;\n  (*(code *)PTR_smemclr_00121358)();\n  if (local_24 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  pcVar9 = SHA256_Final;\n  puVar8 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iStack_a4 = **(int **)(puVar8 + 0x94be8);\n  iVar5 = *(int *)(md + 0x60);\n  if (iVar5 < 0x38) {\n    iVar5 = 0x38 - iVar5;\n  }\n  else {\n    iVar5 = 0x78 - iVar5;\n  }\n  iVar6 = *(int *)(md + 0x68);\n  iVar3 = *(int *)(md + 100) << 3;\n  iVar7 = iVar6 << 3;\n  pbStack_9c = local_64;\n  puStack_98 = c_00;\n  pbStack_94 = param_2;\n  pbStack_90 = pbVar4;\n  pbStack_8c = pbVar1;\n  pbStack_88 = abStack_44;\n  pcStack_84 = pcVar9;\n  (**(code **)(puVar8 + 0x94790))(&uStack_e4,0,iVar5,0x40);\n  uStack_e4 = 0x80;\n  SHA256_Bytes(md,&uStack_e4,iVar5);\n  uStack_e4 = (undefined1)((uint)iVar3 >> 0x18);\n  uStack_e3 = (undefined1)((uint)iVar3 >> 0x10);\n  uStack_e2 = (undefined1)((uint)iVar3 >> 8);\n  uStack_e0 = (undefined1)((uint)iVar7 >> 0x18);\n  uStack_df = (undefined1)((uint)iVar7 >> 0x10);\n  uStack_de = (undefined1)((uint)iVar7 >> 8);\n  uStack_dd = (undefined1)iVar7;\n  bStack_e1 = (byte)iVar3 | (byte)((uint)iVar6 >> 0x1d);\n  SHA256_Bytes(md,&uStack_e4,8);\n  c = (SHA256_CTX *)(pbVar2 + 0x20);\n  do {\n    *pbVar2 = *md;\n    pbVar2[1] = (byte)*(undefined2 *)md;\n    pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);\n    pbVar2[3] = (byte)*(undefined4 *)md;\n    pbVar2 = pbVar2 + 4;\n    md = md + 4;\n  } while ((SHA256_CTX *)pbVar2 != c);\n  if (iStack_a4 == **(int **)(puVar8 + 0x94be8)) {\n    return;\n  }\n  (**(code **)(puVar8 + 0x94880))();\n  SHA256_Final(md,c);\n  FUN_0008cf24(md);\n  return;\n}\n\n" (function_definition "void FUN_0008d8dc(SHA256_CTX *param_1,byte *param_2)\n\n{\n  byte *pbVar1;\n  byte *md;\n  byte *pbVar2;\n  SHA256_CTX *c;\n  uint *c_00;\n  int iVar3;\n  byte *pbVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  undefined1 uStack_e4;\n  undefined1 uStack_e3;\n  undefined1 uStack_e2;\n  byte bStack_e1;\n  undefined1 uStack_e0;\n  undefined1 uStack_df;\n  undefined1 uStack_de;\n  undefined1 uStack_dd;\n  int iStack_a4;\n  byte *pbStack_9c;\n  uint *puStack_98;\n  byte *pbStack_94;\n  byte *pbStack_90;\n  byte *pbStack_8c;\n  byte *pbStack_88;\n  code *pcStack_84;\n  byte local_64 [32];\n  byte abStack_44 [32];\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_00122654;\n  pbVar4 = local_64;\n  (*(code *)PTR_memset_001220dc)(pbVar4,0x36,0x40);\n  pbVar1 = pbVar4;\n  pbVar2 = param_2;\n  do {\n    *pbVar1 = *pbVar1 ^ *pbVar2;\n    pbVar1 = pbVar1 + 1;\n    pbVar2 = pbVar2 + 1;\n  } while (pbVar1 != abStack_44);\n  SHA256_Init(param_1);\n  SHA256_Bytes(param_1,local_64,0x40);\n  (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  pbVar1 = param_2;\n  do {\n    *pbVar4 = *pbVar4 ^ *pbVar1;\n    pbVar4 = pbVar4 + 1;\n    pbVar1 = pbVar1 + 1;\n  } while (pbVar4 != abStack_44);\n  c_00 = &param_1->md_len;\n  SHA256_Init((SHA256_CTX *)c_00);\n  SHA256_Bytes(c_00,local_64,0x40);\n  pbVar2 = &DAT_00000040;\n  md = local_64;\n  (*(code *)PTR_smemclr_00121358)();\n  if (local_24 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  pcVar9 = SHA256_Final;\n  puVar8 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iStack_a4 = **(int **)(puVar8 + 0x94be8);\n  iVar5 = *(int *)(md + 0x60);\n  if (iVar5 < 0x38) {\n    iVar5 = 0x38 - iVar5;\n  }\n  else {\n    iVar5 = 0x78 - iVar5;\n  }\n  iVar6 = *(int *)(md + 0x68);\n  iVar3 = *(int *)(md + 100) << 3;\n  iVar7 = iVar6 << 3;\n  pbStack_9c = local_64;\n  puStack_98 = c_00;\n  pbStack_94 = param_2;\n  pbStack_90 = pbVar4;\n  pbStack_8c = pbVar1;\n  pbStack_88 = abStack_44;\n  pcStack_84 = pcVar9;\n  (**(code **)(puVar8 + 0x94790))(&uStack_e4,0,iVar5,0x40);\n  uStack_e4 = 0x80;\n  SHA256_Bytes(md,&uStack_e4,iVar5);\n  uStack_e4 = (undefined1)((uint)iVar3 >> 0x18);\n  uStack_e3 = (undefined1)((uint)iVar3 >> 0x10);\n  uStack_e2 = (undefined1)((uint)iVar3 >> 8);\n  uStack_e0 = (undefined1)((uint)iVar7 >> 0x18);\n  uStack_df = (undefined1)((uint)iVar7 >> 0x10);\n  uStack_de = (undefined1)((uint)iVar7 >> 8);\n  uStack_dd = (undefined1)iVar7;\n  bStack_e1 = (byte)iVar3 | (byte)((uint)iVar6 >> 0x1d);\n  SHA256_Bytes(md,&uStack_e4,8);\n  c = (SHA256_CTX *)(pbVar2 + 0x20);\n  do {\n    *pbVar2 = *md;\n    pbVar2[1] = (byte)*(undefined2 *)md;\n    pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);\n    pbVar2[3] = (byte)*(undefined4 *)md;\n    pbVar2 = pbVar2 + 4;\n    md = md + 4;\n  } while ((SHA256_CTX *)pbVar2 != c);\n  if (iStack_a4 == **(int **)(puVar8 + 0x94be8)) {\n    return;\n  }\n  (**(code **)(puVar8 + 0x94880))();\n  SHA256_Final(md,c);\n  FUN_0008cf24(md);\n  return;\n}" primitive_type (function_declarator "FUN_0008d8dc(SHA256_CTX *param_1,byte *param_2)" identifier (parameter_list "(SHA256_CTX *param_1,byte *param_2)" ( (parameter_declaration "SHA256_CTX *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  byte *md;\n  byte *pbVar2;\n  SHA256_CTX *c;\n  uint *c_00;\n  int iVar3;\n  byte *pbVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  undefined1 uStack_e4;\n  undefined1 uStack_e3;\n  undefined1 uStack_e2;\n  byte bStack_e1;\n  undefined1 uStack_e0;\n  undefined1 uStack_df;\n  undefined1 uStack_de;\n  undefined1 uStack_dd;\n  int iStack_a4;\n  byte *pbStack_9c;\n  uint *puStack_98;\n  byte *pbStack_94;\n  byte *pbStack_90;\n  byte *pbStack_8c;\n  byte *pbStack_88;\n  code *pcStack_84;\n  byte local_64 [32];\n  byte abStack_44 [32];\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_00122654;\n  pbVar4 = local_64;\n  (*(code *)PTR_memset_001220dc)(pbVar4,0x36,0x40);\n  pbVar1 = pbVar4;\n  pbVar2 = param_2;\n  do {\n    *pbVar1 = *pbVar1 ^ *pbVar2;\n    pbVar1 = pbVar1 + 1;\n    pbVar2 = pbVar2 + 1;\n  } while (pbVar1 != abStack_44);\n  SHA256_Init(param_1);\n  SHA256_Bytes(param_1,local_64,0x40);\n  (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  pbVar1 = param_2;\n  do {\n    *pbVar4 = *pbVar4 ^ *pbVar1;\n    pbVar4 = pbVar4 + 1;\n    pbVar1 = pbVar1 + 1;\n  } while (pbVar4 != abStack_44);\n  c_00 = &param_1->md_len;\n  SHA256_Init((SHA256_CTX *)c_00);\n  SHA256_Bytes(c_00,local_64,0x40);\n  pbVar2 = &DAT_00000040;\n  md = local_64;\n  (*(code *)PTR_smemclr_00121358)();\n  if (local_24 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  pcVar9 = SHA256_Final;\n  puVar8 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iStack_a4 = **(int **)(puVar8 + 0x94be8);\n  iVar5 = *(int *)(md + 0x60);\n  if (iVar5 < 0x38) {\n    iVar5 = 0x38 - iVar5;\n  }\n  else {\n    iVar5 = 0x78 - iVar5;\n  }\n  iVar6 = *(int *)(md + 0x68);\n  iVar3 = *(int *)(md + 100) << 3;\n  iVar7 = iVar6 << 3;\n  pbStack_9c = local_64;\n  puStack_98 = c_00;\n  pbStack_94 = param_2;\n  pbStack_90 = pbVar4;\n  pbStack_8c = pbVar1;\n  pbStack_88 = abStack_44;\n  pcStack_84 = pcVar9;\n  (**(code **)(puVar8 + 0x94790))(&uStack_e4,0,iVar5,0x40);\n  uStack_e4 = 0x80;\n  SHA256_Bytes(md,&uStack_e4,iVar5);\n  uStack_e4 = (undefined1)((uint)iVar3 >> 0x18);\n  uStack_e3 = (undefined1)((uint)iVar3 >> 0x10);\n  uStack_e2 = (undefined1)((uint)iVar3 >> 8);\n  uStack_e0 = (undefined1)((uint)iVar7 >> 0x18);\n  uStack_df = (undefined1)((uint)iVar7 >> 0x10);\n  uStack_de = (undefined1)((uint)iVar7 >> 8);\n  uStack_dd = (undefined1)iVar7;\n  bStack_e1 = (byte)iVar3 | (byte)((uint)iVar6 >> 0x1d);\n  SHA256_Bytes(md,&uStack_e4,8);\n  c = (SHA256_CTX *)(pbVar2 + 0x20);\n  do {\n    *pbVar2 = *md;\n    pbVar2[1] = (byte)*(undefined2 *)md;\n    pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);\n    pbVar2[3] = (byte)*(undefined4 *)md;\n    pbVar2 = pbVar2 + 4;\n    md = md + 4;\n  } while ((SHA256_CTX *)pbVar2 != c);\n  if (iStack_a4 == **(int **)(puVar8 + 0x94be8)) {\n    return;\n  }\n  (**(code **)(puVar8 + 0x94880))();\n  SHA256_Final(md,c);\n  FUN_0008cf24(md);\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *md;" type_identifier (pointer_declarator "*md" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "SHA256_CTX *c;" type_identifier (pointer_declarator "*c" * identifier) ;) (declaration "uint *c_00;" type_identifier (pointer_declarator "*c_00" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (declaration "undefined1 uStack_e4;" type_identifier identifier ;) (declaration "undefined1 uStack_e3;" type_identifier identifier ;) (declaration "undefined1 uStack_e2;" type_identifier identifier ;) (declaration "byte bStack_e1;" type_identifier identifier ;) (declaration "undefined1 uStack_e0;" type_identifier identifier ;) (declaration "undefined1 uStack_df;" type_identifier identifier ;) (declaration "undefined1 uStack_de;" type_identifier identifier ;) (declaration "undefined1 uStack_dd;" type_identifier identifier ;) (declaration "int iStack_a4;" primitive_type identifier ;) (declaration "byte *pbStack_9c;" type_identifier (pointer_declarator "*pbStack_9c" * identifier) ;) (declaration "uint *puStack_98;" type_identifier (pointer_declarator "*puStack_98" * identifier) ;) (declaration "byte *pbStack_94;" type_identifier (pointer_declarator "*pbStack_94" * identifier) ;) (declaration "byte *pbStack_90;" type_identifier (pointer_declarator "*pbStack_90" * identifier) ;) (declaration "byte *pbStack_8c;" type_identifier (pointer_declarator "*pbStack_8c" * identifier) ;) (declaration "byte *pbStack_88;" type_identifier (pointer_declarator "*pbStack_88" * identifier) ;) (declaration "code *pcStack_84;" type_identifier (pointer_declarator "*pcStack_84" * identifier) ;) (declaration "byte local_64 [32];" type_identifier (array_declarator "local_64 [32]" identifier [ number_literal ]) ;) (declaration "byte abStack_44 [32];" type_identifier (array_declarator "abStack_44 [32]" identifier [ number_literal ]) ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_00122654;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_00122654" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" * (cast_expression "(int *)PTR___stack_chk_guard_00122654" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pbVar4 = local_64;" (assignment_expression "pbVar4 = local_64" identifier = identifier) ;) (expression_statement "(*(code *)PTR_memset_001220dc)(pbVar4,0x36,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(pbVar4,0x36,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" ( (pointer_expression "*(code *)PTR_memset_001220dc" * (cast_expression "(code *)PTR_memset_001220dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pbVar4,0x36,0x40)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "pbVar1 = pbVar4;" (assignment_expression "pbVar1 = pbVar4" identifier = identifier) ;) (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" identifier = identifier) ;) (do_statement "do {\n    *pbVar1 = *pbVar1 ^ *pbVar2;\n    pbVar1 = pbVar1 + 1;\n    pbVar2 = pbVar2 + 1;\n  } while (pbVar1 != abStack_44);" do (compound_statement "{\n    *pbVar1 = *pbVar1 ^ *pbVar2;\n    pbVar1 = pbVar1 + 1;\n    pbVar2 = pbVar2 + 1;\n  }" { (expression_statement "*pbVar1 = *pbVar1 ^ *pbVar2;" (assignment_expression "*pbVar1 = *pbVar1 ^ *pbVar2" (pointer_expression "*pbVar1" * identifier) = (binary_expression "*pbVar1 ^ *pbVar2" (pointer_expression "*pbVar1" * identifier) ^ (pointer_expression "*pbVar2" * identifier))) ;) (expression_statement "pbVar1 = pbVar1 + 1;" (assignment_expression "pbVar1 = pbVar1 + 1" identifier = (binary_expression "pbVar1 + 1" identifier + number_literal)) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar1 != abStack_44)" ( (binary_expression "pbVar1 != abStack_44" identifier != identifier) )) ;) (expression_statement "SHA256_Init(param_1);" (call_expression "SHA256_Init(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "SHA256_Bytes(param_1,local_64,0x40);" (call_expression "SHA256_Bytes(param_1,local_64,0x40)" identifier (argument_list "(param_1,local_64,0x40)" ( identifier , identifier , number_literal ))) ;) (expression_statement "(*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" ( (pointer_expression "*(code *)PTR_memset_001220dc" * (cast_expression "(code *)PTR_memset_001220dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_64,0x5c,0x40)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "pbVar1 = param_2;" (assignment_expression "pbVar1 = param_2" identifier = identifier) ;) (do_statement "do {\n    *pbVar4 = *pbVar4 ^ *pbVar1;\n    pbVar4 = pbVar4 + 1;\n    pbVar1 = pbVar1 + 1;\n  } while (pbVar4 != abStack_44);" do (compound_statement "{\n    *pbVar4 = *pbVar4 ^ *pbVar1;\n    pbVar4 = pbVar4 + 1;\n    pbVar1 = pbVar1 + 1;\n  }" { (expression_statement "*pbVar4 = *pbVar4 ^ *pbVar1;" (assignment_expression "*pbVar4 = *pbVar4 ^ *pbVar1" (pointer_expression "*pbVar4" * identifier) = (binary_expression "*pbVar4 ^ *pbVar1" (pointer_expression "*pbVar4" * identifier) ^ (pointer_expression "*pbVar1" * identifier))) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "pbVar1 = pbVar1 + 1;" (assignment_expression "pbVar1 = pbVar1 + 1" identifier = (binary_expression "pbVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar4 != abStack_44)" ( (binary_expression "pbVar4 != abStack_44" identifier != identifier) )) ;) (expression_statement "c_00 = &param_1->md_len;" (assignment_expression "c_00 = &param_1->md_len" identifier = (pointer_expression "&param_1->md_len" & (field_expression "param_1->md_len" identifier -> field_identifier))) ;) (expression_statement "SHA256_Init((SHA256_CTX *)c_00);" (call_expression "SHA256_Init((SHA256_CTX *)c_00)" identifier (argument_list "((SHA256_CTX *)c_00)" ( (cast_expression "(SHA256_CTX *)c_00" ( (type_descriptor "SHA256_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "SHA256_Bytes(c_00,local_64,0x40);" (call_expression "SHA256_Bytes(c_00,local_64,0x40)" identifier (argument_list "(c_00,local_64,0x40)" ( identifier , identifier , number_literal ))) ;) (expression_statement "pbVar2 = &DAT_00000040;" (assignment_expression "pbVar2 = &DAT_00000040" identifier = (pointer_expression "&DAT_00000040" & identifier)) ;) (expression_statement "md = local_64;" (assignment_expression "md = local_64" identifier = identifier) ;) (expression_statement "(*(code *)PTR_smemclr_00121358)();" (call_expression "(*(code *)PTR_smemclr_00121358)()" (parenthesized_expression "(*(code *)PTR_smemclr_00121358)" ( (pointer_expression "*(code *)PTR_smemclr_00121358" * (cast_expression "(code *)PTR_smemclr_00121358" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (local_24 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }" if (parenthesized_expression "(local_24 == *(int *)PTR___stack_chk_guard_00122654)" ( (binary_expression "local_24 == *(int *)PTR___stack_chk_guard_00122654" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" * (cast_expression "(int *)PTR___stack_chk_guard_00122654" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pcVar9 = SHA256_Final;" (assignment_expression "pcVar9 = SHA256_Final" identifier = identifier) ;) (expression_statement "puVar8 = PTR___stack_chk_fail_001222ec;" (assignment_expression "puVar8 = PTR___stack_chk_fail_001222ec" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_001222ec)();" (call_expression "(*(code *)PTR___stack_chk_fail_001222ec)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001222ec)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001222ec" * (cast_expression "(code *)PTR___stack_chk_fail_001222ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iStack_a4 = **(int **)(puVar8 + 0x94be8);" (assignment_expression "iStack_a4 = **(int **)(puVar8 + 0x94be8)" identifier = (pointer_expression "**(int **)(puVar8 + 0x94be8)" * (pointer_expression "*(int **)(puVar8 + 0x94be8)" * (cast_expression "(int **)(puVar8 + 0x94be8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x94be8)" ( (binary_expression "puVar8 + 0x94be8" identifier + number_literal) )))))) ;) (expression_statement "iVar5 = *(int *)(md + 0x60);" (assignment_expression "iVar5 = *(int *)(md + 0x60)" identifier = (pointer_expression "*(int *)(md + 0x60)" * (cast_expression "(int *)(md + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(md + 0x60)" ( (binary_expression "md + 0x60" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 < 0x38) {\n    iVar5 = 0x38 - iVar5;\n  }\n  else {\n    iVar5 = 0x78 - iVar5;\n  }" if (parenthesized_expression "(iVar5 < 0x38)" ( (binary_expression "iVar5 < 0x38" identifier < number_literal) )) (compound_statement "{\n    iVar5 = 0x38 - iVar5;\n  }" { (expression_statement "iVar5 = 0x38 - iVar5;" (assignment_expression "iVar5 = 0x38 - iVar5" identifier = (binary_expression "0x38 - iVar5" number_literal - identifier)) ;) }) (else_clause "else {\n    iVar5 = 0x78 - iVar5;\n  }" else (compound_statement "{\n    iVar5 = 0x78 - iVar5;\n  }" { (expression_statement "iVar5 = 0x78 - iVar5;" (assignment_expression "iVar5 = 0x78 - iVar5" identifier = (binary_expression "0x78 - iVar5" number_literal - identifier)) ;) }))) (expression_statement "iVar6 = *(int *)(md + 0x68);" (assignment_expression "iVar6 = *(int *)(md + 0x68)" identifier = (pointer_expression "*(int *)(md + 0x68)" * (cast_expression "(int *)(md + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(md + 0x68)" ( (binary_expression "md + 0x68" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(md + 100) << 3;" (assignment_expression "iVar3 = *(int *)(md + 100) << 3" identifier = (binary_expression "*(int *)(md + 100) << 3" (pointer_expression "*(int *)(md + 100)" * (cast_expression "(int *)(md + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(md + 100)" ( (binary_expression "md + 100" identifier + number_literal) )))) << number_literal)) ;) (expression_statement "iVar7 = iVar6 << 3;" (assignment_expression "iVar7 = iVar6 << 3" identifier = (binary_expression "iVar6 << 3" identifier << number_literal)) ;) (expression_statement "pbStack_9c = local_64;" (assignment_expression "pbStack_9c = local_64" identifier = identifier) ;) (expression_statement "puStack_98 = c_00;" (assignment_expression "puStack_98 = c_00" identifier = identifier) ;) (expression_statement "pbStack_94 = param_2;" (assignment_expression "pbStack_94 = param_2" identifier = identifier) ;) (expression_statement "pbStack_90 = pbVar4;" (assignment_expression "pbStack_90 = pbVar4" identifier = identifier) ;) (expression_statement "pbStack_8c = pbVar1;" (assignment_expression "pbStack_8c = pbVar1" identifier = identifier) ;) (expression_statement "pbStack_88 = abStack_44;" (assignment_expression "pbStack_88 = abStack_44" identifier = identifier) ;) (expression_statement "pcStack_84 = pcVar9;" (assignment_expression "pcStack_84 = pcVar9" identifier = identifier) ;) (expression_statement "(**(code **)(puVar8 + 0x94790))(&uStack_e4,0,iVar5,0x40);" (call_expression "(**(code **)(puVar8 + 0x94790))(&uStack_e4,0,iVar5,0x40)" (parenthesized_expression "(**(code **)(puVar8 + 0x94790))" ( (pointer_expression "**(code **)(puVar8 + 0x94790)" * (pointer_expression "*(code **)(puVar8 + 0x94790)" * (cast_expression "(code **)(puVar8 + 0x94790)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x94790)" ( (binary_expression "puVar8 + 0x94790" identifier + number_literal) ))))) )) (argument_list "(&uStack_e4,0,iVar5,0x40)" ( (pointer_expression "&uStack_e4" & identifier) , number_literal , identifier , number_literal ))) ;) (expression_statement "uStack_e4 = 0x80;" (assignment_expression "uStack_e4 = 0x80" identifier = number_literal) ;) (expression_statement "SHA256_Bytes(md,&uStack_e4,iVar5);" (call_expression "SHA256_Bytes(md,&uStack_e4,iVar5)" identifier (argument_list "(md,&uStack_e4,iVar5)" ( identifier , (pointer_expression "&uStack_e4" & identifier) , identifier ))) ;) (expression_statement "uStack_e4 = (undefined1)((uint)iVar3 >> 0x18);" (assignment_expression "uStack_e4 = (undefined1)((uint)iVar3 >> 0x18)" identifier = (call_expression "(undefined1)((uint)iVar3 >> 0x18)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar3 >> 0x18)" ( (binary_expression "(uint)iVar3 >> 0x18" (cast_expression "(uint)iVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uStack_e3 = (undefined1)((uint)iVar3 >> 0x10);" (assignment_expression "uStack_e3 = (undefined1)((uint)iVar3 >> 0x10)" identifier = (call_expression "(undefined1)((uint)iVar3 >> 0x10)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar3 >> 0x10)" ( (binary_expression "(uint)iVar3 >> 0x10" (cast_expression "(uint)iVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uStack_e2 = (undefined1)((uint)iVar3 >> 8);" (assignment_expression "uStack_e2 = (undefined1)((uint)iVar3 >> 8)" identifier = (call_expression "(undefined1)((uint)iVar3 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar3 >> 8)" ( (binary_expression "(uint)iVar3 >> 8" (cast_expression "(uint)iVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uStack_e0 = (undefined1)((uint)iVar7 >> 0x18);" (assignment_expression "uStack_e0 = (undefined1)((uint)iVar7 >> 0x18)" identifier = (call_expression "(undefined1)((uint)iVar7 >> 0x18)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar7 >> 0x18)" ( (binary_expression "(uint)iVar7 >> 0x18" (cast_expression "(uint)iVar7" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uStack_df = (undefined1)((uint)iVar7 >> 0x10);" (assignment_expression "uStack_df = (undefined1)((uint)iVar7 >> 0x10)" identifier = (call_expression "(undefined1)((uint)iVar7 >> 0x10)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar7 >> 0x10)" ( (binary_expression "(uint)iVar7 >> 0x10" (cast_expression "(uint)iVar7" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uStack_de = (undefined1)((uint)iVar7 >> 8);" (assignment_expression "uStack_de = (undefined1)((uint)iVar7 >> 8)" identifier = (call_expression "(undefined1)((uint)iVar7 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar7 >> 8)" ( (binary_expression "(uint)iVar7 >> 8" (cast_expression "(uint)iVar7" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uStack_dd = (undefined1)iVar7;" (assignment_expression "uStack_dd = (undefined1)iVar7" identifier = (cast_expression "(undefined1)iVar7" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "bStack_e1 = (byte)iVar3 | (byte)((uint)iVar6 >> 0x1d);" (assignment_expression "bStack_e1 = (byte)iVar3 | (byte)((uint)iVar6 >> 0x1d)" identifier = (binary_expression "(byte)iVar3 | (byte)((uint)iVar6 >> 0x1d)" (cast_expression "(byte)iVar3" ( (type_descriptor "byte" type_identifier) ) identifier) | (call_expression "(byte)((uint)iVar6 >> 0x1d)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)iVar6 >> 0x1d)" ( (binary_expression "(uint)iVar6 >> 0x1d" (cast_expression "(uint)iVar6" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) ))))) ;) (expression_statement "SHA256_Bytes(md,&uStack_e4,8);" (call_expression "SHA256_Bytes(md,&uStack_e4,8)" identifier (argument_list "(md,&uStack_e4,8)" ( identifier , (pointer_expression "&uStack_e4" & identifier) , number_literal ))) ;) (expression_statement "c = (SHA256_CTX *)(pbVar2 + 0x20);" (assignment_expression "c = (SHA256_CTX *)(pbVar2 + 0x20)" identifier = (cast_expression "(SHA256_CTX *)(pbVar2 + 0x20)" ( (type_descriptor "SHA256_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 0x20)" ( (binary_expression "pbVar2 + 0x20" identifier + number_literal) )))) ;) (do_statement "do {\n    *pbVar2 = *md;\n    pbVar2[1] = (byte)*(undefined2 *)md;\n    pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);\n    pbVar2[3] = (byte)*(undefined4 *)md;\n    pbVar2 = pbVar2 + 4;\n    md = md + 4;\n  } while ((SHA256_CTX *)pbVar2 != c);" do (compound_statement "{\n    *pbVar2 = *md;\n    pbVar2[1] = (byte)*(undefined2 *)md;\n    pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);\n    pbVar2[3] = (byte)*(undefined4 *)md;\n    pbVar2 = pbVar2 + 4;\n    md = md + 4;\n  }" { (expression_statement "*pbVar2 = *md;" (assignment_expression "*pbVar2 = *md" (pointer_expression "*pbVar2" * identifier) = (pointer_expression "*md" * identifier)) ;) (expression_statement "pbVar2[1] = (byte)*(undefined2 *)md;" (assignment_expression "pbVar2[1] = (byte)*(undefined2 *)md" (subscript_expression "pbVar2[1]" identifier [ number_literal ]) = (binary_expression "(byte)*(undefined2 *)md" (parenthesized_expression "(byte)" ( identifier )) * (cast_expression "(undefined2 *)md" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);" (assignment_expression "pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8)" (subscript_expression "pbVar2[2]" identifier [ number_literal ]) = (call_expression "(byte)((uint)*(undefined4 *)md >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)*(undefined4 *)md >> 8)" ( (binary_expression "(uint)*(undefined4 *)md >> 8" (binary_expression "(uint)*(undefined4 *)md" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(undefined4 *)md" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) >> number_literal) )))) ;) (expression_statement "pbVar2[3] = (byte)*(undefined4 *)md;" (assignment_expression "pbVar2[3] = (byte)*(undefined4 *)md" (subscript_expression "pbVar2[3]" identifier [ number_literal ]) = (binary_expression "(byte)*(undefined4 *)md" (parenthesized_expression "(byte)" ( identifier )) * (cast_expression "(undefined4 *)md" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pbVar2 = pbVar2 + 4;" (assignment_expression "pbVar2 = pbVar2 + 4" identifier = (binary_expression "pbVar2 + 4" identifier + number_literal)) ;) (expression_statement "md = md + 4;" (assignment_expression "md = md + 4" identifier = (binary_expression "md + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "((SHA256_CTX *)pbVar2 != c)" ( (binary_expression "(SHA256_CTX *)pbVar2 != c" (cast_expression "(SHA256_CTX *)pbVar2" ( (type_descriptor "SHA256_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) != identifier) )) ;) (if_statement "if (iStack_a4 == **(int **)(puVar8 + 0x94be8)) {\n    return;\n  }" if (parenthesized_expression "(iStack_a4 == **(int **)(puVar8 + 0x94be8))" ( (binary_expression "iStack_a4 == **(int **)(puVar8 + 0x94be8)" identifier == (pointer_expression "**(int **)(puVar8 + 0x94be8)" * (pointer_expression "*(int **)(puVar8 + 0x94be8)" * (cast_expression "(int **)(puVar8 + 0x94be8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x94be8)" ( (binary_expression "puVar8 + 0x94be8" identifier + number_literal) )))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(**(code **)(puVar8 + 0x94880))();" (call_expression "(**(code **)(puVar8 + 0x94880))()" (parenthesized_expression "(**(code **)(puVar8 + 0x94880))" ( (pointer_expression "**(code **)(puVar8 + 0x94880)" * (pointer_expression "*(code **)(puVar8 + 0x94880)" * (cast_expression "(code **)(puVar8 + 0x94880)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x94880)" ( (binary_expression "puVar8 + 0x94880" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "SHA256_Final(md,c);" (call_expression "SHA256_Final(md,c)" identifier (argument_list "(md,c)" ( identifier , identifier ))) ;) (expression_statement "FUN_0008cf24(md);" (call_expression "FUN_0008cf24(md)" identifier (argument_list "(md)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void sha256_key(void *handle,uchar *key)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  SHA256_State *s;\n  byte *pbVar3;\n  uchar *puVar4;\n  uchar *digest;\n  SHA256_CTX *c;\n  int iVar5;\n  byte *pbVar6;\n  uint32 uVar7;\n  int iVar8;\n  byte *pbVar9;\n  undefined *puVar10;\n  code *pcVar11;\n  undefined1 uStack_e4;\n  undefined1 uStack_e3;\n  undefined1 uStack_e2;\n  byte bStack_e1;\n  undefined1 uStack_e0;\n  undefined1 uStack_df;\n  undefined1 uStack_de;\n  undefined1 uStack_dd;\n  int iStack_a4;\n  SHA256_State *pSStack_9c;\n  SHA256_CTX *pSStack_98;\n  uchar *puStack_94;\n  byte *pbStack_90;\n  byte *pbStack_8c;\n  byte *pbStack_88;\n  code *pcStack_84;\n  uchar foo [64];\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_00122654;\n  pbVar6 = foo;\n  (*(code *)PTR_memset_001220dc)(pbVar6,0x36,0x40);\n  pbVar9 = foo + 0x20;\n  pbVar2 = pbVar6;\n  pbVar3 = key;\n  do {\n    *pbVar2 = *pbVar2 ^ *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (pbVar2 != pbVar9);\n  SHA256_Init((SHA256_CTX *)handle);\n  SHA256_Bytes((SHA256_State *)handle,foo,0x40);\n  (*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);\n  pbVar2 = key;\n  do {\n    *pbVar6 = *pbVar6 ^ *pbVar2;\n    pbVar6 = pbVar6 + 1;\n    pbVar2 = pbVar2 + 1;\n  } while (pbVar6 != pbVar9);\n  c = (SHA256_CTX *)((int)handle + 0x6c);\n  SHA256_Init(c);\n  SHA256_Bytes((SHA256_State *)c,(SHA256_State *)foo,0x40);\n  puVar4 = &DAT_00000040;\n  s = (SHA256_State *)foo;\n  (*(code *)PTR_smemclr_00121358)();\n  if (iVar1 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  pcVar11 = SHA256_Final;\n  puVar10 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iStack_a4 = **(int **)(puVar10 + 0x94be8);\n  iVar1 = s->blkused;\n  if (iVar1 < 0x38) {\n    iVar1 = 0x38 - iVar1;\n  }\n  else {\n    iVar1 = 0x78 - iVar1;\n  }\n  uVar7 = s->lenlo;\n  iVar5 = s->lenhi << 3;\n  iVar8 = uVar7 << 3;\n  pSStack_9c = (SHA256_State *)foo;\n  pSStack_98 = c;\n  puStack_94 = key;\n  pbStack_90 = pbVar6;\n  pbStack_8c = pbVar2;\n  pbStack_88 = pbVar9;\n  pcStack_84 = pcVar11;\n  (**(code **)(puVar10 + 0x94790))(&uStack_e4,0,iVar1,0x40);\n  uStack_e4 = 0x80;\n  SHA256_Bytes(s,&uStack_e4,iVar1);\n  uStack_e4 = (undefined1)((uint)iVar5 >> 0x18);\n  uStack_e3 = (undefined1)((uint)iVar5 >> 0x10);\n  uStack_e2 = (undefined1)((uint)iVar5 >> 8);\n  uStack_e0 = (undefined1)((uint)iVar8 >> 0x18);\n  uStack_df = (undefined1)((uint)iVar8 >> 0x10);\n  uStack_de = (undefined1)((uint)iVar8 >> 8);\n  uStack_dd = (undefined1)iVar8;\n  bStack_e1 = (byte)iVar5 | (byte)(uVar7 >> 0x1d);\n  SHA256_Bytes(s,&uStack_e4,8);\n  digest = puVar4 + 0x20;\n  do {\n    *puVar4 = *(uchar *)s->h;\n    puVar4[1] = (uchar)*(undefined2 *)s->h;\n    puVar4[2] = (uchar)(s->h[0] >> 8);\n    puVar4[3] = (uchar)s->h[0];\n    puVar4 = puVar4 + 4;\n    s = (SHA256_State *)(s->h + 1);\n  } while (puVar4 != digest);\n  if (iStack_a4 == **(int **)(puVar10 + 0x94be8)) {\n    return;\n  }\n  (**(code **)(puVar10 + 0x94880))();\n  SHA256_Final(s,digest);\n  sha256_free(s);\n  return;\n}\n\n" (function_definition "void sha256_key(void *handle,uchar *key)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  SHA256_State *s;\n  byte *pbVar3;\n  uchar *puVar4;\n  uchar *digest;\n  SHA256_CTX *c;\n  int iVar5;\n  byte *pbVar6;\n  uint32 uVar7;\n  int iVar8;\n  byte *pbVar9;\n  undefined *puVar10;\n  code *pcVar11;\n  undefined1 uStack_e4;\n  undefined1 uStack_e3;\n  undefined1 uStack_e2;\n  byte bStack_e1;\n  undefined1 uStack_e0;\n  undefined1 uStack_df;\n  undefined1 uStack_de;\n  undefined1 uStack_dd;\n  int iStack_a4;\n  SHA256_State *pSStack_9c;\n  SHA256_CTX *pSStack_98;\n  uchar *puStack_94;\n  byte *pbStack_90;\n  byte *pbStack_8c;\n  byte *pbStack_88;\n  code *pcStack_84;\n  uchar foo [64];\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_00122654;\n  pbVar6 = foo;\n  (*(code *)PTR_memset_001220dc)(pbVar6,0x36,0x40);\n  pbVar9 = foo + 0x20;\n  pbVar2 = pbVar6;\n  pbVar3 = key;\n  do {\n    *pbVar2 = *pbVar2 ^ *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (pbVar2 != pbVar9);\n  SHA256_Init((SHA256_CTX *)handle);\n  SHA256_Bytes((SHA256_State *)handle,foo,0x40);\n  (*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);\n  pbVar2 = key;\n  do {\n    *pbVar6 = *pbVar6 ^ *pbVar2;\n    pbVar6 = pbVar6 + 1;\n    pbVar2 = pbVar2 + 1;\n  } while (pbVar6 != pbVar9);\n  c = (SHA256_CTX *)((int)handle + 0x6c);\n  SHA256_Init(c);\n  SHA256_Bytes((SHA256_State *)c,(SHA256_State *)foo,0x40);\n  puVar4 = &DAT_00000040;\n  s = (SHA256_State *)foo;\n  (*(code *)PTR_smemclr_00121358)();\n  if (iVar1 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  pcVar11 = SHA256_Final;\n  puVar10 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iStack_a4 = **(int **)(puVar10 + 0x94be8);\n  iVar1 = s->blkused;\n  if (iVar1 < 0x38) {\n    iVar1 = 0x38 - iVar1;\n  }\n  else {\n    iVar1 = 0x78 - iVar1;\n  }\n  uVar7 = s->lenlo;\n  iVar5 = s->lenhi << 3;\n  iVar8 = uVar7 << 3;\n  pSStack_9c = (SHA256_State *)foo;\n  pSStack_98 = c;\n  puStack_94 = key;\n  pbStack_90 = pbVar6;\n  pbStack_8c = pbVar2;\n  pbStack_88 = pbVar9;\n  pcStack_84 = pcVar11;\n  (**(code **)(puVar10 + 0x94790))(&uStack_e4,0,iVar1,0x40);\n  uStack_e4 = 0x80;\n  SHA256_Bytes(s,&uStack_e4,iVar1);\n  uStack_e4 = (undefined1)((uint)iVar5 >> 0x18);\n  uStack_e3 = (undefined1)((uint)iVar5 >> 0x10);\n  uStack_e2 = (undefined1)((uint)iVar5 >> 8);\n  uStack_e0 = (undefined1)((uint)iVar8 >> 0x18);\n  uStack_df = (undefined1)((uint)iVar8 >> 0x10);\n  uStack_de = (undefined1)((uint)iVar8 >> 8);\n  uStack_dd = (undefined1)iVar8;\n  bStack_e1 = (byte)iVar5 | (byte)(uVar7 >> 0x1d);\n  SHA256_Bytes(s,&uStack_e4,8);\n  digest = puVar4 + 0x20;\n  do {\n    *puVar4 = *(uchar *)s->h;\n    puVar4[1] = (uchar)*(undefined2 *)s->h;\n    puVar4[2] = (uchar)(s->h[0] >> 8);\n    puVar4[3] = (uchar)s->h[0];\n    puVar4 = puVar4 + 4;\n    s = (SHA256_State *)(s->h + 1);\n  } while (puVar4 != digest);\n  if (iStack_a4 == **(int **)(puVar10 + 0x94be8)) {\n    return;\n  }\n  (**(code **)(puVar10 + 0x94880))();\n  SHA256_Final(s,digest);\n  sha256_free(s);\n  return;\n}" primitive_type (function_declarator "sha256_key(void *handle,uchar *key)" identifier (parameter_list "(void *handle,uchar *key)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "uchar *key" type_identifier (pointer_declarator "*key" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  SHA256_State *s;\n  byte *pbVar3;\n  uchar *puVar4;\n  uchar *digest;\n  SHA256_CTX *c;\n  int iVar5;\n  byte *pbVar6;\n  uint32 uVar7;\n  int iVar8;\n  byte *pbVar9;\n  undefined *puVar10;\n  code *pcVar11;\n  undefined1 uStack_e4;\n  undefined1 uStack_e3;\n  undefined1 uStack_e2;\n  byte bStack_e1;\n  undefined1 uStack_e0;\n  undefined1 uStack_df;\n  undefined1 uStack_de;\n  undefined1 uStack_dd;\n  int iStack_a4;\n  SHA256_State *pSStack_9c;\n  SHA256_CTX *pSStack_98;\n  uchar *puStack_94;\n  byte *pbStack_90;\n  byte *pbStack_8c;\n  byte *pbStack_88;\n  code *pcStack_84;\n  uchar foo [64];\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_00122654;\n  pbVar6 = foo;\n  (*(code *)PTR_memset_001220dc)(pbVar6,0x36,0x40);\n  pbVar9 = foo + 0x20;\n  pbVar2 = pbVar6;\n  pbVar3 = key;\n  do {\n    *pbVar2 = *pbVar2 ^ *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (pbVar2 != pbVar9);\n  SHA256_Init((SHA256_CTX *)handle);\n  SHA256_Bytes((SHA256_State *)handle,foo,0x40);\n  (*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);\n  pbVar2 = key;\n  do {\n    *pbVar6 = *pbVar6 ^ *pbVar2;\n    pbVar6 = pbVar6 + 1;\n    pbVar2 = pbVar2 + 1;\n  } while (pbVar6 != pbVar9);\n  c = (SHA256_CTX *)((int)handle + 0x6c);\n  SHA256_Init(c);\n  SHA256_Bytes((SHA256_State *)c,(SHA256_State *)foo,0x40);\n  puVar4 = &DAT_00000040;\n  s = (SHA256_State *)foo;\n  (*(code *)PTR_smemclr_00121358)();\n  if (iVar1 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  pcVar11 = SHA256_Final;\n  puVar10 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iStack_a4 = **(int **)(puVar10 + 0x94be8);\n  iVar1 = s->blkused;\n  if (iVar1 < 0x38) {\n    iVar1 = 0x38 - iVar1;\n  }\n  else {\n    iVar1 = 0x78 - iVar1;\n  }\n  uVar7 = s->lenlo;\n  iVar5 = s->lenhi << 3;\n  iVar8 = uVar7 << 3;\n  pSStack_9c = (SHA256_State *)foo;\n  pSStack_98 = c;\n  puStack_94 = key;\n  pbStack_90 = pbVar6;\n  pbStack_8c = pbVar2;\n  pbStack_88 = pbVar9;\n  pcStack_84 = pcVar11;\n  (**(code **)(puVar10 + 0x94790))(&uStack_e4,0,iVar1,0x40);\n  uStack_e4 = 0x80;\n  SHA256_Bytes(s,&uStack_e4,iVar1);\n  uStack_e4 = (undefined1)((uint)iVar5 >> 0x18);\n  uStack_e3 = (undefined1)((uint)iVar5 >> 0x10);\n  uStack_e2 = (undefined1)((uint)iVar5 >> 8);\n  uStack_e0 = (undefined1)((uint)iVar8 >> 0x18);\n  uStack_df = (undefined1)((uint)iVar8 >> 0x10);\n  uStack_de = (undefined1)((uint)iVar8 >> 8);\n  uStack_dd = (undefined1)iVar8;\n  bStack_e1 = (byte)iVar5 | (byte)(uVar7 >> 0x1d);\n  SHA256_Bytes(s,&uStack_e4,8);\n  digest = puVar4 + 0x20;\n  do {\n    *puVar4 = *(uchar *)s->h;\n    puVar4[1] = (uchar)*(undefined2 *)s->h;\n    puVar4[2] = (uchar)(s->h[0] >> 8);\n    puVar4[3] = (uchar)s->h[0];\n    puVar4 = puVar4 + 4;\n    s = (SHA256_State *)(s->h + 1);\n  } while (puVar4 != digest);\n  if (iStack_a4 == **(int **)(puVar10 + 0x94be8)) {\n    return;\n  }\n  (**(code **)(puVar10 + 0x94880))();\n  SHA256_Final(s,digest);\n  sha256_free(s);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "SHA256_State *s;" type_identifier (pointer_declarator "*s" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "uchar *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uchar *digest;" type_identifier (pointer_declarator "*digest" * identifier) ;) (declaration "SHA256_CTX *c;" type_identifier (pointer_declarator "*c" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "uint32 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "byte *pbVar9;" type_identifier (pointer_declarator "*pbVar9" * identifier) ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "code *pcVar11;" type_identifier (pointer_declarator "*pcVar11" * identifier) ;) (declaration "undefined1 uStack_e4;" type_identifier identifier ;) (declaration "undefined1 uStack_e3;" type_identifier identifier ;) (declaration "undefined1 uStack_e2;" type_identifier identifier ;) (declaration "byte bStack_e1;" type_identifier identifier ;) (declaration "undefined1 uStack_e0;" type_identifier identifier ;) (declaration "undefined1 uStack_df;" type_identifier identifier ;) (declaration "undefined1 uStack_de;" type_identifier identifier ;) (declaration "undefined1 uStack_dd;" type_identifier identifier ;) (declaration "int iStack_a4;" primitive_type identifier ;) (declaration "SHA256_State *pSStack_9c;" type_identifier (pointer_declarator "*pSStack_9c" * identifier) ;) (declaration "SHA256_CTX *pSStack_98;" type_identifier (pointer_declarator "*pSStack_98" * identifier) ;) (declaration "uchar *puStack_94;" type_identifier (pointer_declarator "*puStack_94" * identifier) ;) (declaration "byte *pbStack_90;" type_identifier (pointer_declarator "*pbStack_90" * identifier) ;) (declaration "byte *pbStack_8c;" type_identifier (pointer_declarator "*pbStack_8c" * identifier) ;) (declaration "byte *pbStack_88;" type_identifier (pointer_declarator "*pbStack_88" * identifier) ;) (declaration "code *pcStack_84;" type_identifier (pointer_declarator "*pcStack_84" * identifier) ;) (declaration "uchar foo [64];" type_identifier (array_declarator "foo [64]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_00122654;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_00122654" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" * (cast_expression "(int *)PTR___stack_chk_guard_00122654" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pbVar6 = foo;" (assignment_expression "pbVar6 = foo" identifier = identifier) ;) (expression_statement "(*(code *)PTR_memset_001220dc)(pbVar6,0x36,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(pbVar6,0x36,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" ( (pointer_expression "*(code *)PTR_memset_001220dc" * (cast_expression "(code *)PTR_memset_001220dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pbVar6,0x36,0x40)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "pbVar9 = foo + 0x20;" (assignment_expression "pbVar9 = foo + 0x20" identifier = (binary_expression "foo + 0x20" identifier + number_literal)) ;) (expression_statement "pbVar2 = pbVar6;" (assignment_expression "pbVar2 = pbVar6" identifier = identifier) ;) (expression_statement "pbVar3 = key;" (assignment_expression "pbVar3 = key" identifier = identifier) ;) (do_statement "do {\n    *pbVar2 = *pbVar2 ^ *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (pbVar2 != pbVar9);" do (compound_statement "{\n    *pbVar2 = *pbVar2 ^ *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  }" { (expression_statement "*pbVar2 = *pbVar2 ^ *pbVar3;" (assignment_expression "*pbVar2 = *pbVar2 ^ *pbVar3" (pointer_expression "*pbVar2" * identifier) = (binary_expression "*pbVar2 ^ *pbVar3" (pointer_expression "*pbVar2" * identifier) ^ (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar2 != pbVar9)" ( (binary_expression "pbVar2 != pbVar9" identifier != identifier) )) ;) (expression_statement "SHA256_Init((SHA256_CTX *)handle);" (call_expression "SHA256_Init((SHA256_CTX *)handle)" identifier (argument_list "((SHA256_CTX *)handle)" ( (cast_expression "(SHA256_CTX *)handle" ( (type_descriptor "SHA256_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "SHA256_Bytes((SHA256_State *)handle,foo,0x40);" (call_expression "SHA256_Bytes((SHA256_State *)handle,foo,0x40)" identifier (argument_list "((SHA256_State *)handle,foo,0x40)" ( (cast_expression "(SHA256_State *)handle" ( (type_descriptor "SHA256_State *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , number_literal ))) ;) (expression_statement "(*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(foo,0x5c,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" ( (pointer_expression "*(code *)PTR_memset_001220dc" * (cast_expression "(code *)PTR_memset_001220dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(foo,0x5c,0x40)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "pbVar2 = key;" (assignment_expression "pbVar2 = key" identifier = identifier) ;) (do_statement "do {\n    *pbVar6 = *pbVar6 ^ *pbVar2;\n    pbVar6 = pbVar6 + 1;\n    pbVar2 = pbVar2 + 1;\n  } while (pbVar6 != pbVar9);" do (compound_statement "{\n    *pbVar6 = *pbVar6 ^ *pbVar2;\n    pbVar6 = pbVar6 + 1;\n    pbVar2 = pbVar2 + 1;\n  }" { (expression_statement "*pbVar6 = *pbVar6 ^ *pbVar2;" (assignment_expression "*pbVar6 = *pbVar6 ^ *pbVar2" (pointer_expression "*pbVar6" * identifier) = (binary_expression "*pbVar6 ^ *pbVar2" (pointer_expression "*pbVar6" * identifier) ^ (pointer_expression "*pbVar2" * identifier))) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar6 != pbVar9)" ( (binary_expression "pbVar6 != pbVar9" identifier != identifier) )) ;) (expression_statement "c = (SHA256_CTX *)((int)handle + 0x6c);" (assignment_expression "c = (SHA256_CTX *)((int)handle + 0x6c)" identifier = (cast_expression "(SHA256_CTX *)((int)handle + 0x6c)" ( (type_descriptor "SHA256_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x6c)" ( (binary_expression "(int)handle + 0x6c" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "SHA256_Init(c);" (call_expression "SHA256_Init(c)" identifier (argument_list "(c)" ( identifier ))) ;) (expression_statement "SHA256_Bytes((SHA256_State *)c,(SHA256_State *)foo,0x40);" (call_expression "SHA256_Bytes((SHA256_State *)c,(SHA256_State *)foo,0x40)" identifier (argument_list "((SHA256_State *)c,(SHA256_State *)foo,0x40)" ( (cast_expression "(SHA256_State *)c" ( (type_descriptor "SHA256_State *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(SHA256_State *)foo" ( (type_descriptor "SHA256_State *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal ))) ;) (expression_statement "puVar4 = &DAT_00000040;" (assignment_expression "puVar4 = &DAT_00000040" identifier = (pointer_expression "&DAT_00000040" & identifier)) ;) (expression_statement "s = (SHA256_State *)foo;" (assignment_expression "s = (SHA256_State *)foo" identifier = (cast_expression "(SHA256_State *)foo" ( (type_descriptor "SHA256_State *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "(*(code *)PTR_smemclr_00121358)();" (call_expression "(*(code *)PTR_smemclr_00121358)()" (parenthesized_expression "(*(code *)PTR_smemclr_00121358)" ( (pointer_expression "*(code *)PTR_smemclr_00121358" * (cast_expression "(code *)PTR_smemclr_00121358" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (iVar1 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)PTR___stack_chk_guard_00122654)" ( (binary_expression "iVar1 == *(int *)PTR___stack_chk_guard_00122654" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" * (cast_expression "(int *)PTR___stack_chk_guard_00122654" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pcVar11 = SHA256_Final;" (assignment_expression "pcVar11 = SHA256_Final" identifier = identifier) ;) (expression_statement "puVar10 = PTR___stack_chk_fail_001222ec;" (assignment_expression "puVar10 = PTR___stack_chk_fail_001222ec" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_001222ec)();" (call_expression "(*(code *)PTR___stack_chk_fail_001222ec)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001222ec)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001222ec" * (cast_expression "(code *)PTR___stack_chk_fail_001222ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iStack_a4 = **(int **)(puVar10 + 0x94be8);" (assignment_expression "iStack_a4 = **(int **)(puVar10 + 0x94be8)" identifier = (pointer_expression "**(int **)(puVar10 + 0x94be8)" * (pointer_expression "*(int **)(puVar10 + 0x94be8)" * (cast_expression "(int **)(puVar10 + 0x94be8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x94be8)" ( (binary_expression "puVar10 + 0x94be8" identifier + number_literal) )))))) ;) (expression_statement "iVar1 = s->blkused;" (assignment_expression "iVar1 = s->blkused" identifier = (field_expression "s->blkused" identifier -> field_identifier)) ;) (if_statement "if (iVar1 < 0x38) {\n    iVar1 = 0x38 - iVar1;\n  }\n  else {\n    iVar1 = 0x78 - iVar1;\n  }" if (parenthesized_expression "(iVar1 < 0x38)" ( (binary_expression "iVar1 < 0x38" identifier < number_literal) )) (compound_statement "{\n    iVar1 = 0x38 - iVar1;\n  }" { (expression_statement "iVar1 = 0x38 - iVar1;" (assignment_expression "iVar1 = 0x38 - iVar1" identifier = (binary_expression "0x38 - iVar1" number_literal - identifier)) ;) }) (else_clause "else {\n    iVar1 = 0x78 - iVar1;\n  }" else (compound_statement "{\n    iVar1 = 0x78 - iVar1;\n  }" { (expression_statement "iVar1 = 0x78 - iVar1;" (assignment_expression "iVar1 = 0x78 - iVar1" identifier = (binary_expression "0x78 - iVar1" number_literal - identifier)) ;) }))) (expression_statement "uVar7 = s->lenlo;" (assignment_expression "uVar7 = s->lenlo" identifier = (field_expression "s->lenlo" identifier -> field_identifier)) ;) (expression_statement "iVar5 = s->lenhi << 3;" (assignment_expression "iVar5 = s->lenhi << 3" identifier = (binary_expression "s->lenhi << 3" (field_expression "s->lenhi" identifier -> field_identifier) << number_literal)) ;) (expression_statement "iVar8 = uVar7 << 3;" (assignment_expression "iVar8 = uVar7 << 3" identifier = (binary_expression "uVar7 << 3" identifier << number_literal)) ;) (expression_statement "pSStack_9c = (SHA256_State *)foo;" (assignment_expression "pSStack_9c = (SHA256_State *)foo" identifier = (cast_expression "(SHA256_State *)foo" ( (type_descriptor "SHA256_State *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pSStack_98 = c;" (assignment_expression "pSStack_98 = c" identifier = identifier) ;) (expression_statement "puStack_94 = key;" (assignment_expression "puStack_94 = key" identifier = identifier) ;) (expression_statement "pbStack_90 = pbVar6;" (assignment_expression "pbStack_90 = pbVar6" identifier = identifier) ;) (expression_statement "pbStack_8c = pbVar2;" (assignment_expression "pbStack_8c = pbVar2" identifier = identifier) ;) (expression_statement "pbStack_88 = pbVar9;" (assignment_expression "pbStack_88 = pbVar9" identifier = identifier) ;) (expression_statement "pcStack_84 = pcVar11;" (assignment_expression "pcStack_84 = pcVar11" identifier = identifier) ;) (expression_statement "(**(code **)(puVar10 + 0x94790))(&uStack_e4,0,iVar1,0x40);" (call_expression "(**(code **)(puVar10 + 0x94790))(&uStack_e4,0,iVar1,0x40)" (parenthesized_expression "(**(code **)(puVar10 + 0x94790))" ( (pointer_expression "**(code **)(puVar10 + 0x94790)" * (pointer_expression "*(code **)(puVar10 + 0x94790)" * (cast_expression "(code **)(puVar10 + 0x94790)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x94790)" ( (binary_expression "puVar10 + 0x94790" identifier + number_literal) ))))) )) (argument_list "(&uStack_e4,0,iVar1,0x40)" ( (pointer_expression "&uStack_e4" & identifier) , number_literal , identifier , number_literal ))) ;) (expression_statement "uStack_e4 = 0x80;" (assignment_expression "uStack_e4 = 0x80" identifier = number_literal) ;) (expression_statement "SHA256_Bytes(s,&uStack_e4,iVar1);" (call_expression "SHA256_Bytes(s,&uStack_e4,iVar1)" identifier (argument_list "(s,&uStack_e4,iVar1)" ( identifier , (pointer_expression "&uStack_e4" & identifier) , identifier ))) ;) (expression_statement "uStack_e4 = (undefined1)((uint)iVar5 >> 0x18);" (assignment_expression "uStack_e4 = (undefined1)((uint)iVar5 >> 0x18)" identifier = (call_expression "(undefined1)((uint)iVar5 >> 0x18)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar5 >> 0x18)" ( (binary_expression "(uint)iVar5 >> 0x18" (cast_expression "(uint)iVar5" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uStack_e3 = (undefined1)((uint)iVar5 >> 0x10);" (assignment_expression "uStack_e3 = (undefined1)((uint)iVar5 >> 0x10)" identifier = (call_expression "(undefined1)((uint)iVar5 >> 0x10)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar5 >> 0x10)" ( (binary_expression "(uint)iVar5 >> 0x10" (cast_expression "(uint)iVar5" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uStack_e2 = (undefined1)((uint)iVar5 >> 8);" (assignment_expression "uStack_e2 = (undefined1)((uint)iVar5 >> 8)" identifier = (call_expression "(undefined1)((uint)iVar5 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar5 >> 8)" ( (binary_expression "(uint)iVar5 >> 8" (cast_expression "(uint)iVar5" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uStack_e0 = (undefined1)((uint)iVar8 >> 0x18);" (assignment_expression "uStack_e0 = (undefined1)((uint)iVar8 >> 0x18)" identifier = (call_expression "(undefined1)((uint)iVar8 >> 0x18)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar8 >> 0x18)" ( (binary_expression "(uint)iVar8 >> 0x18" (cast_expression "(uint)iVar8" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uStack_df = (undefined1)((uint)iVar8 >> 0x10);" (assignment_expression "uStack_df = (undefined1)((uint)iVar8 >> 0x10)" identifier = (call_expression "(undefined1)((uint)iVar8 >> 0x10)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar8 >> 0x10)" ( (binary_expression "(uint)iVar8 >> 0x10" (cast_expression "(uint)iVar8" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uStack_de = (undefined1)((uint)iVar8 >> 8);" (assignment_expression "uStack_de = (undefined1)((uint)iVar8 >> 8)" identifier = (call_expression "(undefined1)((uint)iVar8 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar8 >> 8)" ( (binary_expression "(uint)iVar8 >> 8" (cast_expression "(uint)iVar8" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uStack_dd = (undefined1)iVar8;" (assignment_expression "uStack_dd = (undefined1)iVar8" identifier = (cast_expression "(undefined1)iVar8" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "bStack_e1 = (byte)iVar5 | (byte)(uVar7 >> 0x1d);" (assignment_expression "bStack_e1 = (byte)iVar5 | (byte)(uVar7 >> 0x1d)" identifier = (binary_expression "(byte)iVar5 | (byte)(uVar7 >> 0x1d)" (cast_expression "(byte)iVar5" ( (type_descriptor "byte" type_identifier) ) identifier) | (call_expression "(byte)(uVar7 >> 0x1d)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar7 >> 0x1d)" ( (binary_expression "uVar7 >> 0x1d" identifier >> number_literal) ))))) ;) (expression_statement "SHA256_Bytes(s,&uStack_e4,8);" (call_expression "SHA256_Bytes(s,&uStack_e4,8)" identifier (argument_list "(s,&uStack_e4,8)" ( identifier , (pointer_expression "&uStack_e4" & identifier) , number_literal ))) ;) (expression_statement "digest = puVar4 + 0x20;" (assignment_expression "digest = puVar4 + 0x20" identifier = (binary_expression "puVar4 + 0x20" identifier + number_literal)) ;) (do_statement "do {\n    *puVar4 = *(uchar *)s->h;\n    puVar4[1] = (uchar)*(undefined2 *)s->h;\n    puVar4[2] = (uchar)(s->h[0] >> 8);\n    puVar4[3] = (uchar)s->h[0];\n    puVar4 = puVar4 + 4;\n    s = (SHA256_State *)(s->h + 1);\n  } while (puVar4 != digest);" do (compound_statement "{\n    *puVar4 = *(uchar *)s->h;\n    puVar4[1] = (uchar)*(undefined2 *)s->h;\n    puVar4[2] = (uchar)(s->h[0] >> 8);\n    puVar4[3] = (uchar)s->h[0];\n    puVar4 = puVar4 + 4;\n    s = (SHA256_State *)(s->h + 1);\n  }" { (expression_statement "*puVar4 = *(uchar *)s->h;" (assignment_expression "*puVar4 = *(uchar *)s->h" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*(uchar *)s->h" * (cast_expression "(uchar *)s->h" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "s->h" identifier -> field_identifier)))) ;) (expression_statement "puVar4[1] = (uchar)*(undefined2 *)s->h;" (assignment_expression "puVar4[1] = (uchar)*(undefined2 *)s->h" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = (binary_expression "(uchar)*(undefined2 *)s->h" (parenthesized_expression "(uchar)" ( identifier )) * (cast_expression "(undefined2 *)s->h" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "s->h" identifier -> field_identifier)))) ;) (expression_statement "puVar4[2] = (uchar)(s->h[0] >> 8);" (assignment_expression "puVar4[2] = (uchar)(s->h[0] >> 8)" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = (call_expression "(uchar)(s->h[0] >> 8)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "(s->h[0] >> 8)" ( (binary_expression "s->h[0] >> 8" (subscript_expression "s->h[0]" (field_expression "s->h" identifier -> field_identifier) [ number_literal ]) >> number_literal) )))) ;) (expression_statement "puVar4[3] = (uchar)s->h[0];" (assignment_expression "puVar4[3] = (uchar)s->h[0]" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = (cast_expression "(uchar)s->h[0]" ( (type_descriptor "uchar" type_identifier) ) (subscript_expression "s->h[0]" (field_expression "s->h" identifier -> field_identifier) [ number_literal ]))) ;) (expression_statement "puVar4 = puVar4 + 4;" (assignment_expression "puVar4 = puVar4 + 4" identifier = (binary_expression "puVar4 + 4" identifier + number_literal)) ;) (expression_statement "s = (SHA256_State *)(s->h + 1);" (assignment_expression "s = (SHA256_State *)(s->h + 1)" identifier = (cast_expression "(SHA256_State *)(s->h + 1)" ( (type_descriptor "SHA256_State *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(s->h + 1)" ( (binary_expression "s->h + 1" (field_expression "s->h" identifier -> field_identifier) + number_literal) )))) ;) }) while (parenthesized_expression "(puVar4 != digest)" ( (binary_expression "puVar4 != digest" identifier != identifier) )) ;) (if_statement "if (iStack_a4 == **(int **)(puVar10 + 0x94be8)) {\n    return;\n  }" if (parenthesized_expression "(iStack_a4 == **(int **)(puVar10 + 0x94be8))" ( (binary_expression "iStack_a4 == **(int **)(puVar10 + 0x94be8)" identifier == (pointer_expression "**(int **)(puVar10 + 0x94be8)" * (pointer_expression "*(int **)(puVar10 + 0x94be8)" * (cast_expression "(int **)(puVar10 + 0x94be8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x94be8)" ( (binary_expression "puVar10 + 0x94be8" identifier + number_literal) )))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(**(code **)(puVar10 + 0x94880))();" (call_expression "(**(code **)(puVar10 + 0x94880))()" (parenthesized_expression "(**(code **)(puVar10 + 0x94880))" ( (pointer_expression "**(code **)(puVar10 + 0x94880)" * (pointer_expression "*(code **)(puVar10 + 0x94880)" * (cast_expression "(code **)(puVar10 + 0x94880)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x94880)" ( (binary_expression "puVar10 + 0x94880" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "SHA256_Final(s,digest);" (call_expression "SHA256_Final(s,digest)" identifier (argument_list "(s,digest)" ( identifier , identifier ))) ;) (expression_statement "sha256_free(s);" (call_expression "sha256_free(s)" identifier (argument_list "(s)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0008d8dc(SHA256_CTX *param_1,byte *param_2)\n\n{\n  byte *pbVar1;\n  byte *md;\n  byte *pbVar2;\n  SHA256_CTX *c;\n  uint *c_00;\n  int iVar3;\n  byte *pbVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  undefined1 uStack_e4;\n  undefined1 uStack_e3;\n  undefined1 uStack_e2;\n  byte bStack_e1;\n  undefined1 uStack_e0;\n  undefined1 uStack_df;\n  undefined1 uStack_de;\n  undefined1 uStack_dd;\n  int iStack_a4;\n  byte *pbStack_9c;\n  uint *puStack_98;\n  byte *pbStack_94;\n  byte *pbStack_90;\n  byte *pbStack_8c;\n  byte *pbStack_88;\n  code *pcStack_84;\n  byte local_64 [32];\n  byte abStack_44 [32];\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_00122654;\n  pbVar4 = local_64;\n  (*(code *)PTR_memset_001220dc)(pbVar4,0x36,0x40);\n  pbVar1 = pbVar4;\n  pbVar2 = param_2;\n  do {\n    *pbVar1 = *pbVar1 ^ *pbVar2;\n    pbVar1 = pbVar1 + 1;\n    pbVar2 = pbVar2 + 1;\n  } while (pbVar1 != abStack_44);\n  SHA256_Init(param_1);\n  SHA256_Bytes(param_1,local_64,0x40);\n  (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  pbVar1 = param_2;\n  do {\n    *pbVar4 = *pbVar4 ^ *pbVar1;\n    pbVar4 = pbVar4 + 1;\n    pbVar1 = pbVar1 + 1;\n  } while (pbVar4 != abStack_44);\n  c_00 = &param_1->md_len;\n  SHA256_Init((SHA256_CTX *)c_00);\n  SHA256_Bytes(c_00,local_64,0x40);\n  pbVar2 = &DAT_00000040;\n  md = local_64;\n  (*(code *)PTR_smemclr_00121358)();\n  if (local_24 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  pcVar9 = SHA256_Final;\n  puVar8 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iStack_a4 = **(int **)(puVar8 + 0x94be8);\n  iVar5 = *(int *)(md + 0x60);\n  if (iVar5 < 0x38) {\n    iVar5 = 0x38 - iVar5;\n  }\n  else {\n    iVar5 = 0x78 - iVar5;\n  }\n  iVar6 = *(int *)(md + 0x68);\n  iVar3 = *(int *)(md + 100) << 3;\n  iVar7 = iVar6 << 3;\n  pbStack_9c = local_64;\n  puStack_98 = c_00;\n  pbStack_94 = param_2;\n  pbStack_90 = pbVar4;\n  pbStack_8c = pbVar1;\n  pbStack_88 = abStack_44;\n  pcStack_84 = pcVar9;\n  (**(code **)(puVar8 + 0x94790))(&uStack_e4,0,iVar5,0x40);\n  uStack_e4 = 0x80;\n  SHA256_Bytes(md,&uStack_e4,iVar5);\n  uStack_e4 = (undefined1)((uint)iVar3 >> 0x18);\n  uStack_e3 = (undefined1)((uint)iVar3 >> 0x10);\n  uStack_e2 = (undefined1)((uint)iVar3 >> 8);\n  uStack_e0 = (undefined1)((uint)iVar7 >> 0x18);\n  uStack_df = (undefined1)((uint)iVar7 >> 0x10);\n  uStack_de = (undefined1)((uint)iVar7 >> 8);\n  uStack_dd = (undefined1)iVar7;\n  bStack_e1 = (byte)iVar3 | (byte)((uint)iVar6 >> 0x1d);\n  SHA256_Bytes(md,&uStack_e4,8);\n  c = (SHA256_CTX *)(pbVar2 + 0x20);\n  do {\n    *pbVar2 = *md;\n    pbVar2[1] = (byte)*(undefined2 *)md;\n    pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);\n    pbVar2[3] = (byte)*(undefined4 *)md;\n    pbVar2 = pbVar2 + 4;\n    md = md + 4;\n  } while ((SHA256_CTX *)pbVar2 != c);\n  if (iStack_a4 == **(int **)(puVar8 + 0x94be8)) {\n    return;\n  }\n  (**(code **)(puVar8 + 0x94880))();\n  SHA256_Final(md,c);\n  FUN_0008cf24(md);\n  return;\n}\n\n" (function_definition "void FUN_0008d8dc(SHA256_CTX *param_1,byte *param_2)\n\n{\n  byte *pbVar1;\n  byte *md;\n  byte *pbVar2;\n  SHA256_CTX *c;\n  uint *c_00;\n  int iVar3;\n  byte *pbVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  undefined1 uStack_e4;\n  undefined1 uStack_e3;\n  undefined1 uStack_e2;\n  byte bStack_e1;\n  undefined1 uStack_e0;\n  undefined1 uStack_df;\n  undefined1 uStack_de;\n  undefined1 uStack_dd;\n  int iStack_a4;\n  byte *pbStack_9c;\n  uint *puStack_98;\n  byte *pbStack_94;\n  byte *pbStack_90;\n  byte *pbStack_8c;\n  byte *pbStack_88;\n  code *pcStack_84;\n  byte local_64 [32];\n  byte abStack_44 [32];\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_00122654;\n  pbVar4 = local_64;\n  (*(code *)PTR_memset_001220dc)(pbVar4,0x36,0x40);\n  pbVar1 = pbVar4;\n  pbVar2 = param_2;\n  do {\n    *pbVar1 = *pbVar1 ^ *pbVar2;\n    pbVar1 = pbVar1 + 1;\n    pbVar2 = pbVar2 + 1;\n  } while (pbVar1 != abStack_44);\n  SHA256_Init(param_1);\n  SHA256_Bytes(param_1,local_64,0x40);\n  (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  pbVar1 = param_2;\n  do {\n    *pbVar4 = *pbVar4 ^ *pbVar1;\n    pbVar4 = pbVar4 + 1;\n    pbVar1 = pbVar1 + 1;\n  } while (pbVar4 != abStack_44);\n  c_00 = &param_1->md_len;\n  SHA256_Init((SHA256_CTX *)c_00);\n  SHA256_Bytes(c_00,local_64,0x40);\n  pbVar2 = &DAT_00000040;\n  md = local_64;\n  (*(code *)PTR_smemclr_00121358)();\n  if (local_24 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  pcVar9 = SHA256_Final;\n  puVar8 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iStack_a4 = **(int **)(puVar8 + 0x94be8);\n  iVar5 = *(int *)(md + 0x60);\n  if (iVar5 < 0x38) {\n    iVar5 = 0x38 - iVar5;\n  }\n  else {\n    iVar5 = 0x78 - iVar5;\n  }\n  iVar6 = *(int *)(md + 0x68);\n  iVar3 = *(int *)(md + 100) << 3;\n  iVar7 = iVar6 << 3;\n  pbStack_9c = local_64;\n  puStack_98 = c_00;\n  pbStack_94 = param_2;\n  pbStack_90 = pbVar4;\n  pbStack_8c = pbVar1;\n  pbStack_88 = abStack_44;\n  pcStack_84 = pcVar9;\n  (**(code **)(puVar8 + 0x94790))(&uStack_e4,0,iVar5,0x40);\n  uStack_e4 = 0x80;\n  SHA256_Bytes(md,&uStack_e4,iVar5);\n  uStack_e4 = (undefined1)((uint)iVar3 >> 0x18);\n  uStack_e3 = (undefined1)((uint)iVar3 >> 0x10);\n  uStack_e2 = (undefined1)((uint)iVar3 >> 8);\n  uStack_e0 = (undefined1)((uint)iVar7 >> 0x18);\n  uStack_df = (undefined1)((uint)iVar7 >> 0x10);\n  uStack_de = (undefined1)((uint)iVar7 >> 8);\n  uStack_dd = (undefined1)iVar7;\n  bStack_e1 = (byte)iVar3 | (byte)((uint)iVar6 >> 0x1d);\n  SHA256_Bytes(md,&uStack_e4,8);\n  c = (SHA256_CTX *)(pbVar2 + 0x20);\n  do {\n    *pbVar2 = *md;\n    pbVar2[1] = (byte)*(undefined2 *)md;\n    pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);\n    pbVar2[3] = (byte)*(undefined4 *)md;\n    pbVar2 = pbVar2 + 4;\n    md = md + 4;\n  } while ((SHA256_CTX *)pbVar2 != c);\n  if (iStack_a4 == **(int **)(puVar8 + 0x94be8)) {\n    return;\n  }\n  (**(code **)(puVar8 + 0x94880))();\n  SHA256_Final(md,c);\n  FUN_0008cf24(md);\n  return;\n}" primitive_type (function_declarator "FUN_0008d8dc(SHA256_CTX *param_1,byte *param_2)" identifier (parameter_list "(SHA256_CTX *param_1,byte *param_2)" ( (parameter_declaration "SHA256_CTX *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  byte *md;\n  byte *pbVar2;\n  SHA256_CTX *c;\n  uint *c_00;\n  int iVar3;\n  byte *pbVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  undefined1 uStack_e4;\n  undefined1 uStack_e3;\n  undefined1 uStack_e2;\n  byte bStack_e1;\n  undefined1 uStack_e0;\n  undefined1 uStack_df;\n  undefined1 uStack_de;\n  undefined1 uStack_dd;\n  int iStack_a4;\n  byte *pbStack_9c;\n  uint *puStack_98;\n  byte *pbStack_94;\n  byte *pbStack_90;\n  byte *pbStack_8c;\n  byte *pbStack_88;\n  code *pcStack_84;\n  byte local_64 [32];\n  byte abStack_44 [32];\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_00122654;\n  pbVar4 = local_64;\n  (*(code *)PTR_memset_001220dc)(pbVar4,0x36,0x40);\n  pbVar1 = pbVar4;\n  pbVar2 = param_2;\n  do {\n    *pbVar1 = *pbVar1 ^ *pbVar2;\n    pbVar1 = pbVar1 + 1;\n    pbVar2 = pbVar2 + 1;\n  } while (pbVar1 != abStack_44);\n  SHA256_Init(param_1);\n  SHA256_Bytes(param_1,local_64,0x40);\n  (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  pbVar1 = param_2;\n  do {\n    *pbVar4 = *pbVar4 ^ *pbVar1;\n    pbVar4 = pbVar4 + 1;\n    pbVar1 = pbVar1 + 1;\n  } while (pbVar4 != abStack_44);\n  c_00 = &param_1->md_len;\n  SHA256_Init((SHA256_CTX *)c_00);\n  SHA256_Bytes(c_00,local_64,0x40);\n  pbVar2 = &DAT_00000040;\n  md = local_64;\n  (*(code *)PTR_smemclr_00121358)();\n  if (local_24 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  pcVar9 = SHA256_Final;\n  puVar8 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iStack_a4 = **(int **)(puVar8 + 0x94be8);\n  iVar5 = *(int *)(md + 0x60);\n  if (iVar5 < 0x38) {\n    iVar5 = 0x38 - iVar5;\n  }\n  else {\n    iVar5 = 0x78 - iVar5;\n  }\n  iVar6 = *(int *)(md + 0x68);\n  iVar3 = *(int *)(md + 100) << 3;\n  iVar7 = iVar6 << 3;\n  pbStack_9c = local_64;\n  puStack_98 = c_00;\n  pbStack_94 = param_2;\n  pbStack_90 = pbVar4;\n  pbStack_8c = pbVar1;\n  pbStack_88 = abStack_44;\n  pcStack_84 = pcVar9;\n  (**(code **)(puVar8 + 0x94790))(&uStack_e4,0,iVar5,0x40);\n  uStack_e4 = 0x80;\n  SHA256_Bytes(md,&uStack_e4,iVar5);\n  uStack_e4 = (undefined1)((uint)iVar3 >> 0x18);\n  uStack_e3 = (undefined1)((uint)iVar3 >> 0x10);\n  uStack_e2 = (undefined1)((uint)iVar3 >> 8);\n  uStack_e0 = (undefined1)((uint)iVar7 >> 0x18);\n  uStack_df = (undefined1)((uint)iVar7 >> 0x10);\n  uStack_de = (undefined1)((uint)iVar7 >> 8);\n  uStack_dd = (undefined1)iVar7;\n  bStack_e1 = (byte)iVar3 | (byte)((uint)iVar6 >> 0x1d);\n  SHA256_Bytes(md,&uStack_e4,8);\n  c = (SHA256_CTX *)(pbVar2 + 0x20);\n  do {\n    *pbVar2 = *md;\n    pbVar2[1] = (byte)*(undefined2 *)md;\n    pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);\n    pbVar2[3] = (byte)*(undefined4 *)md;\n    pbVar2 = pbVar2 + 4;\n    md = md + 4;\n  } while ((SHA256_CTX *)pbVar2 != c);\n  if (iStack_a4 == **(int **)(puVar8 + 0x94be8)) {\n    return;\n  }\n  (**(code **)(puVar8 + 0x94880))();\n  SHA256_Final(md,c);\n  FUN_0008cf24(md);\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *md;" type_identifier (pointer_declarator "*md" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "SHA256_CTX *c;" type_identifier (pointer_declarator "*c" * identifier) ;) (declaration "uint *c_00;" type_identifier (pointer_declarator "*c_00" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (declaration "undefined1 uStack_e4;" type_identifier identifier ;) (declaration "undefined1 uStack_e3;" type_identifier identifier ;) (declaration "undefined1 uStack_e2;" type_identifier identifier ;) (declaration "byte bStack_e1;" type_identifier identifier ;) (declaration "undefined1 uStack_e0;" type_identifier identifier ;) (declaration "undefined1 uStack_df;" type_identifier identifier ;) (declaration "undefined1 uStack_de;" type_identifier identifier ;) (declaration "undefined1 uStack_dd;" type_identifier identifier ;) (declaration "int iStack_a4;" primitive_type identifier ;) (declaration "byte *pbStack_9c;" type_identifier (pointer_declarator "*pbStack_9c" * identifier) ;) (declaration "uint *puStack_98;" type_identifier (pointer_declarator "*puStack_98" * identifier) ;) (declaration "byte *pbStack_94;" type_identifier (pointer_declarator "*pbStack_94" * identifier) ;) (declaration "byte *pbStack_90;" type_identifier (pointer_declarator "*pbStack_90" * identifier) ;) (declaration "byte *pbStack_8c;" type_identifier (pointer_declarator "*pbStack_8c" * identifier) ;) (declaration "byte *pbStack_88;" type_identifier (pointer_declarator "*pbStack_88" * identifier) ;) (declaration "code *pcStack_84;" type_identifier (pointer_declarator "*pcStack_84" * identifier) ;) (declaration "byte local_64 [32];" type_identifier (array_declarator "local_64 [32]" identifier [ number_literal ]) ;) (declaration "byte abStack_44 [32];" type_identifier (array_declarator "abStack_44 [32]" identifier [ number_literal ]) ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_00122654;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_00122654" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" * (cast_expression "(int *)PTR___stack_chk_guard_00122654" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pbVar4 = local_64;" (assignment_expression "pbVar4 = local_64" identifier = identifier) ;) (expression_statement "(*(code *)PTR_memset_001220dc)(pbVar4,0x36,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(pbVar4,0x36,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" ( (pointer_expression "*(code *)PTR_memset_001220dc" * (cast_expression "(code *)PTR_memset_001220dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pbVar4,0x36,0x40)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "pbVar1 = pbVar4;" (assignment_expression "pbVar1 = pbVar4" identifier = identifier) ;) (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" identifier = identifier) ;) (do_statement "do {\n    *pbVar1 = *pbVar1 ^ *pbVar2;\n    pbVar1 = pbVar1 + 1;\n    pbVar2 = pbVar2 + 1;\n  } while (pbVar1 != abStack_44);" do (compound_statement "{\n    *pbVar1 = *pbVar1 ^ *pbVar2;\n    pbVar1 = pbVar1 + 1;\n    pbVar2 = pbVar2 + 1;\n  }" { (expression_statement "*pbVar1 = *pbVar1 ^ *pbVar2;" (assignment_expression "*pbVar1 = *pbVar1 ^ *pbVar2" (pointer_expression "*pbVar1" * identifier) = (binary_expression "*pbVar1 ^ *pbVar2" (pointer_expression "*pbVar1" * identifier) ^ (pointer_expression "*pbVar2" * identifier))) ;) (expression_statement "pbVar1 = pbVar1 + 1;" (assignment_expression "pbVar1 = pbVar1 + 1" identifier = (binary_expression "pbVar1 + 1" identifier + number_literal)) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar1 != abStack_44)" ( (binary_expression "pbVar1 != abStack_44" identifier != identifier) )) ;) (expression_statement "SHA256_Init(param_1);" (call_expression "SHA256_Init(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "SHA256_Bytes(param_1,local_64,0x40);" (call_expression "SHA256_Bytes(param_1,local_64,0x40)" identifier (argument_list "(param_1,local_64,0x40)" ( identifier , identifier , number_literal ))) ;) (expression_statement "(*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" ( (pointer_expression "*(code *)PTR_memset_001220dc" * (cast_expression "(code *)PTR_memset_001220dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_64,0x5c,0x40)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "pbVar1 = param_2;" (assignment_expression "pbVar1 = param_2" identifier = identifier) ;) (do_statement "do {\n    *pbVar4 = *pbVar4 ^ *pbVar1;\n    pbVar4 = pbVar4 + 1;\n    pbVar1 = pbVar1 + 1;\n  } while (pbVar4 != abStack_44);" do (compound_statement "{\n    *pbVar4 = *pbVar4 ^ *pbVar1;\n    pbVar4 = pbVar4 + 1;\n    pbVar1 = pbVar1 + 1;\n  }" { (expression_statement "*pbVar4 = *pbVar4 ^ *pbVar1;" (assignment_expression "*pbVar4 = *pbVar4 ^ *pbVar1" (pointer_expression "*pbVar4" * identifier) = (binary_expression "*pbVar4 ^ *pbVar1" (pointer_expression "*pbVar4" * identifier) ^ (pointer_expression "*pbVar1" * identifier))) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "pbVar1 = pbVar1 + 1;" (assignment_expression "pbVar1 = pbVar1 + 1" identifier = (binary_expression "pbVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar4 != abStack_44)" ( (binary_expression "pbVar4 != abStack_44" identifier != identifier) )) ;) (expression_statement "c_00 = &param_1->md_len;" (assignment_expression "c_00 = &param_1->md_len" identifier = (pointer_expression "&param_1->md_len" & (field_expression "param_1->md_len" identifier -> field_identifier))) ;) (expression_statement "SHA256_Init((SHA256_CTX *)c_00);" (call_expression "SHA256_Init((SHA256_CTX *)c_00)" identifier (argument_list "((SHA256_CTX *)c_00)" ( (cast_expression "(SHA256_CTX *)c_00" ( (type_descriptor "SHA256_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "SHA256_Bytes(c_00,local_64,0x40);" (call_expression "SHA256_Bytes(c_00,local_64,0x40)" identifier (argument_list "(c_00,local_64,0x40)" ( identifier , identifier , number_literal ))) ;) (expression_statement "pbVar2 = &DAT_00000040;" (assignment_expression "pbVar2 = &DAT_00000040" identifier = (pointer_expression "&DAT_00000040" & identifier)) ;) (expression_statement "md = local_64;" (assignment_expression "md = local_64" identifier = identifier) ;) (expression_statement "(*(code *)PTR_smemclr_00121358)();" (call_expression "(*(code *)PTR_smemclr_00121358)()" (parenthesized_expression "(*(code *)PTR_smemclr_00121358)" ( (pointer_expression "*(code *)PTR_smemclr_00121358" * (cast_expression "(code *)PTR_smemclr_00121358" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (local_24 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }" if (parenthesized_expression "(local_24 == *(int *)PTR___stack_chk_guard_00122654)" ( (binary_expression "local_24 == *(int *)PTR___stack_chk_guard_00122654" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" * (cast_expression "(int *)PTR___stack_chk_guard_00122654" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pcVar9 = SHA256_Final;" (assignment_expression "pcVar9 = SHA256_Final" identifier = identifier) ;) (expression_statement "puVar8 = PTR___stack_chk_fail_001222ec;" (assignment_expression "puVar8 = PTR___stack_chk_fail_001222ec" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_001222ec)();" (call_expression "(*(code *)PTR___stack_chk_fail_001222ec)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001222ec)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001222ec" * (cast_expression "(code *)PTR___stack_chk_fail_001222ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iStack_a4 = **(int **)(puVar8 + 0x94be8);" (assignment_expression "iStack_a4 = **(int **)(puVar8 + 0x94be8)" identifier = (pointer_expression "**(int **)(puVar8 + 0x94be8)" * (pointer_expression "*(int **)(puVar8 + 0x94be8)" * (cast_expression "(int **)(puVar8 + 0x94be8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x94be8)" ( (binary_expression "puVar8 + 0x94be8" identifier + number_literal) )))))) ;) (expression_statement "iVar5 = *(int *)(md + 0x60);" (assignment_expression "iVar5 = *(int *)(md + 0x60)" identifier = (pointer_expression "*(int *)(md + 0x60)" * (cast_expression "(int *)(md + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(md + 0x60)" ( (binary_expression "md + 0x60" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 < 0x38) {\n    iVar5 = 0x38 - iVar5;\n  }\n  else {\n    iVar5 = 0x78 - iVar5;\n  }" if (parenthesized_expression "(iVar5 < 0x38)" ( (binary_expression "iVar5 < 0x38" identifier < number_literal) )) (compound_statement "{\n    iVar5 = 0x38 - iVar5;\n  }" { (expression_statement "iVar5 = 0x38 - iVar5;" (assignment_expression "iVar5 = 0x38 - iVar5" identifier = (binary_expression "0x38 - iVar5" number_literal - identifier)) ;) }) (else_clause "else {\n    iVar5 = 0x78 - iVar5;\n  }" else (compound_statement "{\n    iVar5 = 0x78 - iVar5;\n  }" { (expression_statement "iVar5 = 0x78 - iVar5;" (assignment_expression "iVar5 = 0x78 - iVar5" identifier = (binary_expression "0x78 - iVar5" number_literal - identifier)) ;) }))) (expression_statement "iVar6 = *(int *)(md + 0x68);" (assignment_expression "iVar6 = *(int *)(md + 0x68)" identifier = (pointer_expression "*(int *)(md + 0x68)" * (cast_expression "(int *)(md + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(md + 0x68)" ( (binary_expression "md + 0x68" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(md + 100) << 3;" (assignment_expression "iVar3 = *(int *)(md + 100) << 3" identifier = (binary_expression "*(int *)(md + 100) << 3" (pointer_expression "*(int *)(md + 100)" * (cast_expression "(int *)(md + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(md + 100)" ( (binary_expression "md + 100" identifier + number_literal) )))) << number_literal)) ;) (expression_statement "iVar7 = iVar6 << 3;" (assignment_expression "iVar7 = iVar6 << 3" identifier = (binary_expression "iVar6 << 3" identifier << number_literal)) ;) (expression_statement "pbStack_9c = local_64;" (assignment_expression "pbStack_9c = local_64" identifier = identifier) ;) (expression_statement "puStack_98 = c_00;" (assignment_expression "puStack_98 = c_00" identifier = identifier) ;) (expression_statement "pbStack_94 = param_2;" (assignment_expression "pbStack_94 = param_2" identifier = identifier) ;) (expression_statement "pbStack_90 = pbVar4;" (assignment_expression "pbStack_90 = pbVar4" identifier = identifier) ;) (expression_statement "pbStack_8c = pbVar1;" (assignment_expression "pbStack_8c = pbVar1" identifier = identifier) ;) (expression_statement "pbStack_88 = abStack_44;" (assignment_expression "pbStack_88 = abStack_44" identifier = identifier) ;) (expression_statement "pcStack_84 = pcVar9;" (assignment_expression "pcStack_84 = pcVar9" identifier = identifier) ;) (expression_statement "(**(code **)(puVar8 + 0x94790))(&uStack_e4,0,iVar5,0x40);" (call_expression "(**(code **)(puVar8 + 0x94790))(&uStack_e4,0,iVar5,0x40)" (parenthesized_expression "(**(code **)(puVar8 + 0x94790))" ( (pointer_expression "**(code **)(puVar8 + 0x94790)" * (pointer_expression "*(code **)(puVar8 + 0x94790)" * (cast_expression "(code **)(puVar8 + 0x94790)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x94790)" ( (binary_expression "puVar8 + 0x94790" identifier + number_literal) ))))) )) (argument_list "(&uStack_e4,0,iVar5,0x40)" ( (pointer_expression "&uStack_e4" & identifier) , number_literal , identifier , number_literal ))) ;) (expression_statement "uStack_e4 = 0x80;" (assignment_expression "uStack_e4 = 0x80" identifier = number_literal) ;) (expression_statement "SHA256_Bytes(md,&uStack_e4,iVar5);" (call_expression "SHA256_Bytes(md,&uStack_e4,iVar5)" identifier (argument_list "(md,&uStack_e4,iVar5)" ( identifier , (pointer_expression "&uStack_e4" & identifier) , identifier ))) ;) (expression_statement "uStack_e4 = (undefined1)((uint)iVar3 >> 0x18);" (assignment_expression "uStack_e4 = (undefined1)((uint)iVar3 >> 0x18)" identifier = (call_expression "(undefined1)((uint)iVar3 >> 0x18)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar3 >> 0x18)" ( (binary_expression "(uint)iVar3 >> 0x18" (cast_expression "(uint)iVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uStack_e3 = (undefined1)((uint)iVar3 >> 0x10);" (assignment_expression "uStack_e3 = (undefined1)((uint)iVar3 >> 0x10)" identifier = (call_expression "(undefined1)((uint)iVar3 >> 0x10)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar3 >> 0x10)" ( (binary_expression "(uint)iVar3 >> 0x10" (cast_expression "(uint)iVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uStack_e2 = (undefined1)((uint)iVar3 >> 8);" (assignment_expression "uStack_e2 = (undefined1)((uint)iVar3 >> 8)" identifier = (call_expression "(undefined1)((uint)iVar3 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar3 >> 8)" ( (binary_expression "(uint)iVar3 >> 8" (cast_expression "(uint)iVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uStack_e0 = (undefined1)((uint)iVar7 >> 0x18);" (assignment_expression "uStack_e0 = (undefined1)((uint)iVar7 >> 0x18)" identifier = (call_expression "(undefined1)((uint)iVar7 >> 0x18)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar7 >> 0x18)" ( (binary_expression "(uint)iVar7 >> 0x18" (cast_expression "(uint)iVar7" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uStack_df = (undefined1)((uint)iVar7 >> 0x10);" (assignment_expression "uStack_df = (undefined1)((uint)iVar7 >> 0x10)" identifier = (call_expression "(undefined1)((uint)iVar7 >> 0x10)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar7 >> 0x10)" ( (binary_expression "(uint)iVar7 >> 0x10" (cast_expression "(uint)iVar7" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uStack_de = (undefined1)((uint)iVar7 >> 8);" (assignment_expression "uStack_de = (undefined1)((uint)iVar7 >> 8)" identifier = (call_expression "(undefined1)((uint)iVar7 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar7 >> 8)" ( (binary_expression "(uint)iVar7 >> 8" (cast_expression "(uint)iVar7" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uStack_dd = (undefined1)iVar7;" (assignment_expression "uStack_dd = (undefined1)iVar7" identifier = (cast_expression "(undefined1)iVar7" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "bStack_e1 = (byte)iVar3 | (byte)((uint)iVar6 >> 0x1d);" (assignment_expression "bStack_e1 = (byte)iVar3 | (byte)((uint)iVar6 >> 0x1d)" identifier = (binary_expression "(byte)iVar3 | (byte)((uint)iVar6 >> 0x1d)" (cast_expression "(byte)iVar3" ( (type_descriptor "byte" type_identifier) ) identifier) | (call_expression "(byte)((uint)iVar6 >> 0x1d)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)iVar6 >> 0x1d)" ( (binary_expression "(uint)iVar6 >> 0x1d" (cast_expression "(uint)iVar6" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) ))))) ;) (expression_statement "SHA256_Bytes(md,&uStack_e4,8);" (call_expression "SHA256_Bytes(md,&uStack_e4,8)" identifier (argument_list "(md,&uStack_e4,8)" ( identifier , (pointer_expression "&uStack_e4" & identifier) , number_literal ))) ;) (expression_statement "c = (SHA256_CTX *)(pbVar2 + 0x20);" (assignment_expression "c = (SHA256_CTX *)(pbVar2 + 0x20)" identifier = (cast_expression "(SHA256_CTX *)(pbVar2 + 0x20)" ( (type_descriptor "SHA256_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 0x20)" ( (binary_expression "pbVar2 + 0x20" identifier + number_literal) )))) ;) (do_statement "do {\n    *pbVar2 = *md;\n    pbVar2[1] = (byte)*(undefined2 *)md;\n    pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);\n    pbVar2[3] = (byte)*(undefined4 *)md;\n    pbVar2 = pbVar2 + 4;\n    md = md + 4;\n  } while ((SHA256_CTX *)pbVar2 != c);" do (compound_statement "{\n    *pbVar2 = *md;\n    pbVar2[1] = (byte)*(undefined2 *)md;\n    pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);\n    pbVar2[3] = (byte)*(undefined4 *)md;\n    pbVar2 = pbVar2 + 4;\n    md = md + 4;\n  }" { (expression_statement "*pbVar2 = *md;" (assignment_expression "*pbVar2 = *md" (pointer_expression "*pbVar2" * identifier) = (pointer_expression "*md" * identifier)) ;) (expression_statement "pbVar2[1] = (byte)*(undefined2 *)md;" (assignment_expression "pbVar2[1] = (byte)*(undefined2 *)md" (subscript_expression "pbVar2[1]" identifier [ number_literal ]) = (binary_expression "(byte)*(undefined2 *)md" (parenthesized_expression "(byte)" ( identifier )) * (cast_expression "(undefined2 *)md" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);" (assignment_expression "pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8)" (subscript_expression "pbVar2[2]" identifier [ number_literal ]) = (call_expression "(byte)((uint)*(undefined4 *)md >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)*(undefined4 *)md >> 8)" ( (binary_expression "(uint)*(undefined4 *)md >> 8" (binary_expression "(uint)*(undefined4 *)md" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(undefined4 *)md" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) >> number_literal) )))) ;) (expression_statement "pbVar2[3] = (byte)*(undefined4 *)md;" (assignment_expression "pbVar2[3] = (byte)*(undefined4 *)md" (subscript_expression "pbVar2[3]" identifier [ number_literal ]) = (binary_expression "(byte)*(undefined4 *)md" (parenthesized_expression "(byte)" ( identifier )) * (cast_expression "(undefined4 *)md" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pbVar2 = pbVar2 + 4;" (assignment_expression "pbVar2 = pbVar2 + 4" identifier = (binary_expression "pbVar2 + 4" identifier + number_literal)) ;) (expression_statement "md = md + 4;" (assignment_expression "md = md + 4" identifier = (binary_expression "md + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "((SHA256_CTX *)pbVar2 != c)" ( (binary_expression "(SHA256_CTX *)pbVar2 != c" (cast_expression "(SHA256_CTX *)pbVar2" ( (type_descriptor "SHA256_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) != identifier) )) ;) (if_statement "if (iStack_a4 == **(int **)(puVar8 + 0x94be8)) {\n    return;\n  }" if (parenthesized_expression "(iStack_a4 == **(int **)(puVar8 + 0x94be8))" ( (binary_expression "iStack_a4 == **(int **)(puVar8 + 0x94be8)" identifier == (pointer_expression "**(int **)(puVar8 + 0x94be8)" * (pointer_expression "*(int **)(puVar8 + 0x94be8)" * (cast_expression "(int **)(puVar8 + 0x94be8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x94be8)" ( (binary_expression "puVar8 + 0x94be8" identifier + number_literal) )))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(**(code **)(puVar8 + 0x94880))();" (call_expression "(**(code **)(puVar8 + 0x94880))()" (parenthesized_expression "(**(code **)(puVar8 + 0x94880))" ( (pointer_expression "**(code **)(puVar8 + 0x94880)" * (pointer_expression "*(code **)(puVar8 + 0x94880)" * (cast_expression "(code **)(puVar8 + 0x94880)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x94880)" ( (binary_expression "puVar8 + 0x94880" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "SHA256_Final(md,c);" (call_expression "SHA256_Final(md,c)" identifier (argument_list "(md,c)" ( identifier , identifier ))) ;) (expression_statement "FUN_0008cf24(md);" (call_expression "FUN_0008cf24(md)" identifier (argument_list "(md)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) ^ (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) ^ (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & (field_expression IDENT -> field_identifier))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) << LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression & IDENT) , LIT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) | (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) != IDENT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0008d8dc(SHA256_CTX *param_1,byte *param_2)\n\n{\n  byte *pbVar1;\n  byte *md;\n  byte *pbVar2;\n  SHA256_CTX *c;\n  uint *c_00;\n  int iVar3;\n  byte *pbVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  undefined1 uStack_e4;\n  undefined1 uStack_e3;\n  undefined1 uStack_e2;\n  byte bStack_e1;\n  undefined1 uStack_e0;\n  undefined1 uStack_df;\n  undefined1 uStack_de;\n  undefined1 uStack_dd;\n  int iStack_a4;\n  byte *pbStack_9c;\n  uint *puStack_98;\n  byte *pbStack_94;\n  byte *pbStack_90;\n  byte *pbStack_8c;\n  byte *pbStack_88;\n  code *pcStack_84;\n  byte local_64 [32];\n  byte abStack_44 [32];\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_00122654;\n  pbVar4 = local_64;\n  (*(code *)PTR_memset_001220dc)(pbVar4,0x36,0x40);\n  pbVar1 = pbVar4;\n  pbVar2 = param_2;\n  do {\n    *pbVar1 = *pbVar1 ^ *pbVar2;\n    pbVar1 = pbVar1 + 1;\n    pbVar2 = pbVar2 + 1;\n  } while (pbVar1 != abStack_44);\n  SHA256_Init(param_1);\n  SHA256_Bytes(param_1,local_64,0x40);\n  (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  pbVar1 = param_2;\n  do {\n    *pbVar4 = *pbVar4 ^ *pbVar1;\n    pbVar4 = pbVar4 + 1;\n    pbVar1 = pbVar1 + 1;\n  } while (pbVar4 != abStack_44);\n  c_00 = &param_1->md_len;\n  SHA256_Init((SHA256_CTX *)c_00);\n  SHA256_Bytes(c_00,local_64,0x40);\n  pbVar2 = &DAT_00000040;\n  md = local_64;\n  (*(code *)PTR_smemclr_00121358)();\n  if (local_24 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  pcVar9 = SHA256_Final;\n  puVar8 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iStack_a4 = **(int **)(puVar8 + 0x94be8);\n  iVar5 = *(int *)(md + 0x60);\n  if (iVar5 < 0x38) {\n    iVar5 = 0x38 - iVar5;\n  }\n  else {\n    iVar5 = 0x78 - iVar5;\n  }\n  iVar6 = *(int *)(md + 0x68);\n  iVar3 = *(int *)(md + 100) << 3;\n  iVar7 = iVar6 << 3;\n  pbStack_9c = local_64;\n  puStack_98 = c_00;\n  pbStack_94 = param_2;\n  pbStack_90 = pbVar4;\n  pbStack_8c = pbVar1;\n  pbStack_88 = abStack_44;\n  pcStack_84 = pcVar9;\n  (**(code **)(puVar8 + 0x94790))(&uStack_e4,0,iVar5,0x40);\n  uStack_e4 = 0x80;\n  SHA256_Bytes(md,&uStack_e4,iVar5);\n  uStack_e4 = (undefined1)((uint)iVar3 >> 0x18);\n  uStack_e3 = (undefined1)((uint)iVar3 >> 0x10);\n  uStack_e2 = (undefined1)((uint)iVar3 >> 8);\n  uStack_e0 = (undefined1)((uint)iVar7 >> 0x18);\n  uStack_df = (undefined1)((uint)iVar7 >> 0x10);\n  uStack_de = (undefined1)((uint)iVar7 >> 8);\n  uStack_dd = (undefined1)iVar7;\n  bStack_e1 = (byte)iVar3 | (byte)((uint)iVar6 >> 0x1d);\n  SHA256_Bytes(md,&uStack_e4,8);\n  c = (SHA256_CTX *)(pbVar2 + 0x20);\n  do {\n    *pbVar2 = *md;\n    pbVar2[1] = (byte)*(undefined2 *)md;\n    pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);\n    pbVar2[3] = (byte)*(undefined4 *)md;\n    pbVar2 = pbVar2 + 4;\n    md = md + 4;\n  } while ((SHA256_CTX *)pbVar2 != c);\n  if (iStack_a4 == **(int **)(puVar8 + 0x94be8)) {\n    return;\n  }\n  (**(code **)(puVar8 + 0x94880))();\n  SHA256_Final(md,c);\n  FUN_0008cf24(md);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0008d8dc(SHA256_CTX *param_1,byte *param_2)" (identifier "FUN_0008d8dc") (parameter_list "(SHA256_CTX *param_1,byte *param_2)" (( "(") (parameter_declaration "SHA256_CTX *param_1" (type_identifier "SHA256_CTX") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  byte *md;\n  byte *pbVar2;\n  SHA256_CTX *c;\n  uint *c_00;\n  int iVar3;\n  byte *pbVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  undefined1 uStack_e4;\n  undefined1 uStack_e3;\n  undefined1 uStack_e2;\n  byte bStack_e1;\n  undefined1 uStack_e0;\n  undefined1 uStack_df;\n  undefined1 uStack_de;\n  undefined1 uStack_dd;\n  int iStack_a4;\n  byte *pbStack_9c;\n  uint *puStack_98;\n  byte *pbStack_94;\n  byte *pbStack_90;\n  byte *pbStack_8c;\n  byte *pbStack_88;\n  code *pcStack_84;\n  byte local_64 [32];\n  byte abStack_44 [32];\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_00122654;\n  pbVar4 = local_64;\n  (*(code *)PTR_memset_001220dc)(pbVar4,0x36,0x40);\n  pbVar1 = pbVar4;\n  pbVar2 = param_2;\n  do {\n    *pbVar1 = *pbVar1 ^ *pbVar2;\n    pbVar1 = pbVar1 + 1;\n    pbVar2 = pbVar2 + 1;\n  } while (pbVar1 != abStack_44);\n  SHA256_Init(param_1);\n  SHA256_Bytes(param_1,local_64,0x40);\n  (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  pbVar1 = param_2;\n  do {\n    *pbVar4 = *pbVar4 ^ *pbVar1;\n    pbVar4 = pbVar4 + 1;\n    pbVar1 = pbVar1 + 1;\n  } while (pbVar4 != abStack_44);\n  c_00 = &param_1->md_len;\n  SHA256_Init((SHA256_CTX *)c_00);\n  SHA256_Bytes(c_00,local_64,0x40);\n  pbVar2 = &DAT_00000040;\n  md = local_64;\n  (*(code *)PTR_smemclr_00121358)();\n  if (local_24 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  pcVar9 = SHA256_Final;\n  puVar8 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iStack_a4 = **(int **)(puVar8 + 0x94be8);\n  iVar5 = *(int *)(md + 0x60);\n  if (iVar5 < 0x38) {\n    iVar5 = 0x38 - iVar5;\n  }\n  else {\n    iVar5 = 0x78 - iVar5;\n  }\n  iVar6 = *(int *)(md + 0x68);\n  iVar3 = *(int *)(md + 100) << 3;\n  iVar7 = iVar6 << 3;\n  pbStack_9c = local_64;\n  puStack_98 = c_00;\n  pbStack_94 = param_2;\n  pbStack_90 = pbVar4;\n  pbStack_8c = pbVar1;\n  pbStack_88 = abStack_44;\n  pcStack_84 = pcVar9;\n  (**(code **)(puVar8 + 0x94790))(&uStack_e4,0,iVar5,0x40);\n  uStack_e4 = 0x80;\n  SHA256_Bytes(md,&uStack_e4,iVar5);\n  uStack_e4 = (undefined1)((uint)iVar3 >> 0x18);\n  uStack_e3 = (undefined1)((uint)iVar3 >> 0x10);\n  uStack_e2 = (undefined1)((uint)iVar3 >> 8);\n  uStack_e0 = (undefined1)((uint)iVar7 >> 0x18);\n  uStack_df = (undefined1)((uint)iVar7 >> 0x10);\n  uStack_de = (undefined1)((uint)iVar7 >> 8);\n  uStack_dd = (undefined1)iVar7;\n  bStack_e1 = (byte)iVar3 | (byte)((uint)iVar6 >> 0x1d);\n  SHA256_Bytes(md,&uStack_e4,8);\n  c = (SHA256_CTX *)(pbVar2 + 0x20);\n  do {\n    *pbVar2 = *md;\n    pbVar2[1] = (byte)*(undefined2 *)md;\n    pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);\n    pbVar2[3] = (byte)*(undefined4 *)md;\n    pbVar2 = pbVar2 + 4;\n    md = md + 4;\n  } while ((SHA256_CTX *)pbVar2 != c);\n  if (iStack_a4 == **(int **)(puVar8 + 0x94be8)) {\n    return;\n  }\n  (**(code **)(puVar8 + 0x94880))();\n  SHA256_Final(md,c);\n  FUN_0008cf24(md);\n  return;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "byte *md;" (type_identifier "byte") (pointer_declarator "*md" (* "*") (identifier "md")) (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "SHA256_CTX *c;" (type_identifier "SHA256_CTX") (pointer_declarator "*c" (* "*") (identifier "c")) (; ";")) (declaration "uint *c_00;" (type_identifier "uint") (pointer_declarator "*c_00" (* "*") (identifier "c_00")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined *puVar8;" (type_identifier "undefined") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "code *pcVar9;" (type_identifier "code") (pointer_declarator "*pcVar9" (* "*") (identifier "pcVar9")) (; ";")) (declaration "undefined1 uStack_e4;" (type_identifier "undefined1") (identifier "uStack_e4") (; ";")) (declaration "undefined1 uStack_e3;" (type_identifier "undefined1") (identifier "uStack_e3") (; ";")) (declaration "undefined1 uStack_e2;" (type_identifier "undefined1") (identifier "uStack_e2") (; ";")) (declaration "byte bStack_e1;" (type_identifier "byte") (identifier "bStack_e1") (; ";")) (declaration "undefined1 uStack_e0;" (type_identifier "undefined1") (identifier "uStack_e0") (; ";")) (declaration "undefined1 uStack_df;" (type_identifier "undefined1") (identifier "uStack_df") (; ";")) (declaration "undefined1 uStack_de;" (type_identifier "undefined1") (identifier "uStack_de") (; ";")) (declaration "undefined1 uStack_dd;" (type_identifier "undefined1") (identifier "uStack_dd") (; ";")) (declaration "int iStack_a4;" (primitive_type "int") (identifier "iStack_a4") (; ";")) (declaration "byte *pbStack_9c;" (type_identifier "byte") (pointer_declarator "*pbStack_9c" (* "*") (identifier "pbStack_9c")) (; ";")) (declaration "uint *puStack_98;" (type_identifier "uint") (pointer_declarator "*puStack_98" (* "*") (identifier "puStack_98")) (; ";")) (declaration "byte *pbStack_94;" (type_identifier "byte") (pointer_declarator "*pbStack_94" (* "*") (identifier "pbStack_94")) (; ";")) (declaration "byte *pbStack_90;" (type_identifier "byte") (pointer_declarator "*pbStack_90" (* "*") (identifier "pbStack_90")) (; ";")) (declaration "byte *pbStack_8c;" (type_identifier "byte") (pointer_declarator "*pbStack_8c" (* "*") (identifier "pbStack_8c")) (; ";")) (declaration "byte *pbStack_88;" (type_identifier "byte") (pointer_declarator "*pbStack_88" (* "*") (identifier "pbStack_88")) (; ";")) (declaration "code *pcStack_84;" (type_identifier "code") (pointer_declarator "*pcStack_84" (* "*") (identifier "pcStack_84")) (; ";")) (declaration "byte local_64 [32];" (type_identifier "byte") (array_declarator "local_64 [32]" (identifier "local_64") ([ "[") (number_literal "32") (] "]")) (; ";")) (declaration "byte abStack_44 [32];" (type_identifier "byte") (array_declarator "abStack_44 [32]" (identifier "abStack_44") ([ "[") (number_literal "32") (] "]")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_00122654;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_00122654" (identifier "local_24") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00122654" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00122654")))) (; ";")) (expression_statement "pbVar4 = local_64;" (assignment_expression "pbVar4 = local_64" (identifier "pbVar4") (= "=") (identifier "local_64")) (; ";")) (expression_statement "(*(code *)PTR_memset_001220dc)(pbVar4,0x36,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(pbVar4,0x36,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" (( "(") (pointer_expression "*(code *)PTR_memset_001220dc" (* "*") (cast_expression "(code *)PTR_memset_001220dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_001220dc"))) () ")")) (argument_list "(pbVar4,0x36,0x40)" (( "(") (identifier "pbVar4") (, ",") (number_literal "0x36") (, ",") (number_literal "0x40") () ")"))) (; ";")) (expression_statement "pbVar1 = pbVar4;" (assignment_expression "pbVar1 = pbVar4" (identifier "pbVar1") (= "=") (identifier "pbVar4")) (; ";")) (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" (identifier "pbVar2") (= "=") (identifier "param_2")) (; ";")) (do_statement "do {\n    *pbVar1 = *pbVar1 ^ *pbVar2;\n    pbVar1 = pbVar1 + 1;\n    pbVar2 = pbVar2 + 1;\n  } while (pbVar1 != abStack_44);" (do "do") (compound_statement "{\n    *pbVar1 = *pbVar1 ^ *pbVar2;\n    pbVar1 = pbVar1 + 1;\n    pbVar2 = pbVar2 + 1;\n  }" ({ "{") (expression_statement "*pbVar1 = *pbVar1 ^ *pbVar2;" (assignment_expression "*pbVar1 = *pbVar1 ^ *pbVar2" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (= "=") (binary_expression "*pbVar1 ^ *pbVar2" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (^ "^") (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")))) (; ";")) (expression_statement "pbVar1 = pbVar1 + 1;" (assignment_expression "pbVar1 = pbVar1 + 1" (identifier "pbVar1") (= "=") (binary_expression "pbVar1 + 1" (identifier "pbVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pbVar1 != abStack_44)" (( "(") (binary_expression "pbVar1 != abStack_44" (identifier "pbVar1") (!= "!=") (identifier "abStack_44")) () ")")) (; ";")) (expression_statement "SHA256_Init(param_1);" (call_expression "SHA256_Init(param_1)" (identifier "SHA256_Init") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "SHA256_Bytes(param_1,local_64,0x40);" (call_expression "SHA256_Bytes(param_1,local_64,0x40)" (identifier "SHA256_Bytes") (argument_list "(param_1,local_64,0x40)" (( "(") (identifier "param_1") (, ",") (identifier "local_64") (, ",") (number_literal "0x40") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" (( "(") (pointer_expression "*(code *)PTR_memset_001220dc" (* "*") (cast_expression "(code *)PTR_memset_001220dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_001220dc"))) () ")")) (argument_list "(local_64,0x5c,0x40)" (( "(") (identifier "local_64") (, ",") (number_literal "0x5c") (, ",") (number_literal "0x40") () ")"))) (; ";")) (expression_statement "pbVar1 = param_2;" (assignment_expression "pbVar1 = param_2" (identifier "pbVar1") (= "=") (identifier "param_2")) (; ";")) (do_statement "do {\n    *pbVar4 = *pbVar4 ^ *pbVar1;\n    pbVar4 = pbVar4 + 1;\n    pbVar1 = pbVar1 + 1;\n  } while (pbVar4 != abStack_44);" (do "do") (compound_statement "{\n    *pbVar4 = *pbVar4 ^ *pbVar1;\n    pbVar4 = pbVar4 + 1;\n    pbVar1 = pbVar1 + 1;\n  }" ({ "{") (expression_statement "*pbVar4 = *pbVar4 ^ *pbVar1;" (assignment_expression "*pbVar4 = *pbVar4 ^ *pbVar1" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (= "=") (binary_expression "*pbVar4 ^ *pbVar1" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (^ "^") (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")))) (; ";")) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + 1" (identifier "pbVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar1 = pbVar1 + 1;" (assignment_expression "pbVar1 = pbVar1 + 1" (identifier "pbVar1") (= "=") (binary_expression "pbVar1 + 1" (identifier "pbVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pbVar4 != abStack_44)" (( "(") (binary_expression "pbVar4 != abStack_44" (identifier "pbVar4") (!= "!=") (identifier "abStack_44")) () ")")) (; ";")) (expression_statement "c_00 = &param_1->md_len;" (assignment_expression "c_00 = &param_1->md_len" (identifier "c_00") (= "=") (pointer_expression "&param_1->md_len" (& "&") (field_expression "param_1->md_len" (identifier "param_1") (-> "->") (field_identifier "md_len")))) (; ";")) (expression_statement "SHA256_Init((SHA256_CTX *)c_00);" (call_expression "SHA256_Init((SHA256_CTX *)c_00)" (identifier "SHA256_Init") (argument_list "((SHA256_CTX *)c_00)" (( "(") (cast_expression "(SHA256_CTX *)c_00" (( "(") (type_descriptor "SHA256_CTX *" (type_identifier "SHA256_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "c_00")) () ")"))) (; ";")) (expression_statement "SHA256_Bytes(c_00,local_64,0x40);" (call_expression "SHA256_Bytes(c_00,local_64,0x40)" (identifier "SHA256_Bytes") (argument_list "(c_00,local_64,0x40)" (( "(") (identifier "c_00") (, ",") (identifier "local_64") (, ",") (number_literal "0x40") () ")"))) (; ";")) (expression_statement "pbVar2 = &DAT_00000040;" (assignment_expression "pbVar2 = &DAT_00000040" (identifier "pbVar2") (= "=") (pointer_expression "&DAT_00000040" (& "&") (identifier "DAT_00000040"))) (; ";")) (expression_statement "md = local_64;" (assignment_expression "md = local_64" (identifier "md") (= "=") (identifier "local_64")) (; ";")) (expression_statement "(*(code *)PTR_smemclr_00121358)();" (call_expression "(*(code *)PTR_smemclr_00121358)()" (parenthesized_expression "(*(code *)PTR_smemclr_00121358)" (( "(") (pointer_expression "*(code *)PTR_smemclr_00121358" (* "*") (cast_expression "(code *)PTR_smemclr_00121358" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_smemclr_00121358"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (local_24 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_24 == *(int *)PTR___stack_chk_guard_00122654)" (( "(") (binary_expression "local_24 == *(int *)PTR___stack_chk_guard_00122654" (identifier "local_24") (== "==") (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00122654" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00122654")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar9 = SHA256_Final;" (assignment_expression "pcVar9 = SHA256_Final" (identifier "pcVar9") (= "=") (identifier "SHA256_Final")) (; ";")) (expression_statement "puVar8 = PTR___stack_chk_fail_001222ec;" (assignment_expression "puVar8 = PTR___stack_chk_fail_001222ec" (identifier "puVar8") (= "=") (identifier "PTR___stack_chk_fail_001222ec")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_001222ec)();" (call_expression "(*(code *)PTR___stack_chk_fail_001222ec)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001222ec)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_001222ec" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_001222ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_001222ec"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iStack_a4 = **(int **)(puVar8 + 0x94be8);" (assignment_expression "iStack_a4 = **(int **)(puVar8 + 0x94be8)" (identifier "iStack_a4") (= "=") (pointer_expression "**(int **)(puVar8 + 0x94be8)" (* "*") (pointer_expression "*(int **)(puVar8 + 0x94be8)" (* "*") (cast_expression "(int **)(puVar8 + 0x94be8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x94be8)" (( "(") (binary_expression "puVar8 + 0x94be8" (identifier "puVar8") (+ "+") (number_literal "0x94be8")) () ")")))))) (; ";")) (expression_statement "iVar5 = *(int *)(md + 0x60);" (assignment_expression "iVar5 = *(int *)(md + 0x60)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(md + 0x60)" (* "*") (cast_expression "(int *)(md + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(md + 0x60)" (( "(") (binary_expression "md + 0x60" (identifier "md") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (if_statement "if (iVar5 < 0x38) {\n    iVar5 = 0x38 - iVar5;\n  }\n  else {\n    iVar5 = 0x78 - iVar5;\n  }" (if "if") (parenthesized_expression "(iVar5 < 0x38)" (( "(") (binary_expression "iVar5 < 0x38" (identifier "iVar5") (< "<") (number_literal "0x38")) () ")")) (compound_statement "{\n    iVar5 = 0x38 - iVar5;\n  }" ({ "{") (expression_statement "iVar5 = 0x38 - iVar5;" (assignment_expression "iVar5 = 0x38 - iVar5" (identifier "iVar5") (= "=") (binary_expression "0x38 - iVar5" (number_literal "0x38") (- "-") (identifier "iVar5"))) (; ";")) (} "}")) (else_clause "else {\n    iVar5 = 0x78 - iVar5;\n  }" (else "else") (compound_statement "{\n    iVar5 = 0x78 - iVar5;\n  }" ({ "{") (expression_statement "iVar5 = 0x78 - iVar5;" (assignment_expression "iVar5 = 0x78 - iVar5" (identifier "iVar5") (= "=") (binary_expression "0x78 - iVar5" (number_literal "0x78") (- "-") (identifier "iVar5"))) (; ";")) (} "}")))) (expression_statement "iVar6 = *(int *)(md + 0x68);" (assignment_expression "iVar6 = *(int *)(md + 0x68)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(md + 0x68)" (* "*") (cast_expression "(int *)(md + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(md + 0x68)" (( "(") (binary_expression "md + 0x68" (identifier "md") (+ "+") (number_literal "0x68")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(md + 100) << 3;" (assignment_expression "iVar3 = *(int *)(md + 100) << 3" (identifier "iVar3") (= "=") (binary_expression "*(int *)(md + 100) << 3" (pointer_expression "*(int *)(md + 100)" (* "*") (cast_expression "(int *)(md + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(md + 100)" (( "(") (binary_expression "md + 100" (identifier "md") (+ "+") (number_literal "100")) () ")")))) (<< "<<") (number_literal "3"))) (; ";")) (expression_statement "iVar7 = iVar6 << 3;" (assignment_expression "iVar7 = iVar6 << 3" (identifier "iVar7") (= "=") (binary_expression "iVar6 << 3" (identifier "iVar6") (<< "<<") (number_literal "3"))) (; ";")) (expression_statement "pbStack_9c = local_64;" (assignment_expression "pbStack_9c = local_64" (identifier "pbStack_9c") (= "=") (identifier "local_64")) (; ";")) (expression_statement "puStack_98 = c_00;" (assignment_expression "puStack_98 = c_00" (identifier "puStack_98") (= "=") (identifier "c_00")) (; ";")) (expression_statement "pbStack_94 = param_2;" (assignment_expression "pbStack_94 = param_2" (identifier "pbStack_94") (= "=") (identifier "param_2")) (; ";")) (expression_statement "pbStack_90 = pbVar4;" (assignment_expression "pbStack_90 = pbVar4" (identifier "pbStack_90") (= "=") (identifier "pbVar4")) (; ";")) (expression_statement "pbStack_8c = pbVar1;" (assignment_expression "pbStack_8c = pbVar1" (identifier "pbStack_8c") (= "=") (identifier "pbVar1")) (; ";")) (expression_statement "pbStack_88 = abStack_44;" (assignment_expression "pbStack_88 = abStack_44" (identifier "pbStack_88") (= "=") (identifier "abStack_44")) (; ";")) (expression_statement "pcStack_84 = pcVar9;" (assignment_expression "pcStack_84 = pcVar9" (identifier "pcStack_84") (= "=") (identifier "pcVar9")) (; ";")) (expression_statement "(**(code **)(puVar8 + 0x94790))(&uStack_e4,0,iVar5,0x40);" (call_expression "(**(code **)(puVar8 + 0x94790))(&uStack_e4,0,iVar5,0x40)" (parenthesized_expression "(**(code **)(puVar8 + 0x94790))" (( "(") (pointer_expression "**(code **)(puVar8 + 0x94790)" (* "*") (pointer_expression "*(code **)(puVar8 + 0x94790)" (* "*") (cast_expression "(code **)(puVar8 + 0x94790)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x94790)" (( "(") (binary_expression "puVar8 + 0x94790" (identifier "puVar8") (+ "+") (number_literal "0x94790")) () ")"))))) () ")")) (argument_list "(&uStack_e4,0,iVar5,0x40)" (( "(") (pointer_expression "&uStack_e4" (& "&") (identifier "uStack_e4")) (, ",") (number_literal "0") (, ",") (identifier "iVar5") (, ",") (number_literal "0x40") () ")"))) (; ";")) (expression_statement "uStack_e4 = 0x80;" (assignment_expression "uStack_e4 = 0x80" (identifier "uStack_e4") (= "=") (number_literal "0x80")) (; ";")) (expression_statement "SHA256_Bytes(md,&uStack_e4,iVar5);" (call_expression "SHA256_Bytes(md,&uStack_e4,iVar5)" (identifier "SHA256_Bytes") (argument_list "(md,&uStack_e4,iVar5)" (( "(") (identifier "md") (, ",") (pointer_expression "&uStack_e4" (& "&") (identifier "uStack_e4")) (, ",") (identifier "iVar5") () ")"))) (; ";")) (expression_statement "uStack_e4 = (undefined1)((uint)iVar3 >> 0x18);" (assignment_expression "uStack_e4 = (undefined1)((uint)iVar3 >> 0x18)" (identifier "uStack_e4") (= "=") (call_expression "(undefined1)((uint)iVar3 >> 0x18)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((uint)iVar3 >> 0x18)" (( "(") (binary_expression "(uint)iVar3 >> 0x18" (cast_expression "(uint)iVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar3")) (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "uStack_e3 = (undefined1)((uint)iVar3 >> 0x10);" (assignment_expression "uStack_e3 = (undefined1)((uint)iVar3 >> 0x10)" (identifier "uStack_e3") (= "=") (call_expression "(undefined1)((uint)iVar3 >> 0x10)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((uint)iVar3 >> 0x10)" (( "(") (binary_expression "(uint)iVar3 >> 0x10" (cast_expression "(uint)iVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar3")) (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "uStack_e2 = (undefined1)((uint)iVar3 >> 8);" (assignment_expression "uStack_e2 = (undefined1)((uint)iVar3 >> 8)" (identifier "uStack_e2") (= "=") (call_expression "(undefined1)((uint)iVar3 >> 8)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((uint)iVar3 >> 8)" (( "(") (binary_expression "(uint)iVar3 >> 8" (cast_expression "(uint)iVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar3")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "uStack_e0 = (undefined1)((uint)iVar7 >> 0x18);" (assignment_expression "uStack_e0 = (undefined1)((uint)iVar7 >> 0x18)" (identifier "uStack_e0") (= "=") (call_expression "(undefined1)((uint)iVar7 >> 0x18)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((uint)iVar7 >> 0x18)" (( "(") (binary_expression "(uint)iVar7 >> 0x18" (cast_expression "(uint)iVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar7")) (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "uStack_df = (undefined1)((uint)iVar7 >> 0x10);" (assignment_expression "uStack_df = (undefined1)((uint)iVar7 >> 0x10)" (identifier "uStack_df") (= "=") (call_expression "(undefined1)((uint)iVar7 >> 0x10)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((uint)iVar7 >> 0x10)" (( "(") (binary_expression "(uint)iVar7 >> 0x10" (cast_expression "(uint)iVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar7")) (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "uStack_de = (undefined1)((uint)iVar7 >> 8);" (assignment_expression "uStack_de = (undefined1)((uint)iVar7 >> 8)" (identifier "uStack_de") (= "=") (call_expression "(undefined1)((uint)iVar7 >> 8)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((uint)iVar7 >> 8)" (( "(") (binary_expression "(uint)iVar7 >> 8" (cast_expression "(uint)iVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar7")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "uStack_dd = (undefined1)iVar7;" (assignment_expression "uStack_dd = (undefined1)iVar7" (identifier "uStack_dd") (= "=") (cast_expression "(undefined1)iVar7" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (identifier "iVar7"))) (; ";")) (expression_statement "bStack_e1 = (byte)iVar3 | (byte)((uint)iVar6 >> 0x1d);" (assignment_expression "bStack_e1 = (byte)iVar3 | (byte)((uint)iVar6 >> 0x1d)" (identifier "bStack_e1") (= "=") (binary_expression "(byte)iVar3 | (byte)((uint)iVar6 >> 0x1d)" (cast_expression "(byte)iVar3" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "iVar3")) (| "|") (call_expression "(byte)((uint)iVar6 >> 0x1d)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((uint)iVar6 >> 0x1d)" (( "(") (binary_expression "(uint)iVar6 >> 0x1d" (cast_expression "(uint)iVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar6")) (>> ">>") (number_literal "0x1d")) () ")"))))) (; ";")) (expression_statement "SHA256_Bytes(md,&uStack_e4,8);" (call_expression "SHA256_Bytes(md,&uStack_e4,8)" (identifier "SHA256_Bytes") (argument_list "(md,&uStack_e4,8)" (( "(") (identifier "md") (, ",") (pointer_expression "&uStack_e4" (& "&") (identifier "uStack_e4")) (, ",") (number_literal "8") () ")"))) (; ";")) (expression_statement "c = (SHA256_CTX *)(pbVar2 + 0x20);" (assignment_expression "c = (SHA256_CTX *)(pbVar2 + 0x20)" (identifier "c") (= "=") (cast_expression "(SHA256_CTX *)(pbVar2 + 0x20)" (( "(") (type_descriptor "SHA256_CTX *" (type_identifier "SHA256_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar2 + 0x20)" (( "(") (binary_expression "pbVar2 + 0x20" (identifier "pbVar2") (+ "+") (number_literal "0x20")) () ")")))) (; ";")) (do_statement "do {\n    *pbVar2 = *md;\n    pbVar2[1] = (byte)*(undefined2 *)md;\n    pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);\n    pbVar2[3] = (byte)*(undefined4 *)md;\n    pbVar2 = pbVar2 + 4;\n    md = md + 4;\n  } while ((SHA256_CTX *)pbVar2 != c);" (do "do") (compound_statement "{\n    *pbVar2 = *md;\n    pbVar2[1] = (byte)*(undefined2 *)md;\n    pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);\n    pbVar2[3] = (byte)*(undefined4 *)md;\n    pbVar2 = pbVar2 + 4;\n    md = md + 4;\n  }" ({ "{") (expression_statement "*pbVar2 = *md;" (assignment_expression "*pbVar2 = *md" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (pointer_expression "*md" (* "*") (identifier "md"))) (; ";")) (expression_statement "pbVar2[1] = (byte)*(undefined2 *)md;" (assignment_expression "pbVar2[1] = (byte)*(undefined2 *)md" (subscript_expression "pbVar2[1]" (identifier "pbVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(byte)*(undefined2 *)md" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (* "*") (cast_expression "(undefined2 *)md" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "md")))) (; ";")) (expression_statement "pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);" (assignment_expression "pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8)" (subscript_expression "pbVar2[2]" (identifier "pbVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (call_expression "(byte)((uint)*(undefined4 *)md >> 8)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((uint)*(undefined4 *)md >> 8)" (( "(") (binary_expression "(uint)*(undefined4 *)md >> 8" (binary_expression "(uint)*(undefined4 *)md" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(undefined4 *)md" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "md"))) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "pbVar2[3] = (byte)*(undefined4 *)md;" (assignment_expression "pbVar2[3] = (byte)*(undefined4 *)md" (subscript_expression "pbVar2[3]" (identifier "pbVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "(byte)*(undefined4 *)md" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (* "*") (cast_expression "(undefined4 *)md" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "md")))) (; ";")) (expression_statement "pbVar2 = pbVar2 + 4;" (assignment_expression "pbVar2 = pbVar2 + 4" (identifier "pbVar2") (= "=") (binary_expression "pbVar2 + 4" (identifier "pbVar2") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "md = md + 4;" (assignment_expression "md = md + 4" (identifier "md") (= "=") (binary_expression "md + 4" (identifier "md") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((SHA256_CTX *)pbVar2 != c)" (( "(") (binary_expression "(SHA256_CTX *)pbVar2 != c" (cast_expression "(SHA256_CTX *)pbVar2" (( "(") (type_descriptor "SHA256_CTX *" (type_identifier "SHA256_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "pbVar2")) (!= "!=") (identifier "c")) () ")")) (; ";")) (if_statement "if (iStack_a4 == **(int **)(puVar8 + 0x94be8)) {\n    return;\n  }" (if "if") (parenthesized_expression "(iStack_a4 == **(int **)(puVar8 + 0x94be8))" (( "(") (binary_expression "iStack_a4 == **(int **)(puVar8 + 0x94be8)" (identifier "iStack_a4") (== "==") (pointer_expression "**(int **)(puVar8 + 0x94be8)" (* "*") (pointer_expression "*(int **)(puVar8 + 0x94be8)" (* "*") (cast_expression "(int **)(puVar8 + 0x94be8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x94be8)" (( "(") (binary_expression "puVar8 + 0x94be8" (identifier "puVar8") (+ "+") (number_literal "0x94be8")) () ")")))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(**(code **)(puVar8 + 0x94880))();" (call_expression "(**(code **)(puVar8 + 0x94880))()" (parenthesized_expression "(**(code **)(puVar8 + 0x94880))" (( "(") (pointer_expression "**(code **)(puVar8 + 0x94880)" (* "*") (pointer_expression "*(code **)(puVar8 + 0x94880)" (* "*") (cast_expression "(code **)(puVar8 + 0x94880)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x94880)" (( "(") (binary_expression "puVar8 + 0x94880" (identifier "puVar8") (+ "+") (number_literal "0x94880")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "SHA256_Final(md,c);" (call_expression "SHA256_Final(md,c)" (identifier "SHA256_Final") (argument_list "(md,c)" (( "(") (identifier "md") (, ",") (identifier "c") () ")"))) (; ";")) (expression_statement "FUN_0008cf24(md);" (call_expression "FUN_0008cf24(md)" (identifier "FUN_0008cf24") (argument_list "(md)" (( "(") (identifier "md") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (field_expression argument: (identifier) field: (field_identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

void MASKED(SHA256_CTX *param_1,byte *param_2)

{
  byte *pbVar1;
  byte *md;
  byte *pbVar2;
  SHA256_CTX *c;
  uint *c_00;
  int iVar3;
  byte *pbVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  undefined *puVar8;
  code *pcVar9;
  undefined1 uStack_e4;
  undefined1 uStack_e3;
  undefined1 uStack_e2;
  byte bStack_e1;
  undefined1 uStack_e0;
  undefined1 uStack_df;
  undefined1 uStack_de;
  undefined1 uStack_dd;
  int iStack_a4;
  byte *pbStack_9c;
  uint *puStack_98;
  byte *pbStack_94;
  byte *pbStack_90;
  byte *pbStack_8c;
  byte *pbStack_88;
  code *pcStack_84;
  byte local_64 [32];
  byte abStack_44 [32];
  int local_24;
  
  local_24 = *(int *)PTR___stack_chk_guard_00122654;
  pbVar4 = local_64;
  (*(code *)PTR_memset_001220dc)(pbVar4,0x36,0x40);
  pbVar1 = pbVar4;
  pbVar2 = param_2;
  do {
    *pbVar1 = *pbVar1 ^ *pbVar2;
    pbVar1 = pbVar1 + 1;
    pbVar2 = pbVar2 + 1;
  } while (pbVar1 != abStack_44);
  SHA256_Init(param_1);
  SHA256_Bytes(param_1,local_64,0x40);
  (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);
  pbVar1 = param_2;
  do {
    *pbVar4 = *pbVar4 ^ *pbVar1;
    pbVar4 = pbVar4 + 1;
    pbVar1 = pbVar1 + 1;
  } while (pbVar4 != abStack_44);
  c_00 = &param_1->md_len;
  SHA256_Init((SHA256_CTX *)c_00);
  SHA256_Bytes(c_00,local_64,0x40);
  pbVar2 = &DAT_00000040;
  md = local_64;
  (*(code *)PTR_smemclr_00121358)();
  if (local_24 == *(int *)PTR___stack_chk_guard_00122654) {
    return;
  }
  pcVar9 = SHA256_Final;
  puVar8 = PTR___stack_chk_fail_001222ec;
  (*(code *)PTR___stack_chk_fail_001222ec)();
  iStack_a4 = **(int **)(puVar8 + 0x94be8);
  iVar5 = *(int *)(md + 0x60);
  if (iVar5 < 0x38) {
    iVar5 = 0x38 - iVar5;
  }
  else {
    iVar5 = 0x78 - iVar5;
  }
  iVar6 = *(int *)(md + 0x68);
  iVar3 = *(int *)(md + 100) << 3;
  iVar7 = iVar6 << 3;
  pbStack_9c = local_64;
  puStack_98 = c_00;
  pbStack_94 = param_2;
  pbStack_90 = pbVar4;
  pbStack_8c = pbVar1;
  pbStack_88 = abStack_44;
  pcStack_84 = pcVar9;
  (**(code **)(puVar8 + 0x94790))(&uStack_e4,0,iVar5,0x40);
  uStack_e4 = 0x80;
  SHA256_Bytes(md,&uStack_e4,iVar5);
  uStack_e4 = (undefined1)((uint)iVar3 >> 0x18);
  uStack_e3 = (undefined1)((uint)iVar3 >> 0x10);
  uStack_e2 = (undefined1)((uint)iVar3 >> 8);
  uStack_e0 = (undefined1)((uint)iVar7 >> 0x18);
  uStack_df = (undefined1)((uint)iVar7 >> 0x10);
  uStack_de = (undefined1)((uint)iVar7 >> 8);
  uStack_dd = (undefined1)iVar7;
  bStack_e1 = (byte)iVar3 | (byte)((uint)iVar6 >> 0x1d);
  SHA256_Bytes(md,&uStack_e4,8);
  c = (SHA256_CTX *)(pbVar2 + 0x20);
  do {
    *pbVar2 = *md;
    pbVar2[1] = (byte)*(undefined2 *)md;
    pbVar2[2] = (byte)((uint)*(undefined4 *)md >> 8);
    pbVar2[3] = (byte)*(undefined4 *)md;
    pbVar2 = pbVar2 + 4;
    md = md + 4;
  } while ((SHA256_CTX *)pbVar2 != c);
  if (iStack_a4 == **(int **)(puVar8 + 0x94be8)) {
    return;
  }
  (**(code **)(puVar8 + 0x94880))();
  SHA256_Final(md,c);
  FUN_0008cf24(md);
  return;
}

