Function at 0x471170
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov ecx, eax
shr ecx, 0x1d
lea ecx, [ecx + eax*8]
mov eax, edx
push ebx
shr eax, 0x1d
push ebp
lea eax, [eax + edx*8]
mov edx, dword [esp + 0x14]
test edx, edx
push esi
mov esi, dword [esp + 0x14]
push edi
je 0x471422
add esi, 8
mov dword [esp + 0x18], 4
mov ebx, dword [esi - 4]
xor ebx, ecx
mov edi, dword [esi - 8]
mov edx, ebx
shr ebx, 4
xor edi, ecx
mov ebp, edi
shr ebp, 0x10
and ebp, 0xfc
shl edx, 0x1c
add edx, ebx
mov ebx, edi
shr ebx, 0x18
and ebx, 0xfc
mov ebx, dword [ebx + 0x521e50]
xor ebx, dword [ebp + 0x521c50]
mov ebp, edi
and edi, 0xfc
sar ebp, 8
and ebp, 0xfc
xor ebx, dword [ebp + 0x521a50]
xor ebx, dword [edi + 0x521850]
xor eax, ebx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xfc
mov ebp, dword [ebx + 0x521d50]
mov edi, edx
shr edi, 0x18
and edi, 0xfc
mov edi, dword [edi + 0x521f50]
xor edi, ebp
mov ebx, edx
sar ebx, 8
and ebx, 0xfc
xor edi, dword [ebx + 0x521b50]
and edx, 0xfc
xor edi, dword [edx + 0x521950]
mov ebx, dword [esi + 4]
xor eax, edi
mov edi, dword [esi]
xor ebx, eax
mov edx, ebx
shr ebx, 4
xor edi, eax
mov ebp, edi
shl edx, 0x1c
add edx, ebx
mov ebx, edi
shr ebx, 0x18
and ebx, 0xfc
mov ebx, dword [ebx + 0x521e50]
shr ebp, 0x10
and ebp, 0xfc
xor ebx, dword [ebp + 0x521c50]
mov ebp, edi
sar ebp, 8
and edi, 0xfc
and ebp, 0xfc
xor ebx, dword [ebp + 0x521a50]
xor ebx, dword [edi + 0x521850]
xor ecx, ebx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xfc
mov ebp, dword [ebx + 0x521d50]
mov edi, edx
shr edi, 0x18
and edi, 0xfc
mov edi, dword [edi + 0x521f50]
mov ebx, edx
sar ebx, 8
xor edi, ebp
and ebx, 0xfc
xor edi, dword [ebx + 0x521b50]
and edx, 0xfc
xor edi, dword [edx + 0x521950]
mov ebx, dword [esi + 0xc]
xor ecx, edi
xor ebx, ecx
mov edi, dword [esi + 8]
mov edx, ebx
shr ebx, 4
xor edi, ecx
mov ebp, edi
shr ebp, 0x10
and ebp, 0xfc
shl edx, 0x1c
add edx, ebx
mov ebx, edi
shr ebx, 0x18
and ebx, 0xfc
mov ebx, dword [ebx + 0x521e50]
xor ebx, dword [ebp + 0x521c50]
mov ebp, edi
and edi, 0xfc
sar ebp, 8
and ebp, 0xfc
xor ebx, dword [ebp + 0x521a50]
xor ebx, dword [edi + 0x521850]
xor eax, ebx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xfc
mov ebp, dword [ebx + 0x521d50]
mov edi, edx
shr edi, 0x18
and edi, 0xfc
mov edi, dword [edi + 0x521f50]
xor edi, ebp
mov ebx, edx
sar ebx, 8
and ebx, 0xfc
xor edi, dword [ebx + 0x521b50]
and edx, 0xfc
xor edi, dword [edx + 0x521950]
mov ebx, dword [esi + 0x14]
xor eax, edi
mov edi, dword [esi + 0x10]
xor ebx, eax
mov edx, ebx
shr ebx, 4
xor edi, eax
shl edx, 0x1c
add edx, ebx
mov ebx, edi
shr ebx, 0x18
and ebx, 0xfc
mov ebx, dword [ebx + 0x521e50]
mov ebp, edi
shr ebp, 0x10
and ebp, 0xfc
xor ebx, dword [ebp + 0x521c50]
mov ebp, edi
sar ebp, 8
and edi, 0xfc
and ebp, 0xfc
xor ebx, dword [ebp + 0x521a50]
xor ebx, dword [edi + 0x521850]
xor ecx, ebx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xfc
mov ebp, dword [ebx + 0x521d50]
mov edi, edx
shr edi, 0x18
and edi, 0xfc
mov edi, dword [edi + 0x521f50]
mov ebx, edx
sar ebx, 8
xor edi, ebp
and ebx, 0xfc
mov ebp, dword [ebx + 0x521b50]
and edx, 0xfc
xor edi, ebp
mov ebp, dword [edx + 0x521950]
mov edx, dword [esp + 0x18]
xor edi, ebp
xor ecx, edi
add esi, 0x20
dec edx
mov dword [esp + 0x18], edx
jne 0x4711a8
jmp 0x4716a5
add esi, 0x70
mov dword [esp + 0x18], 4
lea ecx, [ecx]
mov ebx, dword [esi + 0xc]
xor ebx, ecx
mov edi, dword [esi + 8]
mov edx, ebx
shr ebx, 4
xor edi, ecx
mov ebp, edi
shr ebp, 0x10
and ebp, 0xfc
shl edx, 0x1c
add edx, ebx
mov ebx, edi
shr ebx, 0x18
and ebx, 0xfc
mov ebx, dword [ebx + 0x521e50]
xor ebx, dword [ebp + 0x521c50]
mov ebp, edi
and edi, 0xfc
sar ebp, 8
and ebp, 0xfc
xor ebx, dword [ebp + 0x521a50]
xor ebx, dword [edi + 0x521850]
xor eax, ebx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xfc
mov ebp, dword [ebx + 0x521d50]
mov edi, edx
shr edi, 0x18
and edi, 0xfc
mov edi, dword [edi + 0x521f50]
xor edi, ebp
mov ebx, edx
sar ebx, 8
and ebx, 0xfc
xor edi, dword [ebx + 0x521b50]
and edx, 0xfc
xor edi, dword [edx + 0x521950]
mov ebx, dword [esi + 4]
xor eax, edi
mov edi, dword [esi]
xor ebx, eax
mov edx, ebx
shr ebx, 4
xor edi, eax
mov ebp, edi
shl edx, 0x1c
add edx, ebx
mov ebx, edi
shr ebx, 0x18
and ebx, 0xfc
mov ebx, dword [ebx + 0x521e50]
shr ebp, 0x10
and ebp, 0xfc
xor ebx, dword [ebp + 0x521c50]
mov ebp, edi
sar ebp, 8
and edi, 0xfc
and ebp, 0xfc
xor ebx, dword [ebp + 0x521a50]
xor ebx, dword [edi + 0x521850]
xor ecx, ebx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xfc
mov ebp, dword [ebx + 0x521d50]
mov edi, edx
shr edi, 0x18
and edi, 0xfc
mov edi, dword [edi + 0x521f50]
mov ebx, edx
sar ebx, 8
xor edi, ebp
and ebx, 0xfc
xor edi, dword [ebx + 0x521b50]
and edx, 0xfc
xor edi, dword [edx + 0x521950]
mov ebx, dword [esi - 4]
xor ecx, edi
xor ebx, ecx
mov edi, dword [esi - 8]
mov edx, ebx
shr ebx, 4
xor edi, ecx
mov ebp, edi
shr ebp, 0x10
and ebp, 0xfc
shl edx, 0x1c
add edx, ebx
mov ebx, edi
shr ebx, 0x18
and ebx, 0xfc
mov ebx, dword [ebx + 0x521e50]
xor ebx, dword [ebp + 0x521c50]
mov ebp, edi
and edi, 0xfc
sar ebp, 8
and ebp, 0xfc
xor ebx, dword [ebp + 0x521a50]
xor ebx, dword [edi + 0x521850]
xor eax, ebx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xfc
mov ebp, dword [ebx + 0x521d50]
mov edi, edx
shr edi, 0x18
and edi, 0xfc
mov edi, dword [edi + 0x521f50]
xor edi, ebp
mov ebx, edx
sar ebx, 8
and ebx, 0xfc
xor edi, dword [ebx + 0x521b50]
and edx, 0xfc
xor edi, dword [edx + 0x521950]
mov ebx, dword [esi - 0xc]
xor eax, edi
mov edi, dword [esi - 0x10]
xor ebx, eax
mov edx, ebx
shr ebx, 4
xor edi, eax
shl edx, 0x1c
add edx, ebx
mov ebx, edi
shr ebx, 0x18
and ebx, 0xfc
mov ebx, dword [ebx + 0x521e50]
mov ebp, edi
shr ebp, 0x10
and ebp, 0xfc
xor ebx, dword [ebp + 0x521c50]
mov ebp, edi
sar ebp, 8
and edi, 0xfc
and ebp, 0xfc
xor ebx, dword [ebp + 0x521a50]
xor ebx, dword [edi + 0x521850]
xor ecx, ebx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xfc
mov ebp, dword [ebx + 0x521d50]
mov edi, edx
shr edi, 0x18
and edi, 0xfc
mov edi, dword [edi + 0x521f50]
mov ebx, edx
sar ebx, 8
xor edi, ebp
and ebx, 0xfc
mov ebp, dword [ebx + 0x521b50]
and edx, 0xfc
xor edi, ebp
mov ebp, dword [edx + 0x521950]
mov edx, dword [esp + 0x18]
xor edi, ebp
xor ecx, edi
sub esi, 0x20
dec edx
mov dword [esp + 0x18], edx
jne 0x471430
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