Function at 0x10040cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6010
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100e01f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x2c]
jbe 0x10040d8b
mov eax, dword [ebx + 4]
lea esi, [ebx + 8]
mov eax, dword [eax + 0xc]
push esi
lea ecx, [ebp - 0x24]
mov dword [ebx + 0x30], eax
call fcn.100421a0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.1000d0f0
mov eax, dword [esi]
mov dword [esi + 4], eax
push dword [ebx + 0x30]
mov ecx, esi
call fcn.100423e0
mov edi, dword [esi]
mov eax, dword [esi + 4]
sub eax, edi
jne 0x10040d4b
push str.invalid_vector_T__subscript
call fcn.1005f59f
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
sub eax, edx
jne 0x10040d5f
push str.invalid_vector_T__subscript
call fcn.1005f59f
mov ecx, dword [ebx + 4]
push edi
push dword [ebx + 0x30]
mov eax, dword [ecx]
push edx
call dword [eax]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], 0
je 0x10040d8b
lea ecx, [ebp - 0x24]
call fcn.1000d0f0
push dword [ebp - 0x24]
call fcn.1007ab2e
add esp, 4
mov eax, dword [ebx + 0x2c]
cmp dword [ebx + 0x30], eax
jae 0x10040e6b
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.100423e0
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, esi
sub eax, edx
jne 0x10040dd2
push str.invalid_vector_T__subscript
call fcn.1005f59f
mov ecx, dword [ebx + 0x2c]
add ecx, edx
cmp edx, ecx
je 0x10040df5
sub ecx, edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
sub eax, ecx
jne 0x10040e09
push str.invalid_vector_T__subscript
call fcn.1005f59f
sub esi, edx
jne 0x10040e17
push str.invalid_vector_T__subscript
call fcn.1005f59f
push dword [ebx + 0x30]
push ecx
push edx
call fcn.10080ac0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 8]
call fcn.100422f0
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0
mov dword [ebx + 0x30], eax
je 0x10040e6b
lea ecx, [ebp - 0x18]
call fcn.1000d0f0
push dword [ebp - 0x18]
call fcn.1007ab2e
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebx + 0x14]
call fcn.1000d0f0
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x18], eax
push dword [ebx + 0x2c]
lea ecx, [ebx + 0x14]
call fcn.100423e0
mov edi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
sub eax, edi
jne 0x10040e98
push str.invalid_vector_T__subscript
call fcn.1005f59f
mov ecx, dword [ebx + 0x2c]
add ecx, edi
cmp edi, ecx
je 0x10040eb6
sub ecx, edi
mov edx, ecx
shr ecx, 2
mov eax, 0x5c5c5c5c
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edx, edx
cmp dword [ebx + 0x2c], edx
jbe 0x10040ed2
lea ecx, [ecx]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x14]
mov al, byte [eax + edx]
xor byte [ecx + edx], al
inc edx
cmp edx, dword [ebx + 0x2c]
jb 0x10040ec0
lea ecx, [ebx + 0x20]
call fcn.1000d0f0
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x24], eax
push dword [ebx + 0x2c]
lea ecx, [ebx + 0x20]
call fcn.100423e0
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
sub eax, edi
jne 0x10040eff
push str.invalid_vector_T__subscript
call fcn.1005f59f
mov ecx, dword [ebx + 0x2c]
add ecx, edi
cmp edi, ecx
je 0x10040f1d
sub ecx, edi
mov edx, ecx
shr ecx, 2
mov eax, 0x36363636
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edx, edx
cmp dword [ebx + 0x2c], edx
jbe 0x10040f36
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x20]
mov al, byte [eax + edx]
xor byte [ecx + edx], al
inc edx
cmp edx, dword [ebx + 0x2c]
jb 0x10040f24
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret