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

void ssl_ctx_security_debug(SSL_CTX *ctx,int verbose)

{
  ssl_ctx_security_debug::sdb.out = bio_err;
  ssl_ctx_security_debug::sdb.verbose = verbose;
  ssl_ctx_security_debug::sdb.old_cb =
       (_func_int_SSL_ptr_SSL_CTX_ptr_int_int_int_void_ptr_void_ptr *)
       SSL_CTX_get_security_callback(ctx);
  SSL_CTX_set_security_callback(ctx,security_callback_debug);
  SSL_CTX_set0_security_ex_data(ctx,&ssl_ctx_security_debug::sdb);
  return;
}



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

void FUN_0007c190(undefined4 param_1,undefined4 param_2)

{
  DAT_000c5da4 = DAT_000c458c;
  DAT_000c5da8 = param_2;
  DAT_000c5dac = SSL_CTX_get_security_callback(param_1);
  SSL_CTX_set_security_callback(param_1,FUN_00079840);
  SSL_CTX_set0_security_ex_data(param_1,&DAT_000c5da4);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x0002c7d0
ADD EBX,0x408e1
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
LEA EAX,[EBX + 0x7b14]
MOV EAX,dword ptr [EAX]
MOV dword ptr [EBX + 0x932c],EAX
MOV EAX,dword ptr [ESP + 0x20]
PUSH ESI
MOV dword ptr [EBX + 0x9330],EAX
CALL 0x000288f0
MOV dword ptr [EBX + 0x9334],EAX
POP EAX
LEA EAX,[EBX + 0xfffbcdc8]
POP EDX
PUSH EAX
PUSH ESI
CALL 0x00027880
POP ECX
POP EAX
LEA EAX,[EBX + 0x932c]
PUSH EAX
PUSH ESI
CALL 0x0002b810
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0007c190(undefined4 param_1,undefined4 param_2)\n\n{\n  DAT_000c5da4 = DAT_000c458c;\n  DAT_000c5da8 = param_2;\n  DAT_000c5dac = SSL_CTX_get_security_callback(param_1);\n  SSL_CTX_set_security_callback(param_1,FUN_00079840);\n  SSL_CTX_set0_security_ex_data(param_1,&DAT_000c5da4);\n  return;\n}\n\n" comment (function_definition "void FUN_0007c190(undefined4 param_1,undefined4 param_2)\n\n{\n  DAT_000c5da4 = DAT_000c458c;\n  DAT_000c5da8 = param_2;\n  DAT_000c5dac = SSL_CTX_get_security_callback(param_1);\n  SSL_CTX_set_security_callback(param_1,FUN_00079840);\n  SSL_CTX_set0_security_ex_data(param_1,&DAT_000c5da4);\n  return;\n}" primitive_type (function_declarator "FUN_0007c190(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  DAT_000c5da4 = DAT_000c458c;\n  DAT_000c5da8 = param_2;\n  DAT_000c5dac = SSL_CTX_get_security_callback(param_1);\n  SSL_CTX_set_security_callback(param_1,FUN_00079840);\n  SSL_CTX_set0_security_ex_data(param_1,&DAT_000c5da4);\n  return;\n}" { (expression_statement "DAT_000c5da4 = DAT_000c458c;" (assignment_expression "DAT_000c5da4 = DAT_000c458c" identifier = identifier) ;) (expression_statement "DAT_000c5da8 = param_2;" (assignment_expression "DAT_000c5da8 = param_2" identifier = identifier) ;) (expression_statement "DAT_000c5dac = SSL_CTX_get_security_callback(param_1);" (assignment_expression "DAT_000c5dac = SSL_CTX_get_security_callback(param_1)" identifier = (call_expression "SSL_CTX_get_security_callback(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SSL_CTX_set_security_callback(param_1,FUN_00079840);" (call_expression "SSL_CTX_set_security_callback(param_1,FUN_00079840)" identifier (argument_list "(param_1,FUN_00079840)" ( identifier , identifier ))) ;) (expression_statement "SSL_CTX_set0_security_ex_data(param_1,&DAT_000c5da4);" (call_expression "SSL_CTX_set0_security_ex_data(param_1,&DAT_000c5da4)" identifier (argument_list "(param_1,&DAT_000c5da4)" ( identifier , (pointer_expression "&DAT_000c5da4" & identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid ssl_ctx_security_debug(SSL_CTX *ctx,int verbose)\n\n{\n  ssl_ctx_security_debug::sdb.out = bio_err;\n  ssl_ctx_security_debug::sdb.verbose = verbose;\n  ssl_ctx_security_debug::sdb.old_cb =\n       (_func_int_SSL_ptr_SSL_CTX_ptr_int_int_int_void_ptr_void_ptr *)\n       SSL_CTX_get_security_callback(ctx);\n  SSL_CTX_set_security_callback(ctx,security_callback_debug);\n  SSL_CTX_set0_security_ex_data(ctx,&ssl_ctx_security_debug::sdb);\n  return;\n}\n\n" comment comment (function_definition "void ssl_ctx_security_debug(SSL_CTX *ctx,int verbose)\n\n{\n  ssl_ctx_security_debug::sdb.out = bio_err;\n  ssl_ctx_security_debug::sdb.verbose = verbose;\n  ssl_ctx_security_debug::sdb.old_cb =\n       (_func_int_SSL_ptr_SSL_CTX_ptr_int_int_int_void_ptr_void_ptr *)\n       SSL_CTX_get_security_callback(ctx);\n  SSL_CTX_set_security_callback(ctx,security_callback_debug);\n  SSL_CTX_set0_security_ex_data(ctx,&ssl_ctx_security_debug::sdb);\n  return;\n}" primitive_type (function_declarator "ssl_ctx_security_debug(SSL_CTX *ctx,int verbose)" identifier (parameter_list "(SSL_CTX *ctx,int verbose)" ( (parameter_declaration "SSL_CTX *ctx" type_identifier (pointer_declarator "*ctx" * identifier)) , (parameter_declaration "int verbose" primitive_type identifier) ))) (compound_statement "{\n  ssl_ctx_security_debug::sdb.out = bio_err;\n  ssl_ctx_security_debug::sdb.verbose = verbose;\n  ssl_ctx_security_debug::sdb.old_cb =\n       (_func_int_SSL_ptr_SSL_CTX_ptr_int_int_int_void_ptr_void_ptr *)\n       SSL_CTX_get_security_callback(ctx);\n  SSL_CTX_set_security_callback(ctx,security_callback_debug);\n  SSL_CTX_set0_security_ex_data(ctx,&ssl_ctx_security_debug::sdb);\n  return;\n}" { (labeled_statement "ssl_ctx_security_debug::sdb.out = bio_err;" statement_identifier : (ERROR ":" :) (expression_statement "sdb.out = bio_err;" (assignment_expression "sdb.out = bio_err" (field_expression "sdb.out" identifier . field_identifier) = identifier) ;)) (labeled_statement "ssl_ctx_security_debug::sdb.verbose = verbose;" statement_identifier : (ERROR ":" :) (expression_statement "sdb.verbose = verbose;" (assignment_expression "sdb.verbose = verbose" (field_expression "sdb.verbose" identifier . field_identifier) = identifier) ;)) (labeled_statement "ssl_ctx_security_debug::sdb.old_cb =\n       (_func_int_SSL_ptr_SSL_CTX_ptr_int_int_int_void_ptr_void_ptr *)\n       SSL_CTX_get_security_callback(ctx);" statement_identifier : (ERROR ":" :) (expression_statement "sdb.old_cb =\n       (_func_int_SSL_ptr_SSL_CTX_ptr_int_int_int_void_ptr_void_ptr *)\n       SSL_CTX_get_security_callback(ctx);" (assignment_expression "sdb.old_cb =\n       (_func_int_SSL_ptr_SSL_CTX_ptr_int_int_int_void_ptr_void_ptr *)\n       SSL_CTX_get_security_callback(ctx)" (field_expression "sdb.old_cb" identifier . field_identifier) = (cast_expression "(_func_int_SSL_ptr_SSL_CTX_ptr_int_int_int_void_ptr_void_ptr *)\n       SSL_CTX_get_security_callback(ctx)" ( (type_descriptor "_func_int_SSL_ptr_SSL_CTX_ptr_int_int_int_void_ptr_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "SSL_CTX_get_security_callback(ctx)" identifier (argument_list "(ctx)" ( identifier ))))) ;)) (expression_statement "SSL_CTX_set_security_callback(ctx,security_callback_debug);" (call_expression "SSL_CTX_set_security_callback(ctx,security_callback_debug)" identifier (argument_list "(ctx,security_callback_debug)" ( identifier , identifier ))) ;) (expression_statement "SSL_CTX_set0_security_ex_data(ctx,&ssl_ctx_security_debug::sdb);" (call_expression "SSL_CTX_set0_security_ex_data(ctx,&ssl_ctx_security_debug::sdb)" identifier (argument_list "(ctx,&ssl_ctx_security_debug::sdb)" ( identifier , (pointer_expression "&ssl_ctx_security_debug" & identifier) (ERROR "::sdb" : : identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0007c190(undefined4 param_1,undefined4 param_2)\n\n{\n  DAT_000c5da4 = DAT_000c458c;\n  DAT_000c5da8 = param_2;\n  DAT_000c5dac = SSL_CTX_get_security_callback(param_1);\n  SSL_CTX_set_security_callback(param_1,FUN_00079840);\n  SSL_CTX_set0_security_ex_data(param_1,&DAT_000c5da4);\n  return;\n}\n\n" (function_definition "void FUN_0007c190(undefined4 param_1,undefined4 param_2)\n\n{\n  DAT_000c5da4 = DAT_000c458c;\n  DAT_000c5da8 = param_2;\n  DAT_000c5dac = SSL_CTX_get_security_callback(param_1);\n  SSL_CTX_set_security_callback(param_1,FUN_00079840);\n  SSL_CTX_set0_security_ex_data(param_1,&DAT_000c5da4);\n  return;\n}" primitive_type (function_declarator "FUN_0007c190(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  DAT_000c5da4 = DAT_000c458c;\n  DAT_000c5da8 = param_2;\n  DAT_000c5dac = SSL_CTX_get_security_callback(param_1);\n  SSL_CTX_set_security_callback(param_1,FUN_00079840);\n  SSL_CTX_set0_security_ex_data(param_1,&DAT_000c5da4);\n  return;\n}" { (expression_statement "DAT_000c5da4 = DAT_000c458c;" (assignment_expression "DAT_000c5da4 = DAT_000c458c" identifier = identifier) ;) (expression_statement "DAT_000c5da8 = param_2;" (assignment_expression "DAT_000c5da8 = param_2" identifier = identifier) ;) (expression_statement "DAT_000c5dac = SSL_CTX_get_security_callback(param_1);" (assignment_expression "DAT_000c5dac = SSL_CTX_get_security_callback(param_1)" identifier = (call_expression "SSL_CTX_get_security_callback(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SSL_CTX_set_security_callback(param_1,FUN_00079840);" (call_expression "SSL_CTX_set_security_callback(param_1,FUN_00079840)" identifier (argument_list "(param_1,FUN_00079840)" ( identifier , identifier ))) ;) (expression_statement "SSL_CTX_set0_security_ex_data(param_1,&DAT_000c5da4);" (call_expression "SSL_CTX_set0_security_ex_data(param_1,&DAT_000c5da4)" identifier (argument_list "(param_1,&DAT_000c5da4)" ( identifier , (pointer_expression "&DAT_000c5da4" & identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0007c190(undefined4 param_1,undefined4 param_2)\n\n{\n  DAT_000c5da4 = DAT_000c458c;\n  DAT_000c5da8 = param_2;\n  DAT_000c5dac = SSL_CTX_get_security_callback(param_1);\n  SSL_CTX_set_security_callback(param_1,FUN_00079840);\n  SSL_CTX_set0_security_ex_data(param_1,&DAT_000c5da4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0007c190(undefined4 param_1,undefined4 param_2)" (identifier "FUN_0007c190") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  DAT_000c5da4 = DAT_000c458c;\n  DAT_000c5da8 = param_2;\n  DAT_000c5dac = SSL_CTX_get_security_callback(param_1);\n  SSL_CTX_set_security_callback(param_1,FUN_00079840);\n  SSL_CTX_set0_security_ex_data(param_1,&DAT_000c5da4);\n  return;\n}" ({ "{") (expression_statement "DAT_000c5da4 = DAT_000c458c;" (assignment_expression "DAT_000c5da4 = DAT_000c458c" (identifier "DAT_000c5da4") (= "=") (identifier "DAT_000c458c")) (; ";")) (expression_statement "DAT_000c5da8 = param_2;" (assignment_expression "DAT_000c5da8 = param_2" (identifier "DAT_000c5da8") (= "=") (identifier "param_2")) (; ";")) (expression_statement "DAT_000c5dac = SSL_CTX_get_security_callback(param_1);" (assignment_expression "DAT_000c5dac = SSL_CTX_get_security_callback(param_1)" (identifier "DAT_000c5dac") (= "=") (call_expression "SSL_CTX_get_security_callback(param_1)" (identifier "SSL_CTX_get_security_callback") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "SSL_CTX_set_security_callback(param_1,FUN_00079840);" (call_expression "SSL_CTX_set_security_callback(param_1,FUN_00079840)" (identifier "SSL_CTX_set_security_callback") (argument_list "(param_1,FUN_00079840)" (( "(") (identifier "param_1") (, ",") (identifier "FUN_00079840") () ")"))) (; ";")) (expression_statement "SSL_CTX_set0_security_ex_data(param_1,&DAT_000c5da4);" (call_expression "SSL_CTX_set0_security_ex_data(param_1,&DAT_000c5da4)" (identifier "SSL_CTX_set0_security_ex_data") (argument_list "(param_1,&DAT_000c5da4)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&DAT_000c5da4" (& "&") (identifier "DAT_000c5da4")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *ctx,int verbose)

{
  ssl_ctx_security_debug::sdb.out = bio_err;
  ssl_ctx_security_debug::sdb.verbose = verbose;
  ssl_ctx_security_debug::sdb.old_cb =
       (type_2 *)
       var_1(ctx);
  var_2(ctx,security_callback_debug);
  var_3(ctx,&function_1::sdb);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier))))) (return_statement))))

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

void MASKED(undefined4 param_1,undefined4 param_2)

{
  DAT_000c5da4 = DAT_000c458c;
  DAT_000c5da8 = param_2;
  DAT_000c5dac = SSL_CTX_get_security_callback(param_1);
  SSL_CTX_set_security_callback(param_1,FUN_00079840);
  SSL_CTX_set0_security_ex_data(param_1,&DAT_000c5da4);
  return;
}

