Function at 0x52aa10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.00481a50
cmp dword [esp + 0x28], 0
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
je 0x52ac52
movzx edx, byte [ebp]
movzx eax, byte [ebp + 1]
inc ebp
movzx ecx, byte [ebp + 1]
inc ebp
shl eax, 0x10
inc ebp
mov ebx, dword [esp + 0x2c]
shl edx, 0x18
or edx, eax
movzx eax, byte [ebp]
shl ecx, 8
or edx, ecx
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
inc ebp
movzx ecx, byte [ebp + 1]
or edx, eax
movzx eax, byte [ebp]
inc ebp
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [ebp + 1]
inc ebp
shl ecx, 8
inc ebp
or eax, ecx
movzx ecx, byte [ebp]
or eax, ecx
sub ebp, 7
add ebx, 0xfffffff8
mov dword [esp + 0x38], eax
js 0x52ab59
lea eax, [ebx + 8]
shr eax, 3
mov dword [esp + 0x2c], eax
neg eax
lea eax, [ebx + eax*8]
mov dword [esp + 0x10], eax
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
inc edi
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [edi + 1]
inc edi
shl ecx, 8
or eax, ecx
movzx ecx, byte [edi + 1]
inc edi
or eax, ecx
movzx ecx, byte [edi + 1]
inc edi
movzx ebx, byte [edi + 1]
inc edi
shl ecx, 0x18
shl ebx, 0x10
or ecx, ebx
movzx ebx, byte [edi + 1]
inc edi
shl ebx, 8
or ecx, ebx
movzx ebx, byte [edi + 1]
inc edi
xor eax, edx
mov edx, dword [esp + 0x30]
or ecx, ebx
xor ecx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x1c]
push eax
inc edi
mov dword [esp + 0x24], ecx
call fcn.0052a1b0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
inc esi
mov ecx, edx
shr ecx, 0x18
mov byte [esi - 1], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi], cl
inc esi
inc esi
mov ecx, edx
shr ecx, 8
mov byte [esi - 1], cl
mov byte [esi], dl
inc esi
mov ecx, eax
shr ecx, 0x18
mov byte [esi], cl
inc esi
mov ecx, eax
shr ecx, 0x10
mov byte [esi], cl
inc esi
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
inc esi
mov byte [esi], al
add esp, 8
inc esi
sub dword [esp + 0x2c], 1
mov dword [esp + 0x38], eax
jne 0x52aaa1
mov ebx, dword [esp + 0x10]
cmp ebx, 0xfffffff8
je 0x52ac2f
lea edi, [edi + ebx + 8]
add ebx, 7
xor ecx, ecx
mov dword [esp + 0x2c], 0
cmp ebx, 7
ja case.default.0x52ab78
jmp dword [ebx*4 + 0x52aeb8]
movzx ecx, byte [edi - 1]
dec edi
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edi - 1]
dec edi
shl ecx, 8
or dword [esp + 0x2c], ecx
movzx ecx, byte [edi - 1]
dec edi
shl ecx, 0x10
or dword [esp + 0x2c], ecx
movzx ecx, byte [edi - 1]
dec edi
shl ecx, 0x18
or dword [esp + 0x2c], ecx
movzx ecx, byte [edi - 1]
dec edi
movzx ebx, byte [edi - 1]
dec edi
shl ebx, 8
or ecx, ebx
movzx ebx, byte [edi - 1]
dec edi
shl ebx, 0x10
or ecx, ebx
movzx edi, byte [edi - 1]
shl edi, 0x18
or ecx, edi
xor ecx, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x2c]
xor ecx, eax
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call fcn.0052a1b0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, edx
shr ecx, 0x18
mov byte [esi], cl
inc esi
mov ecx, edx
shr ecx, 0x10
mov byte [esi], cl
inc esi
mov ecx, edx
shr ecx, 8
mov byte [esi], cl
inc esi
mov byte [esi], dl
mov ecx, eax
inc esi
mov ebx, ecx
shr ebx, 0x18
mov byte [esi], bl
inc esi
mov ebx, ecx
shr ebx, 0x10
mov byte [esi], bl
inc esi
mov ebx, ecx
add esp, 8
shr ebx, 8
mov byte [esi], bl
mov byte [esi + 1], cl
mov ecx, edx
shr ecx, 0x18
mov byte [ebp], cl
inc ebp
mov ecx, edx
shr ecx, 0x10
mov byte [ebp], cl
mov ecx, edx
inc ebp
shr ecx, 8
mov byte [ebp], cl
inc ebp
mov byte [ebp], dl
jmp 0x52ae90
movzx ebx, byte [ebp]
movzx eax, byte [ebp + 1]
inc ebp
movzx ecx, byte [ebp + 1]
inc ebp
movzx edx, byte [ebp + 1]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
inc ebp
shl eax, 0x10
inc ebp
shl ebx, 0x18
or ebx, eax
movzx eax, byte [ebp]
shl ecx, 8
or ebx, ecx
movzx ecx, byte [ebp + 1]
inc ebp
inc ebp
or ebx, edx
movzx edx, byte [ebp]
shl eax, 0x18
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [ebp + 1]
inc ebp
shl edx, 8
or eax, edx
or eax, ecx
mov ecx, dword [esp + 0x2c]
sub ebp, 7
add ecx, 0xfffffff8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x10], ecx
js 0x52ad9b
lea eax, [ecx + 8]
shr eax, 3
mov dword [esp + 0x2c], eax
neg eax
lea edx, [ecx + eax*8]
mov dword [esp + 0x10], edx
movzx ebp, byte [esi]
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
movzx ebx, byte [esi + 1]
inc esi
shl eax, 0x10
shl ebp, 0x18
or ebp, eax
movzx eax, byte [esi + 1]
inc esi
shl ecx, 8
or ebp, ecx
movzx ecx, byte [esi + 1]
inc esi
shl ebx, 0x18
shl eax, 0x10
or ebp, edx
movzx edx, byte [esi + 1]
or ebx, eax
mov eax, dword [esp + 0x30]
inc esi
shl ecx, 8
or ebx, ecx
push eax
lea ecx, [esp + 0x1c]
or ebx, edx
push ecx
inc esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
call fcn.0052a5e0
mov eax, dword [esp + 0x1c]
xor eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
xor ecx, dword [esp + 0x24]
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
inc edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
inc edi
mov edx, eax
shr edx, 8
mov byte [edi], dl
mov byte [edi + 1], al
inc edi
inc edi
mov eax, ecx
shr eax, 0x18
mov byte [edi], al
inc edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
inc edi
mov eax, ecx
shr eax, 8
mov byte [edi], al
inc edi
mov byte [edi], cl
add esp, 8
inc edi
sub dword [esp + 0x2c], 1
mov dword [esp + 0x14], ebp
mov dword [esp + 0x38], ebx
jne 0x52acd2
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
cmp ecx, 0xfffffff8
je 0x52ae72
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
inc esi
or eax, edx
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [esi + 1]
inc esi
movzx esi, byte [esi + 1]
shl edx, 8
or edx, esi
or ecx, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0052a5e0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
xor ebx, dword [esp + 0x20]
xor eax, dword [esp + 0x24]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 8
cmp ecx, 7
ja case.default.0x52ae25
jmp dword [ecx*4 + 0x52aed8]
dec edi
mov byte [edi], al
dec edi
mov edx, eax
shr edx, 8
mov byte [edi], dl
dec edi
mov ecx, eax
shr ecx, 0x10
mov byte [edi], cl
dec edi
shr eax, 0x18
mov byte [edi], al
dec edi
mov byte [edi], bl
dec edi
mov edx, ebx
shr edx, 8
mov byte [edi], dl
dec edi
mov eax, ebx
shr eax, 0x10
mov byte [edi], al
shr ebx, 0x18
mov byte [edi - 1], bl
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], edx
mov ebx, ecx
mov eax, edx
mov ecx, ebx
shr ecx, 0x18
mov byte [ebp], cl
inc ebp
mov edx, ebx
shr edx, 0x10
mov byte [ebp], dl
mov ecx, ebx
inc ebp
shr ecx, 8
mov byte [ebp], cl
inc ebp
mov byte [ebp], bl
inc ebp
mov edx, eax
shr edx, 0x18
mov byte [ebp], dl
inc ebp
mov ecx, eax
shr ecx, 0x10
mov byte [ebp], cl
inc ebp
mov edx, eax
pop edi
shr edx, 8
mov byte [ebp], dl
pop esi
mov byte [ebp + 1], al
pop ebp
pop ebx
add esp, 0x10
ret