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

void __regparm3 killall(int ret,pid_t *kidpids)

{
  int *piVar1;
  int __pid;
  pid_t *ppVar2;
  
  if (0 < multi) {
    piVar1 = kidpids + multi;
    ppVar2 = kidpids;
    do {
      while (__pid = *ppVar2, __pid != 0) {
        ppVar2 = ppVar2 + 1;
        kill(__pid,0xf);
        if (ppVar2 == piVar1) goto LAB_000407c2;
      }
      ppVar2 = ppVar2 + 1;
    } while (ppVar2 != piVar1);
  }
LAB_000407c2:
  CRYPTO_free(kidpids);
  sleep(1);
                    /* WARNING: Subroutine does not return */
  exit(ret);
}



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

void __regparm3 FUN_00040770(int param_1,int *param_2)

{
  int *piVar1;
  int __pid;
  int *piVar2;
  
  if (0 < DAT_000c4584) {
    piVar1 = param_2 + DAT_000c4584;
    piVar2 = param_2;
    do {
      while (__pid = *piVar2, __pid != 0) {
        piVar2 = piVar2 + 1;
        kill(__pid,0xf);
        if (piVar2 == piVar1) goto LAB_000407c2;
      }
      piVar2 = piVar2 + 1;
    } while (piVar2 != piVar1);
  }
LAB_000407c2:
  CRYPTO_free(param_2);
  sleep(1);
                    /* WARNING: Subroutine does not return */
  exit(param_1);
}


