Function at 0x4a6510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
inc eax
imul eax, dword [esi]
add eax, eax
add eax, eax
push edi
push eax
call fcn.00981a57
mov ecx, dword [ebp + 0x10]
add esp, 4
push eax
push ecx
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.004a6350
push 0x10
call fcn.00981a57
mov edx, dword [esi]
add edx, edx
add edx, edx
push edx
mov edi, eax
call fcn.00981a57
mov dword [edi], eax
mov dword [edi], eax
add eax, dword [esi]
add esp, 8
mov dword [edi + 4], eax
mov edx, dword [esi]
mov eax, dword [edi]
lea ecx, [eax + edx*2]
mov dword [edi + 8], ecx
mov eax, dword [esi]
lea edx, [eax + eax*2]
add edx, dword [edi]
mov dword [ebp - 8], edi
mov dword [edi + 0xc], edx
mov ecx, dword [esi]
xor edx, edx
mov dword [ebp + 0x10], edx
lea ecx, [ecx]
xor eax, eax
test ecx, ecx
jle 0x4a65a7
add edx, dword [ebp + 8]
lea esp, [esp]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov bl, byte [edx]
mov byte [eax + ecx], bl
mov ecx, dword [esi]
inc eax
add edx, 4
cmp eax, ecx
jl 0x4a6590
mov edx, dword [ebp + 0x10]
add dword [ebp - 8], 4
inc edx
mov dword [ebp + 0x10], edx
cmp edx, 4
jl 0x4a6580
mov ecx, dword [esi]
xor edx, edx
mov dword [ebp + 8], edx
mov dword [ebp + 0x10], edi
mov edi, edi
xor eax, eax
test ecx, ecx
jle 0x4a65e7
add edx, dword [ebp - 4]
lea esp, [esp]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov bl, byte [edx]
xor byte [ecx + eax], bl
mov ecx, dword [esi]
inc eax
add edx, 4
cmp eax, ecx
jl 0x4a65d0
mov edx, dword [ebp + 8]
add dword [ebp + 0x10], 4
inc edx
mov dword [ebp + 8], edx
cmp edx, 4
jl 0x4a65c0
mov edx, dword [esi + 8]
dec edx
mov dword [ebp + 8], 1
cmp edx, 1
jl 0x4a6707
push edi
mov ecx, esi
call fcn.004a6020
mov eax, dword [edi + 4]
mov ecx, dword [esi]
mov dl, byte [eax]
dec ecx
xor eax, eax
test ecx, ecx
jle 0x4a6632
mov edi, edi
mov ecx, dword [edi + 4]
mov bl, byte [ecx + eax + 1]
mov byte [ecx + eax], bl
mov ecx, dword [esi]
inc eax
dec ecx
cmp eax, ecx
jl 0x4a6620
mov eax, dword [edi + 4]
mov ecx, dword [esi]
mov byte [eax + ecx - 1], dl
mov dword [ebp + 0x10], 2
mov ecx, dword [esi]
mov edx, dword [edi + 8]
mov dl, byte [edx]
dec ecx
xor eax, eax
test ecx, ecx
jle 0x4a6662
mov ecx, dword [edi + 8]
mov bl, byte [ecx + eax + 1]
mov byte [ecx + eax], bl
mov ecx, dword [esi]
inc eax
dec ecx
cmp eax, ecx
jl 0x4a6650
dec dword [ebp + 0x10]
mov eax, dword [edi + 8]
mov ecx, dword [esi]
mov byte [eax + ecx - 1], dl
jne 0x4a6642
mov dword [ebp + 0x10], 3
mov ecx, dword [esi]
mov edx, dword [edi + 0xc]
mov dl, byte [edx]
dec ecx
xor eax, eax
test ecx, ecx
jle 0x4a6697
mov ecx, dword [edi + 0xc]
mov bl, byte [ecx + eax + 1]
mov byte [ecx + eax], bl
mov ecx, dword [esi]
inc eax
dec ecx
cmp eax, ecx
jl 0x4a6685
dec dword [ebp + 0x10]
mov eax, dword [edi + 0xc]
mov ecx, dword [esi]
mov byte [eax + ecx - 1], dl
jne 0x4a6677
push edi
mov ecx, esi
call fcn.004a6070
mov ecx, dword [esi]
mov eax, dword [ebp - 4]
mov edx, ecx
imul edx, dword [ebp + 8]
lea edx, [eax + edx*4]
mov dword [ebp - 0xc], edx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp + 0x10], edi
xor eax, eax
test ecx, ecx
jle 0x4a66e7
add edx, dword [ebp - 0xc]
nop
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov bl, byte [edx]
xor byte [ecx + eax], bl
mov ecx, dword [esi]
inc eax
add edx, 4
cmp eax, ecx
jl 0x4a66d0
mov edx, dword [ebp - 8]
add dword [ebp + 0x10], 4
inc edx
mov dword [ebp - 8], edx
cmp edx, 4
jl 0x4a66c6
mov eax, dword [ebp + 8]
mov edx, dword [esi + 8]
inc eax
dec edx
mov dword [ebp + 8], eax
cmp eax, edx
jle 0x4a6608
push edi
mov ecx, esi
call fcn.004a6020
mov eax, dword [edi + 4]
mov ecx, dword [esi]
mov dl, byte [eax]
dec ecx
xor eax, eax
test ecx, ecx
jle 0x4a6732
lea ecx, [ecx]
mov ecx, dword [edi + 4]
mov bl, byte [ecx + eax + 1]
mov byte [ecx + eax], bl
mov ecx, dword [esi]
inc eax
dec ecx
cmp eax, ecx
jl 0x4a6720
mov eax, dword [edi + 4]
mov ecx, dword [esi]
mov byte [eax + ecx - 1], dl
mov dword [ebp + 0x10], 2
mov ecx, dword [esi]
mov edx, dword [edi + 8]
mov dl, byte [edx]
dec ecx
xor eax, eax
test ecx, ecx
jle 0x4a6762
mov ecx, dword [edi + 8]
mov bl, byte [ecx + eax + 1]
mov byte [ecx + eax], bl
mov ecx, dword [esi]
inc eax
dec ecx
cmp eax, ecx
jl 0x4a6750
dec dword [ebp + 0x10]
mov eax, dword [edi + 8]
mov ecx, dword [esi]
mov byte [eax + ecx - 1], dl
jne 0x4a6742
mov dword [ebp + 0x10], 3
mov ecx, dword [esi]
mov edx, dword [edi + 0xc]
mov dl, byte [edx]
dec ecx
xor eax, eax
test ecx, ecx
jle 0x4a6797
mov ecx, dword [edi + 0xc]
mov bl, byte [ecx + eax + 1]
mov byte [ecx + eax], bl
mov ecx, dword [esi]
inc eax
dec ecx
cmp eax, ecx
jl 0x4a6785
dec dword [ebp + 0x10]
mov eax, dword [edi + 0xc]
mov ecx, dword [esi]
mov byte [eax + ecx - 1], dl
jne 0x4a6777
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov eax, dword [ebp - 4]
imul edx, ecx
lea edx, [eax + edx*4]
mov dword [ebp - 0xc], edx
xor edx, edx
mov dword [ebp + 8], edx
mov dword [ebp + 0x10], edi
mov edi, edi
xor eax, eax
test ecx, ecx
jle 0x4a67e7
add edx, dword [ebp - 0xc]
lea esp, [esp]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov bl, byte [edx]
xor byte [ecx + eax], bl
mov ecx, dword [esi]
inc eax
add edx, 4
cmp eax, ecx
jl 0x4a67d0
mov edx, dword [ebp + 8]
add dword [ebp + 0x10], 4
inc edx
mov dword [ebp + 8], edx
cmp edx, 4
jl 0x4a67c0
mov ecx, dword [esi]
xor edx, edx
mov dword [ebp + 0x10], edx
mov ebx, edi
lea ecx, [ecx]
xor eax, eax
test ecx, ecx
jle 0x4a6824
add edx, dword [ebp + 0xc]
lea esp, [esp]
mov ecx, dword [ebx]
mov cl, byte [eax + ecx]
mov byte [edx], cl
mov ecx, dword [esi]
inc eax
add edx, 4
cmp eax, ecx
jl 0x4a6810
mov edx, dword [ebp + 0x10]
inc edx
add ebx, 4
mov dword [ebp + 0x10], edx
cmp edx, 4
jl 0x4a6800
mov edx, dword [edi]
push edx
call fcn.00981a41
push edi
call fcn.00981a41
mov eax, dword [ebp - 4]
push eax
call fcn.00981a41
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc