{"name": "config_load", "code": "unsigned __int64 __fastcall config_load ( __int64 @@a1@@ ) { const char * v1 ; __int64 v2 ; unsigned int @@v3@@ ; unsigned int * @@v5@@ ; const char * @@v6@@ ; __int64 @@v7@@ ; unsigned __int64 @@v8@@ ; @@v8@@ = __readfsqword ( Number ) ; @@v5@@ = Number L ; v1 = ( const char * ) g_getenv ( String ) ; if ( ! v1 ) v1 = String ; @@v6@@ = v1 ; @@v7@@ = g_key_file_new ( ) ; if ( ( unsigned int ) g_key_file_load_from_file ( @@v7@@ , @@v6@@ , Number L , & @@v5@@ ) ) { if ( ( unsigned int ) g_key_file_has_key ( @@v7@@ , String , String , Number L ) ) * ( _DWORD * ) ( @@a1@@ + Number ) = g_key_file_get_boolean ( @@v7@@ , String , String , & @@v5@@ ) ; if ( ( unsigned int ) g_key_file_has_key ( @@v7@@ , String , String , Number L ) ) * ( _QWORD * ) ( @@a1@@ + Number ) = g_key_file_get_string ( @@v7@@ , String , String , & @@v5@@ ) ; if ( ( unsigned int ) g_key_file_has_key ( @@v7@@ , String , String , Number L ) ) * ( _QWORD * ) @@a1@@ = g_key_file_get_string ( @@v7@@ , String , String , & @@v5@@ ) ; if ( ( unsigned int ) g_key_file_has_key ( @@v7@@ , String , String , Number L ) ) * ( _QWORD * ) ( @@a1@@ + Number ) = g_key_file_get_string ( @@v7@@ , String , String , & @@v5@@ ) ; if ( ( unsigned int ) g_key_file_has_key ( @@v7@@ , String , String , Number L ) ) * ( _QWORD * ) ( @@a1@@ + Number ) = g_key_file_get_string ( @@v7@@ , String , String , & @@v5@@ ) ; if ( ( unsigned int ) g_key_file_has_key ( @@v7@@ , String , String , Number L ) ) * ( _QWORD * ) ( @@a1@@ + Number ) = g_key_file_get_string ( @@v7@@ , String , String , & @@v5@@ ) ; if ( ( unsigned int ) g_key_file_has_key ( @@v7@@ , String , String , Number L ) ) * ( _QWORD * ) ( @@a1@@ + Number ) = g_key_file_get_string ( @@v7@@ , String , String , & @@v5@@ ) ; if ( ( unsigned int ) g_key_file_has_key ( @@v7@@ , String , String , Number L ) && ( unsigned int ) g_key_file_get_boolean ( @@v7@@ , String , String , & @@v5@@ ) ) { * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; } if ( ( unsigned int ) g_key_file_has_key ( @@v7@@ , String , String , Number L ) ) { * ( _QWORD * ) ( @@a1@@ + Number ) = g_key_file_get_string ( @@v7@@ , String , String , & @@v5@@ ) ; v2 = split_list ( * ( _QWORD * ) ( @@a1@@ + Number ) , ( __int64 ) String ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = g_list_concat ( * ( _QWORD * ) ( @@a1@@ + Number ) , v2 ) ; } } g_key_file_free ( @@v7@@ ) ; if ( @@v5@@ ) { @@v3@@ = * @@v5@@ ; if ( __PAIR64__ ( @@v5@@ [ Number ] , @@v3@@ ) != ( ( unsigned int ) g_file_error_quark ( ) | Number ) ) { g_log ( Number L , Number L , String , String , * ( ( const char * * ) @@v5@@ + Number ) ) ; exit ( Number ) ; } } g_clear_error ( & @@v5@@ ) ; return __readfsqword ( Number ) ^ @@v8@@ ; }", "source": [{"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r32"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v8", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s24"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "v6", "t": {"T": 3, "t": "const char"}, "location": "s40"}, {"n": "v5", "t": {"T": 3, "t": "unsigned int"}, "location": "s48"}]}
{"name": "split_list", "code": "__int64 __fastcall split_list ( __int64 @@a1@@ , __int64 @@a2@@ ) { int @@i@@ ; __int64 @@v4@@ ; __int64 @@v5@@ ; @@v4@@ = Number L ; @@v5@@ = g_strsplit ( @@a1@@ , @@a2@@ , Number ) ; for ( @@i@@ = Number ; * ( _QWORD * ) ( Number L * @@i@@ + @@v5@@ ) ; ++ @@i@@ ) @@v4@@ = g_list_prepend ( @@v4@@ , * ( _QWORD * ) ( Number L * @@i@@ + @@v5@@ ) ) ; g_free ( @@v5@@ ) ; return @@v4@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "main", "code": "int __cdecl main ( int @@argc@@ , const char * * @@argv@@ , const char * * @@envp@@ ) { __int64 v3 ; int @@v5@@ ; __int64 @@v6@@ ; __int64 @@v7@@ ; @@v5@@ = Number ; @@v6@@ = g_malloc0_n ( Number L , Number L , @@envp@@ ) ; @@v7@@ = g_malloc0_n ( Number L , Number L , v3 ) ; * ( _DWORD * ) ( @@v7@@ + Number ) = Number ; module_call_init ( Number L ) ; init_dfl_pathnames ( ) ; config_load ( @@v7@@ ) ; config_parse ( @@v7@@ , @@argc@@ , ( char * const * ) @@argv@@ ) ; if ( ! * ( _QWORD * ) ( @@v7@@ + Number ) ) * ( _QWORD * ) ( @@v7@@ + Number ) = g_strdup ( qword_3018 ) ; if ( ! * ( _QWORD * ) ( @@v7@@ + Number ) ) * ( _QWORD * ) ( @@v7@@ + Number ) = g_strdup ( dfl_pathnames ) ; if ( ! * ( _QWORD * ) ( @@v7@@ + Number ) ) * ( _QWORD * ) ( @@v7@@ + Number ) = g_strdup ( String ) ; if ( ! * ( _QWORD * ) @@v7@@ ) { if ( ! strcmp ( * ( const char * * ) ( @@v7@@ + Number ) , String ) ) { * ( _QWORD * ) @@v7@@ = g_strdup ( String ) ; } else { if ( strcmp ( * ( const char * * ) ( @@v7@@ + Number ) , String ) ) { g_log ( Number L , Number L , String ) ; @@v5@@ = Number ; goto LABEL_16 ; } * ( _QWORD * ) @@v7@@ = g_strdup ( String ) ; } } * ( _DWORD * ) ( @@v6@@ + Number ) = * ( _DWORD * ) ( @@v7@@ + Number ) ; * ( _QWORD * ) ( @@v6@@ + Number ) = stderr ; * ( _QWORD * ) ( @@v6@@ + Number ) = * ( _QWORD * ) ( @@v7@@ + Number ) ; * ( _QWORD * ) ( @@v6@@ + Number ) = g_strdup_printf ( String , * ( const char * * ) ( @@v7@@ + Number ) ) ; * ( _QWORD * ) ( @@v6@@ + Number ) = g_strdup_printf ( String , * ( const char * * ) ( @@v7@@ + Number ) ) ; * ( _BYTE * ) ( @@v6@@ + Number ) = check_is_frozen ( @@v6@@ ) ; if ( * ( _DWORD * ) ( @@v7@@ + Number ) ) config_dump ( @@v7@@ ) ; else @@v5@@ = run_agent ( @@v6@@ , @@v7@@ ) ; LABEL_16 : if ( * ( _QWORD * ) ( @@v6@@ + Number ) ) { ga_command_state_cleanup_all ( * ( _QWORD * ) ( @@v6@@ + Number ) ) ; ga_command_state_free ( * ( _QWORD * ) ( @@v6@@ + Number ) ) ; json_message_parser_destroy ( @@v6@@ ) ; } if ( * ( _QWORD * ) ( @@v6@@ + Number ) ) ga_channel_free ( * ( _QWORD * ) ( @@v6@@ + Number ) ) ; g_free ( * ( _QWORD * ) ( @@v6@@ + Number ) ) ; g_free ( * ( _QWORD * ) ( @@v6@@ + Number ) ) ; if ( * ( _DWORD * ) ( @@v7@@ + Number ) ) unlink ( * ( const char * * ) ( @@v7@@ + Number ) ) ; config_free ( ( _QWORD * ) @@v7@@ ) ; if ( * ( _QWORD * ) ( @@v6@@ + Number ) ) g_main_loop_unref ( * ( _QWORD * ) ( @@v6@@ + Number ) ) ; g_free ( @@v6@@ ) ; return @@v5@@ ; }", "source": [{"n": "envp", "t": {"T": 3, "t": "const char *"}, "location": "r16"}, {"n": "argc", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "argv", "t": {"T": 3, "t": "const char *"}, "location": "r64"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}