Function at 0x10005f50
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rdx, qword [rcx + 0x40]
mov rcx, qword [rcx + 0x50]
cmp rcx, rdx
ja 0x100061b9
mov r12, qword [rsi + 0x30]
mov rbx, qword [rsi + 0x170]
mov qword [rsi + 0x50], 0
mov qword [rsi + 0x170], 0
test rbx, rbx
je 0x100061c7
mov rax, qword [rsi + 0x188]
mov rbp, qword [rsi + 0x190]
mov r14, rax
sub r14, rbp
jb 0x100061e1
mov rdx, qword [rsi + 0x180]
cmp rax, rdx
ja 0x100061f5
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], rax
movzx eax, byte [rsi + 0x160]
mov rcx, rax
shl rcx, 4
cmp rax, 0xf
jae 0x10006206
mov rdx, qword [rsi + 0x178]
mov qword [rsp + 0x30], rdx
lea r13, [rbx + rbp]
mov r15, qword [rsi]
mov rdi, qword [rsi + 0x10]
mov r9, qword [rsi + 0x58]
lea r8, [rsi + rcx]
add r8, 0x70
mov ecx, eax
mov rdx, r12
call fcn.1004cf00
mov rax, qword [rsi + 0x68]
cmp rax, rdi
cmovb rdi, rax
cmp rdi, r14
cmovae rdi, r14
test rdi, rdi
je 0x100060f9
mov rax, qword [rsi + 0x58]
cmp rdi, 8
jae 0x10006045
xor ecx, ecx
jmp 0x100060e0
cmp rdi, 0x20
jae 0x1000604f
xor ecx, ecx
jmp 0x100060ab
mov rcx, rdi
and rcx, 0xffffffffffffffe0
lea rdx, [rbx + rbp]
add rdx, 0x10
xor r8d, r8d
nop word cs:[rax + rax]
movups xmm0, xmmword [rax + r8]
movups xmm1, xmmword [rax + r8 + 0x10]
movups xmm2, xmmword [r15 + r8]
xorps xmm2, xmm0
movups xmm0, xmmword [r15 + r8 + 0x10]
xorps xmm0, xmm1
movups xmmword [rdx + r8 - 0x10], xmm2
movups xmmword [rdx + r8], xmm0
add r8, 0x20
cmp rcx, r8
jne 0x10006070
cmp rdi, rcx
je 0x100060f9
test dil, 0x18
je 0x100060e0
mov rdx, rcx
mov rcx, rdi
and rcx, 0xfffffffffffffff8
nop word cs:[rax + rax]
mov r8, qword [r15 + rdx]
xor r8, qword [rax + rdx]
mov qword [r13 + rdx], r8
add rdx, 8
cmp rcx, rdx
jne 0x100060c0
cmp rdi, rcx
je 0x100060f9
nop dword [rax + rax]
movzx edx, byte [r15 + rcx]
xor dl, byte [rax + rcx]
mov byte [r13 + rcx], dl
lea rdx, [rcx + 1]
mov rcx, rdx
cmp rdi, rdx
jne 0x100060e0
mov r8, qword [rsi + 0x10]
mov r15, qword [rsi + 0x18]
mov rbp, qword [rsi + 0x28]
test r8, r8
je 0x1000612c
mov rdx, qword [rsp + 0x28]
mov rcx, rdx
sub rcx, r8
jb 0x1000621d
mov rax, qword [rsi]
add r12, rcx
mov rcx, rax
mov rdx, r12
call sub.ntdll.dll_memcpy
test rbp, rbp
je 0x1000614e
mov rcx, r14
sub rcx, rbp
jb 0x1000622b
add r13, rcx
mov rcx, r15
mov rdx, r13
mov r8, rbp
call sub.ntdll.dll_memcpy
mov r8, qword [rsi + 0x198]
test r8, r8
je 0x10006172
cmp qword [rsi + 0x1a0], 0
je 0x10006172
mov rcx, qword [0x100cf0d0]
xor edx, edx
call sub.kernel32.dll_HeapFree
mov qword [rsi + 0x198], rbx
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x1a0], rax
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0x1a8], rax
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x1b0], rax
mov qword [rsi + 0x1b8], 0
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.C:Users001.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rust_crypto_0.2.36_src_buffer.rs
call fcn.1000e630
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_eb26296b556cef10fb713a38f3d16b9886080f26library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
lea r8, str.C:Users001.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rust_crypto_0.2.36_src_blockmodes.rs
mov edx, 0x2b
call fcn.1000ea10
ud2
lea r8, str.C:Users001.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rust_crypto_0.2.36_src_buffer.rs
mov rcx, rbp
mov rdx, rax
call fcn.1000f090
ud2
lea r8, str.C:Users001.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rust_crypto_0.2.36_src_buffer.rs
mov rcx, rax
call fcn.1000e630
ud2
add rcx, 0x10
lea r8, [0x100c5670]
mov edx, 0xf0
call fcn.1000e630
ud2
lea r8, str.C:Users001.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rust_crypto_0.2.36_src_blockmodes.rs
call fcn.1000e5b0
ud2
lea r8, str.C:Users001.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rust_crypto_0.2.36_src_blockmodes.rs
mov rdx, r14
call fcn.1000e5b0
ud2