
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void des3_ssh2_sdctr(void *handle,uchar *blk,int len)

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  int in_GS_OFFSET;
  word32 local_44;
  uint local_40;
  word32 local_3c;
  word32 b [2];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if ((len & 7U) != 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,__PRETTY_FUNCTION___4220);
  }
  local_3c = *(word32 *)((int)handle + 0x80);
  local_44 = *(word32 *)((int)handle + 0x84);
  if (len != 0) {
    local_40 = 0;
    do {
      des_encipher(b,local_3c,local_44,(DESContext *)handle);
      des_decipher(b,b[0],b[1],(DESContext *)((int)handle + 0x88));
      des_encipher(b,b[0],b[1],(DESContext *)((int)handle + 0x110));
      uVar2 = *(uint *)blk;
      local_44 = local_44 + 1;
      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[0];
      *(byte *)((int)blk + 3) = (byte)(uVar2 >> 0x18) ^ (byte)b[0];
      uVar2 = *(uint *)((int)blk + 4);
      *(char *)((int)blk + 2) = (char)(uVar3 >> 8);
      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[1];
      *blk = (char)(uVar3 >> 0x18);
      *(byte *)((int)blk + 7) = (byte)(uVar2 >> 0x18) ^ (byte)b[1];
      *(char *)((int)blk + 1) = (char)(uVar3 >> 0x10);
      *(char *)((int)blk + 6) = (char)(uVar4 >> 8);
      *(char *)((int)blk + 4) = (char)(uVar4 >> 0x18);
      *(char *)((int)blk + 5) = (char)(uVar4 >> 0x10);
      local_3c = local_3c + (local_44 == 0);
      local_40 = local_40 + 8;
      blk = (uchar *)((int)blk + 8);
    } while (local_40 < (uint)len);
  }
  *(word32 *)((int)handle + 0x84) = local_44;
  *(word32 *)((int)handle + 0x80) = local_3c;
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_00025e00(int param_1,uint *param_2,uint param_3)

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  int in_GS_OFFSET;
  int local_44;
  uint local_40;
  int local_3c;
  uint local_28;
  uint local_24;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if ((param_3 & 7) != 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");
  }
  local_3c = *(int *)(param_1 + 0x80);
  local_44 = *(int *)(param_1 + 0x84);
  if (param_3 != 0) {
    local_40 = 0;
    do {
      FUN_00024450(param_1);
      FUN_00024d50(param_1 + 0x88);
      FUN_00024450(param_1 + 0x110);
      uVar2 = *param_2;
      local_44 = local_44 + 1;
      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;
      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;
      uVar2 = param_2[1];
      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);
      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;
      *(char *)param_2 = (char)(uVar3 >> 0x18);
      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;
      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);
      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);
      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);
      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);
      local_3c = local_3c + (uint)(local_44 == 0);
      local_40 = local_40 + 8;
      param_2 = param_2 + 2;
    } while (local_40 < param_3);
  }
  *(int *)(param_1 + 0x84) = local_44;
  *(int *)(param_1 + 0x80) = local_3c;
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0003dc30();
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014540
ADD EBX,0x3705b
SUB ESP,0x3c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x2c],EAX
XOR EAX,EAX
MOV EAX,dword ptr [ESP + 0x58]
MOV EDI,dword ptr [ESP + 0x50]
MOV ESI,dword ptr [ESP + 0x54]
AND EAX,0x7
MOV dword ptr [ESP + 0xc],EAX
JNZ 0x00025f5c
MOV EAX,dword ptr [EDI + 0x80]
MOV ECX,dword ptr [ESP + 0x58]
MOV EBX,dword ptr [EDI + 0x84]
MOV dword ptr [ESP + 0x10],EAX
TEST ECX,ECX
JZ 0x00025f37
LEA EAX,[EDI + 0x88]
MOV dword ptr [ESP + 0x8],EBX
MOV dword ptr [ESP + 0x18],EAX
LEA EAX,[EDI + 0x110]
MOV dword ptr [ESP + 0x14],EAX
LEA EAX,[ESP + 0x24]
MOV dword ptr [ESP + 0x1c],EAX
LEA ESI,[ESI]
NOP
SUB ESP,0xc
ADD ESI,0x8
PUSH EDI
MOV EBX,dword ptr [ESP + 0x2c]
MOV ECX,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [ESP + 0x20]
MOV EAX,EBX
CALL 0x00024450
POP EAX
PUSH dword ptr [ESP + 0x24]
MOV EAX,EBX
MOV ECX,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [ESP + 0x34]
CALL 0x00024d50
POP EDX
PUSH dword ptr [ESP + 0x20]
MOV EAX,EBX
MOV ECX,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [ESP + 0x34]
CALL 0x00024450
MOV EAX,dword ptr [ESI + -0x8]
MOV ECX,dword ptr [ESP + 0x34]
ADD dword ptr [ESP + 0x18],0x1
BSWAP EAX
MOV EDX,EAX
XOR EAX,ECX
XOR EDX,ECX
MOV byte ptr [ESI + -0x5],AL
MOV EAX,dword ptr [ESI + -0x4]
MOV EBP,EDX
MOV ECX,dword ptr [ESP + 0x38]
MOV byte ptr [ESI + -0x6],DH
SHR EBP,0x18
BSWAP EAX
MOV EBX,EBP
MOV EBP,EDX
MOV EDX,EAX
XOR EAX,ECX
XOR EDX,ECX
SHR EBP,0x10
MOV byte ptr [ESI + -0x8],BL
MOV EBX,EBP
MOV EBP,EDX
MOV byte ptr [ESI + -0x1],AL
MOV EAX,dword ptr [ESP + 0x18]
SHR EBP,0x18
MOV byte ptr [ESI + -0x7],BL
ADD ESP,0x10
MOV EBX,EBP
MOV EBP,EDX
MOV byte ptr [ESI + -0x2],DH
SHR EBP,0x10
MOV byte ptr [ESI + -0x4],BL
MOV EBX,EBP
MOV byte ptr [ESI + -0x3],BL
CMP EAX,0x1
ADC dword ptr [ESP + 0x10],0x0
ADD dword ptr [ESP + 0xc],0x8
MOV EAX,dword ptr [ESP + 0xc]
CMP dword ptr [ESP + 0x58],EAX
JA 0x00025e78
MOV EBX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [ESP + 0x10]
MOV dword ptr [EDI + 0x84],EBX
MOV dword ptr [EDI + 0x80],EAX
MOV EAX,dword ptr [ESP + 0x2c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00025f7b
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xfffe707c]
PUSH EAX
LEA EAX,[EBX + 0xfffe6ffb]
PUSH 0x2d9
PUSH EAX
LEA EAX,[EBX + 0xfffe5ca7]
PUSH EAX
CALL 0x00012550
CALL 0x0003dc30
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00025e00(int param_1,uint *param_2,uint param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  int local_44;\n  uint local_40;\n  int local_3c;\n  uint local_28;\n  uint local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_3 & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");\n  }\n  local_3c = *(int *)(param_1 + 0x80);\n  local_44 = *(int *)(param_1 + 0x84);\n  if (param_3 != 0) {\n    local_40 = 0;\n    do {\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    } while (local_40 < param_3);\n  }\n  *(int *)(param_1 + 0x84) = local_44;\n  *(int *)(param_1 + 0x80) = local_3c;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0003dc30();\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00025e00(int param_1,uint *param_2,uint param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  int local_44;\n  uint local_40;\n  int local_3c;\n  uint local_28;\n  uint local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_3 & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");\n  }\n  local_3c = *(int *)(param_1 + 0x80);\n  local_44 = *(int *)(param_1 + 0x84);\n  if (param_3 != 0) {\n    local_40 = 0;\n    do {\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    } while (local_40 < param_3);\n  }\n  *(int *)(param_1 + 0x84) = local_44;\n  *(int *)(param_1 + 0x80) = local_3c;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0003dc30();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00025e00(int param_1,uint *param_2,uint param_3)" identifier (parameter_list "(int param_1,uint *param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  int local_44;\n  uint local_40;\n  int local_3c;\n  uint local_28;\n  uint local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_3 & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");\n  }\n  local_3c = *(int *)(param_1 + 0x80);\n  local_44 = *(int *)(param_1 + 0x84);\n  if (param_3 != 0) {\n    local_40 = 0;\n    do {\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    } while (local_40 < param_3);\n  }\n  *(int *)(param_1 + 0x84) = local_44;\n  *(int *)(param_1 + 0x80) = local_3c;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0003dc30();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "uint local_40;" type_identifier identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((param_3 & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");\n  }" if (parenthesized_expression "((param_3 & 7) != 0)" ( (binary_expression "(param_3 & 7) != 0" (parenthesized_expression "(param_3 & 7)" ( (binary_expression "param_3 & 7" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");\n  }" { comment (expression_statement "__assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");" (call_expression "__assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3")" identifier (argument_list "("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3")" ( (string_literal ""(len & 7) == 0"" " string_content ") , (string_literal ""sshdes.c"" " string_content ") , number_literal , (string_literal ""des_sdctr3"" " string_content ") ))) ;) })) (expression_statement "local_3c = *(int *)(param_1 + 0x80);" (assignment_expression "local_3c = *(int *)(param_1 + 0x80)" identifier = (pointer_expression "*(int *)(param_1 + 0x80)" * (cast_expression "(int *)(param_1 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) ))))) ;) (expression_statement "local_44 = *(int *)(param_1 + 0x84);" (assignment_expression "local_44 = *(int *)(param_1 + 0x84)" identifier = (pointer_expression "*(int *)(param_1 + 0x84)" * (cast_expression "(int *)(param_1 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) ))))) ;) (if_statement "if (param_3 != 0) {\n    local_40 = 0;\n    do {\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    } while (local_40 < param_3);\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    local_40 = 0;\n    do {\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    } while (local_40 < param_3);\n  }" { (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (do_statement "do {\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    } while (local_40 < param_3);" do (compound_statement "{\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    }" { (expression_statement "FUN_00024450(param_1);" (call_expression "FUN_00024450(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_00024d50(param_1 + 0x88);" (call_expression "FUN_00024d50(param_1 + 0x88)" identifier (argument_list "(param_1 + 0x88)" ( (binary_expression "param_1 + 0x88" identifier + number_literal) ))) ;) (expression_statement "FUN_00024450(param_1 + 0x110);" (call_expression "FUN_00024450(param_1 + 0x110)" identifier (argument_list "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) ))) ;) (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "local_44 = local_44 + 1;" (assignment_expression "local_44 = local_44 + 1" identifier = (binary_expression "local_44 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;" (assignment_expression "uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28" identifier = (binary_expression "((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28" (parenthesized_expression "((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18)" ( (binary_expression "(uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "(uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal)) )) ^ identifier)) ;) (expression_statement "*(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;" (assignment_expression "*(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28" (pointer_expression "*(byte *)((int)param_2 + 3)" * (cast_expression "(byte *)((int)param_2 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 3)" ( (binary_expression "(int)param_2 + 3" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(byte)(uVar2 >> 0x18) ^ (byte)local_28" (call_expression "(byte)(uVar2 >> 0x18)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar2 >> 0x18)" ( (binary_expression "uVar2 >> 0x18" identifier >> number_literal) ))) ^ (cast_expression "(byte)local_28" ( (type_descriptor "byte" type_identifier) ) identifier))) ;) (expression_statement "uVar2 = param_2[1];" (assignment_expression "uVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);" (assignment_expression "*(char *)((int)param_2 + 2) = (char)(uVar3 >> 8)" (pointer_expression "*(char *)((int)param_2 + 2)" * (cast_expression "(char *)((int)param_2 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 2)" ( (binary_expression "(int)param_2 + 2" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(uVar3 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar3 >> 8)" ( (binary_expression "uVar3 >> 8" identifier >> number_literal) )))) ;) (expression_statement "uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;" (assignment_expression "uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24" identifier = (binary_expression "((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24" (parenthesized_expression "((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18)" ( (binary_expression "(uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "(uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal)) )) ^ identifier)) ;) (expression_statement "*(char *)param_2 = (char)(uVar3 >> 0x18);" (assignment_expression "*(char *)param_2 = (char)(uVar3 >> 0x18)" (pointer_expression "*(char *)param_2" * (cast_expression "(char *)param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(char)(uVar3 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar3 >> 0x18)" ( (binary_expression "uVar3 >> 0x18" identifier >> number_literal) )))) ;) (expression_statement "*(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;" (assignment_expression "*(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24" (pointer_expression "*(byte *)((int)param_2 + 7)" * (cast_expression "(byte *)((int)param_2 + 7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 7)" ( (binary_expression "(int)param_2 + 7" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(byte)(uVar2 >> 0x18) ^ (byte)local_24" (call_expression "(byte)(uVar2 >> 0x18)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar2 >> 0x18)" ( (binary_expression "uVar2 >> 0x18" identifier >> number_literal) ))) ^ (cast_expression "(byte)local_24" ( (type_descriptor "byte" type_identifier) ) identifier))) ;) (expression_statement "*(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);" (assignment_expression "*(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10)" (pointer_expression "*(char *)((int)param_2 + 1)" * (cast_expression "(char *)((int)param_2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 1)" ( (binary_expression "(int)param_2 + 1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(uVar3 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar3 >> 0x10)" ( (binary_expression "uVar3 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "*(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);" (assignment_expression "*(char *)((int)param_2 + 6) = (char)(uVar4 >> 8)" (pointer_expression "*(char *)((int)param_2 + 6)" * (cast_expression "(char *)((int)param_2 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 6)" ( (binary_expression "(int)param_2 + 6" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(uVar4 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar4 >> 8)" ( (binary_expression "uVar4 >> 8" identifier >> number_literal) )))) ;) (expression_statement "*(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);" (assignment_expression "*(char *)(param_2 + 1) = (char)(uVar4 >> 0x18)" (pointer_expression "*(char *)(param_2 + 1)" * (cast_expression "(char *)(param_2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) = (cast_expression "(char)(uVar4 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar4 >> 0x18)" ( (binary_expression "uVar4 >> 0x18" identifier >> number_literal) )))) ;) (expression_statement "*(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);" (assignment_expression "*(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10)" (pointer_expression "*(char *)((int)param_2 + 5)" * (cast_expression "(char *)((int)param_2 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 5)" ( (binary_expression "(int)param_2 + 5" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(uVar4 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar4 >> 0x10)" ( (binary_expression "uVar4 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "local_3c = local_3c + (uint)(local_44 == 0);" (assignment_expression "local_3c = local_3c + (uint)(local_44 == 0)" identifier = (binary_expression "local_3c + (uint)(local_44 == 0)" identifier + (call_expression "(uint)(local_44 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_44 == 0)" ( (binary_expression "local_44 == 0" identifier == number_literal) ))))) ;) (expression_statement "local_40 = local_40 + 8;" (assignment_expression "local_40 = local_40 + 8" identifier = (binary_expression "local_40 + 8" identifier + number_literal)) ;) (expression_statement "param_2 = param_2 + 2;" (assignment_expression "param_2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_40 < param_3)" ( (binary_expression "local_40 < param_3" identifier < identifier) )) ;) })) (expression_statement "*(int *)(param_1 + 0x84) = local_44;" (assignment_expression "*(int *)(param_1 + 0x84) = local_44" (pointer_expression "*(int *)(param_1 + 0x84)" * (cast_expression "(int *)(param_1 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x80) = local_3c;" (assignment_expression "*(int *)(param_1 + 0x80) = local_3c" (pointer_expression "*(int *)(param_1 + 0x80)" * (cast_expression "(int *)(param_1 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0003dc30();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0003dc30();\n  }" { comment (expression_statement "FUN_0003dc30();" (call_expression "FUN_0003dc30()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid des3_ssh2_sdctr(void *handle,uchar *blk,int len)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  word32 local_44;\n  uint local_40;\n  word32 local_3c;\n  word32 b [2];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((len & 7U) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,__PRETTY_FUNCTION___4220);\n  }\n  local_3c = *(word32 *)((int)handle + 0x80);\n  local_44 = *(word32 *)((int)handle + 0x84);\n  if (len != 0) {\n    local_40 = 0;\n    do {\n      des_encipher(b,local_3c,local_44,(DESContext *)handle);\n      des_decipher(b,b[0],b[1],(DESContext *)((int)handle + 0x88));\n      des_encipher(b,b[0],b[1],(DESContext *)((int)handle + 0x110));\n      uVar2 = *(uint *)blk;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[0];\n      *(byte *)((int)blk + 3) = (byte)(uVar2 >> 0x18) ^ (byte)b[0];\n      uVar2 = *(uint *)((int)blk + 4);\n      *(char *)((int)blk + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[1];\n      *blk = (char)(uVar3 >> 0x18);\n      *(byte *)((int)blk + 7) = (byte)(uVar2 >> 0x18) ^ (byte)b[1];\n      *(char *)((int)blk + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)blk + 6) = (char)(uVar4 >> 8);\n      *(char *)((int)blk + 4) = (char)(uVar4 >> 0x18);\n      *(char *)((int)blk + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (local_44 == 0);\n      local_40 = local_40 + 8;\n      blk = (uchar *)((int)blk + 8);\n    } while (local_40 < (uint)len);\n  }\n  *(word32 *)((int)handle + 0x84) = local_44;\n  *(word32 *)((int)handle + 0x80) = local_3c;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}\n\n" comment comment (function_definition "void des3_ssh2_sdctr(void *handle,uchar *blk,int len)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  word32 local_44;\n  uint local_40;\n  word32 local_3c;\n  word32 b [2];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((len & 7U) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,__PRETTY_FUNCTION___4220);\n  }\n  local_3c = *(word32 *)((int)handle + 0x80);\n  local_44 = *(word32 *)((int)handle + 0x84);\n  if (len != 0) {\n    local_40 = 0;\n    do {\n      des_encipher(b,local_3c,local_44,(DESContext *)handle);\n      des_decipher(b,b[0],b[1],(DESContext *)((int)handle + 0x88));\n      des_encipher(b,b[0],b[1],(DESContext *)((int)handle + 0x110));\n      uVar2 = *(uint *)blk;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[0];\n      *(byte *)((int)blk + 3) = (byte)(uVar2 >> 0x18) ^ (byte)b[0];\n      uVar2 = *(uint *)((int)blk + 4);\n      *(char *)((int)blk + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[1];\n      *blk = (char)(uVar3 >> 0x18);\n      *(byte *)((int)blk + 7) = (byte)(uVar2 >> 0x18) ^ (byte)b[1];\n      *(char *)((int)blk + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)blk + 6) = (char)(uVar4 >> 8);\n      *(char *)((int)blk + 4) = (char)(uVar4 >> 0x18);\n      *(char *)((int)blk + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (local_44 == 0);\n      local_40 = local_40 + 8;\n      blk = (uchar *)((int)blk + 8);\n    } while (local_40 < (uint)len);\n  }\n  *(word32 *)((int)handle + 0x84) = local_44;\n  *(word32 *)((int)handle + 0x80) = local_3c;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" primitive_type (function_declarator "des3_ssh2_sdctr(void *handle,uchar *blk,int len)" identifier (parameter_list "(void *handle,uchar *blk,int len)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "uchar *blk" type_identifier (pointer_declarator "*blk" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  word32 local_44;\n  uint local_40;\n  word32 local_3c;\n  word32 b [2];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((len & 7U) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,__PRETTY_FUNCTION___4220);\n  }\n  local_3c = *(word32 *)((int)handle + 0x80);\n  local_44 = *(word32 *)((int)handle + 0x84);\n  if (len != 0) {\n    local_40 = 0;\n    do {\n      des_encipher(b,local_3c,local_44,(DESContext *)handle);\n      des_decipher(b,b[0],b[1],(DESContext *)((int)handle + 0x88));\n      des_encipher(b,b[0],b[1],(DESContext *)((int)handle + 0x110));\n      uVar2 = *(uint *)blk;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[0];\n      *(byte *)((int)blk + 3) = (byte)(uVar2 >> 0x18) ^ (byte)b[0];\n      uVar2 = *(uint *)((int)blk + 4);\n      *(char *)((int)blk + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[1];\n      *blk = (char)(uVar3 >> 0x18);\n      *(byte *)((int)blk + 7) = (byte)(uVar2 >> 0x18) ^ (byte)b[1];\n      *(char *)((int)blk + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)blk + 6) = (char)(uVar4 >> 8);\n      *(char *)((int)blk + 4) = (char)(uVar4 >> 0x18);\n      *(char *)((int)blk + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (local_44 == 0);\n      local_40 = local_40 + 8;\n      blk = (uchar *)((int)blk + 8);\n    } while (local_40 < (uint)len);\n  }\n  *(word32 *)((int)handle + 0x84) = local_44;\n  *(word32 *)((int)handle + 0x80) = local_3c;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "word32 local_44;" type_identifier identifier ;) (declaration "uint local_40;" type_identifier identifier ;) (declaration "word32 local_3c;" type_identifier identifier ;) (declaration "word32 b [2];" type_identifier (array_declarator "b [2]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((len & 7U) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,__PRETTY_FUNCTION___4220);\n  }" if (parenthesized_expression "((len & 7U) != 0)" ( (binary_expression "(len & 7U) != 0" (parenthesized_expression "(len & 7U)" ( (binary_expression "len & 7U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,__PRETTY_FUNCTION___4220);\n  }" { comment (expression_statement "__assert_fail("(len & 7) == 0","sshdes.c",0x2d9,__PRETTY_FUNCTION___4220);" (call_expression "__assert_fail("(len & 7) == 0","sshdes.c",0x2d9,__PRETTY_FUNCTION___4220)" identifier (argument_list "("(len & 7) == 0","sshdes.c",0x2d9,__PRETTY_FUNCTION___4220)" ( (string_literal ""(len & 7) == 0"" " string_content ") , (string_literal ""sshdes.c"" " string_content ") , number_literal , identifier ))) ;) })) (expression_statement "local_3c = *(word32 *)((int)handle + 0x80);" (assignment_expression "local_3c = *(word32 *)((int)handle + 0x80)" identifier = (pointer_expression "*(word32 *)((int)handle + 0x80)" * (cast_expression "(word32 *)((int)handle + 0x80)" ( (type_descriptor "word32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x80)" ( (binary_expression "(int)handle + 0x80" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "local_44 = *(word32 *)((int)handle + 0x84);" (assignment_expression "local_44 = *(word32 *)((int)handle + 0x84)" identifier = (pointer_expression "*(word32 *)((int)handle + 0x84)" * (cast_expression "(word32 *)((int)handle + 0x84)" ( (type_descriptor "word32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x84)" ( (binary_expression "(int)handle + 0x84" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (len != 0) {\n    local_40 = 0;\n    do {\n      des_encipher(b,local_3c,local_44,(DESContext *)handle);\n      des_decipher(b,b[0],b[1],(DESContext *)((int)handle + 0x88));\n      des_encipher(b,b[0],b[1],(DESContext *)((int)handle + 0x110));\n      uVar2 = *(uint *)blk;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[0];\n      *(byte *)((int)blk + 3) = (byte)(uVar2 >> 0x18) ^ (byte)b[0];\n      uVar2 = *(uint *)((int)blk + 4);\n      *(char *)((int)blk + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[1];\n      *blk = (char)(uVar3 >> 0x18);\n      *(byte *)((int)blk + 7) = (byte)(uVar2 >> 0x18) ^ (byte)b[1];\n      *(char *)((int)blk + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)blk + 6) = (char)(uVar4 >> 8);\n      *(char *)((int)blk + 4) = (char)(uVar4 >> 0x18);\n      *(char *)((int)blk + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (local_44 == 0);\n      local_40 = local_40 + 8;\n      blk = (uchar *)((int)blk + 8);\n    } while (local_40 < (uint)len);\n  }" if (parenthesized_expression "(len != 0)" ( (binary_expression "len != 0" identifier != number_literal) )) (compound_statement "{\n    local_40 = 0;\n    do {\n      des_encipher(b,local_3c,local_44,(DESContext *)handle);\n      des_decipher(b,b[0],b[1],(DESContext *)((int)handle + 0x88));\n      des_encipher(b,b[0],b[1],(DESContext *)((int)handle + 0x110));\n      uVar2 = *(uint *)blk;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[0];\n      *(byte *)((int)blk + 3) = (byte)(uVar2 >> 0x18) ^ (byte)b[0];\n      uVar2 = *(uint *)((int)blk + 4);\n      *(char *)((int)blk + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[1];\n      *blk = (char)(uVar3 >> 0x18);\n      *(byte *)((int)blk + 7) = (byte)(uVar2 >> 0x18) ^ (byte)b[1];\n      *(char *)((int)blk + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)blk + 6) = (char)(uVar4 >> 8);\n      *(char *)((int)blk + 4) = (char)(uVar4 >> 0x18);\n      *(char *)((int)blk + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (local_44 == 0);\n      local_40 = local_40 + 8;\n      blk = (uchar *)((int)blk + 8);\n    } while (local_40 < (uint)len);\n  }" { (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (do_statement "do {\n      des_encipher(b,local_3c,local_44,(DESContext *)handle);\n      des_decipher(b,b[0],b[1],(DESContext *)((int)handle + 0x88));\n      des_encipher(b,b[0],b[1],(DESContext *)((int)handle + 0x110));\n      uVar2 = *(uint *)blk;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[0];\n      *(byte *)((int)blk + 3) = (byte)(uVar2 >> 0x18) ^ (byte)b[0];\n      uVar2 = *(uint *)((int)blk + 4);\n      *(char *)((int)blk + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[1];\n      *blk = (char)(uVar3 >> 0x18);\n      *(byte *)((int)blk + 7) = (byte)(uVar2 >> 0x18) ^ (byte)b[1];\n      *(char *)((int)blk + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)blk + 6) = (char)(uVar4 >> 8);\n      *(char *)((int)blk + 4) = (char)(uVar4 >> 0x18);\n      *(char *)((int)blk + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (local_44 == 0);\n      local_40 = local_40 + 8;\n      blk = (uchar *)((int)blk + 8);\n    } while (local_40 < (uint)len);" do (compound_statement "{\n      des_encipher(b,local_3c,local_44,(DESContext *)handle);\n      des_decipher(b,b[0],b[1],(DESContext *)((int)handle + 0x88));\n      des_encipher(b,b[0],b[1],(DESContext *)((int)handle + 0x110));\n      uVar2 = *(uint *)blk;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[0];\n      *(byte *)((int)blk + 3) = (byte)(uVar2 >> 0x18) ^ (byte)b[0];\n      uVar2 = *(uint *)((int)blk + 4);\n      *(char *)((int)blk + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[1];\n      *blk = (char)(uVar3 >> 0x18);\n      *(byte *)((int)blk + 7) = (byte)(uVar2 >> 0x18) ^ (byte)b[1];\n      *(char *)((int)blk + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)blk + 6) = (char)(uVar4 >> 8);\n      *(char *)((int)blk + 4) = (char)(uVar4 >> 0x18);\n      *(char *)((int)blk + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (local_44 == 0);\n      local_40 = local_40 + 8;\n      blk = (uchar *)((int)blk + 8);\n    }" { (expression_statement "des_encipher(b,local_3c,local_44,(DESContext *)handle);" (call_expression "des_encipher(b,local_3c,local_44,(DESContext *)handle)" identifier (argument_list "(b,local_3c,local_44,(DESContext *)handle)" ( identifier , identifier , identifier , (cast_expression "(DESContext *)handle" ( (type_descriptor "DESContext *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "des_decipher(b,b[0],b[1],(DESContext *)((int)handle + 0x88));" (call_expression "des_decipher(b,b[0],b[1],(DESContext *)((int)handle + 0x88))" identifier (argument_list "(b,b[0],b[1],(DESContext *)((int)handle + 0x88))" ( identifier , (subscript_expression "b[0]" identifier [ number_literal ]) , (subscript_expression "b[1]" identifier [ number_literal ]) , (cast_expression "(DESContext *)((int)handle + 0x88)" ( (type_descriptor "DESContext *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x88)" ( (binary_expression "(int)handle + 0x88" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) ))) ;) (expression_statement "des_encipher(b,b[0],b[1],(DESContext *)((int)handle + 0x110));" (call_expression "des_encipher(b,b[0],b[1],(DESContext *)((int)handle + 0x110))" identifier (argument_list "(b,b[0],b[1],(DESContext *)((int)handle + 0x110))" ( identifier , (subscript_expression "b[0]" identifier [ number_literal ]) , (subscript_expression "b[1]" identifier [ number_literal ]) , (cast_expression "(DESContext *)((int)handle + 0x110)" ( (type_descriptor "DESContext *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x110)" ( (binary_expression "(int)handle + 0x110" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) ))) ;) (expression_statement "uVar2 = *(uint *)blk;" (assignment_expression "uVar2 = *(uint *)blk" identifier = (pointer_expression "*(uint *)blk" * (cast_expression "(uint *)blk" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_44 = local_44 + 1;" (assignment_expression "local_44 = local_44 + 1" identifier = (binary_expression "local_44 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[0];" (assignment_expression "uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[0]" identifier = (binary_expression "((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[0]" (parenthesized_expression "((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18)" ( (binary_expression "(uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "(uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal)) )) ^ (subscript_expression "b[0]" identifier [ number_literal ]))) ;) (expression_statement "*(byte *)((int)blk + 3) = (byte)(uVar2 >> 0x18) ^ (byte)b[0];" (assignment_expression "*(byte *)((int)blk + 3) = (byte)(uVar2 >> 0x18) ^ (byte)b[0]" (pointer_expression "*(byte *)((int)blk + 3)" * (cast_expression "(byte *)((int)blk + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)blk + 3)" ( (binary_expression "(int)blk + 3" (cast_expression "(int)blk" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(byte)(uVar2 >> 0x18) ^ (byte)b[0]" (call_expression "(byte)(uVar2 >> 0x18)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar2 >> 0x18)" ( (binary_expression "uVar2 >> 0x18" identifier >> number_literal) ))) ^ (cast_expression "(byte)b[0]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "b[0]" identifier [ number_literal ])))) ;) (expression_statement "uVar2 = *(uint *)((int)blk + 4);" (assignment_expression "uVar2 = *(uint *)((int)blk + 4)" identifier = (pointer_expression "*(uint *)((int)blk + 4)" * (cast_expression "(uint *)((int)blk + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)blk + 4)" ( (binary_expression "(int)blk + 4" (cast_expression "(int)blk" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*(char *)((int)blk + 2) = (char)(uVar3 >> 8);" (assignment_expression "*(char *)((int)blk + 2) = (char)(uVar3 >> 8)" (pointer_expression "*(char *)((int)blk + 2)" * (cast_expression "(char *)((int)blk + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)blk + 2)" ( (binary_expression "(int)blk + 2" (cast_expression "(int)blk" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(uVar3 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar3 >> 8)" ( (binary_expression "uVar3 >> 8" identifier >> number_literal) )))) ;) (expression_statement "uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[1];" (assignment_expression "uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[1]" identifier = (binary_expression "((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ b[1]" (parenthesized_expression "((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18)" ( (binary_expression "(uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "(uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal)) )) ^ (subscript_expression "b[1]" identifier [ number_literal ]))) ;) (expression_statement "*blk = (char)(uVar3 >> 0x18);" (assignment_expression "*blk = (char)(uVar3 >> 0x18)" (pointer_expression "*blk" * identifier) = (cast_expression "(char)(uVar3 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar3 >> 0x18)" ( (binary_expression "uVar3 >> 0x18" identifier >> number_literal) )))) ;) (expression_statement "*(byte *)((int)blk + 7) = (byte)(uVar2 >> 0x18) ^ (byte)b[1];" (assignment_expression "*(byte *)((int)blk + 7) = (byte)(uVar2 >> 0x18) ^ (byte)b[1]" (pointer_expression "*(byte *)((int)blk + 7)" * (cast_expression "(byte *)((int)blk + 7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)blk + 7)" ( (binary_expression "(int)blk + 7" (cast_expression "(int)blk" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(byte)(uVar2 >> 0x18) ^ (byte)b[1]" (call_expression "(byte)(uVar2 >> 0x18)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar2 >> 0x18)" ( (binary_expression "uVar2 >> 0x18" identifier >> number_literal) ))) ^ (cast_expression "(byte)b[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "b[1]" identifier [ number_literal ])))) ;) (expression_statement "*(char *)((int)blk + 1) = (char)(uVar3 >> 0x10);" (assignment_expression "*(char *)((int)blk + 1) = (char)(uVar3 >> 0x10)" (pointer_expression "*(char *)((int)blk + 1)" * (cast_expression "(char *)((int)blk + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)blk + 1)" ( (binary_expression "(int)blk + 1" (cast_expression "(int)blk" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(uVar3 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar3 >> 0x10)" ( (binary_expression "uVar3 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "*(char *)((int)blk + 6) = (char)(uVar4 >> 8);" (assignment_expression "*(char *)((int)blk + 6) = (char)(uVar4 >> 8)" (pointer_expression "*(char *)((int)blk + 6)" * (cast_expression "(char *)((int)blk + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)blk + 6)" ( (binary_expression "(int)blk + 6" (cast_expression "(int)blk" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(uVar4 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar4 >> 8)" ( (binary_expression "uVar4 >> 8" identifier >> number_literal) )))) ;) (expression_statement "*(char *)((int)blk + 4) = (char)(uVar4 >> 0x18);" (assignment_expression "*(char *)((int)blk + 4) = (char)(uVar4 >> 0x18)" (pointer_expression "*(char *)((int)blk + 4)" * (cast_expression "(char *)((int)blk + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)blk + 4)" ( (binary_expression "(int)blk + 4" (cast_expression "(int)blk" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(uVar4 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar4 >> 0x18)" ( (binary_expression "uVar4 >> 0x18" identifier >> number_literal) )))) ;) (expression_statement "*(char *)((int)blk + 5) = (char)(uVar4 >> 0x10);" (assignment_expression "*(char *)((int)blk + 5) = (char)(uVar4 >> 0x10)" (pointer_expression "*(char *)((int)blk + 5)" * (cast_expression "(char *)((int)blk + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)blk + 5)" ( (binary_expression "(int)blk + 5" (cast_expression "(int)blk" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(uVar4 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar4 >> 0x10)" ( (binary_expression "uVar4 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "local_3c = local_3c + (local_44 == 0);" (assignment_expression "local_3c = local_3c + (local_44 == 0)" identifier = (binary_expression "local_3c + (local_44 == 0)" identifier + (parenthesized_expression "(local_44 == 0)" ( (binary_expression "local_44 == 0" identifier == number_literal) )))) ;) (expression_statement "local_40 = local_40 + 8;" (assignment_expression "local_40 = local_40 + 8" identifier = (binary_expression "local_40 + 8" identifier + number_literal)) ;) (expression_statement "blk = (uchar *)((int)blk + 8);" (assignment_expression "blk = (uchar *)((int)blk + 8)" identifier = (cast_expression "(uchar *)((int)blk + 8)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)blk + 8)" ( (binary_expression "(int)blk + 8" (cast_expression "(int)blk" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }) while (parenthesized_expression "(local_40 < (uint)len)" ( (binary_expression "local_40 < (uint)len" identifier < (cast_expression "(uint)len" ( (type_descriptor "uint" type_identifier) ) identifier)) )) ;) })) (expression_statement "*(word32 *)((int)handle + 0x84) = local_44;" (assignment_expression "*(word32 *)((int)handle + 0x84) = local_44" (pointer_expression "*(word32 *)((int)handle + 0x84)" * (cast_expression "(word32 *)((int)handle + 0x84)" ( (type_descriptor "word32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x84)" ( (binary_expression "(int)handle + 0x84" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(word32 *)((int)handle + 0x80) = local_3c;" (assignment_expression "*(word32 *)((int)handle + 0x80) = local_3c" (pointer_expression "*(word32 *)((int)handle + 0x80)" * (cast_expression "(word32 *)((int)handle + 0x80)" ( (type_descriptor "word32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x80)" ( (binary_expression "(int)handle + 0x80" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00025e00(int param_1,uint *param_2,uint param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  int local_44;\n  uint local_40;\n  int local_3c;\n  uint local_28;\n  uint local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_3 & 7) != 0) {\n                    \n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");\n  }\n  local_3c = *(int *)(param_1 + 0x80);\n  local_44 = *(int *)(param_1 + 0x84);\n  if (param_3 != 0) {\n    local_40 = 0;\n    do {\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    } while (local_40 < param_3);\n  }\n  *(int *)(param_1 + 0x84) = local_44;\n  *(int *)(param_1 + 0x80) = local_3c;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0003dc30();\n  }\n  return;\n}\n\n" (function_definition "void FUN_00025e00(int param_1,uint *param_2,uint param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  int local_44;\n  uint local_40;\n  int local_3c;\n  uint local_28;\n  uint local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_3 & 7) != 0) {\n                    \n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");\n  }\n  local_3c = *(int *)(param_1 + 0x80);\n  local_44 = *(int *)(param_1 + 0x84);\n  if (param_3 != 0) {\n    local_40 = 0;\n    do {\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    } while (local_40 < param_3);\n  }\n  *(int *)(param_1 + 0x84) = local_44;\n  *(int *)(param_1 + 0x80) = local_3c;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0003dc30();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00025e00(int param_1,uint *param_2,uint param_3)" identifier (parameter_list "(int param_1,uint *param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  int local_44;\n  uint local_40;\n  int local_3c;\n  uint local_28;\n  uint local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_3 & 7) != 0) {\n                    \n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");\n  }\n  local_3c = *(int *)(param_1 + 0x80);\n  local_44 = *(int *)(param_1 + 0x84);\n  if (param_3 != 0) {\n    local_40 = 0;\n    do {\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    } while (local_40 < param_3);\n  }\n  *(int *)(param_1 + 0x84) = local_44;\n  *(int *)(param_1 + 0x80) = local_3c;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0003dc30();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "uint local_40;" type_identifier identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((param_3 & 7) != 0) {\n                    \n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");\n  }" if (parenthesized_expression "((param_3 & 7) != 0)" ( (binary_expression "(param_3 & 7) != 0" (parenthesized_expression "(param_3 & 7)" ( (binary_expression "param_3 & 7" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");\n  }" { (expression_statement "__assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");" (call_expression "__assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3")" identifier (argument_list "("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3")" ( (string_literal ""(len & 7) == 0"" " string_content ") , (string_literal ""sshdes.c"" " string_content ") , number_literal , (string_literal ""des_sdctr3"" " string_content ") ))) ;) })) (expression_statement "local_3c = *(int *)(param_1 + 0x80);" (assignment_expression "local_3c = *(int *)(param_1 + 0x80)" identifier = (pointer_expression "*(int *)(param_1 + 0x80)" * (cast_expression "(int *)(param_1 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) ))))) ;) (expression_statement "local_44 = *(int *)(param_1 + 0x84);" (assignment_expression "local_44 = *(int *)(param_1 + 0x84)" identifier = (pointer_expression "*(int *)(param_1 + 0x84)" * (cast_expression "(int *)(param_1 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) ))))) ;) (if_statement "if (param_3 != 0) {\n    local_40 = 0;\n    do {\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    } while (local_40 < param_3);\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    local_40 = 0;\n    do {\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    } while (local_40 < param_3);\n  }" { (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (do_statement "do {\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    } while (local_40 < param_3);" do (compound_statement "{\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    }" { (expression_statement "FUN_00024450(param_1);" (call_expression "FUN_00024450(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_00024d50(param_1 + 0x88);" (call_expression "FUN_00024d50(param_1 + 0x88)" identifier (argument_list "(param_1 + 0x88)" ( (binary_expression "param_1 + 0x88" identifier + number_literal) ))) ;) (expression_statement "FUN_00024450(param_1 + 0x110);" (call_expression "FUN_00024450(param_1 + 0x110)" identifier (argument_list "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) ))) ;) (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "local_44 = local_44 + 1;" (assignment_expression "local_44 = local_44 + 1" identifier = (binary_expression "local_44 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;" (assignment_expression "uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28" identifier = (binary_expression "((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28" (parenthesized_expression "((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18)" ( (binary_expression "(uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "(uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal)) )) ^ identifier)) ;) (expression_statement "*(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;" (assignment_expression "*(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28" (pointer_expression "*(byte *)((int)param_2 + 3)" * (cast_expression "(byte *)((int)param_2 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 3)" ( (binary_expression "(int)param_2 + 3" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(byte)(uVar2 >> 0x18) ^ (byte)local_28" (call_expression "(byte)(uVar2 >> 0x18)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar2 >> 0x18)" ( (binary_expression "uVar2 >> 0x18" identifier >> number_literal) ))) ^ (cast_expression "(byte)local_28" ( (type_descriptor "byte" type_identifier) ) identifier))) ;) (expression_statement "uVar2 = param_2[1];" (assignment_expression "uVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);" (assignment_expression "*(char *)((int)param_2 + 2) = (char)(uVar3 >> 8)" (pointer_expression "*(char *)((int)param_2 + 2)" * (cast_expression "(char *)((int)param_2 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 2)" ( (binary_expression "(int)param_2 + 2" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(uVar3 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar3 >> 8)" ( (binary_expression "uVar3 >> 8" identifier >> number_literal) )))) ;) (expression_statement "uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;" (assignment_expression "uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24" identifier = (binary_expression "((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24" (parenthesized_expression "((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18)" ( (binary_expression "(uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "(uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal)) )) ^ identifier)) ;) (expression_statement "*(char *)param_2 = (char)(uVar3 >> 0x18);" (assignment_expression "*(char *)param_2 = (char)(uVar3 >> 0x18)" (pointer_expression "*(char *)param_2" * (cast_expression "(char *)param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(char)(uVar3 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar3 >> 0x18)" ( (binary_expression "uVar3 >> 0x18" identifier >> number_literal) )))) ;) (expression_statement "*(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;" (assignment_expression "*(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24" (pointer_expression "*(byte *)((int)param_2 + 7)" * (cast_expression "(byte *)((int)param_2 + 7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 7)" ( (binary_expression "(int)param_2 + 7" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(byte)(uVar2 >> 0x18) ^ (byte)local_24" (call_expression "(byte)(uVar2 >> 0x18)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar2 >> 0x18)" ( (binary_expression "uVar2 >> 0x18" identifier >> number_literal) ))) ^ (cast_expression "(byte)local_24" ( (type_descriptor "byte" type_identifier) ) identifier))) ;) (expression_statement "*(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);" (assignment_expression "*(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10)" (pointer_expression "*(char *)((int)param_2 + 1)" * (cast_expression "(char *)((int)param_2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 1)" ( (binary_expression "(int)param_2 + 1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(uVar3 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar3 >> 0x10)" ( (binary_expression "uVar3 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "*(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);" (assignment_expression "*(char *)((int)param_2 + 6) = (char)(uVar4 >> 8)" (pointer_expression "*(char *)((int)param_2 + 6)" * (cast_expression "(char *)((int)param_2 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 6)" ( (binary_expression "(int)param_2 + 6" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(uVar4 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar4 >> 8)" ( (binary_expression "uVar4 >> 8" identifier >> number_literal) )))) ;) (expression_statement "*(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);" (assignment_expression "*(char *)(param_2 + 1) = (char)(uVar4 >> 0x18)" (pointer_expression "*(char *)(param_2 + 1)" * (cast_expression "(char *)(param_2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) = (cast_expression "(char)(uVar4 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar4 >> 0x18)" ( (binary_expression "uVar4 >> 0x18" identifier >> number_literal) )))) ;) (expression_statement "*(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);" (assignment_expression "*(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10)" (pointer_expression "*(char *)((int)param_2 + 5)" * (cast_expression "(char *)((int)param_2 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 5)" ( (binary_expression "(int)param_2 + 5" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(uVar4 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar4 >> 0x10)" ( (binary_expression "uVar4 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "local_3c = local_3c + (uint)(local_44 == 0);" (assignment_expression "local_3c = local_3c + (uint)(local_44 == 0)" identifier = (binary_expression "local_3c + (uint)(local_44 == 0)" identifier + (call_expression "(uint)(local_44 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_44 == 0)" ( (binary_expression "local_44 == 0" identifier == number_literal) ))))) ;) (expression_statement "local_40 = local_40 + 8;" (assignment_expression "local_40 = local_40 + 8" identifier = (binary_expression "local_40 + 8" identifier + number_literal)) ;) (expression_statement "param_2 = param_2 + 2;" (assignment_expression "param_2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_40 < param_3)" ( (binary_expression "local_40 < param_3" identifier < identifier) )) ;) })) (expression_statement "*(int *)(param_1 + 0x84) = local_44;" (assignment_expression "*(int *)(param_1 + 0x84) = local_44" (pointer_expression "*(int *)(param_1 + 0x84)" * (cast_expression "(int *)(param_1 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x80) = local_3c;" (assignment_expression "*(int *)(param_1 + 0x80) = local_3c" (pointer_expression "*(int *)(param_1 + 0x80)" * (cast_expression "(int *)(param_1 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0003dc30();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0003dc30();\n  }" { (expression_statement "FUN_0003dc30();" (call_expression "FUN_0003dc30()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 IDENT ;) (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 (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (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 = (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 = LIT) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT)) )) ^ IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) ^ (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT)) )) ^ IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) ^ (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) ))))) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00025e00(int param_1,uint *param_2,uint param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  int local_44;\n  uint local_40;\n  int local_3c;\n  uint local_28;\n  uint local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_3 & 7) != 0) {\n                    \n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");\n  }\n  local_3c = *(int *)(param_1 + 0x80);\n  local_44 = *(int *)(param_1 + 0x84);\n  if (param_3 != 0) {\n    local_40 = 0;\n    do {\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    } while (local_40 < param_3);\n  }\n  *(int *)(param_1 + 0x84) = local_44;\n  *(int *)(param_1 + 0x80) = local_3c;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0003dc30();\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00025e00(int param_1,uint *param_2,uint param_3)" (identifier "FUN_00025e00") (parameter_list "(int param_1,uint *param_2,uint param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  int local_44;\n  uint local_40;\n  int local_3c;\n  uint local_28;\n  uint local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_3 & 7) != 0) {\n                    \n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");\n  }\n  local_3c = *(int *)(param_1 + 0x80);\n  local_44 = *(int *)(param_1 + 0x84);\n  if (param_3 != 0) {\n    local_40 = 0;\n    do {\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    } while (local_40 < param_3);\n  }\n  *(int *)(param_1 + 0x84) = local_44;\n  *(int *)(param_1 + 0x80) = local_3c;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0003dc30();\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_44;" (primitive_type "int") (identifier "local_44") (; ";")) (declaration "uint local_40;" (type_identifier "uint") (identifier "local_40") (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (declaration "uint local_28;" (type_identifier "uint") (identifier "local_28") (; ";")) (declaration "uint local_24;" (type_identifier "uint") (identifier "local_24") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if ((param_3 & 7) != 0) {\n                    \n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");\n  }" (if "if") (parenthesized_expression "((param_3 & 7) != 0)" (( "(") (binary_expression "(param_3 & 7) != 0" (parenthesized_expression "(param_3 & 7)" (( "(") (binary_expression "param_3 & 7" (identifier "param_3") (& "&") (number_literal "7")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");\n  }" ({ "{") (expression_statement "__assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");" (call_expression "__assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3")" (identifier "__assert_fail") (argument_list "("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3")" (( "(") (string_literal ""(len & 7) == 0"" (" """) (string_content "(len & 7) == 0") (" """)) (, ",") (string_literal ""sshdes.c"" (" """) (string_content "sshdes.c") (" """)) (, ",") (number_literal "0x2d9") (, ",") (string_literal ""des_sdctr3"" (" """) (string_content "des_sdctr3") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "local_3c = *(int *)(param_1 + 0x80);" (assignment_expression "local_3c = *(int *)(param_1 + 0x80)" (identifier "local_3c") (= "=") (pointer_expression "*(int *)(param_1 + 0x80)" (* "*") (cast_expression "(int *)(param_1 + 0x80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x80)" (( "(") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) () ")"))))) (; ";")) (expression_statement "local_44 = *(int *)(param_1 + 0x84);" (assignment_expression "local_44 = *(int *)(param_1 + 0x84)" (identifier "local_44") (= "=") (pointer_expression "*(int *)(param_1 + 0x84)" (* "*") (cast_expression "(int *)(param_1 + 0x84)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x84)" (( "(") (binary_expression "param_1 + 0x84" (identifier "param_1") (+ "+") (number_literal "0x84")) () ")"))))) (; ";")) (if_statement "if (param_3 != 0) {\n    local_40 = 0;\n    do {\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    } while (local_40 < param_3);\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    local_40 = 0;\n    do {\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    } while (local_40 < param_3);\n  }" ({ "{") (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" (identifier "local_40") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    } while (local_40 < param_3);" (do "do") (compound_statement "{\n      FUN_00024450(param_1);\n      FUN_00024d50(param_1 + 0x88);\n      FUN_00024450(param_1 + 0x110);\n      uVar2 = *param_2;\n      local_44 = local_44 + 1;\n      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;\n      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;\n      uVar2 = param_2[1];\n      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);\n      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;\n      *(char *)param_2 = (char)(uVar3 >> 0x18);\n      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;\n      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);\n      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);\n      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);\n      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);\n      local_3c = local_3c + (uint)(local_44 == 0);\n      local_40 = local_40 + 8;\n      param_2 = param_2 + 2;\n    }" ({ "{") (expression_statement "FUN_00024450(param_1);" (call_expression "FUN_00024450(param_1)" (identifier "FUN_00024450") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_00024d50(param_1 + 0x88);" (call_expression "FUN_00024d50(param_1 + 0x88)" (identifier "FUN_00024d50") (argument_list "(param_1 + 0x88)" (( "(") (binary_expression "param_1 + 0x88" (identifier "param_1") (+ "+") (number_literal "0x88")) () ")"))) (; ";")) (expression_statement "FUN_00024450(param_1 + 0x110);" (call_expression "FUN_00024450(param_1 + 0x110)" (identifier "FUN_00024450") (argument_list "(param_1 + 0x110)" (( "(") (binary_expression "param_1 + 0x110" (identifier "param_1") (+ "+") (number_literal "0x110")) () ")"))) (; ";")) (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" (identifier "uVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "local_44 = local_44 + 1;" (assignment_expression "local_44 = local_44 + 1" (identifier "local_44") (= "=") (binary_expression "local_44 + 1" (identifier "local_44") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;" (assignment_expression "uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28" (identifier "uVar3") (= "=") (binary_expression "((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28" (parenthesized_expression "((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18)" (( "(") (binary_expression "(uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "(uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" (( "(") (binary_expression "uVar2 & 0xff0000" (identifier "uVar2") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8")) (| "|") (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" (( "(") (binary_expression "uVar2 & 0xff00" (identifier "uVar2") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar2 << 0x18" (identifier "uVar2") (<< "<<") (number_literal "0x18"))) () ")")) (^ "^") (identifier "local_28"))) (; ";")) (expression_statement "*(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;" (assignment_expression "*(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28" (pointer_expression "*(byte *)((int)param_2 + 3)" (* "*") (cast_expression "(byte *)((int)param_2 + 3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 3)" (( "(") (binary_expression "(int)param_2 + 3" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "3")) () ")")))) (= "=") (binary_expression "(byte)(uVar2 >> 0x18) ^ (byte)local_28" (call_expression "(byte)(uVar2 >> 0x18)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar2 >> 0x18)" (( "(") (binary_expression "uVar2 >> 0x18" (identifier "uVar2") (>> ">>") (number_literal "0x18")) () ")"))) (^ "^") (cast_expression "(byte)local_28" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "local_28")))) (; ";")) (expression_statement "uVar2 = param_2[1];" (assignment_expression "uVar2 = param_2[1]" (identifier "uVar2") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);" (assignment_expression "*(char *)((int)param_2 + 2) = (char)(uVar3 >> 8)" (pointer_expression "*(char *)((int)param_2 + 2)" (* "*") (cast_expression "(char *)((int)param_2 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 2)" (( "(") (binary_expression "(int)param_2 + 2" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "2")) () ")")))) (= "=") (cast_expression "(char)(uVar3 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(uVar3 >> 8)" (( "(") (binary_expression "uVar3 >> 8" (identifier "uVar3") (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;" (assignment_expression "uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24" (identifier "uVar4") (= "=") (binary_expression "((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24" (parenthesized_expression "((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18)" (( "(") (binary_expression "(uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "(uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" (( "(") (binary_expression "uVar2 & 0xff0000" (identifier "uVar2") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8")) (| "|") (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" (( "(") (binary_expression "uVar2 & 0xff00" (identifier "uVar2") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar2 << 0x18" (identifier "uVar2") (<< "<<") (number_literal "0x18"))) () ")")) (^ "^") (identifier "local_24"))) (; ";")) (expression_statement "*(char *)param_2 = (char)(uVar3 >> 0x18);" (assignment_expression "*(char *)param_2 = (char)(uVar3 >> 0x18)" (pointer_expression "*(char *)param_2" (* "*") (cast_expression "(char *)param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2"))) (= "=") (cast_expression "(char)(uVar3 >> 0x18)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(uVar3 >> 0x18)" (( "(") (binary_expression "uVar3 >> 0x18" (identifier "uVar3") (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "*(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;" (assignment_expression "*(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24" (pointer_expression "*(byte *)((int)param_2 + 7)" (* "*") (cast_expression "(byte *)((int)param_2 + 7)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 7)" (( "(") (binary_expression "(int)param_2 + 7" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "7")) () ")")))) (= "=") (binary_expression "(byte)(uVar2 >> 0x18) ^ (byte)local_24" (call_expression "(byte)(uVar2 >> 0x18)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar2 >> 0x18)" (( "(") (binary_expression "uVar2 >> 0x18" (identifier "uVar2") (>> ">>") (number_literal "0x18")) () ")"))) (^ "^") (cast_expression "(byte)local_24" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "local_24")))) (; ";")) (expression_statement "*(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);" (assignment_expression "*(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10)" (pointer_expression "*(char *)((int)param_2 + 1)" (* "*") (cast_expression "(char *)((int)param_2 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 1)" (( "(") (binary_expression "(int)param_2 + 1" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "1")) () ")")))) (= "=") (cast_expression "(char)(uVar3 >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(uVar3 >> 0x10)" (( "(") (binary_expression "uVar3 >> 0x10" (identifier "uVar3") (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "*(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);" (assignment_expression "*(char *)((int)param_2 + 6) = (char)(uVar4 >> 8)" (pointer_expression "*(char *)((int)param_2 + 6)" (* "*") (cast_expression "(char *)((int)param_2 + 6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 6)" (( "(") (binary_expression "(int)param_2 + 6" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "6")) () ")")))) (= "=") (cast_expression "(char)(uVar4 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(uVar4 >> 8)" (( "(") (binary_expression "uVar4 >> 8" (identifier "uVar4") (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "*(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);" (assignment_expression "*(char *)(param_2 + 1) = (char)(uVar4 >> 0x18)" (pointer_expression "*(char *)(param_2 + 1)" (* "*") (cast_expression "(char *)(param_2 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 1)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) () ")")))) (= "=") (cast_expression "(char)(uVar4 >> 0x18)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(uVar4 >> 0x18)" (( "(") (binary_expression "uVar4 >> 0x18" (identifier "uVar4") (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "*(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);" (assignment_expression "*(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10)" (pointer_expression "*(char *)((int)param_2 + 5)" (* "*") (cast_expression "(char *)((int)param_2 + 5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 5)" (( "(") (binary_expression "(int)param_2 + 5" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "5")) () ")")))) (= "=") (cast_expression "(char)(uVar4 >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(uVar4 >> 0x10)" (( "(") (binary_expression "uVar4 >> 0x10" (identifier "uVar4") (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "local_3c = local_3c + (uint)(local_44 == 0);" (assignment_expression "local_3c = local_3c + (uint)(local_44 == 0)" (identifier "local_3c") (= "=") (binary_expression "local_3c + (uint)(local_44 == 0)" (identifier "local_3c") (+ "+") (call_expression "(uint)(local_44 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(local_44 == 0)" (( "(") (binary_expression "local_44 == 0" (identifier "local_44") (== "==") (number_literal "0")) () ")"))))) (; ";")) (expression_statement "local_40 = local_40 + 8;" (assignment_expression "local_40 = local_40 + 8" (identifier "local_40") (= "=") (binary_expression "local_40 + 8" (identifier "local_40") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "param_2 = param_2 + 2;" (assignment_expression "param_2 = param_2 + 2" (identifier "param_2") (= "=") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_40 < param_3)" (( "(") (binary_expression "local_40 < param_3" (identifier "local_40") (< "<") (identifier "param_3")) () ")")) (; ";")) (} "}"))) (expression_statement "*(int *)(param_1 + 0x84) = local_44;" (assignment_expression "*(int *)(param_1 + 0x84) = local_44" (pointer_expression "*(int *)(param_1 + 0x84)" (* "*") (cast_expression "(int *)(param_1 + 0x84)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x84)" (( "(") (binary_expression "param_1 + 0x84" (identifier "param_1") (+ "+") (number_literal "0x84")) () ")")))) (= "=") (identifier "local_44")) (; ";")) (expression_statement "*(int *)(param_1 + 0x80) = local_3c;" (assignment_expression "*(int *)(param_1 + 0x80) = local_3c" (pointer_expression "*(int *)(param_1 + 0x80)" (* "*") (cast_expression "(int *)(param_1 + 0x80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x80)" (( "(") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) () ")")))) (= "=") (identifier "local_3c")) (; ";")) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0003dc30();\n  }" (if "if") (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0003dc30();\n  }" ({ "{") (expression_statement "FUN_0003dc30();" (call_expression "FUN_0003dc30()" (identifier "FUN_0003dc30") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void function_1(void *handle,type_1 *blk,int var_2)

{
  int var_12;
  type_2 var_7;
  type_2 var_8;
  type_2 var_9;
  int var_1;
  type_3 var_6;
  type_2 var_11;
  type_3 var_10;
  type_3 b [2];
  
  var_12 = *(int *)(var_1 + 0x14);
  if ((var_2 & 7U) != 0) {
                    /* WARNING: Subroutine does not return */
    var_3("(len & 7) == 0","sshdes.c",0x2d9,__PRETTY_FUNCTION___4220);
  }
  var_10 = *(type_3 *)((int)handle + 0x80);
  var_6 = *(type_3 *)((int)handle + 0x84);
  if (var_2 != 0) {
    var_11 = 0;
    do {
      var_4(b,var_10,var_6,(type_4 *)handle);
      var_5(b,b[0],b[1],(type_4 *)((int)handle + 0x88));
      var_4(b,b[0],b[1],(type_4 *)((int)handle + 0x110));
      var_7 = *(type_2 *)blk;
      var_6 = var_6 + 1;
      var_8 = ((var_7 & 0xff0000) >> 8 | (var_7 & 0xff00) << 8 | var_7 << 0x18) ^ b[0];
      *(type_5 *)((int)blk + 3) = (type_5)(var_7 >> 0x18) ^ (type_5)b[0];
      var_7 = *(type_2 *)((int)blk + 4);
      *(char *)((int)blk + 2) = (char)(var_8 >> 8);
      var_9 = ((var_7 & 0xff0000) >> 8 | (var_7 & 0xff00) << 8 | var_7 << 0x18) ^ b[1];
      *blk = (char)(var_8 >> 0x18);
      *(type_5 *)((int)blk + 7) = (type_5)(var_7 >> 0x18) ^ (type_5)b[1];
      *(char *)((int)blk + 1) = (char)(var_8 >> 0x10);
      *(char *)((int)blk + 6) = (char)(var_9 >> 8);
      *(char *)((int)blk + 4) = (char)(var_9 >> 0x18);
      *(char *)((int)blk + 5) = (char)(var_9 >> 0x10);
      var_10 = var_10 + (var_6 == 0);
      var_11 = var_11 + 8;
      blk = (type_1 *)((int)blk + 8);
    } while (var_11 < (type_2)var_2);
  }
  *(type_3 *)((int)handle + 0x84) = var_6;
  *(type_3 *)((int)handle + 0x80) = var_10;
  if (var_12 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_13();
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) 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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) 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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (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: (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: (number_literal))) (do_statement body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (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: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal)))) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal)))) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (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: (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: (identifier))) (expression_statement (assignment_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: (identifier))) (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(int param_1,uint *param_2,uint param_3)

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  int in_GS_OFFSET;
  int local_44;
  uint local_40;
  int local_3c;
  uint local_28;
  uint local_24;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if ((param_3 & 7) != 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("(len & 7) == 0","sshdes.c",0x2d9,"des_sdctr3");
  }
  local_3c = *(int *)(param_1 + 0x80);
  local_44 = *(int *)(param_1 + 0x84);
  if (param_3 != 0) {
    local_40 = 0;
    do {
      FUN_00024450(param_1);
      FUN_00024d50(param_1 + 0x88);
      FUN_00024450(param_1 + 0x110);
      uVar2 = *param_2;
      local_44 = local_44 + 1;
      uVar3 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_28;
      *(byte *)((int)param_2 + 3) = (byte)(uVar2 >> 0x18) ^ (byte)local_28;
      uVar2 = param_2[1];
      *(char *)((int)param_2 + 2) = (char)(uVar3 >> 8);
      uVar4 = ((uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18) ^ local_24;
      *(char *)param_2 = (char)(uVar3 >> 0x18);
      *(byte *)((int)param_2 + 7) = (byte)(uVar2 >> 0x18) ^ (byte)local_24;
      *(char *)((int)param_2 + 1) = (char)(uVar3 >> 0x10);
      *(char *)((int)param_2 + 6) = (char)(uVar4 >> 8);
      *(char *)(param_2 + 1) = (char)(uVar4 >> 0x18);
      *(char *)((int)param_2 + 5) = (char)(uVar4 >> 0x10);
      local_3c = local_3c + (uint)(local_44 == 0);
      local_40 = local_40 + 8;
      param_2 = param_2 + 2;
    } while (local_40 < param_3);
  }
  *(int *)(param_1 + 0x84) = local_44;
  *(int *)(param_1 + 0x80) = local_3c;
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0003dc30();
  }
  return;
}

