Function at 0x5aae20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
inc eax
imul eax, dword [edi]
shl eax, 2
push eax
call fcn.0044e228
add esp, 4
mov dword [ebp - 4], eax
mov ecx, edi
push eax
push dword [ebp + 0x10]
call fcn.005aa580
push 0x10
call fcn.0044e228
mov ecx, dword [edi]
mov ebx, eax
shl ecx, 2
push ecx
mov dword [ebp + 0x10], ebx
call fcn.0044e228
mov dword [ebx], eax
add esp, 8
add eax, dword [edi]
mov dword [ebx + 4], eax
mov ecx, dword [edi]
mov eax, dword [ebx]
lea eax, [eax + ecx*2]
mov dword [ebx + 8], eax
mov eax, dword [edi]
lea eax, [eax + eax*2]
add eax, dword [ebx]
xor ecx, ecx
mov dword [ebx + 0xc], eax
mov eax, dword [edi]
mov dword [ebp - 8], ecx
xor edx, edx
test eax, eax
jle 0x5aaea8
mov esi, dword [ebp + 8]
add esi, ecx
mov ecx, dword [ebx]
lea esi, [esi + 4]
mov al, byte [esi - 4]
mov byte [edx + ecx], al
inc edx
mov eax, dword [edi]
cmp edx, eax
jl 0x5aae93
mov ecx, dword [ebp - 8]
inc ecx
add ebx, 4
mov dword [ebp - 8], ecx
cmp ecx, 4
jl 0x5aae88
mov eax, dword [edi]
xor ecx, ecx
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 8], ecx
nop
xor edx, edx
test eax, eax
jle 0x5aaee5
mov esi, dword [ebp - 4]
add esi, ecx
nop dword [eax + eax]
mov ecx, dword [ebx]
lea esi, [esi + 4]
mov al, byte [esi - 4]
xor byte [ecx + edx], al
inc edx
mov eax, dword [edi]
cmp edx, eax
jl 0x5aaed0
mov ecx, dword [ebp + 8]
inc ecx
add ebx, 4
mov dword [ebp + 8], ecx
cmp ecx, 4
jl 0x5aaec0
mov eax, dword [edi + 8]
mov ebx, 1
dec eax
mov dword [ebp - 8], ebx
cmp eax, ebx
jl 0x5aaf73
mov esi, dword [ebp + 0x10]
mov ecx, edi
push esi
call fcn.005aadc0
push esi
mov ecx, edi
call fcn.005aaca0
push esi
mov ecx, edi
call fcn.005aa970
mov ecx, dword [edi]
mov eax, ecx
mov edx, dword [ebp - 4]
imul eax, ebx
mov ebx, dword [ebp + 0x10]
lea esi, [edx + eax*4]
xor edx, edx
mov dword [ebp - 0xc], esi
mov dword [ebp + 8], edx
xor eax, eax
test ecx, ecx
jle 0x5aaf58
add esi, edx
nop dword [eax]
mov edx, dword [ebx]
lea esi, [esi + 4]
mov cl, byte [esi - 4]
xor byte [edx + eax], cl
inc eax
mov ecx, dword [edi]
cmp eax, ecx
jl 0x5aaf40
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
inc edx
add ebx, 4
mov dword [ebp + 8], edx
cmp edx, 4
jl 0x5aaf34
mov ebx, dword [ebp - 8]
mov eax, dword [edi + 8]
inc ebx
dec eax
mov dword [ebp - 8], ebx
cmp ebx, eax
jle 0x5aaf01
mov ebx, dword [ebp + 0x10]
mov ecx, edi
push ebx
call fcn.005aadc0
push ebx
mov ecx, edi
call fcn.005aaca0
mov eax, dword [edi + 8]
mov ecx, dword [edi]
mov edx, dword [ebp - 4]
imul eax, ecx
lea esi, [edx + eax*4]
xor eax, eax
mov dword [ebp - 0xc], esi
mov dword [ebp + 8], eax
nop dword [eax]
xor edx, edx
test ecx, ecx
jle 0x5aafc0
add esi, eax
mov ecx, dword [ebx]
lea esi, [esi + 4]
mov al, byte [esi - 4]
xor byte [ecx + edx], al
inc edx
mov ecx, dword [edi]
cmp edx, ecx
jl 0x5aafa8
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
inc eax
add ebx, 4
mov dword [ebp + 8], eax
cmp eax, 4
jl 0x5aafa0
mov eax, dword [edi]
xor ebx, ebx
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test eax, eax
jle 0x5aaff2
mov edx, dword [ebp + 0xc]
add edx, ebx
nop
mov eax, dword [esi]
lea edx, [edx + 4]
mov al, byte [ecx + eax]
inc ecx
mov byte [edx - 4], al
mov eax, dword [edi]
cmp ecx, eax
jl 0x5aafe0
inc ebx
add esi, 4
cmp ebx, 4
jl 0x5aafd3
mov ebx, dword [ebp + 0x10]
push dword [ebx]
call fcn.0044e231
push ebx
call fcn.0044e231
push dword [ebp - 4]
call fcn.0044e231
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc