Function at 0x1001b260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d3dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
push ecx
lea edx, [ebp + 0x20]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.1001ed30
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.10019c20
lea ecx, [ebp - 0x34]
call fcn.1001b1b0
mov byte [ebp - 4], 3
push dword [ebp - 0x24]
call fcn.1005c591
mov esi, eax
add esp, 0x1c
mov dword [ebp - 0x58], esi
test esi, esi
je 0x1001b470
push dword [ebp - 0x24]
push 0
push esi
call fcn.10063250
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.100632e0
mov esi, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 0x50], esi
push esi
call fcn.1005e1cf
add esp, 4
mov edi, eax
mov dword [ebp - 0x60], edi
push esi
push 0
push edi
call fcn.10063250
add esp, 0xc
xor edx, edx
test esi, esi
jle 0x1001b3d5
cmp esi, 0x20
jb 0x1001b3b1
mov ecx, dword [ebp - 0x58]
lea eax, [ecx - 1]
add eax, esi
cmp edi, eax
ja 0x1001b355
lea eax, [esi - 1]
add eax, edi
cmp eax, ecx
jae 0x1001b3b1
mov eax, esi
and eax, 0x8000001f
jns 0x1001b363
dec eax
or eax, 0xffffffe0
inc eax
movdqa xmm1, xmmword [0x10108440]
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]
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 0x1001b382
mov edi, dword [ebp - 0x60]
cmp edx, esi
jge 0x1001b3d5
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 0x1001b3c4
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x1001b465
sub esp, 0xc
mov ecx, edi
call fcn.10021290
add esp, 0xc
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1001b45c
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x746f7250
mov ecx, eax
mov dword [ebp - 0x18], 0x4d746365
mov dword [ebp - 0x14], 0x6e6961
call fcn.10021430
mov esi, eax
test esi, esi
je 0x1001b45c
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.10019da0
push dword [0x101129a0]
call esi
mov ecx, dword [ebp - 0x50]
add esp, 0x1c
mov esi, eax
call fcn.100214e0
test esi, esi
je 0x1001b45c
mov eax, dword [ebp - 0x68]
mov dword [eax], 1
push edi
call fcn.1005d364
add esp, 4
push dword [ebp - 0x58]
call fcn.1005d7e0
add esp, 4
cmp dword [ebp - 0x20], 0x10
jb 0x1001b481
push dword [ebp - 0x34]
call fcn.1005cd08
add esp, 4
cmp dword [ebp - 0x38], 0x10
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
jb 0x1001b4a4
push dword [ebp - 0x4c]
call fcn.1005cd08
add esp, 4
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
jb 0x1001b4c7
push dword [ebp + 8]
call fcn.1005cd08
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 0x1001b4ec
push dword [ebp + 0x20]
call fcn.1005cd08
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.1005cd0d
mov esp, ebp
pop ebp
ret