Function at 0x4c5583
Capabilities:
Encode data using xor

Disassembly:
endbr64
mov r11d, dword [rsp + 0x30]
cmp r11d, 0
jne sym.AES_cbc_encrypt
cmp r8, 0x80
jb sym.AES_cbc_encrypt
mov rax, rsp
push rbp
push rbx
push r12
push r13
push r14
push r15
lea rsp, [rsp - 0x48]
mov r10, qword [rsp + 0xa0]
lea rsp, [rsp - 0xa0]
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x50], xmm7
movaps xmmword [rsp + 0x60], xmm8
movaps xmmword [rsp + 0x70], xmm9
movaps xmmword [rsp + 0x80], xmm10
movaps xmmword [rsp + 0x90], xmm11
movaps xmmword [rsp + 0xa0], xmm12
movaps xmmword [rsp + 0xb0], xmm13
movaps xmmword [rsp + 0xc0], xmm14
movaps xmmword [rsp + 0xd0], xmm15
mov rbp, rsp
mov eax, dword [r9 + 0xf0]
mov r12, rcx
mov r13, rdx
mov r14, r8
mov r15, r9
mov rbx, r10
shr r14, 4
mov edx, eax
shl rax, 7
sub rax, 0x60
sub rsp, rax
mov rax, rsp
mov rcx, r15
mov r10d, edx
call sym._bsaes_key_convert
pxor xmm7, xmmword [rsp]
movdqa xmmword [rax], xmm6
movdqa xmmword [rsp], xmm7
movdqu xmm14, xmmword [rbx]
sub r14, 8
movdqu xmm15, xmmword [r12]
movdqu xmm0, xmmword [r12 + 0x10]
movdqu xmm1, xmmword [r12 + 0x20]
movdqu xmm2, xmmword [r12 + 0x30]
movdqu xmm3, xmmword [r12 + 0x40]
movdqu xmm4, xmmword [r12 + 0x50]
mov rax, rsp
movdqu xmm5, xmmword [r12 + 0x60]
mov r10d, edx
movdqu xmm6, xmmword [r12 + 0x70]
movdqa xmmword [rbp + 0x20], xmm14
call sym._bsaes_decrypt8
pxor xmm15, xmmword [rbp + 0x20]
movdqu xmm7, xmmword [r12]
movdqu xmm8, xmmword [r12 + 0x10]
pxor xmm0, xmm7
movdqu xmm9, xmmword [r12 + 0x20]
pxor xmm5, xmm8
movdqu xmm10, xmmword [r12 + 0x30]
pxor xmm3, xmm9
movdqu xmm11, xmmword [r12 + 0x40]
pxor xmm1, xmm10
movdqu xmm12, xmmword [r12 + 0x50]
pxor xmm6, xmm11
movdqu xmm13, xmmword [r12 + 0x60]
pxor xmm2, xmm12
movdqu xmm14, xmmword [r12 + 0x70]
pxor xmm4, xmm13
movdqu xmmword [r13], xmm15
lea r12, [r12 + 0x80]
movdqu xmmword [r13 + 0x10], xmm0
movdqu xmmword [r13 + 0x20], xmm5
movdqu xmmword [r13 + 0x30], xmm3
movdqu xmmword [r13 + 0x40], xmm1
movdqu xmmword [r13 + 0x50], xmm6
movdqu xmmword [r13 + 0x60], xmm2
movdqu xmmword [r13 + 0x70], xmm4
lea r13, [r13 + 0x80]
sub r14, 8
jae 0x4c563d
add r14, 8
je 0x4c5a21
movdqu xmm15, xmmword [r12]
mov rax, rsp
mov r10d, edx
cmp r14, 2
jb 0x4c5a00
movdqu xmm0, xmmword [r12 + 0x10]
je 0x4c59d0
movdqu xmm1, xmmword [r12 + 0x20]
cmp r14, 4
jb 0x4c5980
movdqu xmm2, xmmword [r12 + 0x30]
je 0x4c5920
movdqu xmm3, xmmword [r12 + 0x40]
cmp r14, 6
jb 0x4c58b0
movdqu xmm4, xmmword [r12 + 0x50]
je 0x4c5830
movdqu xmm5, xmmword [r12 + 0x60]
movdqa xmmword [rbp + 0x20], xmm14
call sym._bsaes_decrypt8
pxor xmm15, xmmword [rbp + 0x20]
movdqu xmm7, xmmword [r12]
movdqu xmm8, xmmword [r12 + 0x10]
pxor xmm0, xmm7
movdqu xmm9, xmmword [r12 + 0x20]
pxor xmm5, xmm8
movdqu xmm10, xmmword [r12 + 0x30]
pxor xmm3, xmm9
movdqu xmm11, xmmword [r12 + 0x40]
pxor xmm1, xmm10
movdqu xmm12, xmmword [r12 + 0x50]
pxor xmm6, xmm11
movdqu xmm14, xmmword [r12 + 0x60]
pxor xmm2, xmm12
movdqu xmmword [r13], xmm15
movdqu xmmword [r13 + 0x10], xmm0
movdqu xmmword [r13 + 0x20], xmm5
movdqu xmmword [r13 + 0x30], xmm3
movdqu xmmword [r13 + 0x40], xmm1
movdqu xmmword [r13 + 0x50], xmm6
movdqu xmmword [r13 + 0x60], xmm2
jmp 0x4c5a21
movdqa xmmword [rbp + 0x20], xmm14
call sym._bsaes_decrypt8
pxor xmm15, xmmword [rbp + 0x20]
movdqu xmm7, xmmword [r12]
movdqu xmm8, xmmword [r12 + 0x10]
pxor xmm0, xmm7
movdqu xmm9, xmmword [r12 + 0x20]
pxor xmm5, xmm8
movdqu xmm10, xmmword [r12 + 0x30]
pxor xmm3, xmm9
movdqu xmm11, xmmword [r12 + 0x40]
pxor xmm1, xmm10
movdqu xmm14, xmmword [r12 + 0x50]
pxor xmm6, xmm11
movdqu xmmword [r13], xmm15
movdqu xmmword [r13 + 0x10], xmm0
movdqu xmmword [r13 + 0x20], xmm5
movdqu xmmword [r13 + 0x30], xmm3
movdqu xmmword [r13 + 0x40], xmm1
movdqu xmmword [r13 + 0x50], xmm6
jmp 0x4c5a21
movdqa xmmword [rbp + 0x20], xmm14
call sym._bsaes_decrypt8
pxor xmm15, xmmword [rbp + 0x20]
movdqu xmm7, xmmword [r12]
movdqu xmm8, xmmword [r12 + 0x10]
pxor xmm0, xmm7
movdqu xmm9, xmmword [r12 + 0x20]
pxor xmm5, xmm8
movdqu xmm10, xmmword [r12 + 0x30]
pxor xmm3, xmm9
movdqu xmm14, xmmword [r12 + 0x40]
pxor xmm1, xmm10
movdqu xmmword [r13], xmm15
movdqu xmmword [r13 + 0x10], xmm0
movdqu xmmword [r13 + 0x20], xmm5
movdqu xmmword [r13 + 0x30], xmm3
movdqu xmmword [r13 + 0x40], xmm1
jmp 0x4c5a21
movdqa xmmword [rbp + 0x20], xmm14
call sym._bsaes_decrypt8
pxor xmm15, xmmword [rbp + 0x20]
movdqu xmm7, xmmword [r12]
movdqu xmm8, xmmword [r12 + 0x10]
pxor xmm0, xmm7
movdqu xmm9, xmmword [r12 + 0x20]
pxor xmm5, xmm8
movdqu xmm14, xmmword [r12 + 0x30]
pxor xmm3, xmm9
movdqu xmmword [r13], xmm15
movdqu xmmword [r13 + 0x10], xmm0
movdqu xmmword [r13 + 0x20], xmm5
movdqu xmmword [r13 + 0x30], xmm3
jmp 0x4c5a21
movdqa xmmword [rbp + 0x20], xmm14
call sym._bsaes_decrypt8
pxor xmm15, xmmword [rbp + 0x20]
movdqu xmm7, xmmword [r12]
movdqu xmm8, xmmword [r12 + 0x10]
pxor xmm0, xmm7
movdqu xmm14, xmmword [r12 + 0x20]
pxor xmm5, xmm8
movdqu xmmword [r13], xmm15
movdqu xmmword [r13 + 0x10], xmm0
movdqu xmmword [r13 + 0x20], xmm5
jmp 0x4c5a21
movdqa xmmword [rbp + 0x20], xmm14
call sym._bsaes_decrypt8
pxor xmm15, xmmword [rbp + 0x20]
movdqu xmm7, xmmword [r12]
movdqu xmm14, xmmword [r12 + 0x10]
pxor xmm0, xmm7
movdqu xmmword [r13], xmm15
movdqu xmmword [r13 + 0x10], xmm0
jmp 0x4c5a21
lea rcx, [r12]
lea rdx, [rbp + 0x20]
lea r8, [r15]
call sym.AES_decrypt
pxor xmm14, xmmword [rbp + 0x20]
movdqu xmmword [r13], xmm14
movdqa xmm14, xmm15
movdqu xmmword [rbx], xmm14
lea rax, [rsp]
pxor xmm0, xmm0
movdqa xmmword [rax], xmm0
movdqa xmmword [rax + 0x10], xmm0
lea rax, [rax + 0x20]
cmp rbp, rax
ja 0x4c5a2e
lea rax, [rbp + 0x78]
movaps xmm6, xmmword [rbp + 0x40]
movaps xmm7, xmmword [rbp + 0x50]
movaps xmm8, xmmword [rbp + 0x60]
movaps xmm9, xmmword [rbp + 0x70]
movaps xmm10, xmmword [rbp + 0x80]
movaps xmm11, xmmword [rbp + 0x90]
movaps xmm12, xmmword [rbp + 0xa0]
movaps xmm13, xmmword [rbp + 0xb0]
movaps xmm14, xmmword [rbp + 0xc0]
movaps xmm15, xmmword [rbp + 0xd0]
lea rax, [rax + 0xa0]
mov r15, qword [rax - 0x30]
mov r14, qword [rax - 0x28]
mov r13, qword [rax - 0x20]
mov r12, qword [rax - 0x18]
mov rbx, qword [rax - 0x10]
mov rbp, qword [rax - 8]
lea rsp, [rax]
repz ret