Function at 0x140065ac0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
sub rsp, 0x70
mov rbp, r8
mov r10, rcx
test r8b, 1
jne 0x140065d5c
shr rbp, 1
mov ecx, dword [rdx + 0x18]
mov r9d, dword [rdx + 0x10]
mov r8d, dword [rdx + 0x28]
mov r11d, dword [rdx + 0x30]
mov qword [rax + 0x10], rbx
mov ebx, dword [rdx + 0x34]
mov qword [rax - 0x10], rsi
mov esi, dword [rdx + 0x3c]
mov qword [rax - 0x18], rdi
mov edi, dword [rdx + 0x38]
mov qword [rax - 0x20], r12
mov r12d, dword [rdx + 8]
mov qword [rax - 0x28], r13
mov r13d, dword [rdx + 0xc]
mov qword [rax - 0x30], r14
mov r14d, dword [rdx]
mov qword [rax - 0x38], r15
mov eax, dword [rdx + 0x14]
mov r15d, dword [rdx + 4]
mov dword [rsp + 0x34], eax
mov eax, dword [rdx + 0x1c]
mov dword [rsp + 0x30], eax
mov eax, dword [rdx + 0x20]
mov dword [rsp + 0x90], eax
mov eax, dword [rdx + 0x2c]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rdx + 0x24]
mov dword [rsp + 0x98], eax
je 0x140065d11
mov r10d, dword [rsp + 0x90]
nop dword [rax]
add r15d, dword [rsp + 0x34]
add r14d, r9d
add r12d, dword [rsp + 0x38]
xor r11d, r14d
add r13d, dword [rsp + 0x30]
xor ebx, r15d
xor esi, r13d
rol r11d, 0x10
add r10d, r11d
rol esi, 0x10
xor edi, r12d
rol ebx, 0x10
add ecx, ebx
rol edi, 0x10
add r8d, edi
mov eax, r10d
xor eax, r9d
rol eax, 0xc
add r14d, eax
xor r11d, r14d
rol r11d, 8
add r10d, r11d
mov r9d, r10d
xor r9d, eax
mov eax, ecx
xor eax, dword [rsp + 0x34]
rol eax, 0xc
add r15d, eax
rol r9d, 7
xor ebx, r15d
rol ebx, 8
add ecx, ebx
mov dword [rsp + 0x3c], ecx
xor ecx, eax
rol ecx, 7
mov eax, r8d
xor eax, dword [rsp + 0x38]
add r14d, ecx
rol eax, 0xc
add r12d, eax
xor edi, r12d
rol edi, 8
add r8d, edi
mov dword [rsp + 0x90], r8d
mov edx, r8d
mov r8d, dword [rsp + 0x98]
xor edx, eax
add r8d, esi
rol edx, 7
mov eax, r8d
add r15d, edx
xor eax, dword [rsp + 0x30]
xor r11d, r15d
rol eax, 0xc
add r13d, eax
rol r11d, 0x10
xor esi, r13d
rol esi, 8
add r8d, esi
xor esi, r14d
rol esi, 0x10
mov dword [rsp + 0x98], r8d
xor r8d, eax
mov eax, dword [rsp + 0x90]
add eax, esi
rol r8d, 7
mov dword [rsp + 0x90], eax
xor eax, ecx
mov ecx, dword [rsp + 0x90]
rol eax, 0xc
add r14d, eax
xor esi, r14d
rol esi, 8
add ecx, esi
mov dword [rsp + 0x90], ecx
xor ecx, eax
rol ecx, 7
mov dword [rsp + 0x34], ecx
mov ecx, dword [rsp + 0x98]
add ecx, r11d
mov eax, ecx
xor eax, edx
add r13d, r9d
rol eax, 0xc
xor edi, r13d
add r15d, eax
rol edi, 0x10
add r12d, r8d
xor r11d, r15d
xor ebx, r12d
rol r11d, 8
add ecx, r11d
rol ebx, 0x10
mov dword [rsp + 0x98], ecx
add r10d, ebx
xor ecx, eax
mov eax, r10d
rol ecx, 7
xor eax, r8d
mov r8d, dword [rsp + 0x90]
rol eax, 0xc
mov dword [rsp + 0x38], ecx
add r12d, eax
xor ebx, r12d
rol ebx, 8
add r10d, ebx
mov ecx, r10d
xor ecx, eax
rol ecx, 7
mov dword [rsp + 0x30], ecx
mov ecx, dword [rsp + 0x3c]
add ecx, edi
mov eax, ecx
xor eax, r9d
rol eax, 0xc
add r13d, eax
xor edi, r13d
rol edi, 8
add ecx, edi
mov r9d, ecx
xor r9d, eax
rol r9d, 7
sub rbp, 1
jne 0x140065b60
mov r10, qword [rsp + 0x80]
mov dword [r10], r14d
mov r14, qword [rsp + 0x48]
mov dword [r10 + 4], r15d
mov r15, qword [rsp + 0x40]
mov dword [r10 + 8], r12d
mov r12, qword [rsp + 0x58]
mov dword [r10 + 0xc], r13d
mov r13, qword [rsp + 0x50]
mov dword [r10 + 0x14], ebx
mov rbx, qword [rsp + 0x88]
mov dword [r10 + 0x18], edi
mov rdi, qword [rsp + 0x60]
mov dword [r10 + 0x1c], esi
mov rsi, qword [rsp + 0x68]
mov dword [r10 + 0x10], r11d
add rsp, 0x70
pop rbp
ret
lea r9, str.src_lib_stream_chacha_chacha.cpp
mov dword [rsp + 0x20], Ordinal_33
lea r8, str.hchacha
lea rdx, str.Valid_rounds
lea rcx, str.rounds___2__0
call fcn.14006e610
int3