Function at 0x101af1f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x2000
push 0
push esi
call fcn.101d1720
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], eax
test eax, eax
jne 0x101af2e8
mov ecx, dword [ebp + 8]
mov edi, 4
mov eax, dword [ecx]
mov dword [esi + 0x180], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0x184], eax
mov eax, dword [ecx + 8]
mov dword [esi + 0x188], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 0x18c], eax
lea ecx, [edi + 8]
lea edx, [edi + 0x10]
shl ecx, 5
add ecx, esi
shl edx, 4
add edx, esi
push edx
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
call fcn.101af410
sar edi, 1
add esp, 4
test edi, edi
jg 0x101af244
mov eax, dword [esi + 0x110]
lea ecx, [esi + 0x80]
mov dword [ecx], eax
mov eax, dword [esi + 0x114]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x118]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x11c]
push ecx
mov dword [ecx + 0xc], eax
call fcn.101af410
add esp, 4
mov edi, 4
mov ecx, edi
mov edx, edi
shl ecx, 5
add ecx, esi
shl edx, 4
add edx, esi
push edx
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
call fcn.101af410
sar edi, 1
add esp, 4
test edi, edi
jg 0x101af2b0
jmp 0x101af387
cmp eax, 1
jle 0x101af38a
lea edx, [eax - 2]
mov ecx, 8
shl edx, 4
shl eax, 4
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
lea ebx, [ecx + eax]
add ecx, edx
shl ecx, 4
add ecx, esi
shl ebx, 4
add ebx, esi
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 8], eax
mov eax, dword [ecx + 0xc]
mov ecx, eax
mov dword [ebx + 0xc], eax
mov edi, ecx
mov esi, dword [ebx + 8]
mov eax, esi
mov edx, dword [ebx + 4]
shr eax, 0x18
shl ecx, 8
or eax, ecx
shl esi, 8
mov ecx, dword [ebx]
mov dword [ebx + 0xc], eax
mov eax, edx
shr eax, 0x18
or eax, esi
shl edx, 8
mov esi, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov eax, ecx
shr eax, 0x18
or eax, edx
shr edi, 0x18
mov edx, dword [ebp - 0xc]
mov dword [ebx + 4], eax
shl ecx, 8
movzx eax, word [edi*2 + 0x1026cd60]
xor eax, ecx
mov ecx, dword [ebp - 8]
sar ecx, 1
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
test ecx, ecx
jg 0x101af308
mov eax, dword [ebp - 4]
mov ecx, eax
lea edx, [esi + 0x10]
shl ecx, 4
mov ebx, 2
shl eax, 8
add edx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
lea eax, [ecx + ebx]
shl eax, 4
add esi, eax
lea eax, [esi + 0x10]
cmp ebx, 1
jle 0x101af3e5
lea edi, [ebx - 1]
mov ecx, dword [edx]
lea eax, [eax + 0x10]
xor ecx, dword [esi]
lea edx, [edx + 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [edx - 0xc]
xor ecx, dword [esi + 4]
mov dword [eax - 0xc], ecx
mov ecx, dword [edx - 8]
xor ecx, dword [esi + 8]
mov dword [eax - 8], ecx
mov ecx, dword [esi + 0xc]
xor ecx, dword [edx - 4]
mov dword [eax - 4], ecx
sub edi, 1
jne 0x101af3b5
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
add ebx, ebx
mov edx, dword [ebp - 0xc]
cmp ebx, 0x10
jl 0x101af3a2
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x20
jl 0x101af211
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret