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

void __regparm3 des_cbc3_encrypt(uchar *blk,uint len,DESContext *scheds)

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  word32 wVar5;
  uint uVar6;
  int in_GS_OFFSET;
  word32 out [2];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if ((len & 7) != 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");
  }
  uVar4 = scheds->iv1;
  wVar5 = scheds->iv0;
  if (len != 0) {
    uVar6 = 0;
    do {
      uVar2 = *(uint *)blk;
      uVar3 = *(uint *)((int)blk + 4);
      uVar6 = uVar6 + 8;
      des_encipher(out,wVar5 ^ (uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |
                               uVar2 << 0x18),
                   (uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18)
                   ^ uVar4,scheds);
      des_decipher(out,out[0],out[1],scheds + 1);
      des_encipher(out,out[0],out[1],scheds + 2);
      *(char *)((int)blk + 2) = (char)(out[0] >> 8);
      *(char *)((int)blk + 3) = (char)out[0];
      *blk = (char)(out[0] >> 0x18);
      *(char *)((int)blk + 6) = (char)(out[1] >> 8);
      *(char *)((int)blk + 1) = (char)(out[0] >> 0x10);
      *(char *)((int)blk + 7) = (char)out[1];
      *(char *)((int)blk + 4) = (char)(out[1] >> 0x18);
      *(char *)((int)blk + 5) = (char)(out[1] >> 0x10);
      uVar4 = out[1];
      wVar5 = out[0];
      blk = (uchar *)((int)blk + 8);
    } while (uVar6 < len);
  }
  scheds->iv0 = wVar5;
  scheds->iv1 = uVar4;
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void __regparm3 FUN_00069730(undefined1 *param_1,uint param_2,int param_3)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  uint uVar4;
  int in_GS_OFFSET;
  undefined4 local_28;
  undefined4 local_24;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if ((param_2 & 7) != 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");
  }
  uVar2 = *(undefined4 *)(param_3 + 0x84);
  uVar3 = *(undefined4 *)(param_3 + 0x80);
  if (param_2 != 0) {
    uVar4 = 0;
    do {
      uVar4 = uVar4 + 8;
      FUN_00068050(param_3);
      FUN_00068950(param_3 + 0x88);
      FUN_00068050(param_3 + 0x110);
      param_1[2] = (char)((uint)local_28 >> 8);
      param_1[3] = (char)local_28;
      *param_1 = (char)((uint)local_28 >> 0x18);
      param_1[6] = (char)((uint)local_24 >> 8);
      param_1[1] = (char)((uint)local_28 >> 0x10);
      param_1[7] = (char)local_24;
      param_1[4] = (char)((uint)local_24 >> 0x18);
      param_1[5] = (char)((uint)local_24 >> 0x10);
      uVar2 = local_24;
      uVar3 = local_28;
      param_1 = param_1 + 8;
    } while (uVar4 < param_2);
  }
  *(undefined4 *)(param_3 + 0x80) = uVar3;
  *(undefined4 *)(param_3 + 0x84) = uVar2;
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000c60b0();
}


PUSH EBP
PUSH EDI
MOV EDI,EDX
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x0001c520
ADD EBX,0xd1013
SUB ESP,0x2c
MOV dword ptr [ESP + 0x4],EDX
MOV dword ptr [ESP],ECX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
AND EDI,0x7
JNZ 0x00069846
MOV EBX,ECX
MOV EDX,dword ptr [ECX + 0x80]
MOV EAX,dword ptr [ECX + 0x84]
MOV ECX,dword ptr [ESP + 0x4]
TEST ECX,ECX
JZ 0x00069822
LEA ECX,[EBX + 0x88]
ADD EBX,0x110
MOV dword ptr [ESP + 0x8],ECX
MOV dword ptr [ESP + 0xc],EBX
LEA EBX,[ESP + 0x14]
LEA ESI,[ESI]
SUB ESP,0xc
MOV EBP,dword ptr [ESI]
MOV ECX,dword ptr [ESI + 0x4]
ADD EDI,0x8
PUSH dword ptr [ESP + 0xc]
ADD ESI,0x8
BSWAP EBP
BSWAP ECX
XOR EDX,EBP
XOR ECX,EAX
MOV EAX,EBX
CALL 0x00068050
POP EAX
PUSH dword ptr [ESP + 0x14]
MOV EAX,EBX
MOV ECX,dword ptr [ESP + 0x28]
MOV EDX,dword ptr [ESP + 0x24]
CALL 0x00068950
POP EDX
PUSH dword ptr [ESP + 0x18]
MOV EAX,EBX
MOV ECX,dword ptr [ESP + 0x28]
MOV EDX,dword ptr [ESP + 0x24]
CALL 0x00068050
MOV EDX,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [ESP + 0x28]
ADD ESP,0x10
MOV ECX,EDX
MOV byte ptr [ESI + -0x6],DH
SHR ECX,0x18
MOV byte ptr [ESI + -0x5],DL
MOV byte ptr [ESI + -0x8],CL
MOV ECX,EDX
SHR ECX,0x10
MOV byte ptr [ESI + -0x2],AH
MOV byte ptr [ESI + -0x7],CL
MOV ECX,EAX
SHR ECX,0x18
MOV byte ptr [ESI + -0x1],AL
MOV byte ptr [ESI + -0x4],CL
MOV ECX,EAX
SHR ECX,0x10
MOV byte ptr [ESI + -0x3],CL
CMP dword ptr [ESP + 0x4],EDI
JA 0x00069798
MOV EDI,dword ptr [ESP]
MOV dword ptr [EDI + 0x80],EDX
MOV dword ptr [EDI + 0x84],EAX
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00069865
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xfffaeb3c]
PUSH EAX
LEA EAX,[EBX + 0xfffaeab2]
PUSH 0x29b
PUSH EAX
LEA EAX,[EBX + 0xfffad2a9]
PUSH EAX
CALL 0x0001c000
CALL 0x000c60b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00069730(undefined1 *param_1,uint param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  undefined4 local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_2 & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }\n  uVar2 = *(undefined4 *)(param_3 + 0x84);\n  uVar3 = *(undefined4 *)(param_3 + 0x80);\n  if (param_2 != 0) {\n    uVar4 = 0;\n    do {\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    } while (uVar4 < param_2);\n  }\n  *(undefined4 *)(param_3 + 0x80) = uVar3;\n  *(undefined4 *)(param_3 + 0x84) = uVar2;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000c60b0();\n}\n\n" comment (function_definition "void __regparm3 FUN_00069730(undefined1 *param_1,uint param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  undefined4 local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_2 & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }\n  uVar2 = *(undefined4 *)(param_3 + 0x84);\n  uVar3 = *(undefined4 *)(param_3 + 0x80);\n  if (param_2 != 0) {\n    uVar4 = 0;\n    do {\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    } while (uVar4 < param_2);\n  }\n  *(undefined4 *)(param_3 + 0x80) = uVar3;\n  *(undefined4 *)(param_3 + 0x84) = uVar2;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000c60b0();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00069730(undefined1 *param_1,uint param_2,int param_3)" identifier (parameter_list "(undefined1 *param_1,uint param_2,int param_3)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  undefined4 local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_2 & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }\n  uVar2 = *(undefined4 *)(param_3 + 0x84);\n  uVar3 = *(undefined4 *)(param_3 + 0x80);\n  if (param_2 != 0) {\n    uVar4 = 0;\n    do {\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    } while (uVar4 < param_2);\n  }\n  *(undefined4 *)(param_3 + 0x80) = uVar3;\n  *(undefined4 *)(param_3 + 0x84) = uVar2;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000c60b0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "undefined4 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_2 & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }" if (parenthesized_expression "((param_2 & 7) != 0)" ( (binary_expression "(param_2 & 7) != 0" (parenthesized_expression "(param_2 & 7)" ( (binary_expression "param_2 & 7" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }" { comment (expression_statement "__assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");" (call_expression "__assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt")" identifier (argument_list "("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt")" ( (string_literal ""(len & 7) == 0"" " string_content ") , (string_literal ""sshdes.c"" " string_content ") , number_literal , (string_literal ""des_cbc3_encrypt"" " string_content ") ))) ;) })) (expression_statement "uVar2 = *(undefined4 *)(param_3 + 0x84);" (assignment_expression "uVar2 = *(undefined4 *)(param_3 + 0x84)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x84)" * (cast_expression "(undefined4 *)(param_3 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x84)" ( (binary_expression "param_3 + 0x84" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(undefined4 *)(param_3 + 0x80);" (assignment_expression "uVar3 = *(undefined4 *)(param_3 + 0x80)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x80)" * (cast_expression "(undefined4 *)(param_3 + 0x80)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x80)" ( (binary_expression "param_3 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (param_2 != 0) {\n    uVar4 = 0;\n    do {\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    } while (uVar4 < param_2);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = 0;\n    do {\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    } while (uVar4 < param_2);\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    } while (uVar4 < param_2);" do (compound_statement "{\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    }" { (expression_statement "uVar4 = uVar4 + 8;" (assignment_expression "uVar4 = uVar4 + 8" identifier = (binary_expression "uVar4 + 8" identifier + number_literal)) ;) (expression_statement "FUN_00068050(param_3);" (call_expression "FUN_00068050(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) (expression_statement "FUN_00068950(param_3 + 0x88);" (call_expression "FUN_00068950(param_3 + 0x88)" identifier (argument_list "(param_3 + 0x88)" ( (binary_expression "param_3 + 0x88" identifier + number_literal) ))) ;) (expression_statement "FUN_00068050(param_3 + 0x110);" (call_expression "FUN_00068050(param_3 + 0x110)" identifier (argument_list "(param_3 + 0x110)" ( (binary_expression "param_3 + 0x110" identifier + number_literal) ))) ;) (expression_statement "param_1[2] = (char)((uint)local_28 >> 8);" (assignment_expression "param_1[2] = (char)((uint)local_28 >> 8)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(char)((uint)local_28 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)local_28 >> 8)" ( (binary_expression "(uint)local_28 >> 8" (cast_expression "(uint)local_28" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "param_1[3] = (char)local_28;" (assignment_expression "param_1[3] = (char)local_28" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (cast_expression "(char)local_28" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "*param_1 = (char)((uint)local_28 >> 0x18);" (assignment_expression "*param_1 = (char)((uint)local_28 >> 0x18)" (pointer_expression "*param_1" * identifier) = (cast_expression "(char)((uint)local_28 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)local_28 >> 0x18)" ( (binary_expression "(uint)local_28 >> 0x18" (cast_expression "(uint)local_28" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "param_1[6] = (char)((uint)local_24 >> 8);" (assignment_expression "param_1[6] = (char)((uint)local_24 >> 8)" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (cast_expression "(char)((uint)local_24 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)local_24 >> 8)" ( (binary_expression "(uint)local_24 >> 8" (cast_expression "(uint)local_24" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "param_1[1] = (char)((uint)local_28 >> 0x10);" (assignment_expression "param_1[1] = (char)((uint)local_28 >> 0x10)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(char)((uint)local_28 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)local_28 >> 0x10)" ( (binary_expression "(uint)local_28 >> 0x10" (cast_expression "(uint)local_28" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "param_1[7] = (char)local_24;" (assignment_expression "param_1[7] = (char)local_24" (subscript_expression "param_1[7]" identifier [ number_literal ]) = (cast_expression "(char)local_24" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "param_1[4] = (char)((uint)local_24 >> 0x18);" (assignment_expression "param_1[4] = (char)((uint)local_24 >> 0x18)" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (cast_expression "(char)((uint)local_24 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)local_24 >> 0x18)" ( (binary_expression "(uint)local_24 >> 0x18" (cast_expression "(uint)local_24" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "param_1[5] = (char)((uint)local_24 >> 0x10);" (assignment_expression "param_1[5] = (char)((uint)local_24 >> 0x10)" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (cast_expression "(char)((uint)local_24 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)local_24 >> 0x10)" ( (binary_expression "(uint)local_24 >> 0x10" (cast_expression "(uint)local_24" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar2 = local_24;" (assignment_expression "uVar2 = local_24" identifier = identifier) ;) (expression_statement "uVar3 = local_28;" (assignment_expression "uVar3 = local_28" identifier = identifier) ;) (expression_statement "param_1 = param_1 + 8;" (assignment_expression "param_1 = param_1 + 8" identifier = (binary_expression "param_1 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 < param_2)" ( (binary_expression "uVar4 < param_2" identifier < identifier) )) ;) })) (expression_statement "*(undefined4 *)(param_3 + 0x80) = uVar3;" (assignment_expression "*(undefined4 *)(param_3 + 0x80) = uVar3" (pointer_expression "*(undefined4 *)(param_3 + 0x80)" * (cast_expression "(undefined4 *)(param_3 + 0x80)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x80)" ( (binary_expression "param_3 + 0x80" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_3 + 0x84) = uVar2;" (assignment_expression "*(undefined4 *)(param_3 + 0x84) = uVar2" (pointer_expression "*(undefined4 *)(param_3 + 0x84)" * (cast_expression "(undefined4 *)(param_3 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x84)" ( (binary_expression "param_3 + 0x84" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_000c60b0();" (call_expression "FUN_000c60b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 des_cbc3_encrypt(uchar *blk,uint len,DESContext *scheds)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  word32 wVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  word32 out [2];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((len & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }\n  uVar4 = scheds->iv1;\n  wVar5 = scheds->iv0;\n  if (len != 0) {\n    uVar6 = 0;\n    do {\n      uVar2 = *(uint *)blk;\n      uVar3 = *(uint *)((int)blk + 4);\n      uVar6 = uVar6 + 8;\n      des_encipher(out,wVar5 ^ (uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                               uVar2 << 0x18),\n                   (uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18)\n                   ^ uVar4,scheds);\n      des_decipher(out,out[0],out[1],scheds + 1);\n      des_encipher(out,out[0],out[1],scheds + 2);\n      *(char *)((int)blk + 2) = (char)(out[0] >> 8);\n      *(char *)((int)blk + 3) = (char)out[0];\n      *blk = (char)(out[0] >> 0x18);\n      *(char *)((int)blk + 6) = (char)(out[1] >> 8);\n      *(char *)((int)blk + 1) = (char)(out[0] >> 0x10);\n      *(char *)((int)blk + 7) = (char)out[1];\n      *(char *)((int)blk + 4) = (char)(out[1] >> 0x18);\n      *(char *)((int)blk + 5) = (char)(out[1] >> 0x10);\n      uVar4 = out[1];\n      wVar5 = out[0];\n      blk = (uchar *)((int)blk + 8);\n    } while (uVar6 < len);\n  }\n  scheds->iv0 = wVar5;\n  scheds->iv1 = uVar4;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "void __regparm3 des_cbc3_encrypt(uchar *blk,uint len,DESContext *scheds)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  word32 wVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  word32 out [2];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((len & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }\n  uVar4 = scheds->iv1;\n  wVar5 = scheds->iv0;\n  if (len != 0) {\n    uVar6 = 0;\n    do {\n      uVar2 = *(uint *)blk;\n      uVar3 = *(uint *)((int)blk + 4);\n      uVar6 = uVar6 + 8;\n      des_encipher(out,wVar5 ^ (uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                               uVar2 << 0x18),\n                   (uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18)\n                   ^ uVar4,scheds);\n      des_decipher(out,out[0],out[1],scheds + 1);\n      des_encipher(out,out[0],out[1],scheds + 2);\n      *(char *)((int)blk + 2) = (char)(out[0] >> 8);\n      *(char *)((int)blk + 3) = (char)out[0];\n      *blk = (char)(out[0] >> 0x18);\n      *(char *)((int)blk + 6) = (char)(out[1] >> 8);\n      *(char *)((int)blk + 1) = (char)(out[0] >> 0x10);\n      *(char *)((int)blk + 7) = (char)out[1];\n      *(char *)((int)blk + 4) = (char)(out[1] >> 0x18);\n      *(char *)((int)blk + 5) = (char)(out[1] >> 0x10);\n      uVar4 = out[1];\n      wVar5 = out[0];\n      blk = (uchar *)((int)blk + 8);\n    } while (uVar6 < len);\n  }\n  scheds->iv0 = wVar5;\n  scheds->iv1 = uVar4;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "des_cbc3_encrypt(uchar *blk,uint len,DESContext *scheds)" identifier (parameter_list "(uchar *blk,uint len,DESContext *scheds)" ( (parameter_declaration "uchar *blk" type_identifier (pointer_declarator "*blk" * identifier)) , (parameter_declaration "uint len" type_identifier identifier) , (parameter_declaration "DESContext *scheds" type_identifier (pointer_declarator "*scheds" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  word32 wVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  word32 out [2];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((len & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }\n  uVar4 = scheds->iv1;\n  wVar5 = scheds->iv0;\n  if (len != 0) {\n    uVar6 = 0;\n    do {\n      uVar2 = *(uint *)blk;\n      uVar3 = *(uint *)((int)blk + 4);\n      uVar6 = uVar6 + 8;\n      des_encipher(out,wVar5 ^ (uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                               uVar2 << 0x18),\n                   (uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18)\n                   ^ uVar4,scheds);\n      des_decipher(out,out[0],out[1],scheds + 1);\n      des_encipher(out,out[0],out[1],scheds + 2);\n      *(char *)((int)blk + 2) = (char)(out[0] >> 8);\n      *(char *)((int)blk + 3) = (char)out[0];\n      *blk = (char)(out[0] >> 0x18);\n      *(char *)((int)blk + 6) = (char)(out[1] >> 8);\n      *(char *)((int)blk + 1) = (char)(out[0] >> 0x10);\n      *(char *)((int)blk + 7) = (char)out[1];\n      *(char *)((int)blk + 4) = (char)(out[1] >> 0x18);\n      *(char *)((int)blk + 5) = (char)(out[1] >> 0x10);\n      uVar4 = out[1];\n      wVar5 = out[0];\n      blk = (uchar *)((int)blk + 8);\n    } while (uVar6 < len);\n  }\n  scheds->iv0 = wVar5;\n  scheds->iv1 = uVar4;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\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 "word32 wVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "word32 out [2];" type_identifier (array_declarator "out [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 & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }" if (parenthesized_expression "((len & 7) != 0)" ( (binary_expression "(len & 7) != 0" (parenthesized_expression "(len & 7)" ( (binary_expression "len & 7" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }" { comment (expression_statement "__assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");" (call_expression "__assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt")" identifier (argument_list "("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt")" ( (string_literal ""(len & 7) == 0"" " string_content ") , (string_literal ""sshdes.c"" " string_content ") , number_literal , (string_literal ""des_cbc3_encrypt"" " string_content ") ))) ;) })) (expression_statement "uVar4 = scheds->iv1;" (assignment_expression "uVar4 = scheds->iv1" identifier = (field_expression "scheds->iv1" identifier -> field_identifier)) ;) (expression_statement "wVar5 = scheds->iv0;" (assignment_expression "wVar5 = scheds->iv0" identifier = (field_expression "scheds->iv0" identifier -> field_identifier)) ;) (if_statement "if (len != 0) {\n    uVar6 = 0;\n    do {\n      uVar2 = *(uint *)blk;\n      uVar3 = *(uint *)((int)blk + 4);\n      uVar6 = uVar6 + 8;\n      des_encipher(out,wVar5 ^ (uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                               uVar2 << 0x18),\n                   (uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18)\n                   ^ uVar4,scheds);\n      des_decipher(out,out[0],out[1],scheds + 1);\n      des_encipher(out,out[0],out[1],scheds + 2);\n      *(char *)((int)blk + 2) = (char)(out[0] >> 8);\n      *(char *)((int)blk + 3) = (char)out[0];\n      *blk = (char)(out[0] >> 0x18);\n      *(char *)((int)blk + 6) = (char)(out[1] >> 8);\n      *(char *)((int)blk + 1) = (char)(out[0] >> 0x10);\n      *(char *)((int)blk + 7) = (char)out[1];\n      *(char *)((int)blk + 4) = (char)(out[1] >> 0x18);\n      *(char *)((int)blk + 5) = (char)(out[1] >> 0x10);\n      uVar4 = out[1];\n      wVar5 = out[0];\n      blk = (uchar *)((int)blk + 8);\n    } while (uVar6 < len);\n  }" if (parenthesized_expression "(len != 0)" ( (binary_expression "len != 0" identifier != number_literal) )) (compound_statement "{\n    uVar6 = 0;\n    do {\n      uVar2 = *(uint *)blk;\n      uVar3 = *(uint *)((int)blk + 4);\n      uVar6 = uVar6 + 8;\n      des_encipher(out,wVar5 ^ (uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                               uVar2 << 0x18),\n                   (uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18)\n                   ^ uVar4,scheds);\n      des_decipher(out,out[0],out[1],scheds + 1);\n      des_encipher(out,out[0],out[1],scheds + 2);\n      *(char *)((int)blk + 2) = (char)(out[0] >> 8);\n      *(char *)((int)blk + 3) = (char)out[0];\n      *blk = (char)(out[0] >> 0x18);\n      *(char *)((int)blk + 6) = (char)(out[1] >> 8);\n      *(char *)((int)blk + 1) = (char)(out[0] >> 0x10);\n      *(char *)((int)blk + 7) = (char)out[1];\n      *(char *)((int)blk + 4) = (char)(out[1] >> 0x18);\n      *(char *)((int)blk + 5) = (char)(out[1] >> 0x10);\n      uVar4 = out[1];\n      wVar5 = out[0];\n      blk = (uchar *)((int)blk + 8);\n    } while (uVar6 < len);\n  }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar2 = *(uint *)blk;\n      uVar3 = *(uint *)((int)blk + 4);\n      uVar6 = uVar6 + 8;\n      des_encipher(out,wVar5 ^ (uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                               uVar2 << 0x18),\n                   (uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18)\n                   ^ uVar4,scheds);\n      des_decipher(out,out[0],out[1],scheds + 1);\n      des_encipher(out,out[0],out[1],scheds + 2);\n      *(char *)((int)blk + 2) = (char)(out[0] >> 8);\n      *(char *)((int)blk + 3) = (char)out[0];\n      *blk = (char)(out[0] >> 0x18);\n      *(char *)((int)blk + 6) = (char)(out[1] >> 8);\n      *(char *)((int)blk + 1) = (char)(out[0] >> 0x10);\n      *(char *)((int)blk + 7) = (char)out[1];\n      *(char *)((int)blk + 4) = (char)(out[1] >> 0x18);\n      *(char *)((int)blk + 5) = (char)(out[1] >> 0x10);\n      uVar4 = out[1];\n      wVar5 = out[0];\n      blk = (uchar *)((int)blk + 8);\n    } while (uVar6 < len);" do (compound_statement "{\n      uVar2 = *(uint *)blk;\n      uVar3 = *(uint *)((int)blk + 4);\n      uVar6 = uVar6 + 8;\n      des_encipher(out,wVar5 ^ (uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                               uVar2 << 0x18),\n                   (uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18)\n                   ^ uVar4,scheds);\n      des_decipher(out,out[0],out[1],scheds + 1);\n      des_encipher(out,out[0],out[1],scheds + 2);\n      *(char *)((int)blk + 2) = (char)(out[0] >> 8);\n      *(char *)((int)blk + 3) = (char)out[0];\n      *blk = (char)(out[0] >> 0x18);\n      *(char *)((int)blk + 6) = (char)(out[1] >> 8);\n      *(char *)((int)blk + 1) = (char)(out[0] >> 0x10);\n      *(char *)((int)blk + 7) = (char)out[1];\n      *(char *)((int)blk + 4) = (char)(out[1] >> 0x18);\n      *(char *)((int)blk + 5) = (char)(out[1] >> 0x10);\n      uVar4 = out[1];\n      wVar5 = out[0];\n      blk = (uchar *)((int)blk + 8);\n    }" { (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 "uVar3 = *(uint *)((int)blk + 4);" (assignment_expression "uVar3 = *(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 "uVar6 = uVar6 + 8;" (assignment_expression "uVar6 = uVar6 + 8" identifier = (binary_expression "uVar6 + 8" identifier + number_literal)) ;) (expression_statement "des_encipher(out,wVar5 ^ (uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                               uVar2 << 0x18),\n                   (uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18)\n                   ^ uVar4,scheds);" (call_expression "des_encipher(out,wVar5 ^ (uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                               uVar2 << 0x18),\n                   (uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18)\n                   ^ uVar4,scheds)" identifier (argument_list "(out,wVar5 ^ (uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                               uVar2 << 0x18),\n                   (uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18)\n                   ^ uVar4,scheds)" ( identifier , (binary_expression "wVar5 ^ (uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                               uVar2 << 0x18)" identifier ^ (parenthesized_expression "(uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                               uVar2 << 0x18)" ( (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 |\n                               uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" identifier >> number_literal) | (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)) ))) , (binary_expression "(uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18)\n                   ^ uVar4" (parenthesized_expression "(uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18)" ( (binary_expression "uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18" (binary_expression "uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8" (binary_expression "uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8" (binary_expression "uVar3 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar3 & 0xff0000) >> 8" (parenthesized_expression "(uVar3 & 0xff0000)" ( (binary_expression "uVar3 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar3 & 0xff00) << 8" (parenthesized_expression "(uVar3 & 0xff00)" ( (binary_expression "uVar3 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar3 << 0x18" identifier << number_literal)) )) ^ identifier) , identifier ))) ;) (expression_statement "des_decipher(out,out[0],out[1],scheds + 1);" (call_expression "des_decipher(out,out[0],out[1],scheds + 1)" identifier (argument_list "(out,out[0],out[1],scheds + 1)" ( identifier , (subscript_expression "out[0]" identifier [ number_literal ]) , (subscript_expression "out[1]" identifier [ number_literal ]) , (binary_expression "scheds + 1" identifier + number_literal) ))) ;) (expression_statement "des_encipher(out,out[0],out[1],scheds + 2);" (call_expression "des_encipher(out,out[0],out[1],scheds + 2)" identifier (argument_list "(out,out[0],out[1],scheds + 2)" ( identifier , (subscript_expression "out[0]" identifier [ number_literal ]) , (subscript_expression "out[1]" identifier [ number_literal ]) , (binary_expression "scheds + 2" identifier + number_literal) ))) ;) (expression_statement "*(char *)((int)blk + 2) = (char)(out[0] >> 8);" (assignment_expression "*(char *)((int)blk + 2) = (char)(out[0] >> 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)(out[0] >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(out[0] >> 8)" ( (binary_expression "out[0] >> 8" (subscript_expression "out[0]" identifier [ number_literal ]) >> number_literal) )))) ;) (expression_statement "*(char *)((int)blk + 3) = (char)out[0];" (assignment_expression "*(char *)((int)blk + 3) = (char)out[0]" (pointer_expression "*(char *)((int)blk + 3)" * (cast_expression "(char *)((int)blk + 3)" ( (type_descriptor "char *" primitive_type (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) )))) = (cast_expression "(char)out[0]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "out[0]" identifier [ number_literal ]))) ;) (expression_statement "*blk = (char)(out[0] >> 0x18);" (assignment_expression "*blk = (char)(out[0] >> 0x18)" (pointer_expression "*blk" * identifier) = (cast_expression "(char)(out[0] >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(out[0] >> 0x18)" ( (binary_expression "out[0] >> 0x18" (subscript_expression "out[0]" identifier [ number_literal ]) >> number_literal) )))) ;) (expression_statement "*(char *)((int)blk + 6) = (char)(out[1] >> 8);" (assignment_expression "*(char *)((int)blk + 6) = (char)(out[1] >> 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)(out[1] >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(out[1] >> 8)" ( (binary_expression "out[1] >> 8" (subscript_expression "out[1]" identifier [ number_literal ]) >> number_literal) )))) ;) (expression_statement "*(char *)((int)blk + 1) = (char)(out[0] >> 0x10);" (assignment_expression "*(char *)((int)blk + 1) = (char)(out[0] >> 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)(out[0] >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(out[0] >> 0x10)" ( (binary_expression "out[0] >> 0x10" (subscript_expression "out[0]" identifier [ number_literal ]) >> number_literal) )))) ;) (expression_statement "*(char *)((int)blk + 7) = (char)out[1];" (assignment_expression "*(char *)((int)blk + 7) = (char)out[1]" (pointer_expression "*(char *)((int)blk + 7)" * (cast_expression "(char *)((int)blk + 7)" ( (type_descriptor "char *" primitive_type (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) )))) = (cast_expression "(char)out[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "out[1]" identifier [ number_literal ]))) ;) (expression_statement "*(char *)((int)blk + 4) = (char)(out[1] >> 0x18);" (assignment_expression "*(char *)((int)blk + 4) = (char)(out[1] >> 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)(out[1] >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(out[1] >> 0x18)" ( (binary_expression "out[1] >> 0x18" (subscript_expression "out[1]" identifier [ number_literal ]) >> number_literal) )))) ;) (expression_statement "*(char *)((int)blk + 5) = (char)(out[1] >> 0x10);" (assignment_expression "*(char *)((int)blk + 5) = (char)(out[1] >> 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)(out[1] >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(out[1] >> 0x10)" ( (binary_expression "out[1] >> 0x10" (subscript_expression "out[1]" identifier [ number_literal ]) >> number_literal) )))) ;) (expression_statement "uVar4 = out[1];" (assignment_expression "uVar4 = out[1]" identifier = (subscript_expression "out[1]" identifier [ number_literal ])) ;) (expression_statement "wVar5 = out[0];" (assignment_expression "wVar5 = out[0]" identifier = (subscript_expression "out[0]" 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 "(uVar6 < len)" ( (binary_expression "uVar6 < len" identifier < identifier) )) ;) })) (expression_statement "scheds->iv0 = wVar5;" (assignment_expression "scheds->iv0 = wVar5" (field_expression "scheds->iv0" identifier -> field_identifier) = identifier) ;) (expression_statement "scheds->iv1 = uVar4;" (assignment_expression "scheds->iv1 = uVar4" (field_expression "scheds->iv1" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __regparm3 FUN_00069730(undefined1 *param_1,uint param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  undefined4 local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_2 & 7) != 0) {\n                    \n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }\n  uVar2 = *(undefined4 *)(param_3 + 0x84);\n  uVar3 = *(undefined4 *)(param_3 + 0x80);\n  if (param_2 != 0) {\n    uVar4 = 0;\n    do {\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    } while (uVar4 < param_2);\n  }\n  *(undefined4 *)(param_3 + 0x80) = uVar3;\n  *(undefined4 *)(param_3 + 0x84) = uVar2;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}\n\n" (function_definition "void __regparm3 FUN_00069730(undefined1 *param_1,uint param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  undefined4 local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_2 & 7) != 0) {\n                    \n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }\n  uVar2 = *(undefined4 *)(param_3 + 0x84);\n  uVar3 = *(undefined4 *)(param_3 + 0x80);\n  if (param_2 != 0) {\n    uVar4 = 0;\n    do {\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    } while (uVar4 < param_2);\n  }\n  *(undefined4 *)(param_3 + 0x80) = uVar3;\n  *(undefined4 *)(param_3 + 0x84) = uVar2;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00069730(undefined1 *param_1,uint param_2,int param_3)" identifier (parameter_list "(undefined1 *param_1,uint param_2,int param_3)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  undefined4 local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_2 & 7) != 0) {\n                    \n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }\n  uVar2 = *(undefined4 *)(param_3 + 0x84);\n  uVar3 = *(undefined4 *)(param_3 + 0x80);\n  if (param_2 != 0) {\n    uVar4 = 0;\n    do {\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    } while (uVar4 < param_2);\n  }\n  *(undefined4 *)(param_3 + 0x80) = uVar3;\n  *(undefined4 *)(param_3 + 0x84) = uVar2;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "undefined4 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_2 & 7) != 0) {\n                    \n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }" if (parenthesized_expression "((param_2 & 7) != 0)" ( (binary_expression "(param_2 & 7) != 0" (parenthesized_expression "(param_2 & 7)" ( (binary_expression "param_2 & 7" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }" { (expression_statement "__assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");" (call_expression "__assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt")" identifier (argument_list "("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt")" ( (string_literal ""(len & 7) == 0"" " string_content ") , (string_literal ""sshdes.c"" " string_content ") , number_literal , (string_literal ""des_cbc3_encrypt"" " string_content ") ))) ;) })) (expression_statement "uVar2 = *(undefined4 *)(param_3 + 0x84);" (assignment_expression "uVar2 = *(undefined4 *)(param_3 + 0x84)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x84)" * (cast_expression "(undefined4 *)(param_3 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x84)" ( (binary_expression "param_3 + 0x84" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(undefined4 *)(param_3 + 0x80);" (assignment_expression "uVar3 = *(undefined4 *)(param_3 + 0x80)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x80)" * (cast_expression "(undefined4 *)(param_3 + 0x80)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x80)" ( (binary_expression "param_3 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (param_2 != 0) {\n    uVar4 = 0;\n    do {\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    } while (uVar4 < param_2);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = 0;\n    do {\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    } while (uVar4 < param_2);\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    } while (uVar4 < param_2);" do (compound_statement "{\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    }" { (expression_statement "uVar4 = uVar4 + 8;" (assignment_expression "uVar4 = uVar4 + 8" identifier = (binary_expression "uVar4 + 8" identifier + number_literal)) ;) (expression_statement "FUN_00068050(param_3);" (call_expression "FUN_00068050(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) (expression_statement "FUN_00068950(param_3 + 0x88);" (call_expression "FUN_00068950(param_3 + 0x88)" identifier (argument_list "(param_3 + 0x88)" ( (binary_expression "param_3 + 0x88" identifier + number_literal) ))) ;) (expression_statement "FUN_00068050(param_3 + 0x110);" (call_expression "FUN_00068050(param_3 + 0x110)" identifier (argument_list "(param_3 + 0x110)" ( (binary_expression "param_3 + 0x110" identifier + number_literal) ))) ;) (expression_statement "param_1[2] = (char)((uint)local_28 >> 8);" (assignment_expression "param_1[2] = (char)((uint)local_28 >> 8)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(char)((uint)local_28 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)local_28 >> 8)" ( (binary_expression "(uint)local_28 >> 8" (cast_expression "(uint)local_28" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "param_1[3] = (char)local_28;" (assignment_expression "param_1[3] = (char)local_28" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (cast_expression "(char)local_28" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "*param_1 = (char)((uint)local_28 >> 0x18);" (assignment_expression "*param_1 = (char)((uint)local_28 >> 0x18)" (pointer_expression "*param_1" * identifier) = (cast_expression "(char)((uint)local_28 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)local_28 >> 0x18)" ( (binary_expression "(uint)local_28 >> 0x18" (cast_expression "(uint)local_28" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "param_1[6] = (char)((uint)local_24 >> 8);" (assignment_expression "param_1[6] = (char)((uint)local_24 >> 8)" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (cast_expression "(char)((uint)local_24 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)local_24 >> 8)" ( (binary_expression "(uint)local_24 >> 8" (cast_expression "(uint)local_24" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "param_1[1] = (char)((uint)local_28 >> 0x10);" (assignment_expression "param_1[1] = (char)((uint)local_28 >> 0x10)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(char)((uint)local_28 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)local_28 >> 0x10)" ( (binary_expression "(uint)local_28 >> 0x10" (cast_expression "(uint)local_28" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "param_1[7] = (char)local_24;" (assignment_expression "param_1[7] = (char)local_24" (subscript_expression "param_1[7]" identifier [ number_literal ]) = (cast_expression "(char)local_24" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "param_1[4] = (char)((uint)local_24 >> 0x18);" (assignment_expression "param_1[4] = (char)((uint)local_24 >> 0x18)" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (cast_expression "(char)((uint)local_24 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)local_24 >> 0x18)" ( (binary_expression "(uint)local_24 >> 0x18" (cast_expression "(uint)local_24" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "param_1[5] = (char)((uint)local_24 >> 0x10);" (assignment_expression "param_1[5] = (char)((uint)local_24 >> 0x10)" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (cast_expression "(char)((uint)local_24 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)local_24 >> 0x10)" ( (binary_expression "(uint)local_24 >> 0x10" (cast_expression "(uint)local_24" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar2 = local_24;" (assignment_expression "uVar2 = local_24" identifier = identifier) ;) (expression_statement "uVar3 = local_28;" (assignment_expression "uVar3 = local_28" identifier = identifier) ;) (expression_statement "param_1 = param_1 + 8;" (assignment_expression "param_1 = param_1 + 8" identifier = (binary_expression "param_1 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 < param_2)" ( (binary_expression "uVar4 < param_2" identifier < identifier) )) ;) })) (expression_statement "*(undefined4 *)(param_3 + 0x80) = uVar3;" (assignment_expression "*(undefined4 *)(param_3 + 0x80) = uVar3" (pointer_expression "*(undefined4 *)(param_3 + 0x80)" * (cast_expression "(undefined4 *)(param_3 + 0x80)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x80)" ( (binary_expression "param_3 + 0x80" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_3 + 0x84) = uVar2;" (assignment_expression "*(undefined4 *)(param_3 + 0x84) = uVar2" (pointer_expression "*(undefined4 *)(param_3 + 0x84)" * (cast_expression "(undefined4 *)(param_3 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x84)" ( (binary_expression "param_3 + 0x84" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_000c60b0();" (call_expression "FUN_000c60b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE 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 ;) (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 (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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 (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void __regparm3 FUN_00069730(undefined1 *param_1,uint param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  undefined4 local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_2 & 7) != 0) {\n                    \n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }\n  uVar2 = *(undefined4 *)(param_3 + 0x84);\n  uVar3 = *(undefined4 *)(param_3 + 0x80);\n  if (param_2 != 0) {\n    uVar4 = 0;\n    do {\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    } while (uVar4 < param_2);\n  }\n  *(undefined4 *)(param_3 + 0x80) = uVar3;\n  *(undefined4 *)(param_3 + 0x84) = uVar2;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00069730(undefined1 *param_1,uint param_2,int param_3)" (identifier "FUN_00069730") (parameter_list "(undefined1 *param_1,uint param_2,int param_3)" (( "(") (parameter_declaration "undefined1 *param_1" (type_identifier "undefined1") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  undefined4 local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_2 & 7) != 0) {\n                    \n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }\n  uVar2 = *(undefined4 *)(param_3 + 0x84);\n  uVar3 = *(undefined4 *)(param_3 + 0x80);\n  if (param_2 != 0) {\n    uVar4 = 0;\n    do {\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    } while (uVar4 < param_2);\n  }\n  *(undefined4 *)(param_3 + 0x80) = uVar3;\n  *(undefined4 *)(param_3 + 0x84) = uVar2;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (identifier "local_28") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (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_2 & 7) != 0) {\n                    \n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }" (if "if") (parenthesized_expression "((param_2 & 7) != 0)" (( "(") (binary_expression "(param_2 & 7) != 0" (parenthesized_expression "(param_2 & 7)" (( "(") (binary_expression "param_2 & 7" (identifier "param_2") (& "&") (number_literal "7")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");\n  }" ({ "{") (expression_statement "__assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");" (call_expression "__assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt")" (identifier "__assert_fail") (argument_list "("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt")" (( "(") (string_literal ""(len & 7) == 0"" (" """) (string_content "(len & 7) == 0") (" """)) (, ",") (string_literal ""sshdes.c"" (" """) (string_content "sshdes.c") (" """)) (, ",") (number_literal "0x29b") (, ",") (string_literal ""des_cbc3_encrypt"" (" """) (string_content "des_cbc3_encrypt") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar2 = *(undefined4 *)(param_3 + 0x84);" (assignment_expression "uVar2 = *(undefined4 *)(param_3 + 0x84)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_3 + 0x84)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x84)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x84)" (( "(") (binary_expression "param_3 + 0x84" (identifier "param_3") (+ "+") (number_literal "0x84")) () ")"))))) (; ";")) (expression_statement "uVar3 = *(undefined4 *)(param_3 + 0x80);" (assignment_expression "uVar3 = *(undefined4 *)(param_3 + 0x80)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(param_3 + 0x80)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x80)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x80)" (( "(") (binary_expression "param_3 + 0x80" (identifier "param_3") (+ "+") (number_literal "0x80")) () ")"))))) (; ";")) (if_statement "if (param_2 != 0) {\n    uVar4 = 0;\n    do {\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    } while (uVar4 < param_2);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = 0;\n    do {\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    } while (uVar4 < param_2);\n  }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    } while (uVar4 < param_2);" (do "do") (compound_statement "{\n      uVar4 = uVar4 + 8;\n      FUN_00068050(param_3);\n      FUN_00068950(param_3 + 0x88);\n      FUN_00068050(param_3 + 0x110);\n      param_1[2] = (char)((uint)local_28 >> 8);\n      param_1[3] = (char)local_28;\n      *param_1 = (char)((uint)local_28 >> 0x18);\n      param_1[6] = (char)((uint)local_24 >> 8);\n      param_1[1] = (char)((uint)local_28 >> 0x10);\n      param_1[7] = (char)local_24;\n      param_1[4] = (char)((uint)local_24 >> 0x18);\n      param_1[5] = (char)((uint)local_24 >> 0x10);\n      uVar2 = local_24;\n      uVar3 = local_28;\n      param_1 = param_1 + 8;\n    }" ({ "{") (expression_statement "uVar4 = uVar4 + 8;" (assignment_expression "uVar4 = uVar4 + 8" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 8" (identifier "uVar4") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "FUN_00068050(param_3);" (call_expression "FUN_00068050(param_3)" (identifier "FUN_00068050") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")"))) (; ";")) (expression_statement "FUN_00068950(param_3 + 0x88);" (call_expression "FUN_00068950(param_3 + 0x88)" (identifier "FUN_00068950") (argument_list "(param_3 + 0x88)" (( "(") (binary_expression "param_3 + 0x88" (identifier "param_3") (+ "+") (number_literal "0x88")) () ")"))) (; ";")) (expression_statement "FUN_00068050(param_3 + 0x110);" (call_expression "FUN_00068050(param_3 + 0x110)" (identifier "FUN_00068050") (argument_list "(param_3 + 0x110)" (( "(") (binary_expression "param_3 + 0x110" (identifier "param_3") (+ "+") (number_literal "0x110")) () ")"))) (; ";")) (expression_statement "param_1[2] = (char)((uint)local_28 >> 8);" (assignment_expression "param_1[2] = (char)((uint)local_28 >> 8)" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(char)((uint)local_28 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)local_28 >> 8)" (( "(") (binary_expression "(uint)local_28 >> 8" (cast_expression "(uint)local_28" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "local_28")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "param_1[3] = (char)local_28;" (assignment_expression "param_1[3] = (char)local_28" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(char)local_28" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "local_28"))) (; ";")) (expression_statement "*param_1 = (char)((uint)local_28 >> 0x18);" (assignment_expression "*param_1 = (char)((uint)local_28 >> 0x18)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(char)((uint)local_28 >> 0x18)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)local_28 >> 0x18)" (( "(") (binary_expression "(uint)local_28 >> 0x18" (cast_expression "(uint)local_28" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "local_28")) (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "param_1[6] = (char)((uint)local_24 >> 8);" (assignment_expression "param_1[6] = (char)((uint)local_24 >> 8)" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (cast_expression "(char)((uint)local_24 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)local_24 >> 8)" (( "(") (binary_expression "(uint)local_24 >> 8" (cast_expression "(uint)local_24" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "local_24")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "param_1[1] = (char)((uint)local_28 >> 0x10);" (assignment_expression "param_1[1] = (char)((uint)local_28 >> 0x10)" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(char)((uint)local_28 >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)local_28 >> 0x10)" (( "(") (binary_expression "(uint)local_28 >> 0x10" (cast_expression "(uint)local_28" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "local_28")) (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "param_1[7] = (char)local_24;" (assignment_expression "param_1[7] = (char)local_24" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (= "=") (cast_expression "(char)local_24" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "local_24"))) (; ";")) (expression_statement "param_1[4] = (char)((uint)local_24 >> 0x18);" (assignment_expression "param_1[4] = (char)((uint)local_24 >> 0x18)" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (cast_expression "(char)((uint)local_24 >> 0x18)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)local_24 >> 0x18)" (( "(") (binary_expression "(uint)local_24 >> 0x18" (cast_expression "(uint)local_24" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "local_24")) (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "param_1[5] = (char)((uint)local_24 >> 0x10);" (assignment_expression "param_1[5] = (char)((uint)local_24 >> 0x10)" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (cast_expression "(char)((uint)local_24 >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)local_24 >> 0x10)" (( "(") (binary_expression "(uint)local_24 >> 0x10" (cast_expression "(uint)local_24" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "local_24")) (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "uVar2 = local_24;" (assignment_expression "uVar2 = local_24" (identifier "uVar2") (= "=") (identifier "local_24")) (; ";")) (expression_statement "uVar3 = local_28;" (assignment_expression "uVar3 = local_28" (identifier "uVar3") (= "=") (identifier "local_28")) (; ";")) (expression_statement "param_1 = param_1 + 8;" (assignment_expression "param_1 = param_1 + 8" (identifier "param_1") (= "=") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar4 < param_2)" (( "(") (binary_expression "uVar4 < param_2" (identifier "uVar4") (< "<") (identifier "param_2")) () ")")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_3 + 0x80) = uVar3;" (assignment_expression "*(undefined4 *)(param_3 + 0x80) = uVar3" (pointer_expression "*(undefined4 *)(param_3 + 0x80)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x80)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x80)" (( "(") (binary_expression "param_3 + 0x80" (identifier "param_3") (+ "+") (number_literal "0x80")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*(undefined4 *)(param_3 + 0x84) = uVar2;" (assignment_expression "*(undefined4 *)(param_3 + 0x84) = uVar2" (pointer_expression "*(undefined4 *)(param_3 + 0x84)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x84)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x84)" (( "(") (binary_expression "param_3 + 0x84" (identifier "param_3") (+ "+") (number_literal "0x84")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_000c60b0();" (call_expression "FUN_000c60b0()" (identifier "FUN_000c60b0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *blk,type_2 var_2,type_3 *var_11)

{
  int var_12;
  type_2 var_7;
  type_2 var_8;
  type_2 var_9;
  type_4 var_6;
  type_2 var_4;
  int var_1;
  type_4 out [2];
  
  var_12 = *(int *)(var_1 + 0x14);
  if ((var_2 & 7) != 0) {
                    /* WARNING: Subroutine does not return */
    var_3("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");
  }
  var_9 = var_11->iv1;
  var_6 = var_11->iv0;
  if (var_2 != 0) {
    var_4 = 0;
    do {
      var_7 = *(type_2 *)blk;
      var_8 = *(type_2 *)((int)blk + 4);
      var_4 = var_4 + 8;
      var_5(out,var_6 ^ (var_7 >> 0x18 | (var_7 & 0xff0000) >> 8 | (var_7 & 0xff00) << 8 |
                               var_7 << 0x18),
                   (var_8 >> 0x18 | (var_8 & 0xff0000) >> 8 | (var_8 & 0xff00) << 8 | var_8 << 0x18)
                   ^ var_9,var_11);
      var_10(out,out[0],out[1],var_11 + 1);
      var_5(out,out[0],out[1],var_11 + 2);
      *(char *)((int)blk + 2) = (char)(out[0] >> 8);
      *(char *)((int)blk + 3) = (char)out[0];
      *blk = (char)(out[0] >> 0x18);
      *(char *)((int)blk + 6) = (char)(out[1] >> 8);
      *(char *)((int)blk + 1) = (char)(out[0] >> 0x10);
      *(char *)((int)blk + 7) = (char)out[1];
      *(char *)((int)blk + 4) = (char)(out[1] >> 0x18);
      *(char *)((int)blk + 5) = (char)(out[1] >> 0x10);
      var_9 = out[1];
      var_6 = out[0];
      blk = (type_1 *)((int)blk + 8);
    } while (var_4 < var_2);
  }
  var_11->iv0 = var_6;
  var_11->iv1 = var_9;
  if (var_12 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_13();
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) 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: (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: (type_identifier) 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: (type_identifier) 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 (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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: (type_identifier) 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: (type_identifier) 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 (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

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

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  uint uVar4;
  int in_GS_OFFSET;
  undefined4 local_28;
  undefined4 local_24;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if ((param_2 & 7) != 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("(len & 7) == 0","sshdes.c",0x29b,"des_cbc3_encrypt");
  }
  uVar2 = *(undefined4 *)(param_3 + 0x84);
  uVar3 = *(undefined4 *)(param_3 + 0x80);
  if (param_2 != 0) {
    uVar4 = 0;
    do {
      uVar4 = uVar4 + 8;
      FUN_00068050(param_3);
      FUN_00068950(param_3 + 0x88);
      FUN_00068050(param_3 + 0x110);
      param_1[2] = (char)((uint)local_28 >> 8);
      param_1[3] = (char)local_28;
      *param_1 = (char)((uint)local_28 >> 0x18);
      param_1[6] = (char)((uint)local_24 >> 8);
      param_1[1] = (char)((uint)local_28 >> 0x10);
      param_1[7] = (char)local_24;
      param_1[4] = (char)((uint)local_24 >> 0x18);
      param_1[5] = (char)((uint)local_24 >> 0x10);
      uVar2 = local_24;
      uVar3 = local_28;
      param_1 = param_1 + 8;
    } while (uVar4 < param_2);
  }
  *(undefined4 *)(param_3 + 0x80) = uVar3;
  *(undefined4 *)(param_3 + 0x84) = uVar2;
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000c60b0();
}

