Function at 0x1001a790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c91cd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100f2040]
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 [0x100f5f50], 0
je 0x1001a98d
cmp byte [0x100f5f62], 0
je 0x1001a98d
mov eax, dword [edi]
cmp dword [eax + 0x18], 0x10
lea ecx, [eax + 4]
mov dword [ebp - 0x14], ecx
jb 0x1001a7ee
mov ecx, dword [ecx]
mov dword [ebp - 0x14], ecx
movaps xmm0, xmmword [0x100e9210]
xor ecx, ecx
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0x20], 0x45
mov al, byte [ebp + ecx - 0x2f]
xor al, byte [ebp - 0x30]
mov byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x10
jb 0x1001a801
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 0x1001a842
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 0x1001a890
sub ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x34]
push edx
call fcn.10003370
mov dword [ebp - 4], 0xffffffff
call fcn.100194e0
add esp, 0x38
test al, al
je 0x1001a98d
mov eax, dword [0x100f5f50]
mov ecx, dword [eax + 0x5c]
test ecx, ecx
je 0x1001a97d
push edi
push esi
call fcn.10042940
mov eax, dword [0x100f5f50]
cmp dword [eax + 0x60], 0
je 0x1001a930
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 0x1001a923
push dword [ebp - 0x28]
mov ecx, dword [eax + 0x60]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x18]
call fcn.10044860
mov eax, dword [0x100f5f50]
mov dl, byte [ebp - 0x14]
inc dl
add esi, 0xc
mov byte [ebp - 0x14], dl
cmp dl, 4
jb 0x1001a8f0
cmp dword [eax + 0x64], 0
je 0x1001a97d
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.10042e20
cmp byte [ebp - 0x24], 0
je 0x1001a96c
push dword [ebp - 0x28]
mov ecx, dword [0x100f5f50]
push esi
push edi
push dword [ebp - 0x18]
mov ecx, dword [ecx + 0x64]
call fcn.10044ed0
mov al, byte [ebp - 0x14]
inc al
mov byte [ebp - 0x14], al
cmp al, 8
mov eax, dword [0x100f5f50]
jb 0x1001a940
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x1001a98d
push edi
push dword [ebp - 0x18]
call fcn.10042290
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.10089100
mov esp, ebp
pop ebp
ret