Function at 0x401500
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.00cfa594
add esp, 4
mov dword [ebp - 8], eax
mov ecx, esi
push eax
push dword [ebp + 0x10]
call fcn.00401960
push 0x10
call fcn.00cfa594
mov ecx, dword [esi]
mov edi, eax
shl ecx, 2
push ecx
mov dword [ebp - 4], edi
call fcn.00cfa594
mov dword [edi], eax
add esp, 8
add eax, dword [esi]
mov dword [edi + 4], eax
mov ecx, dword [esi]
mov eax, dword [edi]
lea eax, [eax + ecx*2]
mov dword [edi + 8], eax
mov eax, dword [esi]
lea eax, [eax + eax*2]
add eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0xc], eax
mov eax, dword [esi]
mov dword [ebp + 0x10], ecx
xor edx, edx
test eax, eax
jle 0x401587
mov ebx, dword [ebp + 8]
add ebx, ecx
mov ecx, dword [edi]
mov al, byte [ebx]
add ebx, 4
mov byte [edx + ecx], al
inc edx
mov eax, dword [esi]
cmp edx, eax
jl 0x401573
mov ecx, dword [ebp + 0x10]
inc ecx
add edi, 4
mov dword [ebp + 0x10], ecx
cmp ecx, 4
jl 0x401568
mov eax, dword [esi]
xor ecx, ecx
mov edi, dword [ebp - 4]
mov dword [ebp + 0x10], ecx
nop dword [eax]
xor edx, edx
test eax, eax
jle 0x4015c4
mov ebx, dword [ebp - 8]
add ebx, ecx
nop dword [eax + eax]
mov ecx, dword [edi]
mov al, byte [ebx]
add ebx, 4
xor byte [ecx + edx], al
inc edx
mov eax, dword [esi]
cmp edx, eax
jl 0x4015b0
mov ecx, dword [ebp + 0x10]
inc ecx
add edi, 4
mov dword [ebp + 0x10], ecx
cmp ecx, 4
jl 0x4015a0
mov eax, dword [esi + 8]
mov edi, dword [ebp - 4]
dec eax
mov dword [ebp + 8], 1
cmp eax, 1
jl 0x4016fa
push edi
mov ecx, esi
call fcn.00401ea0
mov eax, dword [edi + 4]
xor edx, edx
mov bl, byte [eax]
mov eax, dword [esi]
dec eax
test eax, eax
jle 0x401612
nop dword [eax]
mov ecx, dword [edi + 4]
mov al, byte [ecx + edx + 1]
mov byte [ecx + edx], al
inc edx
mov eax, dword [esi]
dec eax
cmp edx, eax
jl 0x401600
mov ecx, dword [esi]
mov eax, dword [edi + 4]
mov byte [ecx + eax - 1], bl
mov ebx, 2
mov eax, dword [edi + 8]
xor edx, edx
mov al, byte [eax]
mov byte [ebp + 0x13], al
mov eax, dword [esi]
dec eax
test eax, eax
jle 0x401643
mov ecx, dword [edi + 8]
mov al, byte [ecx + edx + 1]
mov byte [ecx + edx], al
inc edx
mov eax, dword [esi]
dec eax
cmp edx, eax
jl 0x401631
mov ecx, dword [edi + 8]
mov eax, dword [esi]
mov dl, byte [ebp + 0x13]
mov byte [ecx + eax - 1], dl
sub ebx, 1
jne 0x401620
mov ebx, 3
nop dword [eax]
mov eax, dword [edi + 0xc]
xor edx, edx
mov al, byte [eax]
mov byte [ebp + 0x13], al
mov eax, dword [esi]
dec eax
test eax, eax
jle 0x401683
mov ecx, dword [edi + 0xc]
mov al, byte [ecx + edx + 1]
mov byte [ecx + edx], al
inc edx
mov eax, dword [esi]
dec eax
cmp edx, eax
jl 0x401671
mov ecx, dword [edi + 0xc]
mov eax, dword [esi]
mov dl, byte [ebp + 0x13]
mov byte [ecx + eax - 1], dl
sub ebx, 1
jne 0x401660
push edi
mov ecx, esi
call fcn.00401be0
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 0x4016d8
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 0x4016c0
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x10]
inc eax
add edi, 4
mov dword [ebp + 0x10], eax
cmp eax, 4
jl 0x4016b5
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 0x4015e7
push edi
mov ecx, esi
call fcn.00401ea0
mov eax, dword [edi + 4]
xor edx, edx
mov bl, byte [eax]
mov eax, dword [esi]
dec eax
test eax, eax
jle 0x401722
mov ecx, dword [edi + 4]
mov al, byte [ecx + edx + 1]
mov byte [ecx + edx], al
inc edx
mov eax, dword [esi]
dec eax
cmp edx, eax
jl 0x401710
mov ecx, dword [esi]
mov eax, dword [edi + 4]
mov byte [ecx + eax - 1], bl
mov ebx, 2
mov eax, dword [edi + 8]
xor edx, edx
mov al, byte [eax]
mov byte [ebp + 0x13], al
mov eax, dword [esi]
dec eax
test eax, eax
jle 0x401753
mov ecx, dword [edi + 8]
mov al, byte [ecx + edx + 1]
mov byte [ecx + edx], al
inc edx
mov eax, dword [esi]
dec eax
cmp edx, eax
jl 0x401741
mov ecx, dword [edi + 8]
mov eax, dword [esi]
mov dl, byte [ebp + 0x13]
mov byte [ecx + eax - 1], dl
sub ebx, 1
jne 0x401730
mov ebx, 3
nop dword [eax]
mov eax, dword [edi + 0xc]
xor edx, edx
mov al, byte [eax]
mov byte [ebp + 0x13], al
mov eax, dword [esi]
dec eax
test eax, eax
jle 0x401793
mov ecx, dword [edi + 0xc]
mov al, byte [ecx + edx + 1]
mov byte [ecx + edx], al
inc edx
mov eax, dword [esi]
dec eax
cmp edx, eax
jl 0x401781
mov ecx, dword [edi + 0xc]
mov eax, dword [esi]
mov dl, byte [ebp + 0x13]
mov byte [ecx + eax - 1], dl
sub ebx, 1
jne 0x401770
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [ebp - 8]
imul eax, ecx
mov dword [ebp + 8], edi
lea ebx, [edx + eax*4]
xor eax, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp + 0x10], eax
nop dword [eax]
xor edx, edx
test ecx, ecx
jle 0x4017e0
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 0x4017c8
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x10]
inc eax
add edi, 4
mov dword [ebp + 0x10], eax
cmp eax, 4
jl 0x4017c0
mov eax, dword [esi]
xor edi, edi
mov ebx, dword [ebp - 4]
xor ecx, ecx
test eax, eax
jle 0x401812
mov edx, dword [ebp + 0xc]
add edx, edi
nop
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 0x401800
inc edi
add ebx, 4
cmp edi, 4
jl 0x4017f3
mov edi, dword [ebp - 4]
push dword [edi]
call fcn.00cfa59d
push edi
call fcn.00cfa59d
push dword [ebp - 8]
call fcn.00cfa59d
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc