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

void __regparm3 hash_mpint(ssh_hash *h,void *s,Bignum b)

{
  uchar *str;
  int in_GS_OFFSET;
  int len;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x2d9df;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  str = ssh2_mpint_fmt(b,&len);
  hash_string((ssh_hash *)&h->bytes,s,str,len);
  safefree(str);
  if (local_20 == *(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 FUN_0002d9d0(void)

{
  int iVar1;
  undefined4 uVar2;
  int in_GS_OFFSET;
  undefined4 local_24;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  uVar2 = FUN_0002bf50();
  FUN_0002d970(local_24);
  FUN_0001b240(uVar2);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f430();
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
PUSH ESI
MOV ESI,EAX
MOV EAX,ECX
PUSH EBX
CALL 0x00014970
ADD EBX,0x7c3b1
SUB ESP,0x1c
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0xc],ECX
XOR ECX,ECX
LEA EDX,[ESP + 0x8]
CALL 0x0002bf50
SUB ESP,0xc
MOV EDX,EBP
PUSH dword ptr [ESP + 0x14]
MOV EDI,EAX
LEA EAX,[ESI + 0x8]
MOV ECX,EDI
CALL 0x0002d970
MOV dword ptr [ESP],EDI
CALL 0x0001b240
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0002da33
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x0006f430
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0002d9d0(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_0002bf50();\n  FUN_0002d970(local_24);\n  FUN_0001b240(uVar2);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}\n\n" comment (function_definition "void FUN_0002d9d0(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_0002bf50();\n  FUN_0002d970(local_24);\n  FUN_0001b240(uVar2);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}" primitive_type (function_declarator "FUN_0002d9d0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_0002bf50();\n  FUN_0002d970(local_24);\n  FUN_0001b240(uVar2);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type 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) ))))) ;) (expression_statement "uVar2 = FUN_0002bf50();" (assignment_expression "uVar2 = FUN_0002bf50()" identifier = (call_expression "FUN_0002bf50()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_0002d970(local_24);" (call_expression "FUN_0002d970(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (expression_statement "FUN_0001b240(uVar2);" (call_expression "FUN_0001b240(uVar2)" identifier (argument_list "(uVar2)" ( 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_0006f430();" (call_expression "FUN_0006f430()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 hash_mpint(ssh_hash *h,void *s,Bignum b)\n\n{\n  uchar *str;\n  int in_GS_OFFSET;\n  int len;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2d9df;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  str = ssh2_mpint_fmt(b,&len);\n  hash_string((ssh_hash *)&h->bytes,s,str,len);\n  safefree(str);\n  if (local_20 == *(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 hash_mpint(ssh_hash *h,void *s,Bignum b)\n\n{\n  uchar *str;\n  int in_GS_OFFSET;\n  int len;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2d9df;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  str = ssh2_mpint_fmt(b,&len);\n  hash_string((ssh_hash *)&h->bytes,s,str,len);\n  safefree(str);\n  if (local_20 == *(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 "hash_mpint(ssh_hash *h,void *s,Bignum b)" identifier (parameter_list "(ssh_hash *h,void *s,Bignum b)" ( (parameter_declaration "ssh_hash *h" type_identifier (pointer_declarator "*h" * identifier)) , (parameter_declaration "void *s" primitive_type (pointer_declarator "*s" * identifier)) , (parameter_declaration "Bignum b" type_identifier identifier) ))) (compound_statement "{\n  uchar *str;\n  int in_GS_OFFSET;\n  int len;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2d9df;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  str = ssh2_mpint_fmt(b,&len);\n  hash_string((ssh_hash *)&h->bytes,s,str,len);\n  safefree(str);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "uchar *str;" type_identifier (pointer_declarator "*str" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int len;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2d9df;" (assignment_expression "uStack_14 = 0x2d9df" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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) ))))) ;) (expression_statement "str = ssh2_mpint_fmt(b,&len);" (assignment_expression "str = ssh2_mpint_fmt(b,&len)" identifier = (call_expression "ssh2_mpint_fmt(b,&len)" identifier (argument_list "(b,&len)" ( identifier , (pointer_expression "&len" & identifier) )))) ;) (expression_statement "hash_string((ssh_hash *)&h->bytes,s,str,len);" (call_expression "hash_string((ssh_hash *)&h->bytes,s,str,len)" identifier (argument_list "((ssh_hash *)&h->bytes,s,str,len)" ( (cast_expression "(ssh_hash *)&h->bytes" ( (type_descriptor "ssh_hash *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&h->bytes" & (field_expression "h->bytes" identifier -> field_identifier))) , identifier , identifier , identifier ))) ;) (expression_statement "safefree(str);" (call_expression "safefree(str)" identifier (argument_list "(str)" ( identifier ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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 FUN_0002d9d0(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_0002bf50();\n  FUN_0002d970(local_24);\n  FUN_0001b240(uVar2);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f430();\n}\n\n" (function_definition "void FUN_0002d9d0(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_0002bf50();\n  FUN_0002d970(local_24);\n  FUN_0001b240(uVar2);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f430();\n}" primitive_type (function_declarator "FUN_0002d9d0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_0002bf50();\n  FUN_0002d970(local_24);\n  FUN_0001b240(uVar2);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f430();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type 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) ))))) ;) (expression_statement "uVar2 = FUN_0002bf50();" (assignment_expression "uVar2 = FUN_0002bf50()" identifier = (call_expression "FUN_0002bf50()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_0002d970(local_24);" (call_expression "FUN_0002d970(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (expression_statement "FUN_0001b240(uVar2);" (call_expression "FUN_0001b240(uVar2)" identifier (argument_list "(uVar2)" ( 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_0006f430();" (call_expression "FUN_0006f430()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (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) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( 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 FUN_0002d9d0(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_0002bf50();\n  FUN_0002d970(local_24);\n  FUN_0001b240(uVar2);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f430();\n}" (primitive_type "void") (function_declarator "FUN_0002d9d0(void)" (identifier "FUN_0002d9d0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_0002bf50();\n  FUN_0002d970(local_24);\n  FUN_0001b240(uVar2);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f430();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (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")) () ")"))))) (; ";")) (expression_statement "uVar2 = FUN_0002bf50();" (assignment_expression "uVar2 = FUN_0002bf50()" (identifier "uVar2") (= "=") (call_expression "FUN_0002bf50()" (identifier "FUN_0002bf50") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_0002d970(local_24);" (call_expression "FUN_0002d970(local_24)" (identifier "FUN_0002d970") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";")) (expression_statement "FUN_0001b240(uVar2);" (call_expression "FUN_0001b240(uVar2)" (identifier "FUN_0001b240") (argument_list "(uVar2)" (( "(") (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_0006f430();" (call_expression "FUN_0006f430()" (identifier "FUN_0006f430") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *h,void *s,type_2 b)

{
  type_3 *str;
  int var_1;
  int len;
  int var_5;
  type_4 uStack_14;
  
  uStack_14 = 0x2d9df;
  var_5 = *(int *)(var_1 + 0x14);
  str = var_2(b,&len);
  var_3((type_1 *)&h->bytes,s,str,len);
  var_4(str);
  if (var_5 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_6();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) 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))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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 MASKED(void)

{
  int iVar1;
  undefined4 uVar2;
  int in_GS_OFFSET;
  undefined4 local_24;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  uVar2 = FUN_0002bf50();
  FUN_0002d970(local_24);
  FUN_0001b240(uVar2);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f430();
}

