Il2CppDumper icon indicating copy to clipboard operation
Il2CppDumper copied to clipboard

Junk field name in il2cpp.h

Open DRayX opened this issue 2 years ago • 2 comments

Note: if you do not provide all of the following information I will directly ignore and close this issue

  • Il2CppDumper version 6.6.15

  • Target Unity version Not sure

  • Describe the issue Getting junk variable names in the generated header file such as

	VirtualInvokeData _32__2h1~D�L'���Q��r���ÿ�f��6�8��Ӽ��]�{"6X||Nj���#'����R��"vPts���%���4��Y@r��&–�S��_oh�b�7�[e}U8/f#�O�U���KK�'��1�Ț�8�dž6+c�K
�8(�-�T7�����ݠ\[���T8�Ho?6}k�u+V�y�R�P��v*��3�
}�Wtτ�.�3���*S�X*�Bu,�P�`�v�ϋ!���X�'m;:��0��F����ś-���b��#��~?6�?�^H�g�jC]��b<$�xbNvQ0���c%I��ku�y�H%����X��.5	�4�<��a� d�H�eR.��/�l��/�y�!�b�n�`L����/��Ѕ,ʟ�6��£3��Fmyz��j!Z��}Age���6&(�
{�(���)�޳���8����@�|'�)լ�UV_�������wK��	j�9�꧉-/
��t/F�ju-|}9/]lcUz�e6Xѩ�b��vb
���S�[��ck�T�A���b�����3Jl��`t�2m�����x7�^�K→����!:$S?��t_��Hۉ+(O�����y����`��o��"��g*W���dO�G�`S�0F���I�%�Jk�ix�����>�J^���������k�Z��8�{|��5���B�L��kP07T������QD�ݴꀈ-Z�y*-K6p2�oX`'��(Y'��TY�m�R������7a�u�gt_6k_�����J���uC�[}p��Z@��5U���M30��yo��+y�<�;��2�ɍ���ޠLX��`%O��L�^.�Rd��K�?������ĩё��2��ӌq�/�;��
J�$Zj�9Y},ڰ80/s8�}.�v��K@���X��T�B�;�9z�vO�5)&��~BͶ�#b�k�q�Z?�X	��ծ�L����N�.��"��f7�/�,��c�2,�Z#�*�;

I'm also seeing some fields with no name, e.g.

	struct Dpr_Battle_Logic_CA_t____6___o__W____L__E__1___n__NW_____V___t___Z_b__r______6D_J_______t_______p_____h_______f_____w_U_o* ;

The script.json also has junk names:

    {
      "Address": 31841600,
      "Name": "System.Array$$InternalArray__IEnumerable_GetEnumerator<���|\t���u�zb^�,�\u00016��T\u0016=_�)-�*�E|�\u0014%X�@05���?�m^U��BH�Qdv$�\nm�1�ڛ��1(ͬ­B.y���>",
      "Signature": "System_Collections_Generic_IEnumerator_T__o* System_Array__InternalArray__IEnumerable_GetEnumerator_________u_zb_____6__T_________E____X__05_____m_U__BH_Qdv___m_1____1___B_y____ (System_Array_o* __this, const MethodInfo_1E5DD40* method);",
      "TypeSignature": "iii"
    },
  • Upload executable file and global-metadata.dat I can provide links to these in private

DRayX avatar Dec 22 '21 17:12 DRayX

It looks like the obfuscation plugin is used, but unfortunately, I don’t have any plans to clear the obfuscation at the moment.

Perfare avatar Dec 24 '21 05:12 Perfare

Ya, I'm sure it's obfuscation. I'm not really looking to de-obfuscate the names, but would it be possible to ensure that the output values in the header and script.json are at least valid identifiers? It looks like in some instances the junk characters are replaced with underscores, while in others they are not.

DRayX avatar Jan 05 '22 18:01 DRayX