Function at 0x1001a910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cda4d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100f7040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
cmp dword [0x100faf58], 0
je 0x1001ab0d
cmp byte [0x100faf6a], 0
je 0x1001ab0d
mov eax, dword [edi]
cmp dword [eax + 0x18], 0x10
lea ecx, [eax + 4]
mov dword [ebp - 0x14], ecx
jb 0x1001a96e
mov ecx, dword [ecx]
mov dword [ebp - 0x14], ecx
movaps xmm0, xmmword [0x100eec00]
xor ecx, ecx
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0x20], 0x41
mov al, byte [ebp + ecx - 0x2f]
xor al, byte [ebp - 0x30]
mov byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x10
jb 0x1001a981
sub esp, 0x1c
mov byte [ebp - 0x1f], 0
mov edx, esp
mov dword [ebp - 0x38], esp
lea ecx, [ebp - 0x2f]
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a9c2
sub ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x2f]
push ecx
push eax
mov ecx, edx
call fcn.10003370
mov edx, dword [ebp - 0x14]
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 4], 0
mov ecx, edx
mov dword [ebp - 0x34], eax
xorps xmm0, xmm0
mov dword [eax], 0
movups xmmword [eax + 4], xmm0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001aa10
sub ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x34]
push edx
call fcn.10003370
mov dword [ebp - 4], 0xffffffff
call fcn.10019660
add esp, 0x38
test al, al
je 0x1001ab0d
mov eax, dword [0x100faf58]
mov ecx, dword [eax + 0x5c]
test ecx, ecx
je 0x1001aafd
push edi
push esi
call fcn.10042b10
mov eax, dword [0x100faf58]
cmp dword [eax + 0x60], 0
je 0x1001aab0
xor dl, dl
xor esi, esi
mov byte [ebp - 0x14], dl
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [eax + 0x5c]
movq xmm0, qword [ecx + esi + 4]
mov ecx, dword [ecx + esi + 0xc]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], ecx
test cl, cl
je 0x1001aaa3
push dword [ebp - 0x28]
mov ecx, dword [eax + 0x60]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x18]
call fcn.10044a30
mov eax, dword [0x100faf58]
mov dl, byte [ebp - 0x14]
inc dl
add esi, 0xc
mov byte [ebp - 0x14], dl
cmp dl, 4
jb 0x1001aa70
cmp dword [eax + 0x64], 0
je 0x1001aafd
mov byte [ebp - 0x14], 0
nop word [eax + eax]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push esi
push ecx
mov ecx, dword [eax + 0x5c]
call fcn.10042ff0
cmp byte [ebp - 0x24], 0
je 0x1001aaec
push dword [ebp - 0x28]
mov ecx, dword [0x100faf58]
push esi
push edi
push dword [ebp - 0x18]
mov ecx, dword [ecx + 0x64]
call fcn.100450a0
mov al, byte [ebp - 0x14]
inc al
mov byte [ebp - 0x14], al
cmp al, 8
mov eax, dword [0x100faf58]
jb 0x1001aac0
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x1001ab0d
push edi
push dword [ebp - 0x18]
call fcn.10042460
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100892c0
mov esp, ebp
pop ebp
ret