Function at 0x46ce60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
shl eax, 5
lea edi, [eax + ecx]
mov eax, dword [ebp + 0x10]
mov ebx, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
xor ecx, dword [eax + 4]
xor ebx, dword [eax]
xor edx, dword [eax + 8]
mov dword [ebp + 0x10], ecx
mov ecx, dword [edi + 0x1c]
xor ecx, dword [eax + 0xc]
lea eax, [edi - 0x10]
mov dword [ebp - 4], eax
mov eax, ecx
sar eax, 8
mov dword [ebp - 0x18], ecx
movzx ecx, al
mov eax, edx
sar eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x506c18]
xor ecx, dword [eax*4 + 0x507018]
mov eax, dword [ebp + 0x10]
sar eax, 0x18
movzx eax, al
xor ecx, dword [eax*4 + 0x507418]
movzx eax, bl
xor ecx, dword [eax*4 + 0x506818]
mov eax, ebx
xor ecx, dword [edi]
sar eax, 8
mov dword [ebp - 0x14], ecx
movzx ecx, al
mov eax, dword [ebp - 0x18]
sar eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x506c18]
xor ecx, dword [eax*4 + 0x507018]
mov eax, edx
sar eax, 0x18
movzx eax, al
xor ecx, dword [eax*4 + 0x507418]
mov eax, dword [ebp + 0x10]
movzx eax, al
xor ecx, dword [eax*4 + 0x506818]
mov eax, ebx
xor ecx, dword [edi + 4]
sar eax, 0x10
mov dword [ebp + 8], ecx
movzx ecx, al
mov eax, dword [ebp - 0x18]
sar eax, 0x18
movzx eax, al
mov ecx, dword [ecx*4 + 0x507018]
sar ebx, 0x18
xor ecx, dword [eax*4 + 0x507418]
mov eax, dword [ebp + 0x10]
sar eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x506c18]
movzx eax, dl
sar edx, 8
xor ecx, dword [eax*4 + 0x506818]
xor ecx, dword [edi + 8]
mov dword [ebp - 8], ecx
movzx ecx, bl
movzx eax, dl
mov ecx, dword [ecx*4 + 0x507418]
xor ecx, dword [eax*4 + 0x506c18]
mov eax, dword [ebp + 0x10]
sar eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x507018]
mov eax, dword [ebp - 0x18]
movzx eax, al
xor ecx, dword [eax*4 + 0x506818]
xor ecx, dword [edi + 0xc]
sub dword [ebp - 0x10], 1
mov dword [ebp + 0x10], ecx
je 0x46d1aa
lea eax, [edi - 0x10]
mov dword [ebp - 4], eax
lea esi, [eax]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
shr eax, 0x10
movzx eax, al
shr ecx, 8
mov ebx, dword [ebp - 0x14]
movzx ecx, cl
mov edi, dword [ebp - 4]
mov ecx, dword [ecx*4 + 0x506c18]
xor ecx, dword [eax*4 + 0x507018]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x507418]
movzx eax, bl
xor ecx, dword [eax*4 + 0x506818]
mov eax, dword [ebp - 4]
xor ecx, dword [eax]
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [ebp - 0xc], ecx
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x507018]
xor ecx, dword [eax*4 + 0x506c18]
mov eax, dword [ebp - 8]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x507418]
movzx eax, dl
xor ecx, dword [eax*4 + 0x506818]
mov eax, edx
xor ecx, dword [edi + 4]
shr eax, 8
mov dword [ebp - 0x18], ecx
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr edx, 0x10
mov ebx, dword [ecx*4 + 0x506c18]
mov ecx, dword [ebp - 8]
xor ebx, dword [eax*4 + 0x507018]
mov eax, dword [ebp + 0x10]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x507418]
movzx eax, cl
shr ecx, 8
movzx ecx, cl
xor ebx, dword [eax*4 + 0x506818]
xor ebx, dword [edi + 8]
movzx eax, dl
mov edx, dword [ecx*4 + 0x506c18]
xor edx, dword [eax*4 + 0x507018]
mov eax, dword [ebp - 0x14]
shr eax, 0x18
xor edx, dword [eax*4 + 0x507418]
mov eax, dword [ebp + 0x10]
movzx eax, al
xor edx, dword [eax*4 + 0x506818]
mov eax, ebx
xor edx, dword [edi + 0xc]
sub edi, 0x20
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov dword [ebp - 4], edi
mov ecx, dword [ecx*4 + 0x507018]
xor ecx, dword [eax*4 + 0x506c18]
mov eax, dword [ebp - 0x18]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x507418]
mov eax, dword [ebp - 0xc]
movzx eax, al
xor ecx, dword [eax*4 + 0x506818]
mov eax, edx
xor ecx, dword [esi - 0x10]
mov dword [ebp - 0x14], ecx
shr eax, 0x10
movzx ecx, al
mov eax, dword [ebp - 0xc]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x507018]
xor ecx, dword [eax*4 + 0x506c18]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x507418]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
movzx eax, cl
xor edi, dword [eax*4 + 0x506818]
mov eax, edi
mov dword [ebp + 8], edi
xor eax, dword [esi - 0xc]
mov dword [ebp + 8], eax
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, dword [ebp - 0xc]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x506c18]
xor ecx, dword [eax*4 + 0x507018]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x507418]
movzx eax, bl
shr ebx, 8
xor ecx, dword [eax*4 + 0x506818]
xor ecx, dword [esi - 8]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
shr eax, 0x10
movzx eax, al
movzx ecx, bl
mov ecx, dword [ecx*4 + 0x506c18]
xor ecx, dword [eax*4 + 0x507018]
mov eax, dword [ebp - 0xc]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x507418]
movzx eax, dl
xor ecx, dword [eax*4 + 0x506818]
xor ecx, dword [esi - 4]
sub dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
mov dword [ebp + 0x10], ecx
jne 0x46cfa7
mov eax, dword [ebp - 8]
shr eax, 0x10
movzx eax, al
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
shr edi, 0x18
movzx ecx, byte [eax + 0x507818]
mov edx, dword [ebp + 0xc]
movzx eax, byte [edi + 0x507818]
shl eax, 8
or ecx, eax
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x507818]
or ecx, eax
movzx eax, bl
shl ecx, 8
movzx eax, byte [eax + 0x507818]
or ecx, eax
mov eax, dword [ebp + 0x10]
xor ecx, dword [edi]
shr eax, 0x10
movzx eax, al
mov dword [edx], ecx
movzx ecx, byte [eax + 0x507818]
mov eax, dword [ebp - 8]
shr eax, 0x18
movzx eax, byte [eax + 0x507818]
shl eax, 8
or ecx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x507818]
or ecx, eax
mov eax, dword [ebp + 8]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x507818]
or ecx, eax
mov eax, dword [ebp + 0x10]
xor ecx, dword [edi + 4]
shr eax, 0x18
mov dword [edx + 4], ecx
movzx ecx, byte [eax + 0x507818]
mov eax, ebx
shr eax, 0x10
movzx eax, al
shl ecx, 8
shr ebx, 0x18
movzx eax, byte [eax + 0x507818]
or ecx, eax
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x507818]
or ecx, eax
mov eax, dword [ebp - 8]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x507818]
or ecx, eax
mov eax, dword [ebp + 8]
xor ecx, dword [edi + 8]
shr eax, 0x10
movzx eax, al
mov dword [edx + 8], ecx
movzx ecx, byte [eax + 0x507818]
movzx eax, byte [ebx + 0x507818]
shl eax, 8
or ecx, eax
mov eax, dword [ebp - 8]
shl ecx, 8
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x507818]
or ecx, eax
mov eax, dword [ebp + 0x10]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x507818]
or ecx, eax
xor ecx, dword [edi + 0xc]
pop edi
pop esi
mov dword [edx + 0xc], ecx
pop ebx
mov esp, ebp
pop ebp
ret