Function at 0x52de20
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.005ae090
mov eax, dword [esp + 0x2c]
movzx edx, byte [eax + 1]
movzx ecx, byte [eax + 4]
push ebx
push ebp
push esi
lea esi, [eax + 1]
shl edx, 8
movzx eax, byte [eax]
or edx, eax
movzx eax, byte [esi + 1]
shl eax, 0x10
or edx, eax
movzx eax, byte [esi + 2]
shl eax, 0x18
or edx, eax
cmp dword [esp + 0x3c], 0
push edi
mov dword [esp + 0x10], edx
je 0x52e037
movzx eax, byte [esi + 4]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
shl eax, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl eax, 0x10
lea ebp, [ebx - 8]
or ecx, eax
lea eax, [esi + 6]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x14], eax
movzx eax, byte [eax]
shl eax, 0x18
or ecx, eax
mov dword [esp + 0x40], ecx
test ebp, ebp
js 0x52df62
shr ebx, 3
mov eax, ebx
neg eax
lea ebp, [ebp + eax*8]
nop dword [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
push dword [esp + 0x38]
or edx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 5]
xor edx, dword [esp + 0x14]
shl eax, 8
or ecx, eax
mov dword [esp + 0x1c], edx
movzx eax, byte [edi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 7]
shl eax, 0x18
add edi, 8
or ecx, eax
lea eax, [esp + 0x1c]
xor ecx, dword [esp + 0x44]
push eax
mov dword [esp + 0x24], ecx
call fcn.0052e440
mov edx, dword [esp + 0x20]
add esp, 8
mov ecx, dword [esp + 0x1c]
mov eax, edx
shr eax, 8
mov byte [esi], dl
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ecx
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 4], cl
mov byte [esi + 7], al
add esi, 8
mov dword [esp + 0x10], edx
mov dword [esp + 0x40], ecx
sub ebx, 1
jne 0x52deb0
cmp ebp, 0xfffffff8
je 0x52e024
lea ecx, [edi + 8]
xor ebx, ebx
add ecx, ebp
xor edi, edi
add ebp, 7
cmp ebp, 7
ja case.default.0x52df7c
jmp dword [ebp*4 + 0x52e288]
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 ebx, byte [ecx - 1]
dec ecx
shl ebx, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or ebx, eax
movzx eax, byte [ecx - 1]
or ebx, eax
push dword [esp + 0x38]
xor edi, dword [esp + 0x44]
lea eax, [esp + 0x1c]
xor ebx, edx
mov dword [esp + 0x20], edi
push eax
mov dword [esp + 0x20], ebx
call fcn.0052e440
mov edx, dword [esp + 0x20]
add esp, 8
mov ecx, dword [esp + 0x1c]
mov eax, edx
shr eax, 8
mov byte [esi], dl
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ecx
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 4], cl
mov byte [esi + 7], al
mov eax, dword [esp + 0x14]
add eax, 0xfffffffa
lea edi, [eax + 4]
mov dword [esp + 0x20], edi
jmp 0x52e213
movzx eax, byte [esi + 4]
lea ebx, [esi + 4]
mov ebp, dword [esp + 0x30]
shl eax, 8
or ecx, eax
mov dword [esp + 0x20], ebx
movzx eax, byte [ebx + 1]
shl eax, 0x10
or ecx, eax
lea eax, [ebx + 2]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
movzx eax, byte [eax]
shl eax, 0x18
or ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
lea edi, [eax - 8]
test edi, edi
js 0x52e149
shr eax, 3
mov dword [esp + 0x34], eax
neg eax
lea edi, [edi + eax*8]
mov dword [esp + 0x24], edi
nop word [eax + eax]
movzx eax, byte [ebx + 1]
movzx edi, byte [ebx]
movzx esi, byte [ebx + 4]
shl eax, 8
or edi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
push dword [esp + 0x38]
or edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
or esi, eax
mov dword [esp + 0x1c], edi
movzx eax, byte [ebx + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add ebx, 8
or esi, eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x24], esi
call fcn.0052e2d0
mov ecx, dword [esp + 0x20]
add esp, 8
xor ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, ecx
xor edx, dword [esp + 0x40]
mov byte [ebp], cl
shr eax, 8
mov byte [ebp + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + 2], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov eax, edx
mov byte [ebp + 4], dl
shr ecx, 0x18
shr edx, 0x18
shr eax, 0x10
mov byte [ebp + 3], cl
mov ecx, esi
mov byte [ebp + 7], dl
mov edx, edi
mov byte [ebp + 6], al
add ebp, 8
sub dword [esp + 0x34], 1
mov dword [esp + 0x10], edx
mov dword [esp + 0x40], ecx
jne 0x52e090
mov edi, dword [esp + 0x24]
cmp edi, 0xfffffff8
je 0x52e20c
movzx eax, byte [ebx + 1]
movzx esi, byte [ebx]
movzx edx, byte [ebx + 4]
movzx ecx, byte [ebx + 7]
push dword [esp + 0x38]
shl eax, 8
or esi, eax
shl ecx, 8
movzx eax, byte [ebx + 2]
shl eax, 0x10
or esi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or esi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
or edx, eax
mov dword [esp + 0x1c], esi
movzx eax, byte [ebx + 6]
or ecx, eax
lea eax, [esp + 0x1c]
shl ecx, 0x10
or edx, ecx
push eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x24], edx
call fcn.0052e2d0
mov ebx, dword [esp + 0x20]
lea ecx, [ebp + 8]
mov edx, dword [esp + 0x24]
add ecx, edi
xor ebx, dword [esp + 0x18]
add edi, 7
xor edx, dword [esp + 0x48]
add esp, 8
cmp edi, 7
ja case.default.0x52e1c9
jmp dword [edi*4 + 0x52e2a8]
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
dec ecx
mov byte [ecx], dl
dec ecx
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 8
mov byte [ecx], al
mov byte [ecx - 1], bl
mov ecx, dword [esp + 0x34]
mov edx, esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffffa
mov edi, dword [esp + 0x14]
mov esi, ecx
shr esi, 0x10
mov ebx, ecx
mov dword [esp + 0x24], esi
mov ebp, 0xfffffff9
mov esi, ecx
shr ebx, 0x18
shr esi, 8
mov dword [esp + 0x18], esi
mov esi, edx
shr esi, 0x18
mov dword [esp + 0x10], esi
mov esi, edx
shr esi, 0x10
mov byte [edi + ebp], dl
mov edi, dword [esp + 0x20]
mov dword [esp + 0x40], esi
mov esi, edx
shr esi, 8
mov dword [esp + 0x34], esi
mov esi, eax
mov edx, dword [esp + 0x34]
mov byte [eax], dl
mov edx, dword [esp + 0x40]
mov byte [eax + 1], dl
mov eax, dword [esp + 0x10]
mov byte [esi + 2], al
mov byte [esi + 3], cl
mov eax, dword [esp + 0x18]
mov byte [edi], al
mov eax, dword [esp + 0x24]
mov byte [edi + 1], al
mov byte [edi + 2], bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret