Function at 0x5adf00
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.004b3cc0
push ebx
mov ebx, dword [esp + 0x30]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x170]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x174]
mov dword [esp + 0x14], eax
mov eax, ebx
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x5ae280
jb 0x5adf46
cmp eax, 0xffffffe0
ja 0x5ae280
cmp dword [esi + 0x16c], 0
mov edx, dword [esi + 0x168]
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x40]
mov dword [esi + 0x38], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], ecx
je 0x5adfbf
test ebx, ebx
jne 0x5adf85
lea eax, [esi + 0x60]
push eax
push ecx
call fcn.005aedd0
add esp, 8
mov dword [esi + 0x16c], ebx
xor eax, eax
pop esi
pop ebx
add esp, 0x1c
ret
movups xmm0, xmmword [ecx]
mov edx, 0x10
mov dword [esp + 0x28], edx
movups xmmword [esi + 0x178], xmm0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x16c], 0
jmp 0x5adfc3
mov dword [esp + 0x10], ecx
movzx ecx, byte [esi + 0xc]
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xf]
shl ecx, 8
or ecx, eax
mov eax, edx
push ebp
mov ebp, dword [esp + 0x34]
and eax, 0xf
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
je 0x5ae053
lea ecx, [esi + 0x178]
add ecx, edx
test ebx, ebx
je 0x5ae270
mov al, byte [eax + esi + 0x10]
inc edx
xor al, byte [edi]
dec ebx
mov byte [ebp], al
inc edi
mov byte [ecx], al
inc ebp
mov eax, dword [esp + 0x10]
inc ecx
inc eax
and eax, 0xf
mov dword [esp + 0x10], eax
jne 0x5ae003
push edx
lea eax, [esi + 0x178]
push eax
lea eax, [esi + 0x60]
lea ecx, [esi + 0x40]
push eax
push ecx
call fcn.005aeba0
mov eax, dword [esp + 0x20]
add esp, 0x10
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], ebx
lea ecx, [esi + 0x60]
cmp ebx, 0x10
jb 0x5ae07c
test edx, edx
je 0x5ae07c
push edx
lea eax, [esi + 0x178]
push eax
push ecx
push dword [esp + 0x24]
call fcn.005aeba0
add esp, 0x10
mov dword [esp + 0x30], 0
cmp ebx, 0xc00
jb 0x5ae147
mov eax, 0xaaaaaaab
lea ecx, [esi + 0x10]
mul ebx
shr edx, 0xb
mov dword [esp + 0x28], edx
nop dword [eax]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], 0xc0
nop dword [eax]
push dword [esp + 0x1c]
push ecx
push esi
call dword [esp + 0x2c]
inc ebx
lea ecx, [esi + 0x10]
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
add esp, 0xc
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [edi]
xor eax, dword [ecx]
mov dword [ebp], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebp + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebp + 0xc], eax
add ebp, 0x10
sub dword [esp + 0x24], 1
jne 0x5ae0b0
push 0xc00
lea eax, [ebp - 0xc00]
mov dword [esp + 0x18], ebx
push eax
lea eax, [esi + 0x60]
push eax
push dword [esp + 0x24]
call fcn.005aeba0
mov ebx, dword [esp + 0x4c]
lea ecx, [esi + 0x10]
sub ebx, 0xc00
add esp, 0x10
sub dword [esp + 0x28], 1
mov dword [esp + 0x3c], ebx
jne 0x5ae0a0
mov ecx, ebx
and ecx, 0xfffffff0
mov dword [esp + 0x28], ecx
je 0x5ae1e8
cmp ebx, 0x10
jb 0x5ae1d2
mov eax, ebx
lea ecx, [esi + 0x10]
shr eax, 4
mov dword [esp + 0x3c], eax
push dword [esp + 0x1c]
push ecx
push esi
call dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add esp, 0xc
inc ecx
sub ebx, 0x10
mov eax, ecx
mov byte [esi + 0xf], cl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ebp], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [esp + 0x14], ecx
lea ecx, [esi + 0x10]
mov dword [ebp + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebp + 0xc], eax
add ebp, 0x10
sub dword [esp + 0x3c], 1
jne 0x5ae167
mov ecx, dword [esp + 0x28]
push ecx
mov eax, ebp
sub eax, ecx
push eax
lea eax, [esi + 0x60]
push eax
push dword [esp + 0x24]
call fcn.005aeba0
add esp, 0x10
test ebx, ebx
je 0x5ae25c
push dword [esp + 0x1c]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
sub edi, ebp
mov edx, dword [esp + 0x3c]
inc ecx
mov eax, ecx
mov byte [esi + 0xf], cl
shr eax, 0x18
add edx, 0x178
mov byte [esi + 0xc], al
add esp, 0xc
mov eax, ecx
add edx, esi
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
mov ecx, dword [esp + 0x10]
shr eax, 8
add ecx, ebp
mov byte [esi + 0xe], al
mov eax, dword [esp + 0x10]
add eax, 0x10
add eax, esi
add dword [esp + 0x30], ebx
mov dword [esp + 0x3c], eax
mov ebp, eax
mov al, byte [edi + ecx]
lea edx, [edx + 1]
xor al, byte [ebp]
lea ebp, [ebp + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x5ae243
mov eax, dword [esp + 0x30]
pop edi
pop ebp
mov dword [esi + 0x168], eax
xor eax, eax
pop esi
pop ebx
add esp, 0x1c
ret
pop edi
pop ebp
mov dword [esi + 0x168], edx
xor eax, eax
pop esi
pop ebx
add esp, 0x1c
ret
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret