Function at 0x406ae0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov eax, ecx
push ebp
push esi
push edi
mov edi, dword [eax]
mov ebx, dword [eax + 4]
ror edi, 0x1d
ror ebx, 0x1d
cmp dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
je 0x406c1d
lea ebp, [edx + 8]
mov dword [esp + 0x18], 8
nop dword [eax]
mov edx, dword [ebp - 4]
lea ebp, [ebp + 0x10]
mov esi, dword [ebp - 0x18]
xor edx, edi
ror edx, 4
xor esi, edi
mov ecx, edx
mov eax, edx
shr eax, 0xa
and eax, 0x3f
shr ecx, 0x12
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x4c89a8]
xor ecx, dword [eax*4 + 0x4c87a8]
mov eax, edx
shr eax, 2
and eax, 0x3f
shr edx, 0x1a
xor ecx, dword [eax*4 + 0x4c85a8]
mov eax, esi
shr eax, 0x12
and eax, 0x3f
xor ecx, dword [eax*4 + 0x4c88a8]
mov eax, esi
shr eax, 0xa
and eax, 0x3f
xor ecx, dword [eax*4 + 0x4c86a8]
mov eax, esi
shr eax, 2
and eax, 0x3f
shr esi, 0x1a
xor ecx, dword [eax*4 + 0x4c84a8]
xor ecx, dword [edx*4 + 0x4c8ba8]
xor ecx, dword [esi*4 + 0x4c8aa8]
mov edx, dword [ebp - 0xc]
xor ebx, ecx
mov esi, dword [ebp - 0x10]
xor edx, ebx
ror edx, 4
xor esi, ebx
mov ecx, edx
mov eax, edx
shr eax, 0xa
shr ecx, 0x12
and eax, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x4c89a8]
xor ecx, dword [eax*4 + 0x4c87a8]
mov eax, edx
shr eax, 2
and eax, 0x3f
shr edx, 0x1a
xor ecx, dword [eax*4 + 0x4c85a8]
mov eax, esi
shr eax, 0x12
and eax, 0x3f
xor ecx, dword [eax*4 + 0x4c88a8]
mov eax, esi
shr eax, 0xa
and eax, 0x3f
xor ecx, dword [eax*4 + 0x4c86a8]
mov eax, esi
shr eax, 2
and eax, 0x3f
shr esi, 0x1a
xor ecx, dword [eax*4 + 0x4c84a8]
xor ecx, dword [edx*4 + 0x4c8ba8]
xor ecx, dword [esi*4 + 0x4c8aa8]
xor edi, ecx
sub dword [esp + 0x18], 1
jne 0x406b10
jmp 0x406d38
lea ebp, [edx + 0x70]
mov dword [esp + 0x18], 8
nop dword [eax + eax]
mov edx, dword [ebp + 0xc]
lea ebp, [ebp - 0x10]
mov esi, dword [ebp + 0x18]
xor edx, edi
ror edx, 4
xor esi, edi
mov ecx, edx
mov eax, edx
shr eax, 0xa
and eax, 0x3f
shr ecx, 0x12
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x4c89a8]
xor ecx, dword [eax*4 + 0x4c87a8]
mov eax, edx
shr eax, 2
and eax, 0x3f
shr edx, 0x1a
xor ecx, dword [eax*4 + 0x4c85a8]
mov eax, esi
shr eax, 0x12
and eax, 0x3f
xor ecx, dword [eax*4 + 0x4c88a8]
mov eax, esi
shr eax, 0xa
and eax, 0x3f
xor ecx, dword [eax*4 + 0x4c86a8]
mov eax, esi
shr eax, 2
and eax, 0x3f
shr esi, 0x1a
xor ecx, dword [eax*4 + 0x4c84a8]
xor ecx, dword [edx*4 + 0x4c8ba8]
xor ecx, dword [esi*4 + 0x4c8aa8]
mov edx, dword [ebp + 0x14]
xor ebx, ecx
mov esi, dword [ebp + 0x10]
xor edx, ebx
ror edx, 4
xor esi, ebx
mov ecx, edx
mov eax, edx
shr eax, 0xa
shr ecx, 0x12
and eax, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x4c89a8]
xor ecx, dword [eax*4 + 0x4c87a8]
mov eax, edx
shr eax, 2
and eax, 0x3f
shr edx, 0x1a
xor ecx, dword [eax*4 + 0x4c85a8]
mov eax, esi
shr eax, 0x12
and eax, 0x3f
xor ecx, dword [eax*4 + 0x4c88a8]
mov eax, esi
shr eax, 0xa
and eax, 0x3f
xor ecx, dword [eax*4 + 0x4c86a8]
mov eax, esi
shr eax, 2
and eax, 0x3f
shr esi, 0x1a
xor ecx, dword [eax*4 + 0x4c84a8]
xor ecx, dword [edx*4 + 0x4c8ba8]
xor ecx, dword [esi*4 + 0x4c8aa8]
xor edi, ecx
sub dword [esp + 0x18], 1
jne 0x406c30
mov eax, dword [esp + 0x10]
ror ebx, 3
ror edi, 3
mov dword [eax + 4], edi
pop edi
pop esi
pop ebp
mov dword [eax], ebx
pop ebx
pop ecx
ret 4