Function at 0x40a620
Capabilities:
Encode data using xor

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]
mov ebp, esi
shr ebp, 8
and ebp, 0xff
mov edi, ecx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4201f0]
xor edi, dword [ebp*4 + 0x41fdf0]
mov ebp, ebx
shr ebp, 0x18
xor edi, dword [ebp*4 + 0x4205f0]
mov ebp, edx
and ebp, 0xff
xor edi, dword [ebp*4 + 0x41f9f0]
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 + 0x4201f0]
mov ebp, dword [esp + 0x14]
xor ecx, dword [ebp*4 + 0x41fdf0]
mov ebp, edx
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x4205f0]
mov ebp, esi
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x41f9f0]
mov dword [esp + 0x34], ebx
xor ecx, dword [eax + 0x24]
shr ebx, 8
mov ebp, edx
xor edi, dword [eax + 0x20]
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x41fdf0]
shr ebp, 0x10
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x4201f0]
mov ebp, esi
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x4201f0]
shr edx, 8
and edx, 0xff
xor esi, dword [edx*4 + 0x41fdf0]
mov edx, dword [esp + 0x30]
shr edx, 0x18
xor esi, dword [edx*4 + 0x4205f0]
mov edx, dword [esp + 0x34]
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x4205f0]
mov ebp, dword [esp + 0x30]
add eax, 0x20
and edx, 0xff
xor esi, dword [edx*4 + 0x41f9f0]
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x41f9f0]
xor esi, dword [eax + 0xc]
xor ebx, dword [eax + 8]
dec dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], esi
je 0x40a9a5
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ebp, ecx
mov ecx, dword [edx*4 + 0x4201f0]
shr ebp, 8
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x41fdf0]
mov edx, esi
shr edx, 0x18
xor ecx, dword [edx*4 + 0x4205f0]
mov edx, edi
and edx, 0xff
xor ecx, dword [edx*4 + 0x41f9f0]
mov ebp, ebx
shr ebp, 8
and ebp, 0xff
mov edx, esi
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x4201f0]
xor edx, dword [ebp*4 + 0x41fdf0]
mov ebp, edi
shr ebp, 0x18
xor edx, dword [ebp*4 + 0x4205f0]
mov ebp, dword [esp + 0x1c]
and ebp, 0xff
xor edx, dword [ebp*4 + 0x41f9f0]
mov ebp, edi
shr ebp, 0x10
and ebp, 0xff
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x41fdf0]
xor esi, dword [ebp*4 + 0x4201f0]
mov ebp, dword [esp + 0x1c]
shr ebp, 0x18
xor esi, dword [ebp*4 + 0x4205f0]
mov ebp, ebx
xor edx, dword [eax + 0x14]
and ebp, 0xff
xor esi, dword [ebp*4 + 0x41f9f0]
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 + 0x4201f0]
mov ebp, dword [esp + 0x14]
xor edi, dword [ebp*4 + 0x41fdf0]
mov ebp, edx
xor edi, dword [ebx*4 + 0x4205f0]
mov ebx, dword [esp + 0x24]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x41f9f0]
shr ebp, 8
xor edi, dword [eax + 0x1c]
mov ebx, esi
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x4201f0]
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x41fdf0]
mov ebp, edi
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x4205f0]
mov ebp, ecx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x41f9f0]
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 + 0x4201f0]
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x41fdf0]
mov ebp, ecx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x4205f0]
mov ebp, edx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x41f9f0]
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 + 0x41fdf0]
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x4201f0]
mov ebp, edx
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x4201f0]
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x4205f0]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x41fdf0]
mov ecx, dword [esp + 0x1c]
mov ebp, esi
shr esi, 0x18
xor edx, dword [esi*4 + 0x4205f0]
and edi, 0xff
xor edx, dword [edi*4 + 0x41f9f0]
mov edi, dword [esp + 0x18]
xor edx, dword [eax + 0xc]
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x41f9f0]
mov esi, edx
xor ebx, dword [eax + 8]
dec dword [esp + 0x10]
mov dword [esp + 0x24], esi
jne 0x40a771
mov edx, ebx
shr edx, 0x10
and edx, 0xff
movzx edx, byte [edx + 0x41c040]
mov ebp, esi
shr ebp, 0x18
movzx ebp, byte [ebp + 0x41c040]
shl ebp, 8
or edx, ebp
shl edx, 8
mov ebp, ecx
shr ebp, 8
and ebp, 0xff
movzx ebp, byte [ebp + 0x41c040]
or edx, ebp
shl edx, 8
mov ebp, edi
and ebp, 0xff
movzx ebp, byte [ebp + 0x41c040]
or edx, ebp
xor edx, dword [eax + 0x10]
mov ebp, dword [esp + 0x3c]
mov dword [ebp], edx
mov ebp, edi
shr ebp, 0x18
movzx ebp, byte [ebp + 0x41c040]
shl ebp, 8
mov edx, esi
shr edx, 0x10
and edx, 0xff
movzx edx, byte [edx + 0x41c040]
or edx, ebp
shl edx, 8
mov ebp, ebx
shr ebp, 8
and ebp, 0xff
movzx ebp, byte [ebp + 0x41c040]
or edx, ebp
shl edx, 8
mov ebp, ecx
and ebp, 0xff
movzx ebp, byte [ebp + 0x41c040]
or edx, ebp
xor edx, dword [eax + 0x14]
mov ebp, dword [esp + 0x3c]
mov dword [ebp + 4], edx
mov edx, edi
shr edx, 0x10
and edx, 0xff
movzx ebp, byte [edx + 0x41c040]
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + 0x41c040]
shl edx, 8
or ebp, edx
mov edx, esi
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x41c040]
shl ebp, 8
or ebp, edx
mov edx, ebx
and edx, 0xff
movzx edx, byte [edx + 0x41c040]
shl ebp, 8
or ebp, edx
xor ebp, dword [eax + 0x18]
mov edx, dword [esp + 0x3c]
shr ecx, 0x10
shr ebx, 0x18
mov dword [edx + 8], ebp
movzx ebx, byte [ebx + 0x41c040]
and ecx, 0xff
movzx ecx, byte [ecx + 0x41c040]
shr edi, 8
shl ebx, 8
and edi, 0xff
movzx edi, byte [edi + 0x41c040]
or ecx, ebx
shl ecx, 8
or ecx, edi
and esi, 0xff
movzx esi, byte [esi + 0x41c040]
shl ecx, 8
pop edi
or ecx, esi
xor ecx, dword [eax + 0x1c]
pop esi
pop ebp
mov dword [edx + 0xc], ecx
pop ebx
add esp, 0x28
ret 4