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

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [esp + 0x28], edi
mov ecx, dword [esi + 0x10]
xor ecx, dword [eax]
mov edx, dword [esi + 0x14]
xor edx, dword [eax + 4]
mov ebx, dword [esi + 0x1c]
xor ebx, dword [eax + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x18]
xor ecx, dword [eax + 8]
mov eax, ecx
mov dword [esp + 0x14], ecx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ebp, dword [esi]
add esi, 0x20
mov ecx, dword [ecx*4 + 0x42ce10]
xor ecx, dword [eax*4 + 0x42ca10]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x42d210]
mov eax, dword [esp + 0x10]
movzx eax, al
xor ecx, dword [eax*4 + 0x42c610]
mov eax, ebx
xor ecx, dword [esi]
shr eax, 0x10
mov dword [esp + 0x20], ecx
movzx ecx, al
mov eax, dword [esp + 0x14]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x42ce10]
xor ecx, dword [eax*4 + 0x42ca10]
mov eax, dword [esp + 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x42d210]
movzx eax, dl
xor ecx, dword [eax*4 + 0x42c610]
mov eax, ebx
xor ecx, dword [esi + 4]
shr eax, 8
mov dword [esp + 0x18], ecx
movzx ecx, al
mov eax, dword [esp + 0x10]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x42ca10]
xor ecx, dword [eax*4 + 0x42ce10]
mov eax, edx
shr eax, 0x18
shr edx, 0x10
xor ecx, dword [eax*4 + 0x42d210]
mov eax, dword [esp + 0x14]
movzx eax, al
xor ecx, dword [eax*4 + 0x42c610]
xor ecx, dword [esi + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
shr eax, 8
movzx eax, al
movzx ecx, dl
mov ecx, dword [ecx*4 + 0x42ce10]
xor ecx, dword [eax*4 + 0x42ca10]
mov eax, dword [esp + 0x14]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x42d210]
movzx eax, bl
xor ecx, dword [eax*4 + 0x42c610]
xor ecx, dword [esi + 0xc]
mov dword [esp + 0x10], ecx
sub ebp, 1
mov dword [esp + 0x24], ebp
je 0x41d7f0
mov eax, dword [esp + 0x30]
shr eax, 0x10
movzx ecx, al
mov ebx, dword [esp + 0x18]
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x42ce10]
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
xor ecx, dword [eax*4 + 0x42ca10]
mov eax, ebp
shr eax, 0x18
xor ecx, dword [eax*4 + 0x42d210]
movzx eax, dl
xor ecx, dword [eax*4 + 0x42c610]
mov eax, ebp
xor ecx, dword [esi + 0x10]
shr eax, 0x10
mov dword [esp + 0x14], ecx
movzx ecx, al
mov eax, dword [esp + 0x30]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x42ce10]
xor ecx, dword [eax*4 + 0x42ca10]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x42d210]
movzx eax, bl
xor ecx, dword [eax*4 + 0x42c610]
mov eax, ebp
xor ecx, dword [esi + 0x14]
shr eax, 8
mov dword [esp + 0x1c], ecx
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ebx, dword [ecx*4 + 0x42ca10]
mov ecx, dword [esp + 0x18]
xor ebx, dword [eax*4 + 0x42ce10]
mov eax, ecx
shr eax, 0x18
shr ecx, 0x10
movzx ecx, cl
xor ebx, dword [eax*4 + 0x42d210]
mov eax, dword [esp + 0x30]
movzx eax, al
xor ebx, dword [eax*4 + 0x42c610]
xor ebx, dword [esi + 0x18]
movzx eax, dl
mov edx, dword [ecx*4 + 0x42ce10]
xor edx, dword [eax*4 + 0x42ca10]
mov eax, dword [esp + 0x30]
shr eax, 0x18
xor edx, dword [eax*4 + 0x42d210]
mov eax, ebp
movzx eax, al
xor edx, dword [eax*4 + 0x42c610]
mov eax, ebx
xor edx, dword [esi + 0x1c]
add esi, 0x20
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x1c]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x42ce10]
xor ecx, dword [eax*4 + 0x42ca10]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x42d210]
mov eax, dword [esp + 0x14]
movzx eax, al
xor ecx, dword [eax*4 + 0x42c610]
mov eax, edx
xor ecx, dword [esi]
mov dword [esp + 0x20], ecx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x42ce10]
xor ecx, dword [eax*4 + 0x42ca10]
mov eax, dword [esp + 0x14]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x42d210]
mov eax, dword [esp + 0x1c]
movzx eax, al
xor ecx, dword [eax*4 + 0x42c610]
mov eax, edx
xor ecx, dword [esi + 4]
shr eax, 8
mov dword [esp + 0x18], ecx
movzx ecx, al
mov eax, dword [esp + 0x14]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x42ca10]
xor ecx, dword [eax*4 + 0x42ce10]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x1c]
mov eax, ecx
mov edi, dword [esp + 0x30]
shr eax, 0x18
shr ecx, 0x10
movzx ecx, cl
xor edi, dword [eax*4 + 0x42d210]
movzx eax, bl
mov ecx, dword [ecx*4 + 0x42ce10]
shr ebx, 0x18
xor edi, dword [eax*4 + 0x42c610]
mov eax, edi
mov dword [esp + 0x30], edi
xor eax, dword [esi + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42ca10]
xor ecx, dword [ebx*4 + 0x42d210]
movzx eax, dl
xor ecx, dword [eax*4 + 0x42c610]
xor ecx, dword [esi + 0xc]
sub dword [esp + 0x24], 1
mov dword [esp + 0x10], ecx
jne 0x41d5d9
mov edi, dword [esp + 0x28]
mov eax, ecx
mov ebx, dword [esp + 0x18]
shr eax, 0x18
mov edx, dword [esp + 0x20]
movzx ecx, byte [eax + str.cw]
mov eax, dword [esp + 0x30]
shr eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, dword [esp + 0x10]
xor ecx, dword [esi + 0x10]
shr eax, 0x10
movzx eax, al
mov dword [edi], ecx
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, dword [esp + 0x30]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, bl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, ebx
xor ecx, dword [esi + 0x14]
shr eax, 0x18
mov dword [edi + 4], ecx
shr ebx, 0x10
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shl ecx, 8
shr edx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, dword [esp + 0x10]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, dword [esp + 0x30]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, dword [esp + 0x30]
xor ecx, dword [esi + 0x18]
shr eax, 0x18
mov dword [edi + 8], ecx
movzx ecx, byte [eax + str.cw]
movzx eax, bl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, dword [esp + 0x10]
shl ecx, 8
movzx eax, al
movzx eax, byte [eax + str.cw]
or ecx, eax
xor ecx, dword [esi + 0x1c]
mov dword [edi + 0xc], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret