Function at 0x4a5ce0
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.00a34af3
add esp, 4
mov dword [ebp - 8], eax
mov ecx, esi
push eax
push dword [ebp + 0x10]
call fcn.004a6060
push 0x10
call fcn.00a34af3
mov ecx, dword [esi]
mov edi, eax
shl ecx, 2
push ecx
mov dword [ebp - 4], edi
call fcn.00a34af3
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 0x4a5d79
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 0x4a5d60
mov ebx, dword [ebp + 0x10]
mov eax, ecx
jmp 0x4a5d7b
mov eax, dword [esi]
inc ebx
add edi, 4
mov dword [ebp + 0x10], ebx
cmp ebx, 4
jl 0x4a5d50
mov edi, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp + 0x10], ecx
nop
xor edx, edx
test eax, eax
jle 0x4a5db5
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 0x4a5da0
mov ecx, dword [ebp + 0x10]
inc ecx
add edi, 4
mov dword [ebp + 0x10], ecx
cmp ecx, 4
jl 0x4a5d90
mov eax, dword [esi + 8]
mov edi, dword [ebp - 4]
dec eax
mov dword [ebp + 8], 1
cmp eax, 1
jl 0x4a5efa
push edi
mov ecx, esi
call fcn.004a65b0
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 0x4a5e0a
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 0x4a5df3
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 0x4a5e47
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 0x4a5e30
mov ebx, dword [edi + 8]
sub dword [ebp - 0xc], 1
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
jne 0x4a5e18
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 0x4a5e8a
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 0x4a5e73
mov ebx, dword [edi + 0xc]
sub dword [ebp - 0xc], 1
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
jne 0x4a5e60
push edi
mov ecx, esi
call fcn.004a62f0
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 0x4a5ed8
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 0x4a5ec0
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x10]
inc eax
add edi, 4
mov dword [ebp + 0x10], eax
cmp eax, 4
jl 0x4a5eb8
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 0x4a5dd8
push edi
mov ecx, esi
call fcn.004a65b0
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 0x4a5f2c
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 0x4a5f15
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 0x4a5f6a
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 0x4a5f53
mov ebx, dword [edi + 8]
sub dword [ebp + 8], 1
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
jne 0x4a5f40
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 0x4a5faa
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 0x4a5f93
mov ebx, dword [edi + 0xc]
sub dword [ebp + 8], 1
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
jne 0x4a5f80
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 0x4a5fd5
mov eax, dword [ebp - 0x10]
xor edx, edx
test ecx, ecx
jle 0x4a5ff9
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 0x4a5fe0
mov ebx, dword [ebp + 0x10]
mov eax, ecx
jmp 0x4a5ffb
mov eax, dword [esi]
inc ebx
add edi, 4
mov dword [ebp + 0x10], ebx
cmp ebx, 4
jl 0x4a5fd2
mov ebx, dword [ebp - 4]
xor edi, edi
nop dword [eax]
xor ecx, ecx
test eax, eax
jle 0x4a6032
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 0x4a6020
inc edi
add ebx, 4
cmp edi, 4
jl 0x4a6010
mov edi, dword [ebp - 4]
push dword [edi]
call fcn.00a34afc
push edi
call fcn.00a34afc
push dword [ebp - 8]
call fcn.00a34afc
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc