Function at 0x140003720
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha
Resolve function by parsing pe exports

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 qword [rsp + 0x128], r9
mov qword [rsp + 0x120], r8
mov r15, rdx
mov r12, rcx
mov ecx, 0x200000
mov edx, 1
call sym.__rust_alloc_zeroed
test rax, rax
je 0x1400042db
mov rsi, rax
lea r13, [rsp + 0x60]
lea rax, [r12 + 0x10]
mov qword [rsp + 0xc8], rax
lea rax, [r12 + 0x28]
mov qword [rsp + 0xc0], rax
lea rax, [rsi + 0x10]
mov qword [rsp + 0x118], rax
xorps xmm6, xmm6
jmp 0x140003a00
mov rcx, qword [r15]
add rcx, rdi
mov rdx, rsi
mov r8, rbx
call sym.memcpy
add rdi, rbx
mov qword [r15 + 0x10], rdi
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x61], 0
mov byte [rsp + 0x62], 0
mov byte [rsp + 0x63], 0
mov byte [rsp + 0x64], 0
mov byte [rsp + 0x65], 0
mov byte [rsp + 0x66], 0
mov byte [rsp + 0x67], 0
mov byte [rsp + 0x68], 0
mov byte [rsp + 0x69], 0
mov byte [rsp + 0x6a], 0
mov byte [rsp + 0x6b], 0
mov byte [rsp + 0x6c], 0
mov byte [rsp + 0x6d], 0
mov byte [rsp + 0x6e], 0
mov byte [rsp + 0x6f], 0
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0
mov byte [rsp + 0x73], 0
mov byte [rsp + 0x74], 0
mov byte [rsp + 0x75], 0
mov byte [rsp + 0x76], 0
mov byte [rsp + 0x77], 0
mov byte [rsp + 0x78], 0
mov byte [rsp + 0x79], 0
mov byte [rsp + 0x7a], 0
mov byte [rsp + 0x7b], 0
mov byte [rsp + 0x7c], 0
mov byte [rsp + 0x7d], 0
mov byte [rsp + 0x7e], 0
mov byte [rsp + 0x7f], 0
mov byte [rsp + 0x80], 0
mov byte [rsp + 0x81], 0
mov byte [rsp + 0x82], 0
mov byte [rsp + 0x83], 0
mov byte [rsp + 0x84], 0
mov byte [rsp + 0x85], 0
mov byte [rsp + 0x86], 0
mov byte [rsp + 0x87], 0
mov byte [rsp + 0x88], 0
mov byte [rsp + 0x89], 0
mov byte [rsp + 0x8a], 0
mov byte [rsp + 0x8b], 0
mov byte [rsp + 0x8c], 0
mov byte [rsp + 0x8d], 0
mov byte [rsp + 0x8e], 0
mov byte [rsp + 0x8f], 0
mov byte [rsp + 0x90], 0
mov byte [rsp + 0x91], 0
mov byte [rsp + 0x92], 0
mov byte [rsp + 0x93], 0
mov byte [rsp + 0x94], 0
mov byte [rsp + 0x95], 0
mov byte [rsp + 0x96], 0
mov byte [rsp + 0x97], 0
mov byte [rsp + 0x98], 0
mov byte [rsp + 0x99], 0
mov byte [rsp + 0x9a], 0
mov byte [rsp + 0x9b], 0
mov byte [rsp + 0x9c], 0
mov byte [rsp + 0x9d], 0
mov byte [rsp + 0x9e], 0
mov byte [rsp + 0x9f], 0
mov byte [rsp + 0xa0], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x5c], 0
mov rax, qword [r12 + 8]
mov r14, qword [r12 + 0x10]
mov rdi, qword [r12 + 0x18]
cmp r14, rdi
jne 0x140003a70
cmp rax, 0x200001
jae 0x140003a70
mov rax, qword [rsp + 0xc8]
movups xmmword [rax], xmm6
mov r9d, 0x200000
lea rcx, [rsp + 0xb0]
mov rdx, qword [rsp + 0xc0]
mov r8, rsi
call sym.std::sys::windows::fs::File::read::he39721b97e39f583
cmp qword [rsp + 0xb0], 0
jne 0x14000421f
mov rbx, qword [rsp + 0xb8]
test rbx, rbx
jne 0x140003b50
jmp 0x140004274
mov rbp, qword [r12]
cmp r14, rdi
jb 0x140003ad3
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov rax, qword [r12 + 0x20]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0xc0]
lea rdx, [rsp + 0x20]
xor r8d, r8d
call sym.std::sys::windows::fs::File::read_buf::h41d91becfe28409c
mov rbx, rax
test rax, rax
jne 0x140004209
mov qword [r12 + 0x10], 0
mov rdi, qword [rsp + 0x30]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r12 + 0x18], xmm0
xor r14d, r14d
mov rbx, rdi
sub rbx, r14
test rbp, rbp
je 0x140004209
add rbp, r14
cmp rbx, 0x200000
mov eax, 0x200000
cmovae rbx, rax
cmp rbx, 1
jne 0x140003b10
movzx eax, byte [rbp]
mov byte [rsi], al
jmp 0x140003b1e
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
call sym.memcpy
add r14, rbx
cmp r14, rdi
cmovae r14, rdi
mov rax, qword [rsp + 0xc8]
mov qword [rax], r14
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xb0], 0
test rbx, rbx
je 0x140004274
cmp qword [rsp + 0x128], 0x20
jne 0x1400041fb
movups xmm0, xmmword [0x1401ed0d8]
movaps xmmword [rsp + 0xe0], xmm0
mov rax, qword [rsp + 0x120]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rsp + 0xf0]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov rcx, qword [rsp + 0x200]
mov rax, qword [rcx]
mov qword [rsp + 0xd0], rax
mov eax, dword [rcx + 8]
mov dword [rsp + 0xd8], eax
mov rax, qword [0x1401ec030]
movzx eax, byte [rax]
cmp al, 0xff
jne 0x140003c1e
lea rcx, [rsp + 0x130]
mov edx, 1
call sym.chacha20::avx2_cpuid::init_get::cpuid::h278e717ef039d452
lea rcx, [rsp + 0x140]
mov edx, 7
xor r8d, r8d
call sym.chacha20::avx2_cpuid::init_get::cpuid_count::h2f1dec1b862caf29
mov edi, dword [rsp + 0x138]
mov ebp, dword [rsp + 0x144]
mov eax, edi
not eax
test eax, 0xc000000
jne 0x140003c05
call fcn.140001e30
not eax
test al, 6
sete al
jmp 0x140003c07
xor eax, eax
shr bpl, 5
and bpl, al
shr edi, 0x1c
and dil, bpl
mov rax, qword [0x1401ec030]
mov byte [rax], dil
movdqa xmm0, xmmword [rsp + 0xe0]
movdqa xmm1, xmmword [rsp + 0xf0]
movdqa xmm2, xmmword [rsp + 0x100]
movdqa xmmword [rsp + 0x40], xmm2
movdqa xmmword [rsp + 0x30], xmm1
movdqa xmmword [rsp + 0x20], xmm0
mov eax, dword [rsp + 0xd8]
mov dword [r13 - 4], eax
mov rax, qword [rsp + 0xd0]
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 + 0xe2]
mov byte [r13 + 0x43], al
movzx eax, word [rsp + 0xe0]
mov word [r13 + 0x41], ax
mov dword [rsp + 0x50], 0
mov byte [rsp + 0xa0], 0
cmp rbx, 0x200001
jae 0x1400042c5
mov rax, rbx
shr rax, 6
mov qword [rsp + 0xe0], rsi
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0xe0]
call sym._ZN87__LT_chacha20..ChaChaCore_LT_R_GT__u20_as_u20_cipher..stream_core..StreamCipherCore_GT_20process_with_backend17h7ee46632e
mov ebp, ebx
and ebp, 0x3f
je 0x140003f64
mov rax, qword [0x1401ec030]
movzx eax, byte [rax]
cmp al, 1
jne 0x140003d10
lea rcx, [rsp + 0x20]
mov rdx, r13
call sym._ZN8chacha208backends4avx25inner17h8dd507dae886c24aE.llvm.13831561135636890148
jmp 0x140003e93
movdqa xmm4, xmmword [rsp + 0x20]
movdqa xmm2, xmmword [rsp + 0x30]
movdqa xmm1, xmmword [rsp + 0x40]
movdqa xmm0, xmmword [rsp + 0x50]
mov eax, 0xa
movdqa xmm7, xmm4
movdqa xmm3, xmm2
movdqa xmm5, xmm0
movdqa xmm8, xmm1
nop
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 0x140003d40
paddd xmm7, xmm4
paddd xmm3, xmm2
paddd xmm8, xmm1
paddd xmm5, xmm0
movdqa xmmword [rsp + 0x60], xmm7
movdqa xmmword [rsp + 0x70], xmm3
movdqa xmmword [rsp + 0x80], xmm8
movdqa xmmword [rsp + 0x90], xmm5
movd eax, xmm0
inc eax
mov dword [rsp + 0x50], eax
mov rdx, rbx
and rdx, 0xffffffffffffffc0
lea rax, [rsi + rdx]
cmp ebp, 8
jae 0x140003eb0
xor ecx, ecx
jmp 0x140003f50
cmp ebp, 0x20
jae 0x140003eb9
xor ecx, ecx
jmp 0x140003f1c
mov r8d, ebx
and r8d, 0x1f
mov rcx, rbp
sub rcx, r8
add rdx, qword [rsp + 0x118]
xor r9d, r9d
nop word cs:[rax + rax]
movdqu xmm0, xmmword [rdx + r9 - 0x10]
movdqu xmm1, xmmword [rdx + r9]
pxor xmm0, xmmword [rsp + r9 + 0x60]
pxor xmm1, xmmword [rsp + r9 + 0x70]
movdqu xmmword [rdx + r9 - 0x10], xmm0
movdqu xmmword [rdx + r9], xmm1
add r9, 0x20
cmp rcx, r9
jne 0x140003ee0
test r8, r8
je 0x140003f64
cmp r8d, 8
jb 0x140003f50
mov rdx, rcx
mov r8d, ebx
and r8d, 7
mov rcx, rbp
sub rcx, r8
nop dword [rax]
mov r9, qword [rsp + rdx + 0x60]
xor qword [rax + rdx], r9
add rdx, 8
cmp rcx, rdx
jne 0x140003f30
test r8, r8
je 0x140003f64
nop word [rax + rax]
movzx edx, byte [rsp + rcx + 0x60]
xor byte [rax + rcx], dl
lea rdx, [rcx + 1]
mov rcx, rdx
cmp rbp, rdx
jne 0x140003f50
mov byte [rsp + 0xa0], bpl
mov rax, qword [r15 + 8]
mov rdi, qword [r15 + 0x10]
sub rax, rdi
cmp rax, rbx
ja 0x1400037c0
mov rcx, r15
mov rdx, rsi
mov r8, rbx
call sym.std::io::buffered::bufwriter::BufWriter_W_::write_all_cold::h030983a91b4887f2
mov rbp, rax
test rax, rax
je 0x1400037d8
mov qword [rsp + 0xe0], rbp
mov rax, qword [str.1__]
movzx eax, byte [rax]
mov ecx, 8
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400042ec
mov rdi, rax
mov qword [rax], rbp
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x61], 0
mov byte [rsp + 0x62], 0
mov byte [rsp + 0x63], 0
mov byte [rsp + 0x64], 0
mov byte [rsp + 0x65], 0
mov byte [rsp + 0x66], 0
mov byte [rsp + 0x67], 0
mov byte [rsp + 0x68], 0
mov byte [rsp + 0x69], 0
mov byte [rsp + 0x6a], 0
mov byte [rsp + 0x6b], 0
mov byte [rsp + 0x6c], 0
mov byte [rsp + 0x6d], 0
mov byte [rsp + 0x6e], 0
mov byte [rsp + 0x6f], 0
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0
mov byte [rsp + 0x73], 0
mov byte [rsp + 0x74], 0
mov byte [rsp + 0x75], 0
mov byte [rsp + 0x76], 0
mov byte [rsp + 0x77], 0
mov byte [rsp + 0x78], 0
mov byte [rsp + 0x79], 0
mov byte [rsp + 0x7a], 0
mov byte [rsp + 0x7b], 0
mov byte [rsp + 0x7c], 0
mov byte [rsp + 0x7d], 0
mov byte [rsp + 0x7e], 0
mov byte [rsp + 0x7f], 0
mov byte [rsp + 0x80], 0
mov byte [rsp + 0x81], 0
mov byte [rsp + 0x82], 0
mov byte [rsp + 0x83], 0
mov byte [rsp + 0x84], 0
mov byte [rsp + 0x85], 0
mov byte [rsp + 0x86], 0
mov byte [rsp + 0x87], 0
mov byte [rsp + 0x88], 0
mov byte [rsp + 0x89], 0
mov byte [rsp + 0x8a], 0
mov byte [rsp + 0x8b], 0
mov byte [rsp + 0x8c], 0
mov byte [rsp + 0x8d], 0
mov byte [rsp + 0x8e], 0
mov byte [rsp + 0x8f], 0
mov byte [rsp + 0x90], 0
mov byte [rsp + 0x91], 0
mov byte [rsp + 0x92], 0
mov byte [rsp + 0x93], 0
mov byte [rsp + 0x94], 0
mov byte [rsp + 0x95], 0
mov byte [rsp + 0x96], 0
mov byte [rsp + 0x97], 0
mov byte [rsp + 0x98], 0
mov byte [rsp + 0x99], 0
mov byte [rsp + 0x9a], 0
mov byte [rsp + 0x9b], 0
mov byte [rsp + 0x9c], 0
mov byte [rsp + 0x9d], 0
mov byte [rsp + 0x9e], 0
mov byte [rsp + 0x9f], 0
mov byte [rsp + 0xa0], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x5c], 0
lea rbx, sym.core::ptr::drop_in_place_std::io::error::Error_::h84854d6d06ccdfc3
jmp 0x140004276
mov edi, 1
lea rbx, sym.core::ptr::drop_in_place_crypto_common::InvalidLength_::h2b31d5f5e9d0aed8
jmp 0x140004276
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xb0], 1
jmp 0x140004227
mov rbx, qword [rsp + 0xb8]
mov eax, ebx
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x140004274
test rax, rax
je 0x140004274
lea r15, [rbx - 1]
mov r14, qword [rbx - 1]
mov rbx, qword [rbx + 7]
mov rcx, r14
call qword [rbx]
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140004261
mov r8, qword [rbx + 0x10]
mov rcx, r14
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, r15
call sym.__rust_dealloc
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, [0x1401ed918]
mov edx, 0x200000
mov rcx, rbx
call dbg.slice_end_index_len_fail
jmp 0x1400042fb
mov ecx, 1
mov edx, 0x200000
call dbg.handle_alloc_error
ud2
mov ecx, 8
mov edx, 8
call dbg.handle_alloc_error
ud2