Function at 0x52a6d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x34
call fcn.00629030
mov eax, dword [0x70d514]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
push ebx
movzx ebx, byte [eax + 4]
push esi
push edi
mov esi, edx
shl ebx, 0x18
movzx edx, byte [eax + 1]
mov edi, ecx
lea ecx, [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 1]
shl edx, 0x10
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 2]
or edx, eax
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0x10], edx
je 0x52a91e
movzx eax, byte [ecx + 4]
shl eax, 0x10
or ebx, eax
movzx eax, byte [ecx + 5]
shl eax, 8
or ebx, eax
lea eax, [ecx + 6]
mov dword [ebp - 0x28], eax
movzx eax, byte [eax]
or ebx, eax
mov eax, dword [ebp + 8]
lea ecx, [eax - 8]
mov dword [ebp - 0x18], ecx
test ecx, ecx
js 0x52a814
shr eax, 3
mov dword [ebp + 8], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 0x18], ecx
nop dword [eax + eax]
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
movzx ecx, byte [edi + 4]
shl eax, 0x10
shl edx, 0x18
or edx, eax
shl ecx, 0x18
movzx eax, byte [edi + 2]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 3]
or edx, eax
movzx eax, byte [edi + 5]
xor edx, dword [ebp - 0x10]
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0xc], edx
movzx eax, byte [edi + 6]
mov edx, dword [ebp - 0x1c]
shl eax, 8
or ecx, eax
movzx eax, byte [edi + 7]
or ecx, eax
add edi, 8
xor ecx, ebx
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0xc]
call fcn.0052abb0
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ebx, dword [ebp - 8]
shr eax, 0x18
mov byte [esi], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, edx
shr eax, 8
mov byte [esi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, ebx
shr eax, 8
mov byte [esi + 3], dl
mov byte [esi + 6], al
mov byte [esi + 7], bl
add esi, 8
sub dword [ebp + 8], 1
mov dword [ebp - 0x10], edx
jne 0x52a770
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xfffffff8
je 0x52a8dd
mov edx, dword [ebp - 0x18]
add edi, 8
add ecx, edi
add edx, 7
xor eax, eax
mov dword [ebp - 0x24], edx
xor edi, edi
mov dword [ebp - 0x14], eax
cmp edx, 7
ja case.default.0x52a837
jmp dword [edx*4 + 0x52ab68]
movzx edi, byte [ecx - 1]
dec ecx
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
mov dword [ebp - 0x14], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or dword [ebp - 0x14], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or dword [ebp - 0x14], eax
movzx eax, byte [ecx - 1]
shl eax, 0x18
or dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
xor edi, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
call fcn.0052abb0
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ebx, dword [ebp - 8]
shr eax, 0x18
mov byte [esi], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, edx
shr eax, 8
mov byte [esi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, ebx
shr eax, 8
mov byte [esi + 3], dl
mov byte [esi + 6], al
mov byte [esi + 7], bl
mov edi, dword [ebp - 0x28]
mov ecx, ebx
add edi, 0xfffffffa
shr ecx, 0x10
mov esi, ebx
shr esi, 0x18
lea eax, [edi + 4]
mov dword [ebp - 0x30], eax
mov eax, ebx
shr eax, 8
mov dword [ebp - 0x20], eax
mov eax, edx
shr eax, 8
mov dword [ebp - 0x10], eax
mov eax, edx
shr eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, edx
shr eax, 0x18
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
jmp 0x52ab1c
lea eax, [ecx + 4]
mov ecx, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
movzx eax, byte [ecx]
shl eax, 0x10
or ebx, eax
movzx eax, byte [ecx + 1]
shl eax, 8
or ebx, eax
mov eax, ecx
add eax, 2
mov dword [ebp - 0x28], eax
movzx eax, byte [eax]
or ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
lea ecx, [eax - 8]
mov dword [ebp - 0x20], ecx
test ecx, ecx
js 0x52aa2a
shr eax, 3
mov dword [ebp + 8], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 0x20], ecx
nop dword [eax]
movzx ebx, byte [edi]
movzx eax, byte [edi + 1]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edi + 2]
shl eax, 8
or ebx, eax
movzx eax, byte [edi + 3]
add edi, 4
or ebx, eax
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ebx
movzx edi, byte [edi]
shl edi, 0x18
movzx eax, byte [ecx + 1]
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx + 2]
shl eax, 8
or edi, eax
movzx eax, byte [ecx + 3]
add ecx, 4
or edi, eax
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], edi
call fcn.0052abb0
mov ecx, dword [ebp - 0xc]
xor ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, ecx
xor edx, dword [ebp - 0x18]
shr eax, 0x18
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 4], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, edx
shr eax, 8
mov byte [esi + 7], dl
mov edx, ebx
mov byte [esi + 3], cl
mov ebx, edi
mov edi, dword [ebp - 0x14]
mov byte [esi + 6], al
add esi, 8
sub dword [ebp + 8], 1
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ebx
jne 0x52a970
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xfffffff8
je 0x52aae9
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
movzx edx, byte [edi + 4]
shl ecx, 0x18
shl eax, 0x10
or ecx, eax
shl edx, 0x18
movzx eax, byte [edi + 2]
shl eax, 8
or ecx, eax
movzx eax, byte [edi + 3]
or ecx, eax
movzx eax, byte [edi + 5]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xc], ecx
movzx ecx, byte [edi + 6]
shl eax, 0x10
or edx, eax
shl ecx, 8
movzx eax, byte [edi + 7]
or ecx, eax
or edx, ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x1c]
call fcn.0052abb0
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
xor edx, dword [ebp - 0x10]
xor eax, ebx
lea ecx, [edi + 8]
mov dword [ebp - 0x18], eax
add edi, 7
add ecx, esi
cmp edi, 7
ja case.default.0x52aaa5
jmp dword [edi*4 + 0x52ab88]
dec ecx
mov byte [ecx], al
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [ebp - 0x18]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [ebp - 0x18]
dec ecx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov byte [ecx], dl
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
shr edx, 0x18
mov byte [ecx - 1], dl
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp - 0x28]
mov eax, ebx
shr eax, 8
mov ecx, ebx
mov dword [ebp - 0x20], eax
mov esi, ebx
mov eax, edx
shr ecx, 0x10
shr eax, 8
mov ebx, edx
mov dword [ebp - 0x10], eax
add edi, 0xfffffffa
mov eax, edx
shr esi, 0x18
shr eax, 0x10
shr ebx, 0x18
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov esi, edi
mov byte [ecx - 7], al
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov byte [edi], al
mov eax, dword [ebp - 0x10]
mov byte [edi + 1], al
mov eax, dword [ebp - 0x30]
mov byte [esi + 2], dl
mov edx, dword [ebp - 0x2c]
mov byte [esi + 3], dl
mov byte [eax], cl
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov byte [ecx + 1], al
mov byte [ecx + 2], bl
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00628f0a
mov esp, ebp
pop ebp
ret