Function at 0x4a1970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x270
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4a1bf7
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4a1bd2
mov ebx, dword [ebp + 0x14]
xor esi, esi
jmp 0x4a19c5
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
inc esi
sub ecx, eax
add ebx, eax
test ecx, ecx
je 0x4a1bd2
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
xorps xmm0, xmm0
mov dword [esp + 0x18], ecx
movaps xmmword [esp + 0xd0], xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movsd xmm1, qword [edx + 0x30]
cmp ecx, eax
movsd xmm2, qword [edx + 0x28]
movsd xmm0, qword [edx + 0x38]
cmovb eax, ecx
lea ecx, [esp + 0xe0]
mov dword [esp + 0xc], eax
movsd qword [ecx + 0x30], xmm1
movsd xmm1, qword [edx + 0x20]
movsd qword [ecx + 0x28], xmm2
movsd xmm2, qword [edx + 0x18]
movsd qword [ecx + 0x38], xmm0
movsd qword [ecx + 0x20], xmm1
movsd xmm1, qword [edx + 0x10]
movsd qword [ecx + 0x18], xmm2
movsd xmm2, qword [edx]
movsd qword [ecx + 0x10], xmm1
movsd xmm1, qword [edx + 8]
movsd qword [ecx], xmm2
movsd qword [ecx + 8], xmm1
mov dword [esp + 0x124], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0x128], edx
mov dword [esp + 0x130], 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea edi, [esp + 0x68]
push edi
call fcn.0048f8e0
add esp, 0xc
mov dword [esp + 0x14], esi
bswap esi
mov dword [esp + 0x140], esi
push 4
lea esi, [esp + 0x144]
push esi
push edi
call fcn.0048f8e0
add esp, 0xc
push 0xd8
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x208]
lea edx, [esp + 0x218]
mov ecx, 0x14
lea esi, [esp + 0x1c0]
mov edi, edx
mov eax, dword [eax + 0x50]
rep movsd dword es:[edi], dword [esi]
cmp eax, 0x81
jae 0x4a1bda
lea ecx, [esp + 0x1c]
push dword [esp + 0x210]
push eax
lea eax, [esp + 0x148]
push eax
call fcn.0048f650
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x48]
cmp ecx, 0x40
ja 0x4a1bea
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
mov eax, ecx
cmp edx, ecx
cmovb eax, edx
test ecx, ecx
je 0x4a19b0
xor ecx, ecx
cmp eax, 8
jb 0x4a1bc0
xor ecx, ecx
cmp eax, 0x20
jb 0x4a1b95
mov ecx, eax
xor edx, edx
and ecx, 0x60
nop dword [eax]
movups xmm0, xmmword [esp + edx + 0x20]
movups xmm2, xmmword [ebx + edx]
movups xmm1, xmmword [esp + edx + 0x30]
movups xmm3, xmmword [ebx + edx + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [ebx + edx], xmm2
movups xmmword [ebx + edx + 0x10], xmm3
add edx, 0x20
cmp ecx, edx
jne 0x4a1b60
cmp eax, ecx
je 0x4a19b0
test al, 0x18
je 0x4a1bc0
mov edx, ecx
mov ecx, eax
and ecx, 0x78
nop dword [eax]
movsd xmm0, qword [esp + edx + 0x20]
movsd xmm1, qword [ebx + edx]
xorps xmm1, xmm0
movlps qword [ebx + edx], xmm1
add edx, 8
cmp ecx, edx
jne 0x4a1ba0
jmp 0x4a1bc9
movzx edx, byte [esp + ecx + 0x20]
xor byte [ebx + ecx], dl
inc ecx
cmp eax, ecx
jne 0x4a1bc0
jmp 0x4a19b0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5276b4
push 0x80
push eax
call fcn.00500430
push 0x52a054
push 0x40
push ecx
call fcn.00500430
mov dword [esp + str.chunk_size_must_be_non_zero], 0x529f78
mov dword [esp + 0x144], 1
mov dword [esp + 0x150], 0
mov dword [esp + 0x148], str.Once_panickedC:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001f_spin_0.9.8_srconce.rs
mov dword [esp + 0x14c], 0
lea eax, [esp + 0x140]
push 0x529fe4
push eax
call fcn.00500510
mov eax, 0x574850
jmp fcn.004fd92f