Function at 0x526d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.0065cc50
mov eax, dword [ebp + 0x10]
push ebx
movzx ebx, byte [eax + 1]
push esi
push edi
mov edi, ecx
shl ebx, 8
lea ecx, [eax + 1]
mov esi, edx
movzx eax, byte [eax]
movzx edx, byte [ecx + 3]
or ebx, eax
movzx eax, byte [ecx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [ecx + 2]
shl eax, 0x18
or ebx, eax
cmp dword [ebp + 0x14], 0
je 0x526f5c
movzx eax, byte [ecx + 4]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 5]
shl eax, 0x10
or edx, eax
lea eax, [ecx + 6]
mov dword [ebp - 8], eax
movzx eax, byte [eax]
shl eax, 0x18
or edx, eax
mov eax, dword [ebp + 8]
mov dword [ebp + 0x14], edx
lea ecx, [eax - 8]
mov dword [ebp - 4], ecx
test ecx, ecx
js 0x526e74
shr eax, 3
mov dword [ebp + 8], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 4], ecx
nop dword [eax + eax]
movzx eax, byte [edi + 1]
movzx edx, byte [edi]
movzx ecx, byte [edi + 4]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 5]
shl eax, 8
xor edx, ebx
or ecx, eax
mov dword [ebp - 0x20], edx
movzx eax, byte [edi + 6]
mov edx, dword [ebp + 0xc]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 7]
shl eax, 0x18
add edi, 8
or ecx, eax
xor ecx, dword [ebp + 0x14]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x20]
call fcn.005271e0
mov ebx, dword [ebp - 0x20]
mov eax, ebx
mov edx, dword [ebp - 0x1c]
shr eax, 8
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, edx
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 4], dl
mov byte [esi + 7], al
add esi, 8
sub dword [ebp + 8], 1
mov dword [ebp + 0x14], edx
jne 0x526dd0
mov ecx, dword [ebp - 4]
cmp ecx, 0xfffffff8
je 0x526f3d
mov edx, dword [ebp - 4]
add edi, 8
add ecx, edi
add edx, 7
xor eax, eax
mov dword [ebp - 0x18], edx
xor edi, edi
mov dword [ebp + 8], eax
cmp edx, 7
ja case.default.0x526e97
jmp dword [edx*4 + 0x527194]
movzx edi, byte [ecx - 1]
dec ecx
shl edi, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
mov dword [ebp + 8], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or dword [ebp + 8], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or dword [ebp + 8], eax
movzx eax, byte [ecx - 1]
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
xor edi, dword [ebp + 0x14]
lea ecx, [ebp - 0x20]
mov edx, dword [ebp + 0xc]
xor eax, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
call fcn.005271e0
mov ebx, dword [ebp - 0x20]
mov eax, ebx
mov edx, dword [ebp - 0x1c]
shr eax, 8
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, edx
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 4], dl
mov byte [esi + 7], al
mov edi, dword [ebp - 8]
add edi, 0xfffffffa
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
mov eax, edx
shr eax, 0x18
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x527136
lea eax, [ecx + 4]
mov dword [ebp - 0xc], ebx
mov ecx, eax
mov dword [ebp - 0x14], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
movzx eax, byte [ecx]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 1]
shl eax, 0x10
or edx, eax
lea eax, [ebx + 2]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
movzx eax, byte [eax]
shl eax, 0x18
or edx, eax
mov eax, dword [ebp + 8]
mov dword [ebp + 0x14], edx
lea ecx, [eax - 8]
mov dword [ebp - 0x10], ecx
test ecx, ecx
js 0x527064
shr eax, 3
mov dword [ebp + 8], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 0x10], ecx
movzx eax, byte [edi + 1]
movzx ebx, byte [edi]
shl eax, 8
or ebx, eax
mov edx, dword [ebp + 0xc]
movzx eax, byte [edi + 2]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edi + 3]
add edi, 4
shl eax, 0x18
mov dword [ebp - 4], edi
or ebx, eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ebx
movzx edi, byte [edi]
movzx eax, byte [ecx + 1]
shl eax, 8
or edi, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx + 3]
add ecx, 4
shl eax, 0x18
or edi, eax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], edi
call fcn.00527330
mov ecx, dword [ebp - 0x20]
xor ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
mov eax, ecx
xor edx, dword [ebp + 0x14]
mov byte [esi], cl
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
mov byte [esi + 4], dl
shr edx, 0x18
shr ecx, 0x18
shr eax, 0x10
mov byte [esi + 7], dl
mov edx, edi
mov edi, dword [ebp - 4]
mov byte [esi + 3], cl
mov byte [esi + 6], al
add esi, 8
sub dword [ebp + 8], 1
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0x14], edx
jne 0x526fb0
mov ecx, dword [ebp - 0x10]
cmp ecx, 0xfffffff8
je 0x527128
movzx eax, byte [edi + 1]
movzx ecx, byte [edi]
movzx edx, byte [edi + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edi + 5]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], ecx
movzx ecx, byte [edi + 7]
shl eax, 8
or edx, eax
shl ecx, 8
movzx eax, byte [edi + 6]
or ecx, eax
shl ecx, 0x10
or edx, ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 0xc]
call fcn.00527330
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
xor eax, ebx
xor edx, dword [ebp + 0x14]
lea ecx, [edi + 8]
mov dword [ebp + 8], eax
add edi, 7
add ecx, esi
cmp edi, 7
ja case.default.0x5270df
jmp dword [edi*4 + 0x5271b4]
dec ecx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
mov eax, dword [ebp + 8]
dec ecx
mov byte [ecx], dl
dec ecx
shr eax, 0x18
mov byte [ecx], al
mov eax, dword [ebp + 8]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [ebp + 8]
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [ebp + 8]
mov byte [ecx - 1], al
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, edx
add edi, 0xfffffffa
shr eax, 0x18
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
mov esi, edx
shr esi, 8
mov ecx, edx
mov dword [ebp - 4], esi
mov esi, ebx
shr esi, 0x18
mov dword [ebp - 0xc], esi
mov esi, ebx
shr esi, 0x10
mov byte [eax - 7], bl
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
mov esi, ebx
shr ecx, 0x10
shr esi, 8
mov dword [ebp + 0x14], esi
mov esi, edi
mov ebx, dword [ebp + 0x14]
mov byte [edi], bl
mov ebx, dword [ebp - 0x10]
mov byte [edi + 1], bl
mov ebx, dword [ebp - 0xc]
mov byte [esi + 2], bl
mov byte [esi + 3], dl
mov edx, dword [ebp - 4]
mov byte [eax], dl
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [edx + 1], cl
mov byte [edx + 2], al
pop ebx
mov esp, ebp
pop ebp
ret