
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

char * key_type_to_str(int type)

{
  switch(type) {
  case 0:
    return "unable to open file";
  case 1:
    return "not a recognised key file format";
  case 2:
    return "SSH-1 private key";
  case 3:
    return "PuTTY SSH-2 private key";
  case 4:
    return "INTERNAL ERROR (OPENSSH_AUTO)";
  case 5:
    return "OpenSSH SSH-2 private key (old PEM format)";
  case 6:
    return "OpenSSH SSH-2 private key (new format)";
  case 7:
    return "ssh.com SSH-2 private key";
  case 8:
    return "SSH-1 public key";
  case 9:
    return "SSH-2 public key (RFC 4716 format)";
  case 10:
    return "SSH-2 public key (OpenSSH format)";
  default:
    return "INTERNAL ERROR";
  }
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

char * FUN_00078a10(undefined4 param_1)

{
  switch(param_1) {
  case 0:
    return "unable to open file";
  case 1:
    return "not a recognised key file format";
  case 2:
    return "SSH-1 private key";
  case 3:
    return "PuTTY SSH-2 private key";
  case 4:
    return "INTERNAL ERROR (OPENSSH_AUTO)";
  case 5:
    return "OpenSSH SSH-2 private key (old PEM format)";
  case 6:
    return "OpenSSH SSH-2 private key (new format)";
  case 7:
    return "ssh.com SSH-2 private key";
  case 8:
    return "SSH-1 public key";
  case 9:
    return "SSH-2 public key (RFC 4716 format)";
  case 10:
    return "SSH-2 public key (OpenSSH format)";
  default:
    return "INTERNAL ERROR";
  }
}


CALL 0x0001cb7e
ADD EAX,0xc1d3b
MOV EDX,dword ptr [ESP + 0x4]
CMP EDX,0xa
JA 0x00078ae0
MOV ECX,dword ptr [EAX + EDX*0x4 + 0xfffb07b0]
ADD ECX,EAX
JMP ECX
LEA EAX,[EAX + 0xfffb038b]
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nchar * FUN_00078a10(undefined4 param_1)\n\n{\n  switch(param_1) {\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }\n}\n\n" comment (function_definition "char * FUN_00078a10(undefined4 param_1)\n\n{\n  switch(param_1) {\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }\n}" primitive_type (pointer_declarator "* FUN_00078a10(undefined4 param_1)" * (function_declarator "FUN_00078a10(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  switch(param_1) {\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }\n}" { (switch_statement "switch(param_1) {\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }" switch (parenthesized_expression "(param_1)" ( identifier )) (compound_statement "{\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }" { (case_statement "case 0:\n    return "unable to open file";" case number_literal : (return_statement "return "unable to open file";" return (string_literal ""unable to open file"" " string_content ") ;)) (case_statement "case 1:\n    return "not a recognised key file format";" case number_literal : (return_statement "return "not a recognised key file format";" return (string_literal ""not a recognised key file format"" " string_content ") ;)) (case_statement "case 2:\n    return "SSH-1 private key";" case number_literal : (return_statement "return "SSH-1 private key";" return (string_literal ""SSH-1 private key"" " string_content ") ;)) (case_statement "case 3:\n    return "PuTTY SSH-2 private key";" case number_literal : (return_statement "return "PuTTY SSH-2 private key";" return (string_literal ""PuTTY SSH-2 private key"" " string_content ") ;)) (case_statement "case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";" case number_literal : (return_statement "return "INTERNAL ERROR (OPENSSH_AUTO)";" return (string_literal ""INTERNAL ERROR (OPENSSH_AUTO)"" " string_content ") ;)) (case_statement "case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";" case number_literal : (return_statement "return "OpenSSH SSH-2 private key (old PEM format)";" return (string_literal ""OpenSSH SSH-2 private key (old PEM format)"" " string_content ") ;)) (case_statement "case 6:\n    return "OpenSSH SSH-2 private key (new format)";" case number_literal : (return_statement "return "OpenSSH SSH-2 private key (new format)";" return (string_literal ""OpenSSH SSH-2 private key (new format)"" " string_content ") ;)) (case_statement "case 7:\n    return "ssh.com SSH-2 private key";" case number_literal : (return_statement "return "ssh.com SSH-2 private key";" return (string_literal ""ssh.com SSH-2 private key"" " string_content ") ;)) (case_statement "case 8:\n    return "SSH-1 public key";" case number_literal : (return_statement "return "SSH-1 public key";" return (string_literal ""SSH-1 public key"" " string_content ") ;)) (case_statement "case 9:\n    return "SSH-2 public key (RFC 4716 format)";" case number_literal : (return_statement "return "SSH-2 public key (RFC 4716 format)";" return (string_literal ""SSH-2 public key (RFC 4716 format)"" " string_content ") ;)) (case_statement "case 10:\n    return "SSH-2 public key (OpenSSH format)";" case number_literal : (return_statement "return "SSH-2 public key (OpenSSH format)";" return (string_literal ""SSH-2 public key (OpenSSH format)"" " string_content ") ;)) (case_statement "default:\n    return "INTERNAL ERROR";" default : (return_statement "return "INTERNAL ERROR";" return (string_literal ""INTERNAL ERROR"" " string_content ") ;)) })) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Unknown calling convention */\n\nchar * key_type_to_str(int type)\n\n{\n  switch(type) {\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }\n}\n\n" comment comment (function_definition "char * key_type_to_str(int type)\n\n{\n  switch(type) {\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }\n}" primitive_type (pointer_declarator "* key_type_to_str(int type)" * (function_declarator "key_type_to_str(int type)" identifier (parameter_list "(int type)" ( (parameter_declaration "int type" primitive_type identifier) )))) (compound_statement "{\n  switch(type) {\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }\n}" { (switch_statement "switch(type) {\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }" switch (parenthesized_expression "(type)" ( identifier )) (compound_statement "{\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }" { (case_statement "case 0:\n    return "unable to open file";" case number_literal : (return_statement "return "unable to open file";" return (string_literal ""unable to open file"" " string_content ") ;)) (case_statement "case 1:\n    return "not a recognised key file format";" case number_literal : (return_statement "return "not a recognised key file format";" return (string_literal ""not a recognised key file format"" " string_content ") ;)) (case_statement "case 2:\n    return "SSH-1 private key";" case number_literal : (return_statement "return "SSH-1 private key";" return (string_literal ""SSH-1 private key"" " string_content ") ;)) (case_statement "case 3:\n    return "PuTTY SSH-2 private key";" case number_literal : (return_statement "return "PuTTY SSH-2 private key";" return (string_literal ""PuTTY SSH-2 private key"" " string_content ") ;)) (case_statement "case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";" case number_literal : (return_statement "return "INTERNAL ERROR (OPENSSH_AUTO)";" return (string_literal ""INTERNAL ERROR (OPENSSH_AUTO)"" " string_content ") ;)) (case_statement "case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";" case number_literal : (return_statement "return "OpenSSH SSH-2 private key (old PEM format)";" return (string_literal ""OpenSSH SSH-2 private key (old PEM format)"" " string_content ") ;)) (case_statement "case 6:\n    return "OpenSSH SSH-2 private key (new format)";" case number_literal : (return_statement "return "OpenSSH SSH-2 private key (new format)";" return (string_literal ""OpenSSH SSH-2 private key (new format)"" " string_content ") ;)) (case_statement "case 7:\n    return "ssh.com SSH-2 private key";" case number_literal : (return_statement "return "ssh.com SSH-2 private key";" return (string_literal ""ssh.com SSH-2 private key"" " string_content ") ;)) (case_statement "case 8:\n    return "SSH-1 public key";" case number_literal : (return_statement "return "SSH-1 public key";" return (string_literal ""SSH-1 public key"" " string_content ") ;)) (case_statement "case 9:\n    return "SSH-2 public key (RFC 4716 format)";" case number_literal : (return_statement "return "SSH-2 public key (RFC 4716 format)";" return (string_literal ""SSH-2 public key (RFC 4716 format)"" " string_content ") ;)) (case_statement "case 10:\n    return "SSH-2 public key (OpenSSH format)";" case number_literal : (return_statement "return "SSH-2 public key (OpenSSH format)";" return (string_literal ""SSH-2 public key (OpenSSH format)"" " string_content ") ;)) (case_statement "default:\n    return "INTERNAL ERROR";" default : (return_statement "return "INTERNAL ERROR";" return (string_literal ""INTERNAL ERROR"" " string_content ") ;)) })) })))
(translation_unit "char * FUN_00078a10(undefined4 param_1)\n\n{\n  switch(param_1) {\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }\n}\n\n" (function_definition "char * FUN_00078a10(undefined4 param_1)\n\n{\n  switch(param_1) {\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }\n}" primitive_type (pointer_declarator "* FUN_00078a10(undefined4 param_1)" * (function_declarator "FUN_00078a10(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  switch(param_1) {\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }\n}" { (switch_statement "switch(param_1) {\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }" switch (parenthesized_expression "(param_1)" ( identifier )) (compound_statement "{\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }" { (case_statement "case 0:\n    return "unable to open file";" case number_literal : (return_statement "return "unable to open file";" return (string_literal ""unable to open file"" " string_content ") ;)) (case_statement "case 1:\n    return "not a recognised key file format";" case number_literal : (return_statement "return "not a recognised key file format";" return (string_literal ""not a recognised key file format"" " string_content ") ;)) (case_statement "case 2:\n    return "SSH-1 private key";" case number_literal : (return_statement "return "SSH-1 private key";" return (string_literal ""SSH-1 private key"" " string_content ") ;)) (case_statement "case 3:\n    return "PuTTY SSH-2 private key";" case number_literal : (return_statement "return "PuTTY SSH-2 private key";" return (string_literal ""PuTTY SSH-2 private key"" " string_content ") ;)) (case_statement "case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";" case number_literal : (return_statement "return "INTERNAL ERROR (OPENSSH_AUTO)";" return (string_literal ""INTERNAL ERROR (OPENSSH_AUTO)"" " string_content ") ;)) (case_statement "case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";" case number_literal : (return_statement "return "OpenSSH SSH-2 private key (old PEM format)";" return (string_literal ""OpenSSH SSH-2 private key (old PEM format)"" " string_content ") ;)) (case_statement "case 6:\n    return "OpenSSH SSH-2 private key (new format)";" case number_literal : (return_statement "return "OpenSSH SSH-2 private key (new format)";" return (string_literal ""OpenSSH SSH-2 private key (new format)"" " string_content ") ;)) (case_statement "case 7:\n    return "ssh.com SSH-2 private key";" case number_literal : (return_statement "return "ssh.com SSH-2 private key";" return (string_literal ""ssh.com SSH-2 private key"" " string_content ") ;)) (case_statement "case 8:\n    return "SSH-1 public key";" case number_literal : (return_statement "return "SSH-1 public key";" return (string_literal ""SSH-1 public key"" " string_content ") ;)) (case_statement "case 9:\n    return "SSH-2 public key (RFC 4716 format)";" case number_literal : (return_statement "return "SSH-2 public key (RFC 4716 format)";" return (string_literal ""SSH-2 public key (RFC 4716 format)"" " string_content ") ;)) (case_statement "case 10:\n    return "SSH-2 public key (OpenSSH format)";" case number_literal : (return_statement "return "SSH-2 public key (OpenSSH format)";" return (string_literal ""SSH-2 public key (OpenSSH format)"" " string_content ") ;)) (case_statement "default:\n    return "INTERNAL ERROR";" default : (return_statement "return "INTERNAL ERROR";" return (string_literal ""INTERNAL ERROR"" " string_content ") ;)) })) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (switch_statement switch (parenthesized_expression ( IDENT )) (compound_statement { (case_statement case LIT : (return_statement return (string_literal " string_content ") ;)) (case_statement case LIT : (return_statement return (string_literal " string_content ") ;)) (case_statement case LIT : (return_statement return (string_literal " string_content ") ;)) (case_statement case LIT : (return_statement return (string_literal " string_content ") ;)) (case_statement case LIT : (return_statement return (string_literal " string_content ") ;)) (case_statement case LIT : (return_statement return (string_literal " string_content ") ;)) (case_statement case LIT : (return_statement return (string_literal " string_content ") ;)) (case_statement case LIT : (return_statement return (string_literal " string_content ") ;)) (case_statement case LIT : (return_statement return (string_literal " string_content ") ;)) (case_statement case LIT : (return_statement return (string_literal " string_content ") ;)) (case_statement case LIT : (return_statement return (string_literal " string_content ") ;)) (case_statement default : (return_statement return (string_literal " string_content ") ;)) })) })))
(function_definition "char * FUN_00078a10(undefined4 param_1)\n\n{\n  switch(param_1) {\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }\n}" (primitive_type "char") (pointer_declarator "* FUN_00078a10(undefined4 param_1)" (* "*") (function_declarator "FUN_00078a10(undefined4 param_1)" (identifier "FUN_00078a10") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")")))) (compound_statement "{\n  switch(param_1) {\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }\n}" ({ "{") (switch_statement "switch(param_1) {\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }" (switch "switch") (parenthesized_expression "(param_1)" (( "(") (identifier "param_1") () ")")) (compound_statement "{\n  case 0:\n    return "unable to open file";\n  case 1:\n    return "not a recognised key file format";\n  case 2:\n    return "SSH-1 private key";\n  case 3:\n    return "PuTTY SSH-2 private key";\n  case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";\n  case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";\n  case 6:\n    return "OpenSSH SSH-2 private key (new format)";\n  case 7:\n    return "ssh.com SSH-2 private key";\n  case 8:\n    return "SSH-1 public key";\n  case 9:\n    return "SSH-2 public key (RFC 4716 format)";\n  case 10:\n    return "SSH-2 public key (OpenSSH format)";\n  default:\n    return "INTERNAL ERROR";\n  }" ({ "{") (case_statement "case 0:\n    return "unable to open file";" (case "case") (number_literal "0") (: ":") (return_statement "return "unable to open file";" (return "return") (string_literal ""unable to open file"" (" """) (string_content "unable to open file") (" """)) (; ";"))) (case_statement "case 1:\n    return "not a recognised key file format";" (case "case") (number_literal "1") (: ":") (return_statement "return "not a recognised key file format";" (return "return") (string_literal ""not a recognised key file format"" (" """) (string_content "not a recognised key file format") (" """)) (; ";"))) (case_statement "case 2:\n    return "SSH-1 private key";" (case "case") (number_literal "2") (: ":") (return_statement "return "SSH-1 private key";" (return "return") (string_literal ""SSH-1 private key"" (" """) (string_content "SSH-1 private key") (" """)) (; ";"))) (case_statement "case 3:\n    return "PuTTY SSH-2 private key";" (case "case") (number_literal "3") (: ":") (return_statement "return "PuTTY SSH-2 private key";" (return "return") (string_literal ""PuTTY SSH-2 private key"" (" """) (string_content "PuTTY SSH-2 private key") (" """)) (; ";"))) (case_statement "case 4:\n    return "INTERNAL ERROR (OPENSSH_AUTO)";" (case "case") (number_literal "4") (: ":") (return_statement "return "INTERNAL ERROR (OPENSSH_AUTO)";" (return "return") (string_literal ""INTERNAL ERROR (OPENSSH_AUTO)"" (" """) (string_content "INTERNAL ERROR (OPENSSH_AUTO)") (" """)) (; ";"))) (case_statement "case 5:\n    return "OpenSSH SSH-2 private key (old PEM format)";" (case "case") (number_literal "5") (: ":") (return_statement "return "OpenSSH SSH-2 private key (old PEM format)";" (return "return") (string_literal ""OpenSSH SSH-2 private key (old PEM format)"" (" """) (string_content "OpenSSH SSH-2 private key (old PEM format)") (" """)) (; ";"))) (case_statement "case 6:\n    return "OpenSSH SSH-2 private key (new format)";" (case "case") (number_literal "6") (: ":") (return_statement "return "OpenSSH SSH-2 private key (new format)";" (return "return") (string_literal ""OpenSSH SSH-2 private key (new format)"" (" """) (string_content "OpenSSH SSH-2 private key (new format)") (" """)) (; ";"))) (case_statement "case 7:\n    return "ssh.com SSH-2 private key";" (case "case") (number_literal "7") (: ":") (return_statement "return "ssh.com SSH-2 private key";" (return "return") (string_literal ""ssh.com SSH-2 private key"" (" """) (string_content "ssh.com SSH-2 private key") (" """)) (; ";"))) (case_statement "case 8:\n    return "SSH-1 public key";" (case "case") (number_literal "8") (: ":") (return_statement "return "SSH-1 public key";" (return "return") (string_literal ""SSH-1 public key"" (" """) (string_content "SSH-1 public key") (" """)) (; ";"))) (case_statement "case 9:\n    return "SSH-2 public key (RFC 4716 format)";" (case "case") (number_literal "9") (: ":") (return_statement "return "SSH-2 public key (RFC 4716 format)";" (return "return") (string_literal ""SSH-2 public key (RFC 4716 format)"" (" """) (string_content "SSH-2 public key (RFC 4716 format)") (" """)) (; ";"))) (case_statement "case 10:\n    return "SSH-2 public key (OpenSSH format)";" (case "case") (number_literal "10") (: ":") (return_statement "return "SSH-2 public key (OpenSSH format)";" (return "return") (string_literal ""SSH-2 public key (OpenSSH format)"" (" """) (string_content "SSH-2 public key (OpenSSH format)") (" """)) (; ";"))) (case_statement "default:\n    return "INTERNAL ERROR";" (default "default") (: ":") (return_statement "return "INTERNAL ERROR";" (return "return") (string_literal ""INTERNAL ERROR"" (" """) (string_content "INTERNAL ERROR") (" """)) (; ";"))) (} "}"))) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

char * function_1(int type)

{
  switch(type) {
  case 0:
    return "unable to open file";
  case 1:
    return "not a recognised key file format";
  case 2:
    return "SSH-1 private key";
  case 3:
    return "PuTTY SSH-2 private key";
  case 4:
    return "INTERNAL ERROR (OPENSSH_AUTO)";
  case 5:
    return "OpenSSH SSH-2 private key (old PEM format)";
  case 6:
    return "OpenSSH SSH-2 private key (new format)";
  case 7:
    return "ssh.com SSH-2 private key";
  case 8:
    return "SSH-1 public key";
  case 9:
    return "SSH-2 public key (RFC 4716 format)";
  case 10:
    return "SSH-2 public key (OpenSSH format)";
  default:
    return "INTERNAL ERROR";
  }
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (switch_statement condition: (parenthesized_expression (identifier)) body: (compound_statement (case_statement value: (number_literal) (return_statement (string_literal (string_content)))) (case_statement value: (number_literal) (return_statement (string_literal (string_content)))) (case_statement value: (number_literal) (return_statement (string_literal (string_content)))) (case_statement value: (number_literal) (return_statement (string_literal (string_content)))) (case_statement value: (number_literal) (return_statement (string_literal (string_content)))) (case_statement value: (number_literal) (return_statement (string_literal (string_content)))) (case_statement value: (number_literal) (return_statement (string_literal (string_content)))) (case_statement value: (number_literal) (return_statement (string_literal (string_content)))) (case_statement value: (number_literal) (return_statement (string_literal (string_content)))) (case_statement value: (number_literal) (return_statement (string_literal (string_content)))) (case_statement value: (number_literal) (return_statement (string_literal (string_content)))) (case_statement (return_statement (string_literal (string_content)))))))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

char * MASKED(undefined4 param_1)

{
  switch(param_1) {
  case 0:
    return "unable to open file";
  case 1:
    return "not a recognised key file format";
  case 2:
    return "SSH-1 private key";
  case 3:
    return "PuTTY SSH-2 private key";
  case 4:
    return "INTERNAL ERROR (OPENSSH_AUTO)";
  case 5:
    return "OpenSSH SSH-2 private key (old PEM format)";
  case 6:
    return "OpenSSH SSH-2 private key (new format)";
  case 7:
    return "ssh.com SSH-2 private key";
  case 8:
    return "SSH-1 public key";
  case 9:
    return "SSH-2 public key (RFC 4716 format)";
  case 10:
    return "SSH-2 public key (OpenSSH format)";
  default:
    return "INTERNAL ERROR";
  }
}

