Function at 0x561b40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.005cf470
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
cmp ebx, 0xc
jne 0x561be0
mov eax, dword [esp + 0x18]
mov ebx, 1
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov byte [esi + 0xf], 1
jmp 0x561d7a
mov dword [esp + 0xc], ebx
push ebp
mov ebp, dword [esp + 0x1c]
push edi
lea edi, [esi + 0x60]
cmp ebx, 0x10
jb 0x561c55
mov edi, ebp
lea ecx, [esi + 0xf]
mov eax, ebx
sub edi, esi
shr eax, 4
mov dword [esp + 0x24], eax
lea eax, [ecx + edi]
cmp esi, eax
ja 0x561c24
cmp ecx, ebp
jb 0x561c24
mov eax, esi
mov edx, 0x10
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x561c14
jmp 0x561c32
movups xmm1, xmmword [esi]
movups xmm0, xmmword [ebp]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
lea eax, [esi + 0x60]
push eax
push esi
call fcn.00562020
add esp, 8
lea ecx, [esi + 0xf]
add ebp, 0x10
add edi, 0x10
sub ebx, 0x10
sub dword [esp + 0x24], 1
jne 0x561c02
lea edi, [esi + 0x60]
test ebx, ebx
je 0x561d1d
xor edx, edx
test ebx, ebx
je 0x561d13
cmp ebx, 0x40
jb 0x561cfb
lea eax, [ebp - 1]
lea ecx, [esi - 1]
add eax, ebx
add ecx, ebx
cmp esi, eax
ja 0x561c82
cmp ecx, ebp
jae 0x561cfb
mov edi, ebx
lea eax, [esi + 0x10]
and edi, 0xffffffc0
lea ecx, [ebp + 0x30]
mov dword [esp + 0x24], edi
mov edi, ebp
sub edi, esi
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
movups xmm0, xmmword [eax - 0x10]
add edx, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [eax + esi - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, edi
jb 0x561ca1
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
cmp edx, ebx
jae 0x561d10
sub ebp, esi
lea ecx, [edx + esi]
sub ebx, edx
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub ebx, 1
jne 0x561d02
lea edi, [esi + 0x60]
push edi
push esi
call fcn.00562020
add esp, 8
mov edx, dword [esp + 0x14]
xor ebx, ebx
shld ebx, edx, 3
push edi
xor byte [esi + 0xb], bl
mov eax, ebx
shl edx, 3
xor byte [esi + 0xf], dl
mov ecx, edx
shrd ecx, eax, 0x18
mov eax, ebx
xor byte [esi + 0xc], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
xor byte [esi + 0xd], cl
shrd eax, ebx, 8
push esi
xor byte [esi + 0xe], al
call fcn.00562020
movzx ebx, byte [esi + 0xc]
add esp, 8
movzx eax, byte [esi + 0xd]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xe]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xf]
shl ebx, 8
pop edi
or ebx, eax
pop ebp
push dword [esi + 0x174]
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 0x170]
push esi
call eax
inc ebx
add esp, 0xc
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
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
pop esi
pop ebx
add esp, 8
ret