Function at 0x140005040
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rsi, rcx
lea rdx, [rcx + 0x30]
lea rcx, [rbp - 0x38]
call fcn.14000c6f0
mov rax, qword [rsi + 0x168]
movabs rcx, 0x8000000000000000
mov qword [rsi + 0x168], rcx
cmp rax, rcx
je 0x140005314
mov qword [rbp - 8], rax
movups xmm0, xmmword [rsi + 0x170]
movups xmm1, xmmword [rsi + 0x180]
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm1
mov rdx, qword [rbp - 0x30]
sub rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x38]
call fcn.14000c510
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rdx
mov rdx, qword [rbp + 0x10]
sub rdx, qword [rbp + 0x18]
lea rcx, [rbp - 8]
call fcn.14000c6a0
mov r14, rax
mov r15, rdx
mov r13, qword [rsi + 8]
mov rdi, qword [rsi + 0x10]
lea rcx, [rsi + 0x70]
mov r12, qword [rsi + 0x60]
mov rbx, qword [rsi + 0x68]
mov qword [rsp + 0x20], rbx
mov rdx, qword [rbp + 0x20]
mov r8, qword [rbp + 0x28]
mov r9, r12
call fcn.14000c890
cmp rbx, rdi
cmovb rdi, rbx
cmp rdi, r15
cmovae rdi, r15
test rdi, rdi
je 0x1400051ba
cmp rdi, 8
jae 0x140005268
xor eax, eax
mov rdx, rdi
mov rcx, rax
and rdx, 3
je 0x14000515a
mov r8, rax
nop dword [rax]
movzx r9d, byte [r13 + r8]
xor r9b, byte [r12 + r8]
lea rcx, [r8 + 1]
mov byte [r14 + r8], r9b
mov r8, rcx
dec rdx
jne 0x140005140
sub rax, rdi
cmp rax, 0xfffffffffffffffc
ja 0x1400051ba
nop word cs:[rax + rax]
movzx eax, byte [r13 + rcx]
xor al, byte [r12 + rcx]
mov byte [r14 + rcx], al
movzx eax, byte [r13 + rcx + 1]
xor al, byte [r12 + rcx + 1]
mov byte [r14 + rcx + 1], al
movzx eax, byte [r13 + rcx + 2]
xor al, byte [r12 + rcx + 2]
mov byte [r14 + rcx + 2], al
movzx eax, byte [r13 + rcx + 3]
xor al, byte [r12 + rcx + 3]
mov byte [r14 + rcx + 3], al
lea rax, [rcx + 4]
mov rcx, rax
cmp rdi, rax
jne 0x140005170
mov rcx, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov r8, qword [rsi + 0x20]
mov r9, qword [rsi + 0x28]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r14
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.14000cac0
mov rax, qword [rbp + 8]
mov qword [rbp - 0x10], rax
movups xmm0, xmmword [rbp - 8]
movaps xmmword [rbp - 0x20], xmm0
mov rdi, qword [rbp + 0x18]
lea rbx, [rsi + 0x190]
mov rdx, qword [rsi + 0x190]
movabs rax, 0x8000000000000000
cmp rdx, rax
je 0x140005233
test rdx, rdx
je 0x140005233
mov rcx, qword [rsi + 0x198]
mov r8d, 1
call fcn.1400088c0
mov rax, qword [rbp - 0x10]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [rbp - 0x20]
movups xmmword [rbx], xmm0
mov qword [rsi + 0x1a8], rdi
mov qword [rsi + 0x1b0], 0
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, r14
sub rcx, r12
xor eax, eax
cmp rcx, 0x20
jb 0x14000512a
mov rcx, r14
sub rcx, r13
cmp rcx, 0x20
jb 0x14000512a
cmp rdi, 0x20
jae 0x140005294
xor eax, eax
jmp 0x1400052e4
mov rax, rdi
and rax, 0xffffffffffffffe0
xor ecx, ecx
nop dword [rax]
movups xmm0, xmmword [r12 + rcx]
movups xmm1, xmmword [r12 + rcx + 0x10]
movups xmm2, xmmword [r13 + rcx]
xorps xmm2, xmm0
movups xmm0, xmmword [r13 + rcx + 0x10]
xorps xmm0, xmm1
movups xmmword [r14 + rcx], xmm2
movups xmmword [r14 + rcx + 0x10], xmm0
add rcx, 0x20
cmp rax, rcx
jne 0x1400052a0
cmp rdi, rax
je 0x1400051ba
test dil, 0x18
je 0x14000512a
mov rcx, rax
mov rax, rdi
and rax, 0xfffffffffffffff8
nop
mov rdx, qword [r13 + rcx]
xor rdx, qword [r12 + rcx]
mov qword [r14 + rcx], rdx
add rcx, 8
cmp rax, rcx
jne 0x1400052f0
cmp rdi, rax
jne 0x14000512a
jmp 0x1400051ba
lea rcx, str.C:UsersZhush.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rust_crypto_0.2.36_src_blockmodes.rs
call fcn.140028e80
int3