Function at 0x10510ab0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
movzx ecx, byte [edx + 6]
movzx ebx, byte [edx + 3]
movzx esi, byte [eax]
mov ebp, 8
movzx eax, byte [edx]
shl eax, 8
or esi, eax
shl ecx, 8
movzx eax, byte [edx + 1]
shl eax, 0x10
or esi, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or esi, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 5]
or ecx, eax
shl ecx, 0x10
or ebx, ecx
mov eax, ebx
shr eax, 4
xor eax, esi
and eax, 0xf0f0f0f
xor esi, eax
shl eax, 4
xor ebx, eax
mov eax, esi
shr eax, 0x10
xor eax, ebx
movzx eax, ax
xor ebx, eax
shl eax, 0x10
xor esi, eax
mov eax, ebx
shr eax, 2
xor eax, esi
and eax, 0x33333333
xor esi, eax
shl eax, 2
xor ebx, eax
mov eax, esi
shr eax, 8
xor eax, ebx
and eax, 0xff00ff
xor ebx, eax
shl eax, 8
xor esi, eax
mov edx, ebx
shr edx, 1
xor edx, esi
and edx, 0x55555555
mov edi, dword [esp + 0x1c]
lea eax, [edx + edx]
xor edx, esi
xor ebx, eax
mov dword [esp + 0x14], edx
cmp dword [esp + 0x20], 0
je 0x10510ca0
add edi, ebp
nop
mov esi, dword [edi - 8]
lea eax, [edx + edx]
mov ecx, edx
shr ecx, 0x1f
or ecx, eax
xor esi, ecx
xor ecx, dword [edi - 4]
mov edx, ecx
mov eax, esi
shr ecx, 4
shr eax, 0x10
and eax, 0x3f
shl edx, 0x1c
or edx, ecx
mov ecx, esi
shr ecx, 0x18
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x10a53668]
or ecx, dword [eax*4 + 0x10a53468]
mov eax, esi
shr eax, 8
and esi, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x10a53268]
mov eax, edx
shr eax, 0x18
and eax, 0x3f
or ecx, dword [eax*4 + 0x10a53768]
mov eax, edx
shr eax, 0x10
and eax, 0x3f
or ecx, dword [eax*4 + 0x10a53568]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x10a53368]
or ecx, dword [esi*4 + 0x10a53068]
or ecx, dword [edx*4 + 0x10a53168]
mov esi, dword [edi]
xor ebx, ecx
mov ecx, ebx
shr ecx, 0x1f
lea eax, [ebx + ebx]
or ecx, eax
xor esi, ecx
xor ecx, dword [edi + 4]
mov edx, ecx
mov eax, esi
shr ecx, 4
shr eax, 0x10
and eax, 0x3f
shl edx, 0x1c
or edx, ecx
mov ecx, esi
shr ecx, 0x18
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x10a53668]
or ecx, dword [eax*4 + 0x10a53468]
mov eax, esi
shr eax, 8
and esi, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x10a53268]
mov eax, edx
shr eax, 0x18
and eax, 0x3f
or ecx, dword [eax*4 + 0x10a53768]
mov eax, edx
shr eax, 0x10
and eax, 0x3f
or ecx, dword [eax*4 + 0x10a53568]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x10a53368]
or ecx, dword [esi*4 + 0x10a53068]
or ecx, dword [edx*4 + 0x10a53168]
mov edx, dword [esp + 0x14]
xor edx, ecx
mov dword [esp + 0x14], edx
lea edi, [edi + 0x10]
sub ebp, 1
jne 0x10510b70
jmp 0x10510dce
add edi, 0x70
mov esi, dword [edi + 8]
lea eax, [edx + edx]
mov ecx, edx
shr ecx, 0x1f
or ecx, eax
xor esi, ecx
xor ecx, dword [edi + 0xc]
mov edx, ecx
mov eax, esi
shr ecx, 4
shr eax, 0x10
and eax, 0x3f
shl edx, 0x1c
or edx, ecx
mov ecx, esi
shr ecx, 0x18
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x10a53668]
or ecx, dword [eax*4 + 0x10a53468]
mov eax, esi
shr eax, 8
and esi, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x10a53268]
mov eax, edx
shr eax, 0x18
and eax, 0x3f
or ecx, dword [eax*4 + 0x10a53768]
mov eax, edx
shr eax, 0x10
and eax, 0x3f
or ecx, dword [eax*4 + 0x10a53568]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x10a53368]
or ecx, dword [esi*4 + 0x10a53068]
or ecx, dword [edx*4 + 0x10a53168]
mov esi, dword [edi]
xor ebx, ecx
mov ecx, ebx
shr ecx, 0x1f
lea eax, [ebx + ebx]
or ecx, eax
xor esi, ecx
xor ecx, dword [edi + 4]
mov edx, ecx
mov eax, esi
shr ecx, 4
shr eax, 0x10
and eax, 0x3f
shl edx, 0x1c
or edx, ecx
mov ecx, esi
shr ecx, 0x18
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x10a53668]
or ecx, dword [eax*4 + 0x10a53468]
mov eax, esi
shr eax, 8
and esi, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x10a53268]
mov eax, edx
shr eax, 0x18
and eax, 0x3f
or ecx, dword [eax*4 + 0x10a53768]
mov eax, edx
shr eax, 0x10
and eax, 0x3f
or ecx, dword [eax*4 + 0x10a53568]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x10a53368]
or ecx, dword [esi*4 + 0x10a53068]
or ecx, dword [edx*4 + 0x10a53168]
mov edx, dword [esp + 0x14]
xor edx, ecx
mov dword [esp + 0x14], edx
lea edi, [edi - 0x10]
sub ebp, 1
jne 0x10510ca3
mov eax, edx
shr eax, 1
xor eax, ebx
and eax, 0x55555555
xor ebx, eax
add eax, eax
xor edx, eax
mov eax, ebx
shr eax, 8
xor eax, edx
and eax, 0xff00ff
xor edx, eax
shl eax, 8
xor ebx, eax
mov eax, edx
shr eax, 2
xor eax, ebx
and eax, 0x33333333
xor ebx, eax
shl eax, 2
xor edx, eax
mov eax, ebx
shr eax, 0x10
xor eax, edx
movzx eax, ax
xor edx, eax
shl eax, 0x10
xor ebx, eax
mov eax, edx
shr eax, 4
xor eax, ebx
and eax, 0xf0f0f0f
xor ebx, eax
shl eax, 4
xor edx, eax
mov eax, dword [esp + 0x18]
lea ecx, [eax + 1]
pop edi
pop esi
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 1], al
mov eax, edx
shr eax, 8
mov byte [ecx + 4], al
mov eax, edx
shr ebx, 0x18
mov byte [ecx + 3], dl
shr eax, 0x10
shr edx, 0x18
pop ebp
mov byte [ecx + 2], bl
mov byte [ecx + 5], al
mov byte [ecx + 6], dl
pop ebx
ret