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

void Curl_sha256it(uchar *outbuffer,uchar *input)

{
  int iVar1;
  size_t uznum;
  uint len;
  int in_GS_OFFSET;
  SHA256_CTX ctx;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  SHA256_Init((SHA256_CTX *)&ctx);
  uznum = strlen((char *)input);
  len = curlx_uztoui(uznum);
  SHA256_Update((SHA256_CTX *)&ctx,input,len);
  SHA256_Final(outbuffer,(SHA256_CTX *)&ctx);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



void FUN_0006f1b0(char *param_1)

{
  size_t sVar1;
  int in_GS_OFFSET;
  uchar *unaff_retaddr;
  SHA256_CTX local_94;
  int local_24;
  undefined4 uStack_14;
  
  uStack_14 = 0x6f1b9;
  entry();
  local_24 = *(int *)(in_GS_OFFSET + 0x14);
  SHA256_Init(&local_94);
  sVar1 = strlen(param_1);
  sVar1 = FUN_0005f920(sVar1);
  SHA256_Update(&local_94,param_1,sVar1);
  SHA256_Final(unaff_retaddr,&local_94);
  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00082f60();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x47627
SUB ESP,0x98
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x88],EAX
XOR EAX,EAX
LEA ESI,[ESP + 0x18]
MOV EDI,dword ptr [ESP + 0xb0]
MOV EBP,dword ptr [ESP + 0xac]
PUSH ESI
CALL 0x00019a20
MOV dword ptr [ESP],EDI
CALL 0x00018850
MOV dword ptr [ESP],EAX
CALL 0x0005f920
ADD ESP,0xc
PUSH EAX
PUSH EDI
PUSH ESI
CALL 0x00019670
POP EAX
POP EDX
PUSH ESI
PUSH EBP
CALL 0x00018060
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x7c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0006f22b
ADD ESP,0x8c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x00082f60
(translation_unit "void FUN_0006f1b0(char *param_1)\n\n{\n  size_t sVar1;\n  int in_GS_OFFSET;\n  uchar *unaff_retaddr;\n  SHA256_CTX local_94;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6f1b9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  SHA256_Init(&local_94);\n  sVar1 = strlen(param_1);\n  sVar1 = FUN_0005f920(sVar1);\n  SHA256_Update(&local_94,param_1,sVar1);\n  SHA256_Final(unaff_retaddr,&local_94);\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00082f60();\n}\n\n" (function_definition "void FUN_0006f1b0(char *param_1)\n\n{\n  size_t sVar1;\n  int in_GS_OFFSET;\n  uchar *unaff_retaddr;\n  SHA256_CTX local_94;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6f1b9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  SHA256_Init(&local_94);\n  sVar1 = strlen(param_1);\n  sVar1 = FUN_0005f920(sVar1);\n  SHA256_Update(&local_94,param_1,sVar1);\n  SHA256_Final(unaff_retaddr,&local_94);\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00082f60();\n}" primitive_type (function_declarator "FUN_0006f1b0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  int in_GS_OFFSET;\n  uchar *unaff_retaddr;\n  SHA256_CTX local_94;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6f1b9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  SHA256_Init(&local_94);\n  sVar1 = strlen(param_1);\n  sVar1 = FUN_0005f920(sVar1);\n  SHA256_Update(&local_94,param_1,sVar1);\n  SHA256_Final(unaff_retaddr,&local_94);\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00082f60();\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uchar *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (declaration "SHA256_CTX local_94;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x6f1b9;" (assignment_expression "uStack_14 = 0x6f1b9" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_24 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "SHA256_Init(&local_94);" (call_expression "SHA256_Init(&local_94)" identifier (argument_list "(&local_94)" ( (pointer_expression "&local_94" & 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 "sVar1 = FUN_0005f920(sVar1);" (assignment_expression "sVar1 = FUN_0005f920(sVar1)" identifier = (call_expression "FUN_0005f920(sVar1)" identifier (argument_list "(sVar1)" ( identifier )))) ;) (expression_statement "SHA256_Update(&local_94,param_1,sVar1);" (call_expression "SHA256_Update(&local_94,param_1,sVar1)" identifier (argument_list "(&local_94,param_1,sVar1)" ( (pointer_expression "&local_94" & identifier) , identifier , identifier ))) ;) (expression_statement "SHA256_Final(unaff_retaddr,&local_94);" (call_expression "SHA256_Final(unaff_retaddr,&local_94)" identifier (argument_list "(unaff_retaddr,&local_94)" ( identifier , (pointer_expression "&local_94" & identifier) ))) ;) (if_statement "if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_24 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_24 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_00082f60();" (call_expression "FUN_00082f60()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid Curl_sha256it(uchar *outbuffer,uchar *input)\n\n{\n  int iVar1;\n  size_t uznum;\n  uint len;\n  int in_GS_OFFSET;\n  SHA256_CTX ctx;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  SHA256_Init((SHA256_CTX *)&ctx);\n  uznum = strlen((char *)input);\n  len = curlx_uztoui(uznum);\n  SHA256_Update((SHA256_CTX *)&ctx,input,len);\n  SHA256_Final(outbuffer,(SHA256_CTX *)&ctx);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void Curl_sha256it(uchar *outbuffer,uchar *input)\n\n{\n  int iVar1;\n  size_t uznum;\n  uint len;\n  int in_GS_OFFSET;\n  SHA256_CTX ctx;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  SHA256_Init((SHA256_CTX *)&ctx);\n  uznum = strlen((char *)input);\n  len = curlx_uztoui(uznum);\n  SHA256_Update((SHA256_CTX *)&ctx,input,len);\n  SHA256_Final(outbuffer,(SHA256_CTX *)&ctx);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "Curl_sha256it(uchar *outbuffer,uchar *input)" identifier (parameter_list "(uchar *outbuffer,uchar *input)" ( (parameter_declaration "uchar *outbuffer" type_identifier (pointer_declarator "*outbuffer" * identifier)) , (parameter_declaration "uchar *input" type_identifier (pointer_declarator "*input" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t uznum;\n  uint len;\n  int in_GS_OFFSET;\n  SHA256_CTX ctx;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  SHA256_Init((SHA256_CTX *)&ctx);\n  uznum = strlen((char *)input);\n  len = curlx_uztoui(uznum);\n  SHA256_Update((SHA256_CTX *)&ctx,input,len);\n  SHA256_Final(outbuffer,(SHA256_CTX *)&ctx);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t uznum;" primitive_type identifier ;) (declaration "uint len;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "SHA256_CTX ctx;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "SHA256_Init((SHA256_CTX *)&ctx);" (call_expression "SHA256_Init((SHA256_CTX *)&ctx)" identifier (argument_list "((SHA256_CTX *)&ctx)" ( (cast_expression "(SHA256_CTX *)&ctx" ( (type_descriptor "SHA256_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ctx" & identifier)) ))) ;) (expression_statement "uznum = strlen((char *)input);" (assignment_expression "uznum = strlen((char *)input)" identifier = (call_expression "strlen((char *)input)" identifier (argument_list "((char *)input)" ( (cast_expression "(char *)input" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "len = curlx_uztoui(uznum);" (assignment_expression "len = curlx_uztoui(uznum)" identifier = (call_expression "curlx_uztoui(uznum)" identifier (argument_list "(uznum)" ( identifier )))) ;) (expression_statement "SHA256_Update((SHA256_CTX *)&ctx,input,len);" (call_expression "SHA256_Update((SHA256_CTX *)&ctx,input,len)" identifier (argument_list "((SHA256_CTX *)&ctx,input,len)" ( (cast_expression "(SHA256_CTX *)&ctx" ( (type_descriptor "SHA256_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ctx" & identifier)) , identifier , identifier ))) ;) (expression_statement "SHA256_Final(outbuffer,(SHA256_CTX *)&ctx);" (call_expression "SHA256_Final(outbuffer,(SHA256_CTX *)&ctx)" identifier (argument_list "(outbuffer,(SHA256_CTX *)&ctx)" ( identifier , (cast_expression "(SHA256_CTX *)&ctx" ( (type_descriptor "SHA256_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ctx" & identifier)) ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_0006f1b0(char *param_1)\n\n{\n  size_t sVar1;\n  int in_GS_OFFSET;\n  uchar *unaff_retaddr;\n  SHA256_CTX local_94;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6f1b9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  SHA256_Init(&local_94);\n  sVar1 = strlen(param_1);\n  sVar1 = FUN_0005f920(sVar1);\n  SHA256_Update(&local_94,param_1,sVar1);\n  SHA256_Final(unaff_retaddr,&local_94);\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00082f60();\n}\n\n" (function_definition "void FUN_0006f1b0(char *param_1)\n\n{\n  size_t sVar1;\n  int in_GS_OFFSET;\n  uchar *unaff_retaddr;\n  SHA256_CTX local_94;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6f1b9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  SHA256_Init(&local_94);\n  sVar1 = strlen(param_1);\n  sVar1 = FUN_0005f920(sVar1);\n  SHA256_Update(&local_94,param_1,sVar1);\n  SHA256_Final(unaff_retaddr,&local_94);\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00082f60();\n}" primitive_type (function_declarator "FUN_0006f1b0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  int in_GS_OFFSET;\n  uchar *unaff_retaddr;\n  SHA256_CTX local_94;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6f1b9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  SHA256_Init(&local_94);\n  sVar1 = strlen(param_1);\n  sVar1 = FUN_0005f920(sVar1);\n  SHA256_Update(&local_94,param_1,sVar1);\n  SHA256_Final(unaff_retaddr,&local_94);\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00082f60();\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uchar *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (declaration "SHA256_CTX local_94;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x6f1b9;" (assignment_expression "uStack_14 = 0x6f1b9" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_24 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "SHA256_Init(&local_94);" (call_expression "SHA256_Init(&local_94)" identifier (argument_list "(&local_94)" ( (pointer_expression "&local_94" & 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 "sVar1 = FUN_0005f920(sVar1);" (assignment_expression "sVar1 = FUN_0005f920(sVar1)" identifier = (call_expression "FUN_0005f920(sVar1)" identifier (argument_list "(sVar1)" ( identifier )))) ;) (expression_statement "SHA256_Update(&local_94,param_1,sVar1);" (call_expression "SHA256_Update(&local_94,param_1,sVar1)" identifier (argument_list "(&local_94,param_1,sVar1)" ( (pointer_expression "&local_94" & identifier) , identifier , identifier ))) ;) (expression_statement "SHA256_Final(unaff_retaddr,&local_94);" (call_expression "SHA256_Final(unaff_retaddr,&local_94)" identifier (argument_list "(unaff_retaddr,&local_94)" ( identifier , (pointer_expression "&local_94" & identifier) ))) ;) (if_statement "if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_24 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_24 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00082f60();" (call_expression "FUN_00082f60()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & 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 (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_0006f1b0(char *param_1)\n\n{\n  size_t sVar1;\n  int in_GS_OFFSET;\n  uchar *unaff_retaddr;\n  SHA256_CTX local_94;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6f1b9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  SHA256_Init(&local_94);\n  sVar1 = strlen(param_1);\n  sVar1 = FUN_0005f920(sVar1);\n  SHA256_Update(&local_94,param_1,sVar1);\n  SHA256_Final(unaff_retaddr,&local_94);\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00082f60();\n}" (primitive_type "void") (function_declarator "FUN_0006f1b0(char *param_1)" (identifier "FUN_0006f1b0") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  size_t sVar1;\n  int in_GS_OFFSET;\n  uchar *unaff_retaddr;\n  SHA256_CTX local_94;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6f1b9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  SHA256_Init(&local_94);\n  sVar1 = strlen(param_1);\n  sVar1 = FUN_0005f920(sVar1);\n  SHA256_Update(&local_94,param_1,sVar1);\n  SHA256_Final(unaff_retaddr,&local_94);\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00082f60();\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "uchar *unaff_retaddr;" (type_identifier "uchar") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (declaration "SHA256_CTX local_94;" (type_identifier "SHA256_CTX") (identifier "local_94") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x6f1b9;" (assignment_expression "uStack_14 = 0x6f1b9" (identifier "uStack_14") (= "=") (number_literal "0x6f1b9")) (; ";")) (expression_statement "entry();" (call_expression "entry()" (identifier "entry") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_24 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_24") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "SHA256_Init(&local_94);" (call_expression "SHA256_Init(&local_94)" (identifier "SHA256_Init") (argument_list "(&local_94)" (( "(") (pointer_expression "&local_94" (& "&") (identifier "local_94")) () ")"))) (; ";")) (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 "sVar1 = FUN_0005f920(sVar1);" (assignment_expression "sVar1 = FUN_0005f920(sVar1)" (identifier "sVar1") (= "=") (call_expression "FUN_0005f920(sVar1)" (identifier "FUN_0005f920") (argument_list "(sVar1)" (( "(") (identifier "sVar1") () ")")))) (; ";")) (expression_statement "SHA256_Update(&local_94,param_1,sVar1);" (call_expression "SHA256_Update(&local_94,param_1,sVar1)" (identifier "SHA256_Update") (argument_list "(&local_94,param_1,sVar1)" (( "(") (pointer_expression "&local_94" (& "&") (identifier "local_94")) (, ",") (identifier "param_1") (, ",") (identifier "sVar1") () ")"))) (; ";")) (expression_statement "SHA256_Final(unaff_retaddr,&local_94);" (call_expression "SHA256_Final(unaff_retaddr,&local_94)" (identifier "SHA256_Final") (argument_list "(unaff_retaddr,&local_94)" (( "(") (identifier "unaff_retaddr") (, ",") (pointer_expression "&local_94" (& "&") (identifier "local_94")) () ")"))) (; ";")) (if_statement "if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_24 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_24 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_24") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00082f60();" (call_expression "FUN_00082f60()" (identifier "FUN_00082f60") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void function_1(type_1 *outbuffer,type_1 *input)

{
  int var_7;
  size_t uznum;
  type_2 len;
  int var_1;
  type_3 ctx;
  
  var_7 = *(int *)(var_1 + 0x14);
  var_2((type_3 *)&ctx);
  uznum = var_3((char *)input);
  len = var_4(uznum);
  var_5((type_3 *)&ctx,input,len);
  var_6(outbuffer,(type_3 *)&ctx);
  if (var_7 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_8();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (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 (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

void MASKED(char *param_1)

{
  size_t sVar1;
  int in_GS_OFFSET;
  uchar *unaff_retaddr;
  SHA256_CTX local_94;
  int local_24;
  undefined4 uStack_14;
  
  uStack_14 = 0x6f1b9;
  entry();
  local_24 = *(int *)(in_GS_OFFSET + 0x14);
  SHA256_Init(&local_94);
  sVar1 = strlen(param_1);
  sVar1 = FUN_0005f920(sVar1);
  SHA256_Update(&local_94,param_1,sVar1);
  SHA256_Final(unaff_retaddr,&local_94);
  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00082f60();
}

