Function at 0x140015630
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c8
movdqa xmmword [rsp + 0x1b0], xmm9
movdqa xmmword [rsp + 0x1a0], xmm8
movdqa xmmword [rsp + 0x190], xmm7
movaps xmmword [rsp + 0x180], xmm6
mov rsi, r9
mov qword [rsp + 0x158], r8
mov qword [rsp + 0x50], rdx
mov r15, rcx
cmp qword [rsp + 0x250], 0
je 0x1400156b2
js 0x140015fac
mov r12d, 1
mov edx, 1
mov rcx, qword [rsp + 0x250]
call sym.__rust_alloc_zeroed
test rax, rax
je 0x140015faf
mov rdi, rax
jmp 0x1400156b7
mov edi, 1
mov rax, qword [rsp + 0x258]
cmp rax, 1
adc rax, 0
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x240], 0
je 0x140015e2b
mov rax, qword [rsp + 0x238]
lea r13, [rsp + 0xf0]
mov rcx, qword [rsp + 0x68]
dec rcx
mov qword [rsp + 0x150], rcx
lea rcx, [r15 + 0x10]
mov qword [rsp + 0x48], rcx
lea rcx, [r15 + 0x28]
mov qword [rsp + 0x40], rcx
xor rsi, 0x20
xor rax, 0xc
or rax, rsi
setne byte [rsp + 0x37]
mov rax, qword [rsp + 0x50]
add rax, 0x20
mov qword [rsp + 0x140], rax
lea rax, [rdi + 0x10]
mov qword [rsp + 0x148], rax
xor eax, eax
mov qword [rsp + 0x38], rax
xorps xmm6, xmm6
xor r12d, r12d
nop word [rax + rax]
mov rax, qword [r15 + 8]
mov r14, qword [r15 + 0x10]
mov rbp, qword [r15 + 0x18]
cmp r14, rbp
mov r8, qword [rsp + 0x250]
jne 0x1400157b0
cmp rax, r8
ja 0x1400157b0
mov rax, qword [rsp + 0x48]
movups xmmword [rax], xmm6
mov rcx, qword [rsp + 0x40]
mov rdx, rdi
call sym.std::sys::pal::windows::fs::File::read::hf81d62598c89ab5f
mov rbx, rdx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rdx
test rax, rax
jne 0x140015d9a
lea rsi, [r12 + 1]
test rbx, rbx
jne 0x14001589c
jmp 0x140015d70
mov rsi, qword [r15]
cmp r14, rbp
jb 0x140015823
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 0
mov rax, qword [r15 + 0x20]
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0xb0]
xor r8d, r8d
call sym.std::sys::pal::windows::fs::File::read_buf::h0f01c996452d567a
mov rbx, rax
test rax, rax
jne 0x140015d8c
mov qword [r15 + 0x10], 0
mov rbp, qword [rsp + 0xc0]
movdqu xmm0, xmmword [rsp + 0xc0]
movdqu xmmword [r15 + 0x18], xmm0
xor r14d, r14d
mov rbx, rbp
sub rbx, r14
test rsi, rsi
je 0x140015d8c
add rsi, r14
mov rax, qword [rsp + 0x250]
cmp rax, rbx
cmovb rbx, rax
cmp rbx, 1
jne 0x140015860
movzx eax, byte [rsi]
mov byte [rdi], al
jmp 0x14001586e
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
call sym.memcpy
add r14, rbx
cmp r14, rbp
cmovae r14, rbp
mov rax, qword [rsp + 0x48]
mov qword [rax], r14
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], rbx
lea rsi, [r12 + 1]
test rbx, rbx
je 0x140015d70
cmp byte [rsp + 0x37], 0
jne 0x140015e3c
movups xmm0, xmmword [str.expand_32_byte_ksrc_encryption.rs]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x158]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 0x10]
lea rax, [rsp + 0x90]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
mov rcx, qword [rsp + 0x230]
mov rax, qword [rcx]
mov qword [rsp + 0x70], rax
mov eax, dword [rcx + 8]
mov dword [rsp + 0x78], eax
mov rax, qword [0x1402e1030]
movzx eax, byte [rax]
cmp al, 0xff
jne 0x140015966
lea rcx, [rsp + 0x160]
mov edx, 1
call sym.chacha20::avx2_cpuid::init_get::cpuid::h33ae011975a142c0
lea rcx, [rsp + 0x170]
mov edx, 7
xor r8d, r8d
call sym.chacha20::avx2_cpuid::init_get::cpuid_count::hc3a361ca09f019b3
mov ebp, dword [rsp + 0x168]
mov eax, ebp
not eax
test eax, 0xc000000
jne 0x140015944
call fcn.140012a80
not eax
test al, 6
sete al
jmp 0x140015946
xor eax, eax
mov ecx, dword [rsp + 0x174]
and ecx, 0x20
shr ecx, 5
shr ebp, 0x1c
and bpl, al
and bpl, cl
mov rax, qword [0x1402e1030]
mov byte [rax], bpl
movdqa xmm0, xmmword [rsp + 0x80]
movdqa xmm1, xmmword [rsp + 0x90]
movdqa xmm2, xmmword [rsp + 0xa0]
movdqa xmmword [rsp + 0xb0], xmm0
movdqa xmmword [rsp + 0xc0], xmm1
movdqa xmmword [rsp + 0xd0], xmm2
mov eax, dword [rsp + 0x78]
mov dword [r13 - 4], eax
mov rax, qword [rsp + 0x70]
mov qword [r13 - 0xc], rax
movaps xmmword [r13 + 0x30], xmm6
movaps xmmword [r13 + 0x20], xmm6
movaps xmmword [r13 + 0x10], xmm6
movaps xmmword [r13], xmm6
movzx eax, byte [rsp + 0x82]
mov byte [r13 + 0x43], al
movzx eax, word [rsp + 0x80]
mov word [r13 + 0x41], ax
mov dword [rsp + 0xe0], 0
mov byte [rsp + 0x130], 0
cmp rbx, qword [rsp + 0x250]
ja 0x140015f65
xor ecx, ecx
mov rbp, rbx
and rbp, 0x3f
setne cl
mov rax, rbx
shr rax, 6
add rcx, rax
shr rcx, 0x20
jne 0x140015f7e
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0xb0]
lea rdx, [rsp + 0x80]
call sym._ZN87__LT_chacha20..ChaChaCore_LT_R_GT__u20_as_u20_cipher..stream_core..StreamCipherCore_GT_20process_with_backend17hcec50ed3d
test rbp, rbp
je 0x140015d07
mov rax, qword [0x1402e1030]
movzx eax, byte [rax]
cmp al, 1
jne 0x140015a80
lea rcx, [rsp + 0xb0]
mov rdx, r13
call sym._ZN8chacha208backends4avx25inner17h3140bbdda67cf7c4E.llvm.10360624751807762928
jmp 0x140015c1c
movdqa xmm4, xmmword [rsp + 0xb0]
movdqa xmm2, xmmword [rsp + 0xc0]
movdqa xmm1, xmmword [rsp + 0xd0]
movdqa xmm0, xmmword [rsp + 0xe0]
mov eax, 0xa
movdqa xmm7, xmm4
movdqa xmm3, xmm2
movdqa xmm5, xmm0
movdqa xmm8, xmm1
nop word [rax + rax]
paddd xmm7, xmm3
pxor xmm5, xmm7
movdqa xmm9, xmm5
psrld xmm9, 0x10
pslld xmm5, 0x10
por xmm5, xmm9
paddd xmm8, xmm5
pxor xmm3, xmm8
movdqa xmm9, xmm3
psrld xmm9, 0x14
pslld xmm3, 0xc
por xmm3, xmm9
paddd xmm7, xmm3
pxor xmm5, xmm7
movdqa xmm9, xmm5
psrld xmm9, 0x18
pslld xmm5, 8
por xmm5, xmm9
paddd xmm8, xmm5
pxor xmm3, xmm8
movdqa xmm9, xmm3
psrld xmm9, 0x19
pslld xmm3, 7
por xmm3, xmm9
pshufd xmm8, xmm8, 0x39
pshufd xmm5, xmm5, 0x4e
pshufd xmm7, xmm7, 0x93
paddd xmm7, xmm3
pxor xmm5, xmm7
movdqa xmm9, xmm5
psrld xmm9, 0x10
pslld xmm5, 0x10
por xmm5, xmm9
paddd xmm8, xmm5
pxor xmm3, xmm8
movdqa xmm9, xmm3
psrld xmm9, 0x14
pslld xmm3, 0xc
por xmm3, xmm9
paddd xmm7, xmm3
pxor xmm5, xmm7
movdqa xmm9, xmm5
psrld xmm9, 0x18
pslld xmm5, 8
por xmm5, xmm9
paddd xmm8, xmm5
pxor xmm3, xmm8
movdqa xmm9, xmm3
psrld xmm9, 0x19
pslld xmm3, 7
por xmm3, xmm9
pshufd xmm8, xmm8, 0x93
pshufd xmm5, xmm5, 0x4e
pshufd xmm7, xmm7, 0x39
dec rax
jne 0x140015ac0
paddd xmm7, xmm4
paddd xmm3, xmm2
paddd xmm8, xmm1
paddd xmm5, xmm0
movdqa xmmword [rsp + 0xf0], xmm7
movdqa xmmword [rsp + 0x100], xmm3
movdqa xmmword [rsp + 0x110], xmm8
movdqa xmmword [rsp + 0x120], xmm5
movd eax, xmm0
inc eax
mov dword [rsp + 0xe0], eax
mov rdx, rbx
and rdx, 0xffffffffffffffc0
lea rax, [rdi + rdx]
cmp ebp, 8
jae 0x140015c40
xor ecx, ecx
jmp 0x140015cf0
cmp ebp, 0x20
jae 0x140015c49
xor ecx, ecx
jmp 0x140015cb2
mov r8d, ebx
and r8d, 0x1f
mov rcx, rbp
sub rcx, r8
add rdx, qword [rsp + 0x148]
xor r9d, r9d
nop word cs:[rax + rax]
movdqu xmm0, xmmword [rdx + r9 - 0x10]
movdqu xmm1, xmmword [rdx + r9]
pxor xmm0, xmmword [rsp + r9 + 0xf0]
pxor xmm1, xmmword [rsp + r9 + 0x100]
movdqu xmmword [rdx + r9 - 0x10], xmm0
movdqu xmmword [rdx + r9], xmm1
add r9, 0x20
cmp rcx, r9
jne 0x140015c70
test r8, r8
je 0x140015d07
cmp r8d, 8
jb 0x140015cf0
mov rdx, rcx
mov r8d, ebx
and r8d, 7
mov rcx, rbp
sub rcx, r8
nop word cs:[rax + rax]
mov r9, qword [rsp + rdx + 0xf0]
xor qword [rax + rdx], r9
add rdx, 8
cmp rcx, rdx
jne 0x140015cd0
test r8, r8
je 0x140015d07
nop word [rax + rax]
movzx edx, byte [rsp + rcx + 0xf0]
xor byte [rax + rcx], dl
lea rdx, [rcx + 1]
mov rcx, rdx
cmp rbp, rdx
jne 0x140015cf0
mov byte [rsp + 0x130], bpl
mov rbp, qword [rsp + 0x50]
mov rax, qword [rbp]
mov r14, qword [rbp + 0x10]
sub rax, r14
cmp rax, rbx
jbe 0x140015d40
mov rcx, qword [rbp + 8]
add rcx, r14
mov rdx, rdi
mov r8, rbx
call sym.memcpy
add r14, rbx
mov qword [rbp + 0x10], r14
jmp 0x140015d57
mov rcx, rbp
mov rdx, rdi
mov r8, rbx
call sym.std::io::buffered::bufwriter::BufWriter_W_::write_all_cold::ha240bc16d9f450f0
test rax, rax
jne 0x140015e9f
cmp r12, qword [rsp + 0x150]
je 0x140015d7d
mov r12, rsi
jmp 0x140015750
mov r12, rsi
mov rsi, qword [rsp + 0x250]
jmp 0x140015dac
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x250]
jmp 0x140015dac
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x60], rbx
lea rcx, [rsp + 0x60]
mov rsi, qword [rsp + 0x250]
call sym.core::ptr::drop_in_place_std::io::error::Error_::h10f50175a72312bc
mov rcx, qword [rsp + 0x50]
call sym._ZN3std2io8buffered9bufwriter18BufWriter_LT_W_GT_9flush_buf17hc6952abb945ad0feE.llvm.85173399253522107
test rax, rax
jne 0x140015edc
imul r12, qword [rsp + 0x248]
mov r8, qword [rsp + 0x38]
add r8, rsi
add r8, r12
mov rcx, qword [rsp + 0x140]
xor edx, edx
mov qword [rsp + 0x38], r8
call sym.__std::fs::File_as_std::io::Seek_::seek::he06a8d2d6af39a63
mov rcx, rax
mov rax, rdx
test rcx, rcx
jne 0x140015edc
mov rcx, qword [rsp + 0x40]
xor edx, edx
mov r8, qword [rsp + 0x38]
call sym.__std::fs::File_as_std::io::Seek_::seek::he06a8d2d6af39a63
test rax, rax
jne 0x140015f19
mov rax, qword [rsp + 0x48]
movups xmmword [rax], xmm6
mov rax, qword [rsp + 0x38]
cmp rax, qword [rsp + 0x240]
jb 0x140015744
xor ebx, ebx
mov rdx, qword [rsp + 0x250]
test rdx, rdx
jne 0x140015e55
jmp 0x140015e63
lea rsi, sym.core::ptr::drop_in_place_crypto_common::InvalidLength_::h07134afb803b28f3
mov ebx, 1
mov rdx, qword [rsp + 0x250]
test rdx, rdx
je 0x140015e63
mov r8d, 1
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rbx
mov rdx, rsi
movaps xmm6, xmmword [rsp + 0x180]
movaps xmm7, xmmword [rsp + 0x190]
movaps xmm8, xmmword [rsp + 0x1a0]
movaps xmm9, xmmword [rsp + 0x1b0]
add rsp, 0x1c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, rax
mov qword [rsp + 0x80], rax
mov rax, qword [0x14050df18]
movzx eax, byte [rax]
mov ecx, 8
mov edx, 8
call sym.__rust_alloc
test rax, rax
jne 0x140015f42
mov ecx, 8
mov edx, 8
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
jmp 0x140015fce
mov rsi, rax
mov qword [rsp + 0xb0], rax
mov rax, qword [0x14050df18]
movzx eax, byte [rax]
mov ecx, 8
mov edx, 8
call sym.__rust_alloc
test rax, rax
jne 0x140015f42
mov ecx, 8
mov edx, 8
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
jmp 0x140015fce
mov rsi, rdx
mov qword [rsp + 0xb0], rdx
mov rax, qword [0x14050df18]
movzx eax, byte [rax]
mov ecx, 8
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140015fbf
mov rbx, rax
mov qword [rax], rsi
lea rsi, sym.core::ptr::drop_in_place_std::io::error::Error_::h10f50175a72312bc
mov rdx, qword [rsp + 0x250]
test rdx, rdx
jne 0x140015e55
jmp 0x140015e63
lea r8, [0x1404420f8]
mov rcx, rbx
mov rdx, qword [rsp + 0x250]
call sym.core::slice::index::slice_end_index_len_fail::ha4157f6c56c31a58
jmp 0x140015fce
lea rax, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_cipher_0.4.4_src_stream.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x140441968]
lea r9, sym.core::ptr::drop_in_place_crypto_common::InvalidLength_::h07134afb803b28f3
lea r8, [rsp + 0x80]
mov edx, 0x2b
call sym.core::result::unwrap_failed::h4f8e79ec55d0e8f1
jmp 0x140015fce
xor r12d, r12d
mov rcx, r12
mov rdx, qword [rsp + 0x250]
call sym.alloc::raw_vec::handle_error::hb4a2c97b2f2cc7c5
mov ecx, 8
mov edx, 8
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
ud2