PUSH EBP
PUSH EDI
MOV EDI,EDX
PUSH ESI
PUSH EBX
CALL 0x0002c7d0
ADD EBX,0x7c2fd
SUB ESP,0x1c
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [EBX + 0x7b0c]
TEST EAX,EAX
JLE 0x000407c2
MOV ESI,EDX
LEA EBP,[EDX + EAX*0x4]
JMP 0x000407a7
ADD ESI,0x4
CMP ESI,EBP
JZ 0x000407c2
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x000407a0
SUB ESP,0x8
ADD ESI,0x4
PUSH 0xf
PUSH EAX
CALL 0x0002ba80
ADD ESP,0x10
CMP ESI,EBP
JNZ 0x000407a7
SUB ESP,0x4
LEA EAX,[EBX + 0xfffc860c]
PUSH 0x380
PUSH EAX
PUSH EDI
CALL 0x00028c20
MOV dword ptr [ESP],0x1
CALL 0x0002acb0
POP EAX
PUSH dword ptr [ESP + 0x18]
CALL 0x0002bde0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00040770(int param_1,int *param_2)\n\n{\n  int *piVar1;\n  int __pid;\n  int *piVar2;\n  \n  if (0 < DAT_000c4584) {\n    piVar1 = param_2 + DAT_000c4584;\n    piVar2 = param_2;\n    do {\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    } while (piVar2 != piVar1);\n  }\nLAB_000407c2:\n  CRYPTO_free(param_2);\n  sleep(1);\n                    /* WARNING: Subroutine does not return */\n  exit(param_1);\n}\n\n" comment (function_definition "void __regparm3 FUN_00040770(int param_1,int *param_2)\n\n{\n  int *piVar1;\n  int __pid;\n  int *piVar2;\n  \n  if (0 < DAT_000c4584) {\n    piVar1 = param_2 + DAT_000c4584;\n    piVar2 = param_2;\n    do {\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    } while (piVar2 != piVar1);\n  }\nLAB_000407c2:\n  CRYPTO_free(param_2);\n  sleep(1);\n                    /* WARNING: Subroutine does not return */\n  exit(param_1);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00040770(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int __pid;\n  int *piVar2;\n  \n  if (0 < DAT_000c4584) {\n    piVar1 = param_2 + DAT_000c4584;\n    piVar2 = param_2;\n    do {\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    } while (piVar2 != piVar1);\n  }\nLAB_000407c2:\n  CRYPTO_free(param_2);\n  sleep(1);\n                    /* WARNING: Subroutine does not return */\n  exit(param_1);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int __pid;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if (0 < DAT_000c4584) {\n    piVar1 = param_2 + DAT_000c4584;\n    piVar2 = param_2;\n    do {\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    } while (piVar2 != piVar1);\n  }" if (parenthesized_expression "(0 < DAT_000c4584)" ( (binary_expression "0 < DAT_000c4584" number_literal < identifier) )) (compound_statement "{\n    piVar1 = param_2 + DAT_000c4584;\n    piVar2 = param_2;\n    do {\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    } while (piVar2 != piVar1);\n  }" { (expression_statement "piVar1 = param_2 + DAT_000c4584;" (assignment_expression "piVar1 = param_2 + DAT_000c4584" identifier = (binary_expression "param_2 + DAT_000c4584" identifier + identifier)) ;) (expression_statement "piVar2 = param_2;" (assignment_expression "piVar2 = param_2" identifier = identifier) ;) (do_statement "do {\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    } while (piVar2 != piVar1);" do (compound_statement "{\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    }" { (while_statement "while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }" while (parenthesized_expression "(__pid = *piVar2, __pid != 0)" ( (comma_expression "__pid = *piVar2, __pid != 0" (assignment_expression "__pid = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) , (binary_expression "__pid != 0" identifier != number_literal)) )) (compound_statement "{\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }" { (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "kill(__pid,0xf);" (call_expression "kill(__pid,0xf)" identifier (argument_list "(__pid,0xf)" ( identifier , number_literal ))) ;) (if_statement "if (piVar2 == piVar1) goto LAB_000407c2;" if (parenthesized_expression "(piVar2 == piVar1)" ( (binary_expression "piVar2 == piVar1" identifier == identifier) )) (goto_statement "goto LAB_000407c2;" goto statement_identifier ;)) })) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar2 != piVar1)" ( (binary_expression "piVar2 != piVar1" identifier != identifier) )) ;) })) (labeled_statement "LAB_000407c2:\n  CRYPTO_free(param_2);" statement_identifier : (expression_statement "CRYPTO_free(param_2);" (call_expression "CRYPTO_free(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;)) (expression_statement "sleep(1);" (call_expression "sleep(1)" identifier (argument_list "(1)" ( number_literal ))) ;) comment (expression_statement "exit(param_1);" (call_expression "exit(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 killall(int ret,pid_t *kidpids)\n\n{\n  int *piVar1;\n  int __pid;\n  pid_t *ppVar2;\n  \n  if (0 < multi) {\n    piVar1 = kidpids + multi;\n    ppVar2 = kidpids;\n    do {\n      while (__pid = *ppVar2, __pid != 0) {\n        ppVar2 = ppVar2 + 1;\n        kill(__pid,0xf);\n        if (ppVar2 == piVar1) goto LAB_000407c2;\n      }\n      ppVar2 = ppVar2 + 1;\n    } while (ppVar2 != piVar1);\n  }\nLAB_000407c2:\n  CRYPTO_free(kidpids);\n  sleep(1);\n                    /* WARNING: Subroutine does not return */\n  exit(ret);\n}\n\n" comment (function_definition "void __regparm3 killall(int ret,pid_t *kidpids)\n\n{\n  int *piVar1;\n  int __pid;\n  pid_t *ppVar2;\n  \n  if (0 < multi) {\n    piVar1 = kidpids + multi;\n    ppVar2 = kidpids;\n    do {\n      while (__pid = *ppVar2, __pid != 0) {\n        ppVar2 = ppVar2 + 1;\n        kill(__pid,0xf);\n        if (ppVar2 == piVar1) goto LAB_000407c2;\n      }\n      ppVar2 = ppVar2 + 1;\n    } while (ppVar2 != piVar1);\n  }\nLAB_000407c2:\n  CRYPTO_free(kidpids);\n  sleep(1);\n                    /* WARNING: Subroutine does not return */\n  exit(ret);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "killall(int ret,pid_t *kidpids)" identifier (parameter_list "(int ret,pid_t *kidpids)" ( (parameter_declaration "int ret" primitive_type identifier) , (parameter_declaration "pid_t *kidpids" type_identifier (pointer_declarator "*kidpids" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int __pid;\n  pid_t *ppVar2;\n  \n  if (0 < multi) {\n    piVar1 = kidpids + multi;\n    ppVar2 = kidpids;\n    do {\n      while (__pid = *ppVar2, __pid != 0) {\n        ppVar2 = ppVar2 + 1;\n        kill(__pid,0xf);\n        if (ppVar2 == piVar1) goto LAB_000407c2;\n      }\n      ppVar2 = ppVar2 + 1;\n    } while (ppVar2 != piVar1);\n  }\nLAB_000407c2:\n  CRYPTO_free(kidpids);\n  sleep(1);\n                    /* WARNING: Subroutine does not return */\n  exit(ret);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int __pid;" primitive_type identifier ;) (declaration "pid_t *ppVar2;" type_identifier (pointer_declarator "*ppVar2" * identifier) ;) (if_statement "if (0 < multi) {\n    piVar1 = kidpids + multi;\n    ppVar2 = kidpids;\n    do {\n      while (__pid = *ppVar2, __pid != 0) {\n        ppVar2 = ppVar2 + 1;\n        kill(__pid,0xf);\n        if (ppVar2 == piVar1) goto LAB_000407c2;\n      }\n      ppVar2 = ppVar2 + 1;\n    } while (ppVar2 != piVar1);\n  }" if (parenthesized_expression "(0 < multi)" ( (binary_expression "0 < multi" number_literal < identifier) )) (compound_statement "{\n    piVar1 = kidpids + multi;\n    ppVar2 = kidpids;\n    do {\n      while (__pid = *ppVar2, __pid != 0) {\n        ppVar2 = ppVar2 + 1;\n        kill(__pid,0xf);\n        if (ppVar2 == piVar1) goto LAB_000407c2;\n      }\n      ppVar2 = ppVar2 + 1;\n    } while (ppVar2 != piVar1);\n  }" { (expression_statement "piVar1 = kidpids + multi;" (assignment_expression "piVar1 = kidpids + multi" identifier = (binary_expression "kidpids + multi" identifier + identifier)) ;) (expression_statement "ppVar2 = kidpids;" (assignment_expression "ppVar2 = kidpids" identifier = identifier) ;) (do_statement "do {\n      while (__pid = *ppVar2, __pid != 0) {\n        ppVar2 = ppVar2 + 1;\n        kill(__pid,0xf);\n        if (ppVar2 == piVar1) goto LAB_000407c2;\n      }\n      ppVar2 = ppVar2 + 1;\n    } while (ppVar2 != piVar1);" do (compound_statement "{\n      while (__pid = *ppVar2, __pid != 0) {\n        ppVar2 = ppVar2 + 1;\n        kill(__pid,0xf);\n        if (ppVar2 == piVar1) goto LAB_000407c2;\n      }\n      ppVar2 = ppVar2 + 1;\n    }" { (while_statement "while (__pid = *ppVar2, __pid != 0) {\n        ppVar2 = ppVar2 + 1;\n        kill(__pid,0xf);\n        if (ppVar2 == piVar1) goto LAB_000407c2;\n      }" while (parenthesized_expression "(__pid = *ppVar2, __pid != 0)" ( (comma_expression "__pid = *ppVar2, __pid != 0" (assignment_expression "__pid = *ppVar2" identifier = (pointer_expression "*ppVar2" * identifier)) , (binary_expression "__pid != 0" identifier != number_literal)) )) (compound_statement "{\n        ppVar2 = ppVar2 + 1;\n        kill(__pid,0xf);\n        if (ppVar2 == piVar1) goto LAB_000407c2;\n      }" { (expression_statement "ppVar2 = ppVar2 + 1;" (assignment_expression "ppVar2 = ppVar2 + 1" identifier = (binary_expression "ppVar2 + 1" identifier + number_literal)) ;) (expression_statement "kill(__pid,0xf);" (call_expression "kill(__pid,0xf)" identifier (argument_list "(__pid,0xf)" ( identifier , number_literal ))) ;) (if_statement "if (ppVar2 == piVar1) goto LAB_000407c2;" if (parenthesized_expression "(ppVar2 == piVar1)" ( (binary_expression "ppVar2 == piVar1" identifier == identifier) )) (goto_statement "goto LAB_000407c2;" goto statement_identifier ;)) })) (expression_statement "ppVar2 = ppVar2 + 1;" (assignment_expression "ppVar2 = ppVar2 + 1" identifier = (binary_expression "ppVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(ppVar2 != piVar1)" ( (binary_expression "ppVar2 != piVar1" identifier != identifier) )) ;) })) (labeled_statement "LAB_000407c2:\n  CRYPTO_free(kidpids);" statement_identifier : (expression_statement "CRYPTO_free(kidpids);" (call_expression "CRYPTO_free(kidpids)" identifier (argument_list "(kidpids)" ( identifier ))) ;)) (expression_statement "sleep(1);" (call_expression "sleep(1)" identifier (argument_list "(1)" ( number_literal ))) ;) comment (expression_statement "exit(ret);" (call_expression "exit(ret)" identifier (argument_list "(ret)" ( identifier ))) ;) })))
(translation_unit "void __regparm3 FUN_00040770(int param_1,int *param_2)\n\n{\n  int *piVar1;\n  int __pid;\n  int *piVar2;\n  \n  if (0 < DAT_000c4584) {\n    piVar1 = param_2 + DAT_000c4584;\n    piVar2 = param_2;\n    do {\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    } while (piVar2 != piVar1);\n  }\nLAB_000407c2:\n  CRYPTO_free(param_2);\n  sleep(1);\n                    \n  exit(param_1);\n}\n\n" (function_definition "void __regparm3 FUN_00040770(int param_1,int *param_2)\n\n{\n  int *piVar1;\n  int __pid;\n  int *piVar2;\n  \n  if (0 < DAT_000c4584) {\n    piVar1 = param_2 + DAT_000c4584;\n    piVar2 = param_2;\n    do {\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    } while (piVar2 != piVar1);\n  }\nLAB_000407c2:\n  CRYPTO_free(param_2);\n  sleep(1);\n                    \n  exit(param_1);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00040770(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int __pid;\n  int *piVar2;\n  \n  if (0 < DAT_000c4584) {\n    piVar1 = param_2 + DAT_000c4584;\n    piVar2 = param_2;\n    do {\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    } while (piVar2 != piVar1);\n  }\nLAB_000407c2:\n  CRYPTO_free(param_2);\n  sleep(1);\n                    \n  exit(param_1);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int __pid;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if (0 < DAT_000c4584) {\n    piVar1 = param_2 + DAT_000c4584;\n    piVar2 = param_2;\n    do {\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    } while (piVar2 != piVar1);\n  }" if (parenthesized_expression "(0 < DAT_000c4584)" ( (binary_expression "0 < DAT_000c4584" number_literal < identifier) )) (compound_statement "{\n    piVar1 = param_2 + DAT_000c4584;\n    piVar2 = param_2;\n    do {\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    } while (piVar2 != piVar1);\n  }" { (expression_statement "piVar1 = param_2 + DAT_000c4584;" (assignment_expression "piVar1 = param_2 + DAT_000c4584" identifier = (binary_expression "param_2 + DAT_000c4584" identifier + identifier)) ;) (expression_statement "piVar2 = param_2;" (assignment_expression "piVar2 = param_2" identifier = identifier) ;) (do_statement "do {\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    } while (piVar2 != piVar1);" do (compound_statement "{\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    }" { (while_statement "while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }" while (parenthesized_expression "(__pid = *piVar2, __pid != 0)" ( (comma_expression "__pid = *piVar2, __pid != 0" (assignment_expression "__pid = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) , (binary_expression "__pid != 0" identifier != number_literal)) )) (compound_statement "{\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }" { (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "kill(__pid,0xf);" (call_expression "kill(__pid,0xf)" identifier (argument_list "(__pid,0xf)" ( identifier , number_literal ))) ;) (if_statement "if (piVar2 == piVar1) goto LAB_000407c2;" if (parenthesized_expression "(piVar2 == piVar1)" ( (binary_expression "piVar2 == piVar1" identifier == identifier) )) (goto_statement "goto LAB_000407c2;" goto statement_identifier ;)) })) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar2 != piVar1)" ( (binary_expression "piVar2 != piVar1" identifier != identifier) )) ;) })) (labeled_statement "LAB_000407c2:\n  CRYPTO_free(param_2);" statement_identifier : (expression_statement "CRYPTO_free(param_2);" (call_expression "CRYPTO_free(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;)) (expression_statement "sleep(1);" (call_expression "sleep(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (expression_statement "exit(param_1);" (call_expression "exit(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })))
(function_definition "void __regparm3 FUN_00040770(int param_1,int *param_2)\n\n{\n  int *piVar1;\n  int __pid;\n  int *piVar2;\n  \n  if (0 < DAT_000c4584) {\n    piVar1 = param_2 + DAT_000c4584;\n    piVar2 = param_2;\n    do {\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    } while (piVar2 != piVar1);\n  }\nLAB_000407c2:\n  CRYPTO_free(param_2);\n  sleep(1);\n                    \n  exit(param_1);\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00040770(int param_1,int *param_2)" (identifier "FUN_00040770") (parameter_list "(int param_1,int *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int __pid;\n  int *piVar2;\n  \n  if (0 < DAT_000c4584) {\n    piVar1 = param_2 + DAT_000c4584;\n    piVar2 = param_2;\n    do {\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    } while (piVar2 != piVar1);\n  }\nLAB_000407c2:\n  CRYPTO_free(param_2);\n  sleep(1);\n                    \n  exit(param_1);\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int __pid;" (primitive_type "int") (identifier "__pid") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (if_statement "if (0 < DAT_000c4584) {\n    piVar1 = param_2 + DAT_000c4584;\n    piVar2 = param_2;\n    do {\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    } while (piVar2 != piVar1);\n  }" (if "if") (parenthesized_expression "(0 < DAT_000c4584)" (( "(") (binary_expression "0 < DAT_000c4584" (number_literal "0") (< "<") (identifier "DAT_000c4584")) () ")")) (compound_statement "{\n    piVar1 = param_2 + DAT_000c4584;\n    piVar2 = param_2;\n    do {\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    } while (piVar2 != piVar1);\n  }" ({ "{") (expression_statement "piVar1 = param_2 + DAT_000c4584;" (assignment_expression "piVar1 = param_2 + DAT_000c4584" (identifier "piVar1") (= "=") (binary_expression "param_2 + DAT_000c4584" (identifier "param_2") (+ "+") (identifier "DAT_000c4584"))) (; ";")) (expression_statement "piVar2 = param_2;" (assignment_expression "piVar2 = param_2" (identifier "piVar2") (= "=") (identifier "param_2")) (; ";")) (do_statement "do {\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    } while (piVar2 != piVar1);" (do "do") (compound_statement "{\n      while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }\n      piVar2 = piVar2 + 1;\n    }" ({ "{") (while_statement "while (__pid = *piVar2, __pid != 0) {\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }" (while "while") (parenthesized_expression "(__pid = *piVar2, __pid != 0)" (( "(") (comma_expression "__pid = *piVar2, __pid != 0" (assignment_expression "__pid = *piVar2" (identifier "__pid") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (, ",") (binary_expression "__pid != 0" (identifier "__pid") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n        piVar2 = piVar2 + 1;\n        kill(__pid,0xf);\n        if (piVar2 == piVar1) goto LAB_000407c2;\n      }" ({ "{") (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "kill(__pid,0xf);" (call_expression "kill(__pid,0xf)" (identifier "kill") (argument_list "(__pid,0xf)" (( "(") (identifier "__pid") (, ",") (number_literal "0xf") () ")"))) (; ";")) (if_statement "if (piVar2 == piVar1) goto LAB_000407c2;" (if "if") (parenthesized_expression "(piVar2 == piVar1)" (( "(") (binary_expression "piVar2 == piVar1" (identifier "piVar2") (== "==") (identifier "piVar1")) () ")")) (goto_statement "goto LAB_000407c2;" (goto "goto") (statement_identifier "LAB_000407c2") (; ";"))) (} "}"))) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar2 != piVar1)" (( "(") (binary_expression "piVar2 != piVar1" (identifier "piVar2") (!= "!=") (identifier "piVar1")) () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_000407c2:\n  CRYPTO_free(param_2);" (statement_identifier "LAB_000407c2") (: ":") (expression_statement "CRYPTO_free(param_2);" (call_expression "CRYPTO_free(param_2)" (identifier "CRYPTO_free") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";"))) (expression_statement "sleep(1);" (call_expression "sleep(1)" (identifier "sleep") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (expression_statement "exit(param_1);" (call_expression "exit(param_1)" (identifier "exit") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}")))

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

void __regparm3 function_1(int ret,type_1 *var_2)

{
  int *var_6;
  int var_3;
  type_1 *var_4;
  
  if (0 < var_1) {
    var_6 = var_2 + var_1;
    var_4 = var_2;
    do {
      while (var_3 = *var_4, var_3 != 0) {
        var_4 = var_4 + 1;
        var_5(var_3,0xf);
        if (var_4 == var_6) goto LAB_000407c2;
      }
      var_4 = var_4 + 1;
    } while (var_4 != var_6);
  }
LAB_000407c2:
  var_7(var_2);
  var_8(1);
                    /* WARNING: Subroutine does not return */
  var_9(ret);
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))) right: (binary_expression left: (identifier) right: (number_literal)))) 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) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))))

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

void __regparm3 MASKED(int param_1,int *param_2)

{
  int *piVar1;
  int __pid;
  int *piVar2;
  
  if (0 < DAT_000c4584) {
    piVar1 = param_2 + DAT_000c4584;
    piVar2 = param_2;
    do {
      while (__pid = *piVar2, __pid != 0) {
        piVar2 = piVar2 + 1;
        kill(__pid,0xf);
        if (piVar2 == piVar1) goto LAB_000407c2;
      }
      piVar2 = piVar2 + 1;
    } while (piVar2 != piVar1);
  }
LAB_000407c2:
  CRYPTO_free(param_2);
  sleep(1);
                    /* WARNING: Subroutine does not return */
  exit(param_1);
}

