Function at 0x4aaeb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
inc eax
imul eax, dword [esi]
shl eax, 2
push eax
call fcn.00a407c3
add esp, 4
mov dword [ebp - 8], eax
mov ecx, esi
push eax
push dword [ebp + 0x10]
call fcn.004ab230
push 0x10
call fcn.00a407c3
mov ecx, dword [esi]
mov edi, eax
shl ecx, 2
push ecx
mov dword [ebp - 4], edi
call fcn.00a407c3
mov dword [edi], eax
add esp, 8
mov ecx, dword [esi]
add ecx, eax
mov dword [edi + 4], ecx
mov ecx, dword [edi]
mov eax, dword [esi]
lea eax, [ecx + eax*2]
mov dword [edi + 8], eax
mov eax, dword [esi]
lea ecx, [ecx + eax*2]
add ecx, eax
xor ebx, ebx
mov dword [edi + 0xc], ecx
mov ecx, dword [esi]
mov dword [ebp + 0x10], ebx
nop word [eax + eax]
xor edx, edx
test ecx, ecx
jle 0x4aaf49
add ebx, dword [ebp + 8]
nop dword [eax]
mov ecx, dword [edi]
lea ebx, [ebx + 4]
mov al, byte [ebx - 4]
mov byte [edx + ecx], al
inc edx
mov ecx, dword [esi]
cmp edx, ecx
jl 0x4aaf30
mov ebx, dword [ebp + 0x10]
mov eax, ecx
jmp 0x4aaf4b
mov eax, dword [esi]
inc ebx
add edi, 4
mov dword [ebp + 0x10], ebx
cmp ebx, 4
jl 0x4aaf20
mov edi, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp + 0x10], ecx
nop
xor edx, edx
test eax, eax
jle 0x4aaf85
mov ebx, dword [ebp - 8]
add ebx, ecx
nop dword [eax + eax]
mov ecx, dword [edi]
lea ebx, [ebx + 4]
mov al, byte [ebx - 4]
xor byte [ecx + edx], al
inc edx
mov eax, dword [esi]
cmp edx, eax
jl 0x4aaf70
mov ecx, dword [ebp + 0x10]
inc ecx
add edi, 4
mov dword [ebp + 0x10], ecx
cmp ecx, 4
jl 0x4aaf60
mov eax, dword [esi + 8]
mov edi, dword [ebp - 4]
dec eax
mov dword [ebp + 8], 1
cmp eax, 1
jl 0x4ab0ca
push edi
mov ecx, esi
call fcn.004ab780
mov ebx, dword [edi + 4]
xor edx, edx
mov ecx, dword [esi]
mov al, byte [ebx]
mov byte [ebp + 0x13], al
lea eax, [ecx - 1]
test eax, eax
jle 0x4aafda
mov ecx, dword [edi + 4]
mov al, byte [ecx + edx + 1]
mov byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
lea eax, [ecx - 1]
cmp edx, eax
jl 0x4aafc3
mov ebx, dword [edi + 4]
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
mov dword [ebp - 0xc], 2
mov ebx, dword [edi + 8]
xor edx, edx
mov ecx, dword [esi]
mov al, byte [ebx]
mov byte [ebp + 0x13], al
lea eax, [ecx - 1]
test eax, eax
jle 0x4ab017
nop dword [eax + eax]
mov ecx, dword [edi + 8]
mov al, byte [ecx + edx + 1]
mov byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
lea eax, [ecx - 1]
cmp edx, eax
jl 0x4ab000
mov ebx, dword [edi + 8]
sub dword [ebp - 0xc], 1
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
jne 0x4aafe8
mov dword [ebp - 0xc], 3
nop dword [eax + eax]
mov ebx, dword [edi + 0xc]
xor edx, edx
mov ecx, dword [esi]
mov al, byte [ebx]
mov byte [ebp + 0x13], al
lea eax, [ecx - 1]
test eax, eax
jle 0x4ab05a
mov ecx, dword [edi + 0xc]
mov al, byte [ecx + edx + 1]
mov byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
lea eax, [ecx - 1]
cmp edx, eax
jl 0x4ab043
mov ebx, dword [edi + 0xc]
sub dword [ebp - 0xc], 1
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
jne 0x4ab030
push edi
mov ecx, esi
call fcn.004ab4c0
mov ecx, dword [esi]
mov eax, ecx
imul eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edi
lea ebx, [edx + eax*4]
xor eax, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp + 0x10], eax
xor edx, edx
test ecx, ecx
jle 0x4ab0a8
add ebx, eax
mov ecx, dword [edi]
lea ebx, [ebx + 4]
mov al, byte [ebx - 4]
xor byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
cmp edx, ecx
jl 0x4ab090
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x10]
inc eax
add edi, 4
mov dword [ebp + 0x10], eax
cmp eax, 4
jl 0x4ab088
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 8]
inc ecx
mov edi, dword [ebp - 4]
dec eax
mov dword [ebp + 8], ecx
cmp ecx, eax
jle 0x4aafa8
push edi
mov ecx, esi
call fcn.004ab780
mov ebx, dword [edi + 4]
xor edx, edx
mov ecx, dword [esi]
mov al, byte [ebx]
mov byte [ebp + 0x13], al
lea eax, [ecx - 1]
test eax, eax
jle 0x4ab0fc
mov ecx, dword [edi + 4]
mov al, byte [ecx + edx + 1]
mov byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
lea eax, [ecx - 1]
cmp edx, eax
jl 0x4ab0e5
mov ebx, dword [edi + 4]
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
mov dword [ebp + 8], 2
nop word [eax + eax]
mov ebx, dword [edi + 8]
xor edx, edx
mov ecx, dword [esi]
mov al, byte [ebx]
mov byte [ebp + 0x13], al
lea eax, [ecx - 1]
test eax, eax
jle 0x4ab13a
mov ecx, dword [edi + 8]
mov al, byte [ecx + edx + 1]
mov byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
lea eax, [ecx - 1]
cmp edx, eax
jl 0x4ab123
mov ebx, dword [edi + 8]
sub dword [ebp + 8], 1
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
jne 0x4ab110
mov dword [ebp + 8], 3
nop
mov ebx, dword [edi + 0xc]
xor edx, edx
mov ecx, dword [esi]
mov al, byte [ebx]
mov byte [ebp + 0x13], al
lea eax, [ecx - 1]
test eax, eax
jle 0x4ab17a
mov ecx, dword [edi + 0xc]
mov al, byte [ecx + edx + 1]
mov byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
lea eax, [ecx - 1]
cmp edx, eax
jl 0x4ab163
mov ebx, dword [edi + 0xc]
sub dword [ebp + 8], 1
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
jne 0x4ab150
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [ebp - 8]
imul eax, ecx
xor ebx, ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 8], edi
lea eax, [edx + eax*4]
mov dword [ebp - 0x10], eax
jmp 0x4ab1a5
mov eax, dword [ebp - 0x10]
xor edx, edx
test ecx, ecx
jle 0x4ab1c9
add ebx, eax
nop dword [eax]
mov ecx, dword [edi]
lea ebx, [ebx + 4]
mov al, byte [ebx - 4]
xor byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
cmp edx, ecx
jl 0x4ab1b0
mov ebx, dword [ebp + 0x10]
mov eax, ecx
jmp 0x4ab1cb
mov eax, dword [esi]
inc ebx
add edi, 4
mov dword [ebp + 0x10], ebx
cmp ebx, 4
jl 0x4ab1a2
mov ebx, dword [ebp - 4]
xor edi, edi
nop dword [eax]
xor ecx, ecx
test eax, eax
jle 0x4ab202
mov edx, dword [ebp + 0xc]
add edx, edi
nop dword [eax + eax]
mov eax, dword [ebx]
lea edx, [edx + 4]
mov al, byte [ecx + eax]
inc ecx
mov byte [edx - 4], al
mov eax, dword [esi]
cmp ecx, eax
jl 0x4ab1f0
inc edi
add ebx, 4
cmp edi, 4
jl 0x4ab1e0
mov edi, dword [ebp - 4]
push dword [edi]
call fcn.00a407cc
push edi
call fcn.00a407cc
push dword [ebp - 8]
call fcn.00a407cc
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc