Function at 0x4aced0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.00525ec0
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov edi, ecx
mov esi, edx
je 0x4ad134
movzx edx, byte [ebp]
movzx ecx, byte [ebp + 1]
inc ebp
shl ecx, 0x10
inc ebp
shl edx, 0x18
or edx, ecx
movzx ecx, byte [ebp]
shl ecx, 8
or edx, ecx
movzx ecx, byte [ebp + 1]
inc ebp
inc ebp
movzx ebx, byte [ebp + 1]
or edx, ecx
movzx ecx, byte [ebp]
inc ebp
shl ebx, 0x10
shl ecx, 0x18
or ecx, ebx
movzx ebx, byte [ebp + 1]
inc ebp
shl ebx, 8
or ecx, ebx
movzx ebx, byte [ebp + 1]
inc ebp
or ecx, ebx
lea ebx, [eax - 8]
sub ebp, 7
mov dword [esp + 0x28], ecx
test ebx, ebx
jl 0x4ad01b
lea eax, [ebx + 8]
shr eax, 3
mov dword [esp + 0x34], eax
neg eax
lea eax, [ebx + eax*8]
mov dword [esp + 0x10], eax
nop
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
inc esi
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
movzx ebx, byte [esi + 1]
inc esi
shl ecx, 0x18
shl ebx, 0x10
or ecx, ebx
movzx ebx, byte [esi + 1]
inc esi
shl ebx, 8
or ecx, ebx
movzx ebx, byte [esi + 1]
inc esi
xor eax, edx
mov edx, dword [esp + 0x2c]
or ecx, ebx
xor ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
push edx
lea eax, [esp + 0x20]
push eax
inc esi
mov dword [esp + 0x28], ecx
call fcn.004ad3d0
mov eax, dword [esp + 0x24]
mov ecx, eax
shr ecx, 0x18
mov byte [edi], cl
inc edi
mov ecx, eax
shr ecx, 0x10
mov byte [edi], cl
inc edi
mov ecx, eax
inc edi
shr ecx, 8
mov byte [edi - 1], cl
mov byte [edi], al
mov edx, eax
mov eax, dword [esp + 0x28]
inc edi
mov ebx, eax
shr ebx, 0x18
mov byte [edi], bl
inc edi
mov ebx, eax
shr ebx, 0x10
mov byte [edi], bl
inc edi
mov ebx, eax
shr ebx, 8
mov byte [edi], bl
inc edi
mov byte [edi], al
add esp, 8
mov ecx, eax
inc edi
sub dword [esp + 0x34], 1
mov dword [esp + 0x28], ecx
jne 0x4acf60
mov ebx, dword [esp + 0x10]
cmp ebx, 0xfffffff8
je 0x4ad0f0
lea esi, [esi + ebx + 8]
add ebx, 7
xor eax, eax
mov dword [esp + 0x28], 0
cmp ebx, 7
ja case.default.0x4ad03a
jmp dword [ebx*4 + 0x4ad384]
movzx eax, byte [esi - 1]
dec esi
mov dword [esp + 0x28], eax
movzx eax, byte [esi - 1]
dec esi
shl eax, 8
or dword [esp + 0x28], eax
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x10
or dword [esp + 0x28], eax
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x18
or dword [esp + 0x28], eax
movzx eax, byte [esi - 1]
dec esi
movzx ebx, byte [esi - 1]
dec esi
shl ebx, 8
or eax, ebx
movzx ebx, byte [esi - 1]
dec esi
shl ebx, 0x10
or eax, ebx
movzx esi, byte [esi - 1]
shl esi, 0x18
or eax, esi
xor eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
xor eax, ecx
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x28], eax
call fcn.004ad3d0
mov edx, dword [esp + 0x24]
inc edi
mov eax, edx
shr eax, 0x18
mov byte [edi - 1], al
mov ecx, edx
shr ecx, 0x10
mov byte [edi], cl
mov ecx, dword [esp + 0x28]
inc edi
mov eax, edx
shr eax, 8
mov byte [edi], al
inc edi
mov byte [edi], dl
inc edi
mov eax, ecx
shr eax, 0x18
mov byte [edi], al
inc edi
mov eax, ecx
shr eax, 0x10
mov byte [edi], al
inc edi
mov eax, ecx
add esp, 8
shr eax, 8
mov byte [edi], al
mov byte [edi + 1], cl
mov eax, edx
shr eax, 0x18
mov byte [ebp], al
inc ebp
mov eax, edx
shr eax, 0x10
mov byte [ebp], al
inc ebp
mov eax, edx
shr eax, 8
mov byte [ebp], al
mov byte [ebp + 1], dl
inc ebp
inc ebp
mov edx, ecx
shr edx, 0x18
mov byte [ebp], dl
inc ebp
mov eax, ecx
shr eax, 0x10
mov byte [ebp], al
inc ebp
mov edx, ecx
pop edi
shr edx, 8
mov byte [ebp], dl
pop esi
mov byte [ebp + 1], cl
pop ebp
pop ebx
add esp, 0x14
ret
movzx ebx, byte [ebp]
movzx ecx, byte [ebp + 1]
inc ebp
movzx edx, byte [ebp + 1]
inc ebp
shl ecx, 0x10
inc ebp
shl ebx, 0x18
or ebx, ecx
movzx ecx, byte [ebp]
shl edx, 8
or ebx, edx
or ebx, ecx
movzx ecx, byte [ebp + 1]
inc ebp
movzx edx, byte [ebp + 1]
inc ebp
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [ebp + 1]
inc ebp
shl edx, 8
inc ebp
or ecx, edx
movzx edx, byte [ebp]
or ecx, edx
sub ebp, 7
add eax, 0xfffffff8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], eax
js 0x4ad269
lea ecx, [eax + 8]
shr ecx, 3
mov dword [esp + 0x18], ecx
neg ecx
lea eax, [eax + ecx*8]
mov dword [esp + 0x10], eax
movzx ebx, byte [esi]
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
movzx eax, byte [esi + 1]
inc esi
shl ecx, 0x10
shl ebx, 0x18
or ebx, ecx
shl edx, 8
or ebx, edx
or ebx, eax
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
shl eax, 0x18
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 8
or eax, edx
mov edx, dword [esp + 0x2c]
or eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], ebx
inc esi
call fcn.004ad3d0
mov eax, dword [esp + 0x1c]
xor eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
xor ecx, dword [esp + 0x28]
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
mov ecx, dword [esp + 0x30]
add esp, 8
inc edi
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x34], ecx
jne 0x4ad1a4
mov eax, dword [esp + 0x10]
cmp eax, 0xfffffff8
je 0x4ad340
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
shl eax, 0x18
inc esi
shl edx, 0x10
or eax, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
or eax, ecx
or eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl eax, 0x18
shl ecx, 0x10
inc esi
or eax, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
or eax, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x20]
push eax
call fcn.004ad3d0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
xor ebx, dword [esp + 0x24]
xor eax, dword [esp + 0x28]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 8
cmp ecx, 7
ja case.default.0x4ad2f3
jmp dword [ecx*4 + 0x4ad3a4]
dec edi
mov byte [edi], al
dec edi
mov ecx, eax
shr ecx, 8
mov byte [edi], cl
dec edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
dec edi
shr eax, 0x18
mov byte [edi], al
dec edi
mov byte [edi], bl
dec edi
mov eax, ebx
shr eax, 8
mov byte [edi], al
dec edi
mov ecx, ebx
shr ecx, 0x10
mov byte [edi], cl
shr ebx, 0x18
mov byte [edi - 1], bl
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], eax
mov ebx, edx
mov ecx, eax
inc ebp
mov edx, ebx
shr edx, 0x18
mov byte [ebp - 1], dl
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
inc ebp
mov edx, ebx
shr edx, 8
mov byte [ebp], dl
mov byte [ebp + 1], bl
inc ebp
inc ebp
mov eax, ecx
shr eax, 0x18
mov byte [ebp], al
inc ebp
mov edx, ecx
shr edx, 0x10
mov byte [ebp], dl
inc ebp
mov eax, ecx
pop edi
shr eax, 8
mov byte [ebp], al
pop esi
mov byte [ebp + 1], cl
pop ebp
pop ebx
add esp, 0x14
ret