Function at 0x18001f370
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov esi, dword [rbp + 0x50]
mov r12, r9
mov rbx, r8
mov rdi, rdx
mov r15, rcx
lea r14d, [rsi - 0xf]
cmp esi, r14d
jbe case.0x18001f3dd.0
add esi, 0xffffff3e
lea r13, [0x180000000]
nop dword [rax + rax]
cmp esi, 0x26
ja case.0x18001f3dd.15
movzx eax, byte [rsi + r13 + 0x1f804]
mov ecx, dword [r13 + rax*4 + 0x1f7c4]
add rcx, r13
jmp rcx
mov r8d, 4
mov byte [rbp + 0x30], 0
lea rdx, [0x1800f6c3b]
lea rcx, [rbp + 0x30]
call fcn.1800ce2d0
mov byte [rbp + 0x34], 0x6c
jmp case.0x18001f3dd.15
mov qword [rsp + 0x38], 0
lea rax, [rdi + 0x18]
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xa6
call fcn.180011e50
xor ecx, ecx
mov dword [rbx + 0x28], eax
mov qword [rsp + 0x38], rcx
lea rax, [rdi + 0x1c]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov ecx, 0xa6
mov qword [rsp + 0x20], rax
xor edx, edx
call fcn.180011e50
mov dword [rbx + 0x2c], eax
jmp case.0x18001f3dd.15
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x20], rax
setne byte [rbp - 0x30]
jmp case.0x18001f3dd.15
mov r8d, 3
lea rdx, str.SystemRoot_1
lea rcx, [rbp - 0x19]
call fcn.1800ce510
mov r8d, 3
mov byte [rbp - 0x16], 0
lea rdx, [0x1800f6c7c]
lea rcx, [rbp - 0x16]
call fcn.1800ce510
mov eax, 0x6e49
mov word [rbp - 0x13], ax
jmp case.0x18001f3dd.15
mov byte [rbp - 0x19], 0
jmp case.0x18001f3dd.15
mov dword [rbx + 8], 0x79622d32
mov dword [rbx + 0xc], 0x6b206574
jmp case.0x18001f3dd.15
mov dword [rbx], 0x61707865
mov dword [rbx + 4], 0x3320646e
jmp case.0x18001f3dd.15
mov qword [rsp + 0x38], 0
xor r9d, r9d
mov qword [rsp + 0x30], 0
xor r8d, r8d
mov qword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0xa6
mov qword [rsp + 0x20], rdi
call fcn.180011e50
xor ecx, ecx
mov dword [rbx + 0x10], eax
mov qword [rsp + 0x38], rcx
lea rax, [rdi + 4]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov ecx, 0xa6
mov qword [rsp + 0x20], rax
xor edx, edx
call fcn.180011e50
xor ecx, ecx
mov dword [rbx + 0x14], eax
mov qword [rsp + 0x38], rcx
lea rax, [rdi + 8]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov ecx, 0xa6
mov qword [rsp + 0x20], rax
xor edx, edx
call fcn.180011e50
xor ecx, ecx
mov dword [rbx + 0x18], eax
mov qword [rsp + 0x38], rcx
lea rax, [rdi + 0xc]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov ecx, 0xa6
mov qword [rsp + 0x20], rax
xor edx, edx
call fcn.180011e50
mov dword [rbx + 0x1c], eax
jmp case.0x18001f3dd.15
movzx eax, word [0x1800f6cdf]
lea rdx, [0x1800f6d1e]
mov word [rbp - 0x11], ax
lea rcx, [rbp - 0x20]
movzx eax, byte [0x1800f6ce1]
mov r8d, 5
mov byte [rbp - 0xf], al
mov byte [rbp - 0xe], 0
call fcn.1800ce2d0
jmp case.0x18001f3dd.15
mov byte [rbp + 0x35], 0
jmp case.0x18001f3dd.15
mov word [rbp - 9], 0x6e
jmp case.0x18001f3dd.15
mov qword [rsp + 0x38], 0
lea rax, [rdi + 0x10]
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xa6
call fcn.180011e50
xor ecx, ecx
mov dword [rbx + 0x20], eax
mov qword [rsp + 0x38], rcx
lea rax, [rdi + 0x14]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov ecx, 0xa6
mov qword [rsp + 0x20], rax
xor edx, edx
call fcn.180011e50
mov dword [rbx + 0x24], eax
jmp case.0x18001f3dd.15
mov r8d, 3
mov byte [rbp - 0x20], 0
lea rdx, [0x1800f6d37]
lea rcx, [rbp - 0x20]
call fcn.1800ce2d0
mov dword [rbp - 0x1d], 0x79726575
dec esi
lea eax, [rsi + 0xc2]
cmp eax, r14d
ja 0x18001f3c0
jmp case.0x18001f3dd.0
cmp dword [r12], 0
je 0x18001f733
mov ecx, 0x14
nop
cmp ecx, 0x14
je 0x18001f70b
cmp ecx, 0xbf
je 0x18001f6f1
cmp ecx, 0x16a
je 0x18001f6e7
cmp ecx, 0x215
jne 0x18001f723
movzx eax, word [rbx + 2]
mov word [rbp - 0x30], ax
jmp 0x18001f723
movzx eax, word [rbx + 6]
mov word [rbp - 0x2e], ax
jmp 0x18001f723
movzx eax, word [rdi + 2]
mov word [rbp - 0x28], ax
movzx eax, word [rbx + 0xe]
mov word [rbp - 0x2a], ax
movzx eax, word [rbx + 0xa]
mov word [rbp - 0x2c], ax
jmp 0x18001f723
movzx eax, word [rdi + 0xe]
mov word [rbp - 0x22], ax
movzx eax, word [rdi + 0xa]
mov word [rbp - 0x24], ax
movzx eax, word [rdi + 6]
mov word [rbp - 0x26], ax
add ecx, 0xab
cmp ecx, 0x2c0
jb 0x18001f6c0
jmp case.0x18001f3dd.0
mov ecx, 0x4c
mov eax, ecx
sub eax, 0x49
je 0x18001f78b
sub eax, 1
je 0x18001f771
sub eax, 1
je 0x18001f768
cmp eax, 1
jne 0x18001f792
movzx eax, word [rbx + 0xc]
mov word [rbp - 0x22], ax
movzx eax, word [rbx + 8]
mov word [rbp - 0x24], ax
movzx eax, word [rbx + 4]
mov word [rbp - 0x26], ax
jmp 0x18001f792
movzx eax, word [rbx]
mov word [rbp - 0x28], ax
jmp 0x18001f792
movzx eax, word [rdi + 0xc]
mov word [rbp - 0x2a], ax
movzx eax, word [rdi + 8]
mov word [rbp - 0x2c], ax
movzx eax, word [rdi + 4]
mov word [rbp - 0x2e], ax
jmp 0x18001f792
movzx eax, word [rdi]
mov word [rbp - 0x30], ax
dec ecx
cmp ecx, 0x48
ja 0x18001f738
movups xmm0, xmmword [rbp - 0x30]
lea r11, [rsp + 0x70]
mov rax, r15
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movups xmmword [r15], xmm0
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret