Function at 0x100ae610
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.1003d460
mov eax, dword [0x1013f030]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push esi
mov esi, dword [esp + 0x34]
mov bl, byte [esi]
test bl, 0x40
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
push edi
mov edi, dword [esp + 0x40]
mov byte [esp + 0xf], bl
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jne 0x100ae654
push ecx
lea ecx, [esi + 0x10]
push ecx
push esi
call eax
add esp, 0xc
movzx eax, bl
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov eax, edx
xor ecx, ecx
cmp eax, 0xf
mov dword [esp + 0x1c], edx
jae 0x100ae685
movzx ebx, byte [esi + eax]
or ecx, ebx
mov byte [esi + eax], 0
add eax, 1
shl ecx, 8
cmp eax, 0xf
jb 0x100ae670
movzx eax, byte [esi + 0xf]
or ecx, eax
mov eax, dword [esp + 0x44]
cmp ecx, eax
mov byte [esi + 0xf], 1
je 0x100ae6ac
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10030c80
add esp, 0x28
ret
cmp eax, 0x10
mov ebx, dword [esp + 0x3c]
push ebp
jb 0x100ae75c
shr eax, 4
lea ebp, [esi + 0x10]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call dword [esp + 0x20]
add esp, 0xc
mov eax, 8
jmp 0x100ae6e0
mov cl, byte [eax + esi + 7]
sub eax, 1
add cl, 1
mov byte [eax + esi + 8], cl
jne 0x100ae6f4
test eax, eax
jne 0x100ae6e0
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
xor eax, dword [esp + 0x24]
xor ecx, dword [esp + 0x28]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov edx, eax
xor dword [ebp], edx
mov eax, dword [edi + 4]
xor dword [ebp + 4], eax
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
xor edx, dword [esp + 0x30]
xor ecx, dword [esp + 0x2c]
mov dword [edi + 0xc], edx
mov edx, dword [esp + 0x18]
mov dword [edi + 8], ecx
mov eax, ecx
xor dword [esi + 0x18], eax
mov ecx, dword [edi + 0xc]
xor dword [esi + 0x1c], ecx
push edx
push ebp
push ebp
call dword [esp + 0x20]
sub dword [esp + 0x54], 0x10
add esp, 0xc
add ebx, 0x10
add edi, 0x10
sub dword [esp + 0x1c], 1
jne 0x100ae6c4
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x100ae7b2
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [esp + 0x20]
mov ebp, dword [esp + 0x54]
add esp, 0xc
xor eax, eax
test ebp, ebp
jbe 0x100ae79d
lea edx, [esp + 0x24]
mov ecx, edx
sub ebx, edx
sub edi, ecx
lea edx, [esp + eax + 0x24]
mov cl, byte [ebx + edx]
xor cl, byte [edx]
add eax, 1
mov byte [edi + edx], cl
xor byte [esi + eax + 0xf], cl
cmp eax, ebp
jb 0x100ae786
mov edx, dword [esp + 0x18]
lea eax, [esi + 0x10]
push edx
push eax
push eax
call dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
add esp, 0xc
cmp edx, 0x10
pop ebp
jae 0x100ae7ce
mov ecx, 0x10
sub ecx, edx
push ecx
lea eax, [esi + edx]
push 0
push eax
call fcn.10036e20
add esp, 0xc
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
push esi
call dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
xor dword [esi + 0x10], ecx
mov edx, dword [esp + 0x30]
xor dword [esi + 0x14], edx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
xor dword [esi + 0x1c], ecx
xor dword [esi + 0x18], eax
mov dl, byte [esp + 0x1b]
mov ecx, dword [esp + 0x3c]
add esp, 0xc
pop edi
mov byte [esi], dl
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10030c80
add esp, 0x28
ret