Function at 0x410020
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 4]
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [ecx]
mov ecx, eax
shr ecx, 0x1d
lea ecx, [ecx + eax*8]
mov eax, edx
shr eax, 0x1d
cmp dword [esp + 0x14], 0
push edi
lea eax, [eax + edx*8]
je 0x410277
add esi, 8
mov dword [esp + 0x18], 4
mov ebx, dword [esi - 4]
xor ebx, ecx
mov edx, ebx
shr ebx, 4
mov edi, dword [esi - 8]
shl edx, 0x1c
add edx, ebx
mov ebx, edx
shr ebx, 0x12
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x47ddd8]
mov ebp, edx
shr ebp, 0xa
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dbd8]
mov ebp, edx
shr ebp, 2
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47d9d8]
xor edi, ecx
mov ebp, edi
shr ebp, 0x12
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dcd8]
mov ebp, edi
shr ebp, 0xa
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dad8]
mov ebp, edi
shr ebp, 2
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47d8d8]
shr edx, 0x1a
xor ebx, dword [edx*4 + 0x47dfd8]
shr edi, 0x1a
xor ebx, dword [edi*4 + 0x47ded8]
mov edi, dword [esi]
xor eax, ebx
mov ebx, dword [esi + 4]
xor ebx, eax
mov edx, ebx
shr ebx, 4
shl edx, 0x1c
add edx, ebx
mov ebx, edx
shr ebx, 0x12
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x47ddd8]
mov ebp, edx
shr ebp, 0xa
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dbd8]
mov ebp, edx
shr ebp, 2
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47d9d8]
xor edi, eax
mov ebp, edi
shr ebp, 0x12
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dcd8]
mov ebp, edi
shr ebp, 0xa
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dad8]
mov ebp, edi
shr ebp, 2
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47d8d8]
shr edx, 0x1a
xor ebx, dword [edx*4 + 0x47dfd8]
shr edi, 0x1a
xor ebx, dword [edi*4 + 0x47ded8]
mov edi, dword [esi + 8]
xor ecx, ebx
mov ebx, dword [esi + 0xc]
xor ebx, ecx
mov edx, ebx
xor edi, ecx
shl edx, 0x1c
shr ebx, 4
add edx, ebx
mov ebx, edx
shr ebx, 0x12
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x47ddd8]
mov ebp, edx
shr ebp, 0xa
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dbd8]
mov ebp, edx
shr ebp, 2
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47d9d8]
mov ebp, edi
shr ebp, 0x12
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dcd8]
mov ebp, edi
shr ebp, 0xa
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dad8]
mov ebp, edi
shr ebp, 2
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47d8d8]
shr edx, 0x1a
xor ebx, dword [edx*4 + 0x47dfd8]
shr edi, 0x1a
xor ebx, dword [edi*4 + 0x47ded8]
mov edi, dword [esi + 0x10]
xor eax, ebx
mov ebx, dword [esi + 0x14]
xor ebx, eax
mov edx, ebx
shr ebx, 4
shl edx, 0x1c
add edx, ebx
mov ebx, edx
shr ebx, 0x12
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x47ddd8]
mov ebp, edx
shr ebp, 0xa
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dbd8]
mov ebp, edx
shr ebp, 2
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47d9d8]
xor edi, eax
mov ebp, edi
shr ebp, 0x12
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dcd8]
mov ebp, edi
shr ebp, 0xa
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dad8]
mov ebp, edi
shr ebp, 2
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47d8d8]
shr edx, 0x1a
xor ebx, dword [edx*4 + 0x47dfd8]
shr edi, 0x1a
xor ebx, dword [edi*4 + 0x47ded8]
add esi, 0x20
xor ecx, ebx
sub dword [esp + 0x18], 1
jne 0x410055
jmp 0x41049f
add esi, 0x70
mov dword [esp + 0x18], 4
mov ebx, dword [esi + 0xc]
xor ebx, ecx
mov edx, ebx
shr ebx, 4
mov edi, dword [esi + 8]
shl edx, 0x1c
add edx, ebx
mov ebx, edx
shr ebx, 0x12
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x47ddd8]
mov ebp, edx
shr ebp, 0xa
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dbd8]
mov ebp, edx
shr ebp, 2
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47d9d8]
xor edi, ecx
mov ebp, edi
shr ebp, 0x12
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dcd8]
mov ebp, edi
shr ebp, 0xa
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dad8]
mov ebp, edi
shr ebp, 2
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47d8d8]
shr edx, 0x1a
xor ebx, dword [edx*4 + 0x47dfd8]
shr edi, 0x1a
xor ebx, dword [edi*4 + 0x47ded8]
mov edi, dword [esi]
xor eax, ebx
mov ebx, dword [esi + 4]
xor ebx, eax
mov edx, ebx
shr ebx, 4
shl edx, 0x1c
add edx, ebx
mov ebx, edx
shr ebx, 0x12
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x47ddd8]
mov ebp, edx
shr ebp, 0xa
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dbd8]
mov ebp, edx
shr ebp, 2
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47d9d8]
xor edi, eax
mov ebp, edi
shr ebp, 0x12
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dcd8]
mov ebp, edi
shr ebp, 0xa
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dad8]
mov ebp, edi
shr ebp, 2
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47d8d8]
shr edx, 0x1a
xor ebx, dword [edx*4 + 0x47dfd8]
shr edi, 0x1a
xor ebx, dword [edi*4 + 0x47ded8]
mov edi, dword [esi - 8]
xor ecx, ebx
mov ebx, dword [esi - 4]
xor ebx, ecx
mov edx, ebx
xor edi, ecx
shl edx, 0x1c
shr ebx, 4
add edx, ebx
mov ebx, edx
shr ebx, 0x12
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x47ddd8]
mov ebp, edx
shr ebp, 0xa
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dbd8]
mov ebp, edx
shr ebp, 2
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47d9d8]
mov ebp, edi
shr ebp, 0x12
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dcd8]
mov ebp, edi
shr ebp, 0xa
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dad8]
mov ebp, edi
shr ebp, 2
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47d8d8]
shr edx, 0x1a
xor ebx, dword [edx*4 + 0x47dfd8]
shr edi, 0x1a
xor ebx, dword [edi*4 + 0x47ded8]
mov edi, dword [esi - 0x10]
xor eax, ebx
mov ebx, dword [esi - 0xc]
xor ebx, eax
mov edx, ebx
shr ebx, 4
shl edx, 0x1c
add edx, ebx
mov ebx, edx
shr ebx, 0x12
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x47ddd8]
mov ebp, edx
shr ebp, 0xa
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dbd8]
mov ebp, edx
shr ebp, 2
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47d9d8]
xor edi, eax
mov ebp, edi
shr ebp, 0x12
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dcd8]
mov ebp, edi
shr ebp, 0xa
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47dad8]
mov ebp, edi
shr ebp, 2
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x47d8d8]
shr edx, 0x1a
xor ebx, dword [edx*4 + 0x47dfd8]
shr edi, 0x1a
xor ebx, dword [edi*4 + 0x47ded8]
sub esi, 0x20
xor ecx, ebx
sub dword [esp + 0x18], 1
jne 0x410282
mov edx, eax
shl edx, 0x1d
shr eax, 3
add edx, eax
mov eax, dword [esp + 0x14]
mov dword [eax], edx
pop edi
mov edx, ecx
pop esi
shl edx, 0x1d
shr ecx, 3
add edx, ecx
pop ebp
mov dword [eax + 4], edx
pop ebx
ret