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

char * concat(char *s1,char *s2,char *s3)

{
  size_t sVar1;
  size_t sVar2;
  size_t sVar3;
  char *pcVar4;
  
  sVar1 = strlen(s1);
  sVar2 = strlen(s2);
  sVar3 = strlen(s3);
  pcVar4 = (char *)xmalloc(sVar3 + sVar1 + 1 + sVar2);
  __sprintf_chk(pcVar4,1,0xffffffff,"%s%s%s",s1,s2,s3);
  return pcVar4;
}



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

undefined4 FUN_0001d8b0(char *param_1,char *param_2,char *param_3)

{
  size_t sVar1;
  size_t sVar2;
  size_t sVar3;
  undefined4 uVar4;
  
  sVar1 = strlen(param_1);
  sVar2 = strlen(param_2);
  sVar3 = strlen(param_3);
  uVar4 = FUN_00023c60(sVar3 + sVar1 + 1 + sVar2);
  __sprintf_chk(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3);
  return uVar4;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013b20
ADD EBX,0x2f747
SUB ESP,0x18
MOV EBP,dword ptr [ESP + 0x34]
PUSH dword ptr [ESP + 0x2c]
CALL 0x000123c0
POP EDX
PUSH dword ptr [ESP + 0x30]
MOV EDI,EAX
CALL 0x000123c0
MOV dword ptr [ESP],EBP
MOV ESI,EAX
CALL 0x000123c0
LEA EDX,[EDI + ESI*0x1 + 0x1]
ADD EAX,EDX
MOV dword ptr [ESP],EAX
CALL 0x00023c60
ADD ESP,0xc
MOV ESI,EAX
LEA EAX,[EBX + 0xffff18c3]
PUSH EBP
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH EAX
PUSH -0x1
PUSH 0x1
PUSH ESI
CALL 0x00012720
ADD ESP,0x2c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0001d8b0(char *param_1,char *param_2,char *param_3)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  sVar1 = strlen(param_1);\n  sVar2 = strlen(param_2);\n  sVar3 = strlen(param_3);\n  uVar4 = FUN_00023c60(sVar3 + sVar1 + 1 + sVar2);\n  __sprintf_chk(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3);\n  return uVar4;\n}\n\n" comment (function_definition "undefined4 FUN_0001d8b0(char *param_1,char *param_2,char *param_3)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  sVar1 = strlen(param_1);\n  sVar2 = strlen(param_2);\n  sVar3 = strlen(param_3);\n  uVar4 = FUN_00023c60(sVar3 + sVar1 + 1 + sVar2);\n  __sprintf_chk(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3);\n  return uVar4;\n}" type_identifier (function_declarator "FUN_0001d8b0(char *param_1,char *param_2,char *param_3)" identifier (parameter_list "(char *param_1,char *param_2,char *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  sVar1 = strlen(param_1);\n  sVar2 = strlen(param_2);\n  sVar3 = strlen(param_3);\n  uVar4 = FUN_00023c60(sVar3 + sVar1 + 1 + sVar2);\n  __sprintf_chk(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3);\n  return uVar4;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "sVar3 = strlen(param_3);" (assignment_expression "sVar3 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "uVar4 = FUN_00023c60(sVar3 + sVar1 + 1 + sVar2);" (assignment_expression "uVar4 = FUN_00023c60(sVar3 + sVar1 + 1 + sVar2)" identifier = (call_expression "FUN_00023c60(sVar3 + sVar1 + 1 + sVar2)" identifier (argument_list "(sVar3 + sVar1 + 1 + sVar2)" ( (binary_expression "sVar3 + sVar1 + 1 + sVar2" (binary_expression "sVar3 + sVar1 + 1" (binary_expression "sVar3 + sVar1" identifier + identifier) + number_literal) + identifier) )))) ;) (expression_statement "__sprintf_chk(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3);" (call_expression "__sprintf_chk(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3)" identifier (argument_list "(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3)" ( identifier , number_literal , number_literal , (string_literal ""%s%s%s"" " string_content ") , identifier , identifier , identifier ))) ;) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * concat(char *s1,char *s2,char *s3)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  size_t sVar3;\n  char *pcVar4;\n  \n  sVar1 = strlen(s1);\n  sVar2 = strlen(s2);\n  sVar3 = strlen(s3);\n  pcVar4 = (char *)xmalloc(sVar3 + sVar1 + 1 + sVar2);\n  __sprintf_chk(pcVar4,1,0xffffffff,"%s%s%s",s1,s2,s3);\n  return pcVar4;\n}\n\n" comment comment (function_definition "char * concat(char *s1,char *s2,char *s3)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  size_t sVar3;\n  char *pcVar4;\n  \n  sVar1 = strlen(s1);\n  sVar2 = strlen(s2);\n  sVar3 = strlen(s3);\n  pcVar4 = (char *)xmalloc(sVar3 + sVar1 + 1 + sVar2);\n  __sprintf_chk(pcVar4,1,0xffffffff,"%s%s%s",s1,s2,s3);\n  return pcVar4;\n}" primitive_type (pointer_declarator "* concat(char *s1,char *s2,char *s3)" * (function_declarator "concat(char *s1,char *s2,char *s3)" identifier (parameter_list "(char *s1,char *s2,char *s3)" ( (parameter_declaration "char *s1" primitive_type (pointer_declarator "*s1" * identifier)) , (parameter_declaration "char *s2" primitive_type (pointer_declarator "*s2" * identifier)) , (parameter_declaration "char *s3" primitive_type (pointer_declarator "*s3" * identifier)) )))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  size_t sVar3;\n  char *pcVar4;\n  \n  sVar1 = strlen(s1);\n  sVar2 = strlen(s2);\n  sVar3 = strlen(s3);\n  pcVar4 = (char *)xmalloc(sVar3 + sVar1 + 1 + sVar2);\n  __sprintf_chk(pcVar4,1,0xffffffff,"%s%s%s",s1,s2,s3);\n  return pcVar4;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "sVar1 = strlen(s1);" (assignment_expression "sVar1 = strlen(s1)" identifier = (call_expression "strlen(s1)" identifier (argument_list "(s1)" ( identifier )))) ;) (expression_statement "sVar2 = strlen(s2);" (assignment_expression "sVar2 = strlen(s2)" identifier = (call_expression "strlen(s2)" identifier (argument_list "(s2)" ( identifier )))) ;) (expression_statement "sVar3 = strlen(s3);" (assignment_expression "sVar3 = strlen(s3)" identifier = (call_expression "strlen(s3)" identifier (argument_list "(s3)" ( identifier )))) ;) (expression_statement "pcVar4 = (char *)xmalloc(sVar3 + sVar1 + 1 + sVar2);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar3 + sVar1 + 1 + sVar2)" identifier = (cast_expression "(char *)xmalloc(sVar3 + sVar1 + 1 + sVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + sVar1 + 1 + sVar2)" identifier (argument_list "(sVar3 + sVar1 + 1 + sVar2)" ( (binary_expression "sVar3 + sVar1 + 1 + sVar2" (binary_expression "sVar3 + sVar1 + 1" (binary_expression "sVar3 + sVar1" identifier + identifier) + number_literal) + identifier) ))))) ;) (expression_statement "__sprintf_chk(pcVar4,1,0xffffffff,"%s%s%s",s1,s2,s3);" (call_expression "__sprintf_chk(pcVar4,1,0xffffffff,"%s%s%s",s1,s2,s3)" identifier (argument_list "(pcVar4,1,0xffffffff,"%s%s%s",s1,s2,s3)" ( identifier , number_literal , number_literal , (string_literal ""%s%s%s"" " string_content ") , identifier , identifier , identifier ))) ;) (return_statement "return pcVar4;" return identifier ;) })))
(translation_unit "undefined4 FUN_0001d8b0(char *param_1,char *param_2,char *param_3)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  sVar1 = strlen(param_1);\n  sVar2 = strlen(param_2);\n  sVar3 = strlen(param_3);\n  uVar4 = FUN_00023c60(sVar3 + sVar1 + 1 + sVar2);\n  __sprintf_chk(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3);\n  return uVar4;\n}\n\n" (function_definition "undefined4 FUN_0001d8b0(char *param_1,char *param_2,char *param_3)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  sVar1 = strlen(param_1);\n  sVar2 = strlen(param_2);\n  sVar3 = strlen(param_3);\n  uVar4 = FUN_00023c60(sVar3 + sVar1 + 1 + sVar2);\n  __sprintf_chk(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3);\n  return uVar4;\n}" type_identifier (function_declarator "FUN_0001d8b0(char *param_1,char *param_2,char *param_3)" identifier (parameter_list "(char *param_1,char *param_2,char *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  sVar1 = strlen(param_1);\n  sVar2 = strlen(param_2);\n  sVar3 = strlen(param_3);\n  uVar4 = FUN_00023c60(sVar3 + sVar1 + 1 + sVar2);\n  __sprintf_chk(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3);\n  return uVar4;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "sVar3 = strlen(param_3);" (assignment_expression "sVar3 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "uVar4 = FUN_00023c60(sVar3 + sVar1 + 1 + sVar2);" (assignment_expression "uVar4 = FUN_00023c60(sVar3 + sVar1 + 1 + sVar2)" identifier = (call_expression "FUN_00023c60(sVar3 + sVar1 + 1 + sVar2)" identifier (argument_list "(sVar3 + sVar1 + 1 + sVar2)" ( (binary_expression "sVar3 + sVar1 + 1 + sVar2" (binary_expression "sVar3 + sVar1 + 1" (binary_expression "sVar3 + sVar1" identifier + identifier) + number_literal) + identifier) )))) ;) (expression_statement "__sprintf_chk(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3);" (call_expression "__sprintf_chk(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3)" identifier (argument_list "(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3)" ( identifier , number_literal , number_literal , (string_literal ""%s%s%s"" " string_content ") , identifier , identifier , identifier ))) ;) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (binary_expression (binary_expression IDENT + IDENT) + LIT) + IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (string_literal " string_content ") , IDENT , IDENT , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0001d8b0(char *param_1,char *param_2,char *param_3)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  sVar1 = strlen(param_1);\n  sVar2 = strlen(param_2);\n  sVar3 = strlen(param_3);\n  uVar4 = FUN_00023c60(sVar3 + sVar1 + 1 + sVar2);\n  __sprintf_chk(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3);\n  return uVar4;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001d8b0(char *param_1,char *param_2,char *param_3)" (identifier "FUN_0001d8b0") (parameter_list "(char *param_1,char *param_2,char *param_3)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  sVar1 = strlen(param_1);\n  sVar2 = strlen(param_2);\n  sVar3 = strlen(param_3);\n  uVar4 = FUN_00023c60(sVar3 + sVar1 + 1 + sVar2);\n  __sprintf_chk(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3);\n  return uVar4;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" (identifier "sVar1") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" (identifier "sVar2") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "sVar3 = strlen(param_3);" (assignment_expression "sVar3 = strlen(param_3)" (identifier "sVar3") (= "=") (call_expression "strlen(param_3)" (identifier "strlen") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "uVar4 = FUN_00023c60(sVar3 + sVar1 + 1 + sVar2);" (assignment_expression "uVar4 = FUN_00023c60(sVar3 + sVar1 + 1 + sVar2)" (identifier "uVar4") (= "=") (call_expression "FUN_00023c60(sVar3 + sVar1 + 1 + sVar2)" (identifier "FUN_00023c60") (argument_list "(sVar3 + sVar1 + 1 + sVar2)" (( "(") (binary_expression "sVar3 + sVar1 + 1 + sVar2" (binary_expression "sVar3 + sVar1 + 1" (binary_expression "sVar3 + sVar1" (identifier "sVar3") (+ "+") (identifier "sVar1")) (+ "+") (number_literal "1")) (+ "+") (identifier "sVar2")) () ")")))) (; ";")) (expression_statement "__sprintf_chk(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3);" (call_expression "__sprintf_chk(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3)" (identifier "__sprintf_chk") (argument_list "(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3)" (( "(") (identifier "uVar4") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (string_literal ""%s%s%s"" (" """) (string_content "%s%s%s") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))

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

char * function_1(char *s1,char *s2,char *s3)

{
  size_t var_4;
  size_t var_5;
  size_t var_3;
  char *pcVar4;
  
  var_4 = var_1(s1);
  var_5 = var_1(s2);
  var_3 = var_1(s3);
  pcVar4 = (char *)var_2(var_3 + var_4 + 1 + var_5);
  var_6(pcVar4,1,0xffffffff,"%s%s%s",s1,s2,s3);
  return pcVar4;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)) right: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (string_literal (string_content)) (identifier) (identifier) (identifier)))) (return_statement (identifier)))))

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

undefined4 MASKED(char *param_1,char *param_2,char *param_3)

{
  size_t sVar1;
  size_t sVar2;
  size_t sVar3;
  undefined4 uVar4;
  
  sVar1 = strlen(param_1);
  sVar2 = strlen(param_2);
  sVar3 = strlen(param_3);
  uVar4 = FUN_00023c60(sVar3 + sVar1 + 1 + sVar2);
  __sprintf_chk(uVar4,1,0xffffffff,"%s%s%s",param_1,param_2,param_3);
  return uVar4;
}

