Function at 0x406020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, dword [eax]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0xc], ecx
shl ecx, 5
mov edx, dword [eax + ecx + 0x1c]
xor edx, dword [ebx + 0xc]
lea eax, [eax + ecx + 0x10]
mov ecx, dword [eax + 8]
xor ecx, dword [ebx + 8]
push esi
mov esi, dword [eax + 4]
xor esi, dword [ebx + 4]
push edi
mov edi, dword [eax]
xor edi, dword [ebx]
mov dword [ebp - 0x18], edx
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
shr edx, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x58d9a0]
xor edx, dword [ebx*4 + 0x58dda0]
mov dword [ebp - 0x24], edi
mov ebx, esi
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x58e1a0]
mov ebx, edi
and ebx, 0xff
xor edx, dword [ebx*4 + 0x58d5a0]
mov ebx, dword [ebp - 0x18]
shr edi, 8
shr ebx, 0x10
and edi, 0xff
and ebx, 0xff
mov dword [ebp - 4], edi
mov edi, dword [ebx*4 + 0x58dda0]
mov ebx, dword [ebp - 4]
xor edi, dword [ebx*4 + 0x58d9a0]
mov ebx, ecx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x58e1a0]
mov ebx, esi
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58d5a0]
mov ebx, dword [ebp - 0x24]
xor edi, dword [eax - 0xc]
sub eax, 0x20
mov dword [ebp - 0x10], edi
mov edi, esi
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x58d9a0]
shr ebx, 0x10
xor edx, dword [eax + 0x10]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58dda0]
mov ebx, dword [ebp - 0x18]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x58e1a0]
mov ebx, ecx
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x58d9a0]
shr esi, 0x10
and esi, 0xff
xor ecx, dword [esi*4 + 0x58dda0]
mov esi, dword [ebp - 0x24]
shr esi, 0x18
xor ecx, dword [esi*4 + 0x58e1a0]
mov esi, dword [ebp - 0x18]
and esi, 0xff
xor ecx, dword [esi*4 + 0x58d5a0]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58d5a0]
xor ecx, dword [eax + 0x1c]
xor edi, dword [eax + 0x18]
dec dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], ecx
je 0x4063a3
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov esi, ecx
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x58d9a0]
xor esi, dword [ebx*4 + 0x58dda0]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x58e1a0]
mov ebx, edx
and ebx, 0xff
xor esi, dword [ebx*4 + 0x58d5a0]
mov ebx, edx
shr ebx, 8
and ebx, 0xff
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x58dda0]
xor ecx, dword [ebx*4 + 0x58d9a0]
mov ebx, edi
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x58e1a0]
mov ebx, dword [ebp - 0x10]
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x58d5a0]
mov ebx, dword [ebp - 0x10]
shr ebx, 8
and ebx, 0xff
shr edx, 0x10
and edx, 0xff
mov dword [ebp - 4], edx
mov edx, dword [ebx*4 + 0x58d9a0]
mov ebx, dword [ebp - 4]
xor edx, dword [ebx*4 + 0x58dda0]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x58e1a0]
mov ebx, edi
and ebx, 0xff
xor edx, dword [ebx*4 + 0x58d5a0]
mov ebx, dword [ebp - 0x10]
shr edi, 8
xor edx, dword [eax + 8]
and edi, 0xff
mov edi, dword [edi*4 + 0x58d9a0]
shr ebx, 0x10
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58dda0]
mov ebx, dword [ebp - 0x14]
xor ecx, dword [eax + 4]
xor esi, dword [eax]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x58e1a0]
mov ebx, dword [ebp - 8]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58d5a0]
mov ebx, edx
xor edi, dword [eax + 0xc]
shr ebx, 0x10
mov dword [ebp - 0x18], edi
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x58d9a0]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58dda0]
mov ebx, ecx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x58e1a0]
mov ebx, esi
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58d5a0]
sub eax, 0x20
xor edi, dword [eax + 0x10]
mov ebx, esi
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x18]
shr edi, 0x10
and edi, 0xff
shr ebx, 8
mov edi, dword [edi*4 + 0x58dda0]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58d9a0]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x58e1a0]
mov ebx, ecx
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58d5a0]
mov ebx, esi
xor edi, dword [eax + 0x14]
shr ebx, 0x10
mov dword [ebp - 0x10], edi
mov edi, ecx
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x58d9a0]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58dda0]
mov ebx, dword [ebp - 0x18]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x58e1a0]
mov ebx, edx
shr edx, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x58d9a0]
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x58dda0]
mov ecx, dword [ebp - 0x18]
shr esi, 0x18
xor edx, dword [esi*4 + 0x58e1a0]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x58d5a0]
and ebx, 0xff
xor edx, dword [eax + 0x1c]
xor edi, dword [ebx*4 + 0x58d5a0]
mov ecx, edx
xor edi, dword [eax + 0x18]
dec dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
jne 0x406175
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
movzx ebx, byte [ebx + 0x58e5a0]
shl ebx, 8
mov esi, edi
shr esi, 0x10
and esi, 0xff
movzx esi, byte [esi + 0x58e5a0]
or esi, ebx
shl esi, 8
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x58e5a0]
or esi, ebx
shl esi, 8
mov ebx, edx
and ebx, 0xff
movzx ebx, byte [ebx + 0x58e5a0]
or esi, ebx
xor esi, dword [eax]
mov ebx, dword [ebp + 8]
mov dword [ebx], esi
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx + 0x58e5a0]
shl ebx, 8
mov esi, ecx
shr esi, 0x10
and esi, 0xff
movzx esi, byte [esi + 0x58e5a0]
or esi, ebx
shl esi, 8
mov ebx, edx
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x58e5a0]
or esi, ebx
mov ebx, dword [ebp - 0x10]
shl esi, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x58e5a0]
or esi, ebx
xor esi, dword [eax + 4]
mov ebx, dword [ebp + 8]
mov dword [ebx + 4], esi
mov esi, edx
shr esi, 0x10
and esi, 0xff
movzx esi, byte [esi + 0x58e5a0]
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x58e5a0]
shl ebx, 8
or esi, ebx
mov ebx, dword [ebp - 0x10]
shr ebx, 8
shl esi, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x58e5a0]
or esi, ebx
shl esi, 8
mov ebx, edi
and ebx, 0xff
movzx ebx, byte [ebx + 0x58e5a0]
or esi, ebx
xor esi, dword [eax + 8]
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], esi
mov esi, dword [ebp - 0x10]
shr esi, 0x10
shr edx, 0x18
movzx edx, byte [edx + 0x58e5a0]
and esi, 0xff
movzx esi, byte [esi + 0x58e5a0]
shl edx, 8
or esi, edx
shr edi, 8
shl esi, 8
and edi, 0xff
movzx edx, byte [edi + 0x58e5a0]
or esi, edx
and ecx, 0xff
movzx ecx, byte [ecx + 0x58e5a0]
shl esi, 8
or esi, ecx
xor esi, dword [eax + 0xc]
pop edi
mov dword [ebx + 0xc], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret