Function at 0x140004790
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
movaps xmmword [rsp + 0xf0], xmm6
mov rsi, qword [rcx]
mov rax, qword [0x1400b0028]
movzx eax, byte [rax]
cmp al, 1
jne 0x1400047df
mov rcx, rsi
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sym.__aes::autodetect::Aes256_as_cipher::block::BlockEncrypt_::encrypt_with_backend::inner::h41d39c3e10d96e9c
mov r13, qword [rdx]
mov r15, qword [rdx + 8]
mov r14, qword [rdx + 0x10]
mov rcx, qword [rdx + 0x18]
mov eax, ecx
and eax, 3
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
cmp rcx, 4
jb 0x14000491d
mov rbp, qword [rsp + 0x20]
shr rbp, 2
mov r12d, 0x30
lea rdi, [rsp + 0xb0]
lea rbx, [rsp + 0x30]
nop word cs:[rax + rax]
mov eax, dword [r13 + 0x10]
mov r9d, dword [r13 + 0xc]
mov ecx, dword [r13]
mov edx, dword [r13 + 4]
mov r8d, dword [r13 + 8]
lea r10d, [r9 + rax]
bswap r10d
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x3c], r10d
lea r10d, [r9 + rax + 1]
bswap r10d
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x4c], r10d
lea r10d, [r9 + rax + 2]
bswap r10d
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x54], edx
mov dword [rsp + 0x58], r8d
mov dword [rsp + 0x5c], r10d
add r9d, eax
add r9d, 3
bswap r9d
add eax, 4
mov dword [r13 + 0x10], eax
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x64], edx
mov dword [rsp + 0x68], r8d
mov dword [rsp + 0x6c], r9d
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
call sym.aes::soft::fixslice::aes256_encrypt::haa5f944135d5dc09
movups xmm0, xmmword [r15 + r12 - 0x30]
movups xmm1, xmmword [r15 + r12 - 0x20]
movups xmm2, xmmword [r15 + r12 - 0x10]
movups xmm3, xmmword [r15 + r12]
xorps xmm0, xmmword [rsp + 0xb0]
xorps xmm1, xmmword [rsp + 0xc0]
xorps xmm2, xmmword [rsp + 0xd0]
xorps xmm3, xmmword [rsp + 0xe0]
movups xmmword [r14 + r12 - 0x30], xmm0
movups xmmword [r14 + r12 - 0x20], xmm1
movups xmmword [r14 + r12 - 0x10], xmm2
movups xmmword [r14 + r12], xmm3
add r12, 0x40
dec rbp
jne 0x140004830
xorps xmm6, xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
mov rbp, qword [rsp + 0x28]
test rbp, rbp
je 0x140004a21
movabs rax, 0xffffffffffffffc
mov rcx, qword [rsp + 0x20]
and rcx, rax
shl rcx, 4
add r15, rcx
add r14, rcx
lea r12, [rsp + 0x40]
shl ebp, 4
xor edi, edi
lea rbx, [rsp + 0x30]
nop word cs:[rax + rax]
mov eax, dword [r13 + 0x10]
mov ecx, dword [r13 + 8]
mov edx, dword [r13 + 0xc]
add edx, eax
bswap edx
inc eax
mov dword [r13 + 0x10], eax
mov rax, qword [r13]
movups xmmword [r12 + 0x20], xmm6
movups xmmword [r12 + 0x10], xmm6
movups xmmword [r12], xmm6
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x3c], edx
lea rcx, [rsp + 0xb0]
mov rdx, rsi
mov r8, rbx
call sym.aes::soft::fixslice::aes256_encrypt::haa5f944135d5dc09
movups xmm0, xmmword [rsp + 0xb0]
movups xmmword [rsp + rdi + 0x70], xmm0
add rdi, 0x10
cmp rbp, rdi
jne 0x140004980
movups xmm0, xmmword [r15]
xorps xmm0, xmmword [rsp + 0x70]
movups xmmword [r14], xmm0
mov rax, qword [rsp + 0x28]
cmp eax, 1
je 0x140004a21
movups xmm0, xmmword [r15 + 0x10]
xorps xmm0, xmmword [rsp + 0x80]
movups xmmword [r14 + 0x10], xmm0
cmp eax, 2
je 0x140004a21
movups xmm0, xmmword [r15 + 0x20]
xorps xmm0, xmmword [rsp + 0x90]
movups xmmword [r14 + 0x20], xmm0
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret