Function at 0x10002120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ccea
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x1004900c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
nop
mov ecx, str.il2cpp_init
mov dword [0x10049954], esi
call fcn.10001ff0
test eax, eax
jne 0x10002171
inc esi
cmp esi, 2
jl 0x10002150
xor al, al
jmp 0x10002902
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c4]
push str.il2cpp_class_from_name
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.1000aee0
mov dword [ebp - 0x2ac], 0x100498f8
push str.il2cpp_class_get_fields
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 4], 0
call fcn.1000aee0
mov dword [ebp - 0x290], 0x100498fc
push str.il2cpp_class_get_field_from_name
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 1
call fcn.1000aee0
mov dword [ebp - 0x274], 0x10049900
push str.il2cpp_class_get_methods
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 2
call fcn.1000aee0
mov dword [ebp - 0x258], 0x10049904
push str.il2cpp_class_get_method_from_name
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 3
call fcn.1000aee0
mov dword [ebp - 0x23c], 0x10049908
push str.il2cpp_class_get_property_from_name
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 4
call fcn.1000aee0
mov dword [ebp - 0x220], 0x1004990c
push str.il2cpp_class_get_type
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 5
call fcn.1000aee0
mov dword [ebp - 0x204], 0x10049910
push str.il2cpp_domain_get
lea ecx, [ebp - 0x200]
mov byte [ebp - 4], 6
call fcn.1000aee0
mov dword [ebp - 0x1e8], 0x10049914
push str.il2cpp_domain_get_assemblies
lea ecx, [ebp - 0x1e4]
mov byte [ebp - 4], 7
call fcn.1000aee0
mov dword [ebp - 0x1cc], 0x10049918
push str.il2cpp_free
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 8
call fcn.1000aee0
mov dword [ebp - 0x1b0], 0x1004991c
push str.il2cpp_image_get_class
lea ecx, [ebp - 0x1ac]
mov byte [ebp - 4], 9
call fcn.1000aee0
mov dword [ebp - 0x194], 0x10049920
push str.il2cpp_image_get_class_count
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 0xa
call fcn.1000aee0
mov dword [ebp - 0x178], 0x10049924
push str.il2cpp_resolve_icall
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 0xb
call fcn.1000aee0
mov dword [ebp - 0x15c], 0x10049928
mov byte [ebp - 4], 0xc
push str.il2cpp_string_new
lea ecx, [ebp - 0x158]
call fcn.1000aee0
mov dword [ebp - 0x140], 0x1004992c
push str.il2cpp_thread_attach
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0xd
call fcn.1000aee0
mov dword [ebp - 0x124], 0x10049930
push str.il2cpp_thread_detach
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0xe
call fcn.1000aee0
mov dword [ebp - 0x108], 0x10049934
push str.il2cpp_type_get_object
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0xf
call fcn.1000aee0
mov dword [ebp - 0xec], 0x10049938
push str.il2cpp_object_new
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0x10
call fcn.1000aee0
mov dword [ebp - 0xd0], 0x1004993c
push str.il2cpp_method_get_param_name
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0x11
call fcn.1000aee0
mov dword [ebp - 0xb4], 0x10049940
push str.il2cpp_method_get_param
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0x12
call fcn.1000aee0
mov dword [ebp - 0x98], 0x10049944
push str.il2cpp_class_from_il2cpp_type
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x13
call fcn.1000aee0
mov dword [ebp - 0x7c], 0x10049948
push str.il2cpp_field_static_get_value
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0x14
call fcn.1000aee0
mov dword [ebp - 0x60], 0x1004994c
push str.il2cpp_field_static_set_value
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x15
call fcn.1000aee0
mov dword [ebp - 0x44], 0x10049950
mov dword [ebp - 4], 0x16
lea edi, [ebp - 0x2c4]
push 0x24
lea esi, [ebp - 0x40]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.1003b999
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x18], 8
mov dword [ebp - 0x34], 0x3f800000
push eax
push 0x10
lea ecx, [ebp - 0x28]
call fcn.1000b2e0
push esi
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x19
call fcn.1000c8f0
push 0x10002920
push 0x17
push 0x1c
mov eax, edi
mov byte [ebp - 4], 0x1b
push eax
call fcn.1003b9c9
mov edi, dword [ebp - 0x30]
mov esi, dword [edi]
cmp esi, edi
je 0x100024e6
nop word [eax + eax]
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
jb 0x100024cc
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x14], eax
call fcn.10001ff0
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
test eax, eax
je 0x1000250e
mov esi, dword [esi]
cmp esi, edi
jne 0x100024c0
call fcn.10001cf0
mov eax, dword [0x1004996c]
mov dword [ebp - 0x14], str.UnityEngine.Component
cmp eax, dword [0x10049970]
je 0x10002517
mov dword [eax], str.UnityEngine.Component
add dword [0x1004996c], 4
jmp 0x10002521
mov byte [ebp - 0x35], 0
jmp 0x100028f7
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.1000d090
push str.UnityEngine.Component::get_gameObject
call dword [0x10049928]
push str.UnityEngine.Component::get_transform
call dword [0x10049928]
mov eax, dword [0x1004996c]
add esp, 8
mov dword [ebp - 0x14], str.UnityEngine.GameObject
cmp eax, dword [0x10049970]
je 0x1000255d
mov dword [eax], str.UnityEngine.GameObject
add dword [0x1004996c], 4
jmp 0x10002567
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.1000d090
mov eax, dword [0x10049928]
push str.UnityEngine.GameObject::Internal_AddComponentWithType
call eax
mov dword [0x100498c4], eax
mov eax, dword [0x10049928]
push str.UnityEngine.GameObject::CreatePrimitive
call eax
mov dword [0x100498c8], eax
mov eax, dword [0x10049928]
push str.UnityEngine.GameObject::Find
call eax
mov dword [0x100498cc], eax
mov eax, dword [0x10049928]
push str.UnityEngine.GameObject::FindGameObjectsWithTag
call eax
mov dword [0x100498d0], eax
mov eax, dword [0x10049928]
push str.UnityEngine.GameObject::GetComponentByName
call eax
mov dword [0x100498d4], eax
mov eax, dword [0x10049928]
push str.UnityEngine.GameObject::GetComponentsInternal
call eax
mov dword [0x100498d8], eax
mov eax, dword [0x10049928]
push str.UnityEngine.GameObject::GetComponentInChildren
call eax
mov dword [0x100498dc], eax
mov eax, dword [0x10049928]
push str.UnityEngine.GameObject::get_active
call eax
mov dword [0x100498e0], eax
mov eax, dword [0x10049928]
push str.UnityEngine.GameObject::get_layer
call eax
mov dword [0x100498e4], eax
mov eax, dword [0x10049928]
push str.UnityEngine.GameObject::get_transform
call eax
mov dword [0x100498e8], eax
mov eax, dword [0x10049928]
push str.UnityEngine.GameObject::set_active
call eax
mov dword [0x100498ec], eax
mov eax, dword [0x10049928]
push str.UnityEngine.GameObject::set_layer
call eax
mov dword [0x100498f0], eax
add esp, 0x30
mov eax, dword [0x1004996c]
mov dword [ebp - 0x14], str.UnityEngine.LayerMask
cmp eax, dword [0x10049970]
je 0x10002659
mov dword [eax], str.UnityEngine.LayerMask
add dword [0x1004996c], 4
jmp 0x10002663
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.1000d090
push str.UnityEngine.LayerMask::LayerToName
call dword [0x10049928]
push str.UnityEngine.LayerMask::NameToLayer
call dword [0x10049928]
mov eax, dword [0x1004996c]
add esp, 8
mov dword [ebp - 0x14], str.UnityEngine.Object
cmp eax, dword [0x10049970]
je 0x1000269f
mov dword [eax], str.UnityEngine.Object
add dword [0x1004996c], 4
jmp 0x100026a9
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.1000d090
mov eax, dword [0x10049928]
push str.UnityEngine.Object::Destroy
call eax
mov dword [0x1004989c], eax
mov eax, dword [0x10049928]
push str.UnityEngine.Object::FindObjectsOfType_System.Type_System.Boolean_
call eax
mov dword [0x100498a0], eax
mov eax, dword [0x10049928]
push str.UnityEngine.Object::GetName
call eax
mov dword [0x100498a4], eax
add esp, 0xc
mov eax, dword [0x1004996c]
mov dword [ebp - 0x14], str.UnityEngine.Rigidbody
cmp eax, dword [0x10049970]
je 0x10002702
mov dword [eax], str.UnityEngine.Rigidbody
add dword [0x1004996c], 4
jmp 0x1000270c
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.1000d090
push str.UnityEngine.Rigidbody::get_detectCollisions
call dword [0x10049928]
push str.UnityEngine.Rigidbody::get_velocity_Injected
call dword [0x10049928]
push str.UnityEngine.Rigidbody::set_detectCollisions
call dword [0x10049928]
push str.UnityEngine.Rigidbody::set_velocity_Injected
call dword [0x10049928]
mov eax, dword [0x1004996c]
add esp, 0x10
mov dword [ebp - 0x14], str.UnityEngine.Transform
cmp eax, dword [0x10049970]
je 0x1000275e
mov dword [eax], str.UnityEngine.Transform
add dword [0x1004996c], 4
jmp 0x10002768
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.1000d090
mov eax, dword [0x10049928]
push str.UnityEngine.Transform::GetParent
call eax
mov dword [0x10049868], eax
mov eax, dword [0x10049928]
push str.UnityEngine.Transform::GetRoot
call eax
mov dword [0x1004986c], eax
mov eax, dword [0x10049928]
push str.UnityEngine.Transform::GetChild
call eax
mov dword [0x10049870], eax
mov eax, dword [0x10049928]
push str.UnityEngine.Transform::get_childCount
call eax
mov dword [0x10049874], eax
mov eax, dword [0x10049928]
push str.UnityEngine.Transform::FindRelativeTransformWithPath
call eax
mov dword [0x10049878], eax
mov eax, dword [0x10049928]
push str.UnityEngine.Transform::get_position_Injected
call eax
mov dword [0x1004987c], eax
mov eax, dword [0x10049928]
push str.UnityEngine.Transform::get_rotation_Injected
call eax
mov dword [0x10049880], eax
mov eax, dword [0x10049928]
push str.UnityEngine.Transform::get_localPosition_Injected
call eax
mov dword [0x10049884], eax
mov eax, dword [0x10049928]
push str.UnityEngine.Transform::get_localScale_Injected
call eax
mov dword [0x10049888], eax
mov eax, dword [0x10049928]
push str.UnityEngine.Transform::set_position_Injected
call eax
mov dword [0x1004988c], eax
mov eax, dword [0x10049928]
push str.UnityEngine.Transform::set_rotation_Injected
call eax
mov dword [0x10049890], eax
mov eax, dword [0x10049928]
push str.UnityEngine.Transform::set_localPosition_Injected
call eax
mov dword [0x10049894], eax
mov eax, dword [0x10049928]
push str.UnityEngine.Transform::set_localScale_Injected
call eax
mov esi, dword [0x10049968]
add esp, 0x34
mov dword [0x10049898], eax
mov eax, dword [0x1004996c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x14], esi
cmp esi, eax
je 0x100028eb
mov edi, dword [esi]
mov ecx, edi
call fcn.10001ac0
mov ecx, eax
test ecx, ecx
jne 0x10002875
mov dword [ebp - 0x3c], eax
jmp 0x1000288f
mov eax, dword [0x10049910]
mov esi, dword [0x10049938]
push ecx
call eax
push eax
call esi
mov esi, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 0x3c], eax
mov dl, byte [edi]
xor ecx, ecx
test dl, dl
je 0x100028b2
movsx eax, dl
lea edi, [edi + 1]
mov dl, byte [edi]
add eax, ecx
imul ecx, eax, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
test dl, dl
jne 0x10002897
lea ecx, [ecx + ecx*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.1000ae80
mov ecx, dword [ebp - 0x3c]
add esi, 4
mov dword [eax], ecx
mov dword [ebp - 0x14], esi
cmp esi, dword [ebp - 0x40]
jne 0x10002861
mov eax, dword [0x1004996c]
mov esi, dword [0x10049968]
cmp esi, eax
cmovne eax, esi
mov byte [ebp - 0x35], 1
mov dword [0x1004996c], eax
lea ecx, [ebp - 0x34]
call fcn.10002980
mov al, byte [ebp - 0x35]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003b65b
mov esp, ebp
pop ebp
ret