Function at 0x4ad580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x24]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [eax]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x90], ecx
call fcn.004a7510
push dword [ebp + 0x10]
mov dword [ebp - 0x8c], 0
push esi
mov esi, dword [ebp - 0x98]
push esi
mov byte [ebp - 0x85], al
mov byte [ebp - 0x89], 1
call fcn.004a7650
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4ad7ef
cmp dword [ebp + 0x20], eax
je 0x4ad7d1
push dword [ebp + 0x18]
push edi
push esi
call fcn.004a7850
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4ad7d1
push 4
lea eax, [ebp - 0x8c]
push eax
push esi
call fcn.004a7850
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4ad7d1
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.004a7550
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4ad7d1
push esi
call fcn.004a7600
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4ad7d1
movzx edi, byte [ebp - 0x85]
lea eax, [ebp - 0x44]
push edi
push eax
lea eax, [ebp - 0x84]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x94], 1
cmp dword [ebp + 0x1c], 1
jbe 0x4ad776
push edi
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.004a7850
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4ad7d1
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.004a7550
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4ad7d1
push esi
call fcn.004a7600
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4ad7d1
test edi, edi
je 0x4ad746
cmp edi, 0x40
jb 0x4ad746
mov ecx, edi
and ecx, 0x8000003f
jns 0x4ad6e4
dec ecx
or ecx, 0xffffffc0
inc ecx
mov edx, edi
sub edx, ecx
nop dword [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x44]
movups xmm1, xmmword [ebp + eax - 0x84]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x44], xmm1
movups xmm0, xmmword [ebp + eax - 0x34]
movups xmm1, xmmword [ebp + eax - 0x74]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x34], xmm1
movups xmm0, xmmword [ebp + eax - 0x24]
movups xmm1, xmmword [ebp + eax - 0x64]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x24], xmm1
movups xmm0, xmmword [ebp + eax - 0x14]
movups xmm1, xmmword [ebp + eax - 0x54]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x14], xmm1
add eax, 0x40
cmp eax, edx
jl 0x4ad6f0
cmp eax, edi
jge 0x4ad760
nop word [eax + eax]
mov cl, byte [ebp + eax - 0x84]
xor byte [ebp + eax - 0x44], cl
inc eax
cmp eax, edi
jl 0x4ad750
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp eax, dword [ebp + 0x1c]
jb 0x4ad684
mov esi, dword [ebp + 0x20]
lea eax, [ebp - 0x44]
cmp esi, edi
cmovae esi, edi
push esi
push eax
push dword [ebp - 0x90]
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [ebp + 0x20]
lea ecx, [ebp - 0x89]
add dword [ebp - 0x90], esi
sub edi, esi
mov edx, 4
mov dword [ebp + 0x20], edi
mov eax, ecx
add esp, 0xc
sub edx, eax
nop
add byte [ecx], 1
jne 0x4ad7bd
dec ecx
lea eax, [edx + ecx]
test eax, eax
jne 0x4ad7b0
mov esi, dword [ebp - 0x98]
test edi, edi
mov edi, dword [ebp - 0x9c]
jne 0x4ad5f8
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004ae790
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.004ae790
add esp, 0x10
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005091c5
mov esp, ebp
pop ebp
ret