Function at 0x140014e90
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
movdqa xmmword [rsp + 0x180], xmm9
movdqa xmmword [rsp + 0x170], xmm8
movdqa xmmword [rsp + 0x160], xmm7
movaps xmmword [rsp + 0x150], xmm6
mov r14, r9
mov qword [rsp + 0x98], r8
mov rbx, rdx
mov r15, rcx
mov ecx, 0x200000
mov edx, 1
call sym.__rust_alloc_zeroed
test rax, rax
je 0x1400155cf
mov rsi, rax
mov rax, qword [rsp + 0x208]
lea r12, [rsp + 0xe0]
lea rcx, [r15 + 0x10]
mov qword [rsp + 0x48], rcx
lea rcx, [r15 + 0x28]
mov qword [rsp + 0x40], rcx
xor r14, 0x20
xor rax, 0xc
or rax, r14
setne byte [rsp + 0x2f]
lea rax, [rsi + 0x10]
mov qword [rsp + 0x90], rax
xorps xmm6, xmm6
jmp 0x140014f59
mov rcx, qword [rbx + 8]
add rcx, rdi
mov rdx, rsi
mov r8, r14
call sym.memcpy
add rdi, r14
mov qword [rbx + 0x10], rdi
mov rax, qword [r15 + 8]
mov rdi, qword [r15 + 0x10]
mov r13, qword [r15 + 0x18]
cmp rdi, r13
jne 0x140014fc0
cmp rax, 0x200001
jae 0x140014fc0
mov rax, qword [rsp + 0x48]
movups xmmword [rax], xmm6
mov r8d, 0x200000
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call sym.std::sys::pal::windows::fs::File::read::hf81d62598c89ab5f
mov r14, rdx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdx
test rax, rax
jne 0x14001555e
test r14, r14
jne 0x140015097
jmp 0x140015568
mov rbp, qword [r15]
cmp rdi, r13
jb 0x14001502d
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], 0
mov rax, qword [r15 + 0x20]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0xa0]
xor r8d, r8d
call sym.std::sys::pal::windows::fs::File::read_buf::h0f01c996452d567a
test rax, rax
jne 0x140015550
mov qword [r15 + 0x10], 0
mov r13, qword [rsp + 0xb0]
movups xmm0, xmmword [rsp + 0xb0]
movups xmmword [r15 + 0x18], xmm0
xor edi, edi
mov rax, r13
sub rax, rdi
test rbp, rbp
je 0x140015550
add rbp, rdi
cmp rax, 0x200000
mov r14d, 0x200000
cmovb r14, rax
cmp rax, 1
jne 0x140015060
movzx eax, byte [rbp]
mov byte [rsi], al
jmp 0x14001506e
mov rcx, rsi
mov rdx, rbp
mov r8, r14
call sym.memcpy
add rdi, r14
cmp rdi, r13
cmovae rdi, r13
mov rax, qword [rsp + 0x48]
mov qword [rax], rdi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], r14
test r14, r14
je 0x140015568
cmp byte [rsp + 0x2f], 0
jne 0x140015542
movups xmm0, xmmword [str.expand_32_byte_ksrc_encryption.rs]
movaps xmmword [rsp + 0x60], xmm0
mov rax, qword [rsp + 0x98]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 0x10]
lea rax, [rsp + 0x70]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
mov rcx, qword [rsp + 0x200]
mov rax, qword [rcx]
mov qword [rsp + 0x50], rax
mov eax, dword [rcx + 8]
mov dword [rsp + 0x58], eax
mov rax, qword [0x1402e1030]
movzx eax, byte [rax]
cmp al, 0xff
jne 0x14001515b
lea rcx, [rsp + 0x130]
mov edx, 1
call sym.chacha20::avx2_cpuid::init_get::cpuid::h33ae011975a142c0
lea rcx, [rsp + 0x140]
mov edx, 7
xor r8d, r8d
call sym.chacha20::avx2_cpuid::init_get::cpuid_count::hc3a361ca09f019b3
mov edi, dword [rsp + 0x138]
mov eax, edi
not eax
test eax, 0xc000000
jne 0x140015139
call fcn.140012a80
not eax
test al, 6
sete al
jmp 0x14001513b
xor eax, eax
mov ecx, dword [rsp + 0x144]
and ecx, 0x20
shr ecx, 5
shr edi, 0x1c
and dil, al
and dil, cl
mov rax, qword [0x1402e1030]
mov byte [rax], dil
movdqa xmm0, xmmword [rsp + 0x60]
movdqa xmm1, xmmword [rsp + 0x70]
movdqa xmm2, xmmword [rsp + 0x80]
movdqa xmmword [rsp + 0xa0], xmm0
movdqa xmmword [rsp + 0xb0], xmm1
movdqa xmmword [rsp + 0xc0], xmm2
mov eax, dword [rsp + 0x58]
mov dword [r12 - 4], eax
mov rax, qword [rsp + 0x50]
mov qword [r12 - 0xc], rax
movaps xmmword [r12 + 0x30], xmm6
movaps xmmword [r12 + 0x20], xmm6
movaps xmmword [r12 + 0x10], xmm6
movaps xmmword [r12], xmm6
movzx eax, byte [rsp + 0x62]
mov byte [r12 + 0x43], al
movzx eax, word [rsp + 0x60]
mov word [r12 + 0x41], ax
mov dword [rsp + 0xd0], 0
mov byte [rsp + 0x120], 0
cmp r14, 0x200001
jae 0x1400155b9
mov rax, r14
shr rax, 6
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x60]
call sym._ZN87__LT_chacha20..ChaChaCore_LT_R_GT__u20_as_u20_cipher..stream_core..StreamCipherCore_GT_20process_with_backend17hcec50ed3d
mov ebp, r14d
and ebp, 0x3f
je 0x1400154d7
mov rax, qword [0x1402e1030]
movzx eax, byte [rax]
cmp al, 1
jne 0x140015250
lea rcx, [rsp + 0xa0]
mov rdx, r12
call sym._ZN8chacha208backends4avx25inner17h3140bbdda67cf7c4E.llvm.10360624751807762928
jmp 0x1400153ec
movdqa xmm4, xmmword [rsp + 0xa0]
movdqa xmm2, xmmword [rsp + 0xb0]
movdqa xmm1, xmmword [rsp + 0xc0]
movdqa xmm0, xmmword [rsp + 0xd0]
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 0x140015290
paddd xmm7, xmm4
paddd xmm3, xmm2
paddd xmm8, xmm1
paddd xmm5, xmm0
movdqa xmmword [rsp + 0xe0], xmm7
movdqa xmmword [rsp + 0xf0], xmm3
movdqa xmmword [rsp + 0x100], xmm8
movdqa xmmword [rsp + 0x110], xmm5
movd eax, xmm0
inc eax
mov dword [rsp + 0xd0], eax
mov edx, r14d
and edx, 0x3fffc0
lea rax, [rsi + rdx]
cmp ebp, 8
jae 0x140015410
xor ecx, ecx
jmp 0x1400154c0
cmp ebp, 0x20
jae 0x140015419
xor ecx, ecx
jmp 0x140015482
mov r8d, r14d
and r8d, 0x1f
mov rcx, rbp
sub rcx, r8
add rdx, qword [rsp + 0x90]
xor r9d, r9d
nop word cs:[rax + rax]
movdqu xmm0, xmmword [rdx + r9 - 0x10]
movdqu xmm1, xmmword [rdx + r9]
pxor xmm0, xmmword [rsp + r9 + 0xe0]
pxor xmm1, xmmword [rsp + r9 + 0xf0]
movdqu xmmword [rdx + r9 - 0x10], xmm0
movdqu xmmword [rdx + r9], xmm1
add r9, 0x20
cmp rcx, r9
jne 0x140015440
test r8, r8
je 0x1400154d7
cmp r8d, 8
jb 0x1400154c0
mov rdx, rcx
mov r8d, r14d
and r8d, 7
mov rcx, rbp
sub rcx, r8
nop word cs:[rax + rax]
mov r9, qword [rsp + rdx + 0xe0]
xor qword [rax + rdx], r9
add rdx, 8
cmp rcx, rdx
jne 0x1400154a0
test r8, r8
je 0x1400154d7
nop word [rax + rax]
movzx edx, byte [rsp + rcx + 0xe0]
xor byte [rax + rcx], dl
lea rdx, [rcx + 1]
mov rcx, rdx
cmp rbp, rdx
jne 0x1400154c0
mov byte [rsp + 0x120], bpl
mov rax, qword [rbx]
mov rdi, qword [rbx + 0x10]
sub rax, rdi
cmp rax, r14
ja 0x140014f40
mov rcx, rbx
mov rdx, rsi
mov r8, r14
call sym.std::io::buffered::bufwriter::BufWriter_W_::write_all_cold::ha240bc16d9f450f0
test rax, rax
je 0x140014f59
mov rbx, rax
mov qword [rsp + 0x60], rax
mov rax, qword [0x14050df18]
movzx eax, byte [rax]
mov ecx, 8
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400155de
mov rdi, rax
mov qword [rax], rbx
lea rbx, sym.core::ptr::drop_in_place_std::io::error::Error_::h10f50175a72312bc
jmp 0x14001556a
lea rbx, sym.core::ptr::drop_in_place_crypto_common::InvalidLength_::h07134afb803b28f3
mov edi, 1
jmp 0x14001556a
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
call sym.core::ptr::drop_in_place_std::io::error::Error_::h10f50175a72312bc
xor edi, edi
mov edx, 0x200000
mov r8d, 1
mov rcx, rsi
call sym.__rust_dealloc
mov rax, rdi
mov rdx, rbx
movaps xmm6, xmmword [rsp + 0x150]
movaps xmm7, xmmword [rsp + 0x160]
movaps xmm8, xmmword [rsp + 0x170]
movaps xmm9, xmmword [rsp + 0x180]
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [0x140441ff8]
mov edx, 0x200000
mov rcx, r14
call sym.core::slice::index::slice_end_index_len_fail::ha4157f6c56c31a58
jmp 0x1400155ed
mov ecx, 1
mov edx, 0x200000
call sym.alloc::raw_vec::handle_error::hb4a2c97b2f2cc7c5
mov ecx, 8
mov edx, 8
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
ud2