Function at 0x140066d90
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
sub rsp, 0x88
test r8b, 1
jne 0x140067093
mov ecx, dword [rdx]
mov r9d, dword [rdx + 4]
mov r10d, dword [rdx + 8]
mov r11d, dword [rdx + 0xc]
mov qword [rax - 8], rbx
mov ebx, dword [rdx + 0x10]
mov qword [rax - 0x10], rbp
mov ebp, dword [rdx + 0x28]
mov qword [rax - 0x18], rsi
mov esi, dword [rdx + 0x18]
mov qword [rax - 0x20], rdi
mov edi, dword [rdx + 0x14]
mov qword [rax - 0x28], r12
mov r12d, dword [rdx + 0x24]
mov qword [rax - 0x30], r13
mov r13d, dword [rdx + 0x2c]
mov qword [rax - 0x38], r14
mov r14d, dword [rdx + 0x1c]
mov qword [rax - 0x40], r15
mov eax, dword [rdx + 0x30]
mov r15d, dword [rdx + 0x20]
mov dword [rsp + 0x38], eax
mov eax, dword [rdx + 0x34]
mov dword [rsp + 0xa8], eax
mov eax, dword [rdx + 0x38]
mov dword [rsp + 0x30], eax
mov eax, dword [rdx + 0x3c]
shr r8, 1
mov dword [rsp + 0x34], eax
mov qword [rsp + 0xa0], r8
je 0x140066fb8
mov edx, dword [rsp + 0x38]
nop word [rax + rax]
mov r8d, dword [rsp + 0x34]
lea eax, [rdx + rcx]
rol eax, 7
xor ebx, eax
lea eax, [rbx + rcx]
rol eax, 9
xor r15d, eax
lea eax, [r15 + rbx]
rol eax, 0xd
xor edx, eax
lea eax, [rdx + r15]
ror eax, 0xe
xor ecx, eax
lea eax, [rdi + r9]
rol eax, 7
xor r12d, eax
lea eax, [r12 + rdi]
rol eax, 9
xor dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0xa8]
add eax, r12d
rol eax, 0xd
xor r9d, eax
mov eax, dword [rsp + 0xa8]
add eax, r9d
ror eax, 0xe
xor edi, eax
lea eax, [rsi + rbp]
rol eax, 7
xor dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add eax, ebp
rol eax, 9
xor r10d, eax
mov eax, dword [rsp + 0x30]
add eax, r10d
rol eax, 0xd
xor esi, eax
lea eax, [rsi + r10]
ror eax, 0xe
xor ebp, eax
lea eax, [r8 + r13]
rol eax, 7
xor r11d, eax
lea eax, [r8 + r11]
rol eax, 9
xor r14d, eax
lea eax, [r14 + r11]
rol eax, 0xd
xor r13d, eax
lea eax, [r14 + r13]
ror eax, 0xe
xor r8d, eax
lea eax, [r11 + rcx]
rol eax, 7
xor r9d, eax
mov dword [rsp + 0x34], r8d
lea eax, [r9 + rcx]
rol eax, 9
xor r10d, eax
lea eax, [r10 + r9]
rol eax, 0xd
xor r11d, eax
lea eax, [r11 + r10]
ror eax, 0xe
xor ecx, eax
lea eax, [rdi + rbx]
rol eax, 7
xor esi, eax
lea eax, [rsi + rdi]
rol eax, 9
xor r14d, eax
lea eax, [r14 + rsi]
rol eax, 0xd
xor ebx, eax
lea eax, [r14 + rbx]
ror eax, 0xe
xor edi, eax
lea eax, [r12 + rbp]
rol eax, 7
xor r13d, eax
mov eax, r13d
add eax, ebp
rol eax, 9
xor r15d, eax
lea eax, [r15 + r13]
rol eax, 0xd
xor r12d, eax
lea eax, [r12 + r15]
ror eax, 0xe
xor ebp, eax
mov eax, dword [rsp + 0x30]
add eax, r8d
rol eax, 7
xor edx, eax
lea eax, [r8 + rdx]
mov r8d, dword [rsp + 0x30]
rol eax, 9
xor dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0xa8]
add eax, edx
rol eax, 0xd
xor r8d, eax
mov eax, dword [rsp + 0xa8]
add eax, r8d
mov dword [rsp + 0x30], r8d
ror eax, 0xe
xor dword [rsp + 0x34], eax
sub qword [rsp + 0xa0], 1
jne 0x140066e30
mov dword [rsp + 0x38], edx
mov rdx, qword [rsp + 0x98]
mov eax, dword [rdx]
mov r8, qword [rsp + 0x90]
add eax, ecx
mov dword [r8], eax
mov ecx, dword [rdx + 4]
add ecx, r9d
mov dword [r8 + 4], ecx
mov ecx, dword [rdx + 8]
add ecx, r10d
mov dword [r8 + 8], ecx
mov ecx, dword [rdx + 0xc]
add ecx, r11d
mov dword [r8 + 0xc], ecx
mov ecx, dword [rdx + 0x10]
add ecx, ebx
mov rbx, qword [rsp + 0x80]
mov dword [r8 + 0x10], ecx
mov ecx, dword [rdx + 0x14]
add ecx, edi
mov rdi, qword [rsp + 0x68]
mov dword [r8 + 0x14], ecx
mov ecx, dword [rdx + 0x18]
add ecx, esi
mov rsi, qword [rsp + 0x70]
mov dword [r8 + 0x18], ecx
mov ecx, dword [rdx + 0x1c]
add ecx, r14d
mov r14, qword [rsp + 0x50]
mov dword [r8 + 0x1c], ecx
mov ecx, dword [rdx + 0x20]
add ecx, r15d
mov r15, qword [rsp + 0x48]
mov dword [r8 + 0x20], ecx
mov ecx, dword [rdx + 0x24]
add ecx, r12d
mov r12, qword [rsp + 0x60]
mov dword [r8 + 0x24], ecx
mov ecx, dword [rdx + 0x28]
add ecx, ebp
mov rbp, qword [rsp + 0x78]
mov dword [r8 + 0x28], ecx
mov ecx, dword [rdx + 0x2c]
add ecx, r13d
mov r13, qword [rsp + 0x58]
mov dword [r8 + 0x2c], ecx
mov ecx, dword [rsp + 0x38]
add ecx, dword [rdx + 0x30]
mov dword [r8 + 0x30], ecx
mov ecx, dword [rsp + 0xa8]
add ecx, dword [rdx + 0x34]
mov dword [r8 + 0x34], ecx
mov ecx, dword [rsp + 0x30]
add ecx, dword [rdx + 0x38]
mov dword [r8 + 0x38], ecx
mov ecx, dword [rsp + 0x34]
add ecx, dword [rdx + 0x3c]
mov dword [r8 + 0x3c], ecx
add rsp, 0x88
ret
lea r9, str.src_lib_stream_salsa20_salsa20.cpp
mov dword [rsp + 0x20], 0x3f
lea r8, str.salsa_core
lea rdx, [0x1401af08d]
lea rcx, str.rounds___2__0
call fcn.14006e610
int3