Function at 0x1001ae90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cf7d0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x10108760]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea edx, [ebp + 0x20]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.1001d730
sub esp, 0x14
mov byte [ebp - 4], 2
mov ecx, esp
lea eax, [ebp - 0x4c]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10019b50
lea ecx, [ebp - 0x34]
call fcn.1001ade0
mov byte [ebp - 4], 3
push dword [ebp - 0x24]
call fcn.1005a361
mov esi, eax
add esp, 0x1c
mov dword [ebp - 0x58], esi
test esi, esi
je 0x1001b08f
push dword [ebp - 0x24]
push 0
push esi
call fcn.10060770
add esp, 0xc
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 0x10
cmovae eax, dword [ebp - 0x34]
push dword [ebp - 0x24]
push eax
push esi
call fcn.10060800
mov esi, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 0x50], esi
push esi
call fcn.1005bf6e
add esp, 4
mov edi, eax
mov dword [ebp - 0x60], edi
push esi
push 0
push edi
call fcn.10060770
add esp, 0xc
xor edx, edx
test esi, esi
jle 0x1001b003
cmp esi, 0x20
jb 0x1001afdf
mov ecx, dword [ebp - 0x58]
lea eax, [ecx - 1]
add eax, esi
cmp edi, eax
ja 0x1001af82
lea eax, [esi - 1]
add eax, edi
cmp eax, ecx
jae 0x1001afdf
mov eax, esi
and eax, 0x8000001f
jns 0x1001af90
dec eax
or eax, 0xffffffe0
inc eax
movdqa xmm1, xmmword [0x10103110]
mov dword [ebp - 0x54], esi
mov esi, edi
sub dword [ebp - 0x54], eax
sub esi, ecx
mov eax, ecx
lea ecx, [edi + 0x10]
mov dword [ebp - 0x5c], ecx
mov edi, esi
mov ecx, dword [ebp - 0x54]
nop
movdqu xmm0, xmmword [eax]
mov esi, dword [ebp - 0x5c]
lea eax, [eax + 0x20]
pxor xmm0, xmm1
movdqu xmmword [edi + eax - 0x20], xmm0
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm0, xmm1
movdqu xmmword [esi + edx], xmm0
mov esi, dword [ebp - 0x50]
add edx, 0x20
cmp edx, ecx
jl 0x1001afb0
mov edi, dword [ebp - 0x60]
cmp edx, esi
jge 0x1001b003
mov eax, dword [ebp - 0x58]
lea ecx, [edx + edi]
sub eax, edi
sub esi, edx
mov dword [ebp - 0x50], eax
mov edi, eax
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor al, 2
mov byte [ecx - 1], al
dec esi
jne 0x1001aff2
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x1001b084
sub esp, 0xc
mov ecx, edi
call fcn.1001f480
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1001b07b
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x746f7250
mov ecx, esi
mov dword [ebp - 0x18], 0x4d746365
mov dword [ebp - 0x14], 0x6e6961
call fcn.1001f620
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1001b07b
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.10019c80
push dword [0x1010d950]
call dword [ebp - 0x50]
add esp, 0x1c
mov ecx, esi
call fcn.1001f6d0
push edi
call fcn.1005b134
add esp, 4
push dword [ebp - 0x58]
call fcn.1005b5b0
add esp, 4
cmp dword [ebp - 0x20], 0x10
jb 0x1001b0a0
push dword [ebp - 0x34]
call fcn.1005aad8
add esp, 4
cmp dword [ebp - 0x38], 0x10
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
jb 0x1001b0c3
push dword [ebp - 0x4c]
call fcn.1005aad8
add esp, 4
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
jb 0x1001b0e6
push dword [ebp + 8]
call fcn.1005aad8
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x1001b10b
push dword [ebp + 0x20]
call fcn.1005aad8
add esp, 4
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.1005aadd
mov esp, ebp
pop ebp
ret