Function at 0x406510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov ecx, dword [esi + 0x20]
xor ecx, dword [eax]
mov eax, dword [eax + 0xc]
xor eax, dword [esi + 0x2c]
xor ebx, dword [esi + 0x28]
xor edx, dword [esi + 0x24]
mov dword [ebp - 8], eax
mov dword [ebp + 8], ecx
mov ecx, eax
shr ecx, 0x18
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov edi, dword [ebp + 0xc]
mov ecx, dword [ecx*4 + 0x427058]
mov dword [ebp - 0x10], edx
xor ecx, dword [eax*4 + 0x427458]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x427858]
mov eax, dword [ebp + 8]
movzx eax, al
xor ecx, dword [eax*4 + 0x427c58]
mov eax, dword [ebp - 8]
mov dword [edi], ecx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x427458]
xor ecx, dword [eax*4 + 0x427858]
mov eax, dword [ebp + 8]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x427058]
movzx eax, dl
xor ecx, dword [eax*4 + 0x427c58]
mov eax, dword [ebp - 8]
mov dword [edi + 4], ecx
mov ecx, edx
shr eax, 8
movzx eax, al
shr ecx, 0x18
mov edx, dword [eax*4 + 0x427858]
xor edx, dword [ecx*4 + 0x427058]
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
xor edx, dword [eax*4 + 0x427458]
movzx eax, bl
shr ebx, 0x18
xor edx, dword [eax*4 + 0x427c58]
mov eax, dword [ebp - 0x10]
shr eax, 0x10
movzx ecx, al
mov dword [edi + 8], edx
mov eax, dword [ebx*4 + 0x427058]
mov dword [ebp - 0x10], 1
xor eax, dword [ecx*4 + 0x427458]
mov ecx, dword [ebp + 8]
shr ecx, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x427858]
mov ecx, dword [ebp - 8]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x427c58]
mov dword [edi + 0xc], eax
mov ecx, dword [esi + 0x1c]
dec ecx
cmp ecx, 1
jbe 0x406778
mov esi, dword [edi + 4]
mov dword [ebp + 8], edx
mov edx, dword [ebp - 4]
add edx, 0x34
mov dword [ebp - 0xc], edx
nop dword [eax]
mov ecx, dword [edx - 4]
xor ecx, dword [edi]
mov ebx, dword [edx]
mov edx, dword [edx + 4]
xor ebx, esi
xor edx, dword [ebp + 8]
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 8]
xor ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [ebp - 8], ecx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x427058]
xor ecx, dword [eax*4 + 0x427458]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x427858]
mov eax, dword [ebp + 0xc]
movzx eax, al
xor ecx, dword [eax*4 + 0x427c58]
mov eax, dword [ebp - 8]
mov dword [edi], ecx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x427458]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [eax*4 + 0x427858]
mov eax, dword [ebp + 0xc]
shr eax, 0x18
xor esi, dword [eax*4 + 0x427058]
movzx eax, bl
shr ebx, 0x10
xor esi, dword [eax*4 + 0x427c58]
mov eax, dword [ebp - 8]
shr eax, 8
movzx eax, al
mov dword [edi + 4], esi
mov eax, dword [eax*4 + 0x427858]
xor eax, dword [ecx*4 + 0x427058]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x427458]
movzx eax, dl
shr edx, 0x18
xor ecx, dword [eax*4 + 0x427c58]
mov dword [edi + 8], ecx
mov eax, dword [edx*4 + 0x427058]
mov dword [ebp + 8], ecx
movzx ecx, bl
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
inc ebx
add edx, 0x10
mov dword [ebp - 0x10], ebx
xor eax, dword [ecx*4 + 0x427458]
mov ecx, dword [ebp + 0xc]
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], edx
xor eax, dword [ecx*4 + 0x427858]
mov ecx, dword [ebp - 8]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x427c58]
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
mov ecx, dword [ecx + 0x1c]
dec ecx
cmp ebx, ecx
jb 0x406650
mov esi, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
add eax, eax
mov ecx, dword [esi + eax*8 + 0x18]
mov edx, dword [esi + eax*8 + 0x10]
mov ebx, dword [esi + eax*8 + 0x14]
xor ecx, dword [edi + 8]
xor edx, dword [edi]
xor ebx, dword [edi + 4]
mov dword [ebp + 8], ecx
mov ecx, dword [esi + eax*8 + 0x1c]
xor ecx, dword [edi + 0xc]
movzx eax, dl
movzx eax, byte [eax*4 + 0x427c59]
mov byte [edi], al
mov eax, ebx
shr eax, 8
movzx eax, al
movzx eax, byte [eax*4 + 0x427c59]
mov byte [edi + 1], al
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax*4 + 0x427c59]
mov byte [edi + 2], al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x427c59]
mov byte [edi + 3], al
movzx eax, bl
movzx eax, byte [eax*4 + 0x427c59]
mov byte [edi + 4], al
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
movzx eax, byte [eax*4 + 0x427c59]
mov byte [edi + 5], al
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax*4 + 0x427c59]
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x427c59]
mov byte [edi + 7], al
mov eax, dword [ebp + 8]
movzx eax, al
movzx eax, byte [eax*4 + 0x427c59]
mov byte [edi + 8], al
mov eax, ecx
shr eax, 8
movzx eax, al
movzx eax, byte [eax*4 + 0x427c59]
mov byte [edi + 9], al
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax*4 + 0x427c59]
mov byte [edi + 0xa], al
mov eax, ebx
shr eax, 0x18
shr ebx, 0x10
movzx eax, byte [eax*4 + 0x427c59]
mov byte [edi + 0xb], al
movzx eax, cl
mov ecx, dword [ebp - 4]
movzx eax, byte [eax*4 + 0x427c59]
mov byte [edi + 0xc], al
movzx eax, dl
movzx eax, byte [eax*4 + 0x427c59]
mov byte [edi + 0xd], al
movzx eax, bl
movzx eax, byte [eax*4 + 0x427c59]
mov byte [edi + 0xe], al
mov eax, dword [ebp + 8]
shr eax, 0x18
movzx eax, byte [eax*4 + 0x427c59]
mov byte [edi + 0xf], al
mov eax, dword [ecx + 0x1c]
add eax, 2
add eax, eax
mov eax, dword [ecx + eax*8]
xor dword [edi], eax
mov eax, dword [ecx + 0x1c]
add eax, eax
mov eax, dword [ecx + eax*8 + 0x24]
xor dword [edi + 4], eax
mov eax, dword [ecx + 0x1c]
add eax, eax
mov eax, dword [ecx + eax*8 + 0x28]
xor dword [edi + 8], eax
mov eax, dword [ecx + 0x1c]
add eax, eax
mov eax, dword [ecx + eax*8 + 0x2c]
xor dword [edi + 0xc], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8