Function at 0x10022210
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x28
mov edx, dword [eax + 0x10]
push ebx
push ebp
mov ebx, dword [eax + 0x1c]
push esi
mov esi, dword [eax + 0x14]
push edi
mov edi, ecx
xor esi, dword [edi + 4]
xor ebx, dword [edi + 0xc]
xor edx, dword [edi]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x18]
xor ecx, dword [edi + 8]
add eax, 0x10
mov edi, ecx
mov ebp, esi
shr ebp, 8
and ebp, 0xff
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x100e9f48]
xor edi, dword [ebp*4 + 0x100e9b48]
mov ebp, ebx
shr ebp, 0x18
xor edi, dword [ebp*4 + 0x100ea348]
mov ebp, edx
and ebp, 0xff
xor edi, dword [ebp*4 + 0x100e9748]
mov dword [esp + 0x30], ecx
mov ebp, ebx
shr ebp, 0x10
and ebp, 0xff
shr ecx, 8
and ecx, 0xff
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp*4 + 0x100e9f48]
mov ebp, dword [esp + 0x14]
xor ecx, dword [ebp*4 + 0x100e9b48]
mov ebp, edx
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x100ea348]
mov ebp, esi
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x100e9748]
mov dword [esp + 0x34], ebx
xor ecx, dword [eax + 0x14]
shr ebx, 8
mov ebp, edx
xor edi, dword [eax + 0x10]
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x100e9b48]
shr ebp, 0x10
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x100e9f48]
mov ebp, esi
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x100e9f48]
shr edx, 8
and edx, 0xff
xor esi, dword [edx*4 + 0x100e9b48]
mov edx, dword [esp + 0x30]
shr edx, 0x18
xor esi, dword [edx*4 + 0x100ea348]
mov edx, dword [esp + 0x34]
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x100ea348]
mov ebp, dword [esp + 0x30]
add eax, 0x10
and edx, 0xff
xor esi, dword [edx*4 + 0x100e9748]
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x100e9748]
xor esi, dword [eax + 0xc]
xor ebx, dword [eax + 8]
sub dword [esp + 0x10], 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], esi
je 0x1002259a
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ebp, ecx
mov ecx, dword [edx*4 + 0x100e9f48]
shr ebp, 8
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x100e9b48]
mov edx, esi
shr edx, 0x18
xor ecx, dword [edx*4 + 0x100ea348]
mov edx, edi
and edx, 0xff
xor ecx, dword [edx*4 + 0x100e9748]
mov ebp, ebx
shr ebp, 8
and ebp, 0xff
mov edx, esi
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x100e9f48]
xor edx, dword [ebp*4 + 0x100e9b48]
mov ebp, edi
shr ebp, 0x18
xor edx, dword [ebp*4 + 0x100ea348]
mov ebp, dword [esp + 0x1c]
and ebp, 0xff
xor edx, dword [ebp*4 + 0x100e9748]
mov ebp, edi
shr ebp, 0x10
and ebp, 0xff
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x100e9b48]
xor esi, dword [ebp*4 + 0x100e9f48]
mov ebp, dword [esp + 0x1c]
shr ebp, 0x18
xor esi, dword [ebp*4 + 0x100ea348]
mov ebp, ebx
xor edx, dword [eax + 0x14]
and ebp, 0xff
xor esi, dword [ebp*4 + 0x100e9748]
mov ebp, dword [esp + 0x1c]
xor esi, dword [eax + 0x18]
shr ebp, 0x10
and ebp, 0xff
xor ecx, dword [eax + 0x10]
shr edi, 8
shr ebx, 0x18
and edi, 0xff
mov dword [esp + 0x14], edi
mov edi, dword [ebp*4 + 0x100e9f48]
mov ebp, dword [esp + 0x14]
xor edi, dword [ebp*4 + 0x100e9b48]
mov ebp, edx
xor edi, dword [ebx*4 + 0x100ea348]
mov ebx, dword [esp + 0x24]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x100e9748]
shr ebp, 8
xor edi, dword [eax + 0x1c]
mov ebx, esi
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x100e9f48]
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x100e9b48]
mov ebp, edi
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x100ea348]
mov ebp, ecx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x100e9748]
add eax, 0x20
xor ebx, dword [eax]
mov ebp, esi
mov dword [esp + 0x18], ebx
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
shr ebp, 8
mov ebx, dword [ebx*4 + 0x100e9f48]
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x100e9b48]
mov ebp, ecx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x100ea348]
mov ebp, edx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x100e9748]
mov ebp, ecx
xor ebx, dword [eax + 4]
shr ebp, 0x10
mov dword [esp + 0x1c], ebx
mov ebx, edi
shr ebx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x100e9b48]
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x100e9f48]
mov ebp, edx
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x100e9f48]
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x100ea348]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x100e9b48]
mov ecx, dword [esp + 0x1c]
mov ebp, esi
shr esi, 0x18
xor edx, dword [esi*4 + 0x100ea348]
and edi, 0xff
xor edx, dword [edi*4 + 0x100e9748]
mov edi, dword [esp + 0x18]
xor edx, dword [eax + 0xc]
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x100e9748]
mov esi, edx
xor ebx, dword [eax + 8]
sub dword [esp + 0x10], 1
mov dword [esp + 0x24], esi
jne 0x10022365
mov edx, ebx
shr edx, 0x10
and edx, 0xff
movzx edx, byte [edx + str.cw]
mov ebp, esi
shr ebp, 0x18
movzx ebp, byte [ebp + str.cw]
shl ebp, 8
or edx, ebp
shl edx, 8
mov ebp, ecx
shr ebp, 8
and ebp, 0xff
movzx ebp, byte [ebp + str.cw]
or edx, ebp
shl edx, 8
mov ebp, edi
and ebp, 0xff
movzx ebp, byte [ebp + str.cw]
or edx, ebp
xor edx, dword [eax + 0x10]
mov ebp, dword [esp + 0x3c]
mov dword [ebp], edx
add eax, 0x10
mov ebp, edi
shr ebp, 0x18
movzx ebp, byte [ebp + str.cw]
shl ebp, 8
mov edx, esi
shr edx, 0x10
and edx, 0xff
movzx edx, byte [edx + str.cw]
or edx, ebp
shl edx, 8
mov ebp, ebx
shr ebp, 8
and ebp, 0xff
movzx ebp, byte [ebp + str.cw]
or edx, ebp
shl edx, 8
mov ebp, ecx
and ebp, 0xff
movzx ebp, byte [ebp + str.cw]
or edx, ebp
xor edx, dword [eax + 4]
mov ebp, dword [esp + 0x3c]
mov dword [ebp + 4], edx
mov edx, edi
shr edx, 0x10
and edx, 0xff
movzx ebp, byte [edx + str.cw]
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + str.cw]
shl edx, 8
or ebp, edx
mov edx, esi
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl ebp, 8
or ebp, edx
mov edx, ebx
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl ebp, 8
or ebp, edx
xor ebp, dword [eax + 8]
mov edx, dword [esp + 0x3c]
shr ecx, 0x10
shr ebx, 0x18
mov dword [edx + 8], ebp
movzx ebx, byte [ebx + str.cw]
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
shl ebx, 8
or ecx, ebx
shr edi, 8
shl ecx, 8
and edi, 0xff
movzx edi, byte [edi + str.cw]
and esi, 0xff
movzx esi, byte [esi + str.cw]
or ecx, edi
shl ecx, 8
pop edi
or ecx, esi
xor ecx, dword [eax + 0xc]
pop esi
pop ebp
mov dword [edx + 0xc], ecx
pop ebx
add esp, 0x28
ret 4