Function at 0x401310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x10
mov esi, ecx
call fcn.0040a694
mov edx, dword [esi]
mov ebx, eax
shl edx, 2
push edx
mov dword [ebp - 4], ebx
call fcn.0040a694
mov dword [ebx], eax
add esp, 8
mov ecx, dword [esi]
add ecx, eax
mov dword [ebx + 4], ecx
mov ecx, dword [ebx]
mov eax, dword [esi]
lea eax, [ecx + eax*2]
mov dword [ebx + 8], eax
mov eax, dword [esi]
lea ecx, [ecx + eax*2]
add ecx, eax
mov dword [ebx + 0xc], ecx
xor ecx, ecx
mov eax, dword [esi]
mov dword [ebp - 8], ecx
jmp 0x401363
mov ecx, dword [ebp - 8]
xor edx, edx
test eax, eax
jle 0x401386
mov edi, dword [ebp + 8]
add edi, ecx
nop
mov ecx, dword [ebx]
lea edi, [edi + 4]
mov al, byte [edi - 4]
mov byte [edx + ecx], al
inc edx
mov eax, dword [esi]
cmp edx, eax
jl 0x401370
mov ecx, eax
jmp 0x401388
mov ecx, dword [esi]
mov edx, dword [ebp - 8]
add ebx, 4
inc edx
mov edi, eax
mov dword [ebp - 8], edx
cmp edx, 4
jl 0x401360
mov eax, dword [esi + 8]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp - 4]
imul eax, edi
lea eax, [edx + eax*4]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp + 8], eax
xor edx, edx
test edi, edi
jle 0x4013d5
mov edi, dword [ebp - 8]
add edi, eax
nop dword [eax + eax]
mov ecx, dword [ebx]
lea edi, [edi + 4]
mov al, byte [edi - 4]
xor byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
cmp edx, ecx
jl 0x4013c0
mov eax, dword [ebp + 8]
inc eax
add ebx, 4
mov dword [ebp + 8], eax
mov edi, ecx
cmp eax, 4
jl 0x4013b0
mov eax, dword [esi + 8]
dec eax
mov dword [ebp + 8], eax
cmp eax, 1
jl 0x4014ce
mov eax, dword [esi]
mov edx, 4
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], edx
xor edi, edi
test eax, eax
jle 0x40142d
mov edx, dword [ebx]
movzx ecx, byte [edx + edi]
mov eax, ecx
and ecx, 0xf
and eax, 0xfffffff0
movzx eax, byte [eax + ecx + 0x40c248]
mov byte [edx + edi], al
inc edi
mov eax, dword [esi]
cmp edi, eax
jl 0x401406
mov edx, dword [ebp - 8]
mov ecx, eax
jmp 0x40142f
mov ecx, dword [esi]
add ebx, 4
sub edx, 1
mov dword [ebp - 8], edx
jne 0x401400
mov ebx, dword [ebp - 4]
lea eax, [ecx - 1]
push eax
push 1
push ebx
mov ecx, esi
call fcn.004015e0
mov eax, dword [esi]
mov ecx, esi
sub eax, 2
push eax
push 2
push ebx
call fcn.004015e0
mov eax, dword [esi]
mov ecx, esi
sub eax, 3
push eax
push 3
push ebx
call fcn.004015e0
mov ecx, dword [esi]
mov eax, ecx
imul eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
lea edi, [edx + eax*4]
xor edx, edx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edx
xor eax, eax
test ecx, ecx
jle 0x4014a8
add edi, edx
nop dword [eax]
mov edx, dword [ebx]
lea edi, [edi + 4]
mov cl, byte [edi - 4]
xor byte [edx + eax], cl
inc eax
mov ecx, dword [esi]
cmp eax, ecx
jl 0x401490
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
inc edx
add ebx, 4
mov dword [ebp - 8], edx
cmp edx, 4
jl 0x401481
push dword [ebp - 4]
mov ecx, esi
call fcn.00401a60
mov ecx, dword [ebp + 8]
dec ecx
mov dword [ebp + 8], ecx
cmp ecx, 1
jge 0x4013f3
mov eax, dword [esi]
mov edx, 4
mov ebx, dword [ebp - 4]
mov dword [ebp + 8], edx
nop dword [eax + eax]
xor edi, edi
mov ecx, eax
test eax, eax
jle 0x40150d
mov edx, dword [ebx]
movzx ecx, byte [edx + edi]
mov eax, ecx
and ecx, 0xf
and eax, 0xfffffff0
movzx eax, byte [eax + ecx + 0x40c248]
mov byte [edx + edi], al
inc edi
mov eax, dword [esi]
cmp edi, eax
jl 0x4014e8
mov edx, dword [ebp + 8]
mov ecx, eax
add ebx, 4
sub edx, 1
mov dword [ebp + 8], edx
jne 0x4014e0
mov ebx, dword [ebp - 4]
lea eax, [ecx - 1]
push eax
push 1
push ebx
mov ecx, esi
call fcn.004015e0
mov eax, dword [esi]
mov ecx, esi
sub eax, 2
push eax
push 2
push ebx
call fcn.004015e0
mov eax, dword [esi]
mov ecx, esi
sub eax, 3
push eax
push 3
push ebx
call fcn.004015e0
mov ecx, dword [esi]
xor edi, edi
mov dword [ebp + 8], edi
xor edx, edx
test ecx, ecx
jle 0x401579
add edi, dword [ebp + 0x10]
nop dword [eax]
mov ecx, dword [ebx]
lea edi, [edi + 4]
mov al, byte [edi - 4]
xor byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
cmp edx, ecx
jl 0x401560
mov edi, dword [ebp + 8]
mov eax, ecx
jmp 0x40157b
mov eax, dword [esi]
inc edi
add ebx, 4
mov dword [ebp + 8], edi
cmp edi, 4
jl 0x401550
mov edi, dword [ebp - 4]
xor ebx, ebx
nop dword [eax]
xor ecx, ecx
test eax, eax
jle 0x4015b2
mov edx, dword [ebp + 0xc]
add edx, ebx
nop dword [eax + eax]
mov eax, dword [edi]
lea edx, [edx + 4]
mov al, byte [ecx + eax]
inc ecx
mov byte [edx - 4], al
mov eax, dword [esi]
cmp ecx, eax
jl 0x4015a0
inc ebx
add edi, 4
cmp ebx, 4
jl 0x401590
mov ebx, dword [ebp - 4]
push dword [ebx]
call fcn.0040a68f
push ebx
call fcn.0040a68f
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc