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

Disassembly:
lea r12, [rsp - 0x68]
cmp r12, qword [r14 + 0x10]
jbe 0x4b0d32
sub rsp, 0xe8
mov qword [rsp + 0xe0], rbp
lea rbp, [rsp + 0xe0]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x110], rsi
cmp rcx, r8
jne 0x4b0d1e
nop
test rcx, 0x3f
jne 0x4b0d1e
mov qword [rsp + 0x100], rcx
mov edx, dword [rax]
mov dword [rsp + 0x48], edx
mov r10d, dword [rax + 4]
mov r11d, dword [rax + 8]
mov r12d, dword [rax + 0xc]
mov dword [rsp + 0x3c], r12d
mov r13d, dword [rax + 0x10]
mov dword [rsp + 0x38], r13d
mov r15d, dword [rax + 0x14]
mov dword [rsp + 0x34], r15d
mov r13d, dword [rax + 0x18]
mov edx, dword [rax + 0x1c]
mov dword [rsp + 0x58], edx
mov edx, dword [rax + 0x24]
mov dword [rsp + 0x54], edx
mov r12d, dword [rax + 0x28]
mov dword [rsp + 0x50], r12d
mov ecx, dword [rax + 0x2c]
mov dword [rsp + 0x4c], ecx
cmp byte [rax + 0x79], 0
jne 0x4b077a
mov qword [rsp + 0xf8], rbx
lea ebx, [r10 + 0x3320646e]
xor edx, ebx
rol edx, 0x10
add r15d, edx
mov dword [rsp + 0x70], r15d
xor r15d, r10d
rol r15d, 0xc
add ebx, r15d
mov dword [rax + 0x7c], ebx
xor ebx, edx
rol ebx, 8
mov edx, dword [rsp + 0x70]
add edx, ebx
xor r15d, edx
rol r15d, 7
mov dword [rax + 0x80], r15d
mov dword [rax + 0x84], edx
mov dword [rax + 0x88], ebx
lea edx, [r11 + 0x79622d32]
xor r12d, edx
rol r12d, 0x10
lea r15d, [r13 + r12]
mov dword [rsp + 0x6c], r15d
xor r15d, r11d
rol r15d, 0xc
add edx, r15d
mov dword [rax + 0x8c], edx
xor edx, r12d
rol edx, 8
mov r12d, dword [rsp + 0x6c]
add r12d, edx
xor r15d, r12d
rol r15d, 7
mov dword [rax + 0x90], r15d
mov dword [rax + 0x94], r12d
mov dword [rax + 0x98], edx
mov edx, dword [rsp + 0x3c]
lea r12d, [rdx + 0x6b206574]
xor ecx, r12d
rol ecx, 0x10
mov r15d, dword [rsp + 0x58]
lea ebx, [r15 + rcx]
mov dword [rsp + 0x68], ebx
xor ebx, edx
rol ebx, 0xc
add r12d, ebx
mov dword [rax + 0x9c], r12d
xor r12d, ecx
rol r12d, 8
mov ecx, dword [rsp + 0x68]
add ecx, r12d
xor ebx, ecx
rol ebx, 7
mov dword [rax + 0xa0], ebx
mov dword [rax + 0xa4], ecx
mov dword [rax + 0xa8], r12d
mov byte [rax + 0x79], 1
mov ecx, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x54]
mov rbx, qword [rsp + 0xf8]
mov r12d, dword [rsp + 0x50]
mov r15d, dword [rsp + 0x34]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x44], r10d
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x5c], r13d
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xa8]
jmp 0x4b0990
mov dword [rsp + 0x24], edx
nop
add esi, 0x61707865
mov r12, qword [rsp + 0xd0]
xor esi, dword [r12]
mov rdx, qword [rsp + 0xd8]
mov dword [rdx], esi
nop
lea esi, [r9 + 0x3320646e]
xor esi, dword [r12 + 4]
mov dword [rdx + 4], esi
nop
mov esi, dword [rsp + 0x1c]
add esi, 0x79622d32
xor esi, dword [r12 + 8]
mov dword [rdx + 8], esi
nop
add ecx, 0x6b206574
xor ecx, dword [r12 + 0xc]
mov dword [rdx + 0xc], ecx
nop
mov ecx, dword [rsp + 0x48]
add eax, ecx
xor eax, dword [r12 + 0x10]
mov dword [rdx + 0x10], eax
nop
mov eax, dword [rsp + 0x44]
lea esi, [rax + rdi]
xor esi, dword [r12 + 0x14]
mov dword [rdx + 0x14], esi
nop
mov esi, dword [rsp + 0x14]
mov edi, dword [rsp + 0x40]
add esi, edi
xor esi, dword [r12 + 0x18]
mov dword [rdx + 0x18], esi
nop
mov esi, dword [rsp + 0x3c]
lea r9d, [rsi + r13]
xor r9d, dword [r12 + 0x1c]
mov dword [rdx + 0x1c], r9d
nop
mov r9d, dword [rsp + 0x38]
add r10d, r9d
xor r10d, dword [r12 + 0x20]
mov dword [rdx + 0x20], r10d
nop
mov r10d, dword [rsp + 0x34]
add ebx, r10d
xor ebx, dword [r12 + 0x24]
mov dword [rdx + 0x24], ebx
nop
mov r13d, dword [rsp + 0x5c]
lea ebx, [r13 + r8]
xor ebx, dword [r12 + 0x28]
mov dword [rdx + 0x28], ebx
nop
mov ebx, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x58]
add ebx, r8d
xor ebx, dword [r12 + 0x2c]
mov dword [rdx + 0x2c], ebx
mov rbx, qword [rsp + 0xf0]
mov r8d, dword [rbx + 0x20]
add r8d, r11d
xor r8d, dword [r12 + 0x30]
mov dword [rdx + 0x30], r8d
nop
mov r8d, dword [rsp + 0x54]
lea r11d, [r8 + r15]
xor r11d, dword [r12 + 0x34]
mov dword [rdx + 0x34], r11d
nop
mov r11d, dword [rsp + 0x24]
mov r15d, dword [rsp + 0x50]
add r11d, r15d
xor r11d, dword [r12 + 0x38]
mov dword [rdx + 0x38], r11d
nop
mov r11d, dword [rsp + 0x20]
mov r15d, dword [rsp + 0x4c]
add r11d, r15d
xor r11d, dword [r12 + 0x3c]
mov dword [rdx + 0x3c], r11d
inc dword [rbx + 0x20]
mov r11, qword [rsp + 0xb8]
add r11, 0xffffffffffffffc0
mov qword [rsp + 0xb8], r11
neg r11
sar r11, 0x3f
and r11d, 0x40
add r11, r12
mov r12, qword [rsp + 0xb0]
add r12, 0xffffffffffffffc0
mov r15, qword [rsp + 0xc0]
add r15, 0xffffffffffffffc0
mov qword [rsp + 0xc0], r15
neg r15
sar r15, 0x3f
and r15d, 0x40
add rdx, r15
mov r15, qword [rsp + 0xc8]
add r15, 0xffffffffffffffc0
mov rax, rbx
mov ecx, dword [rsp + 0x4c]
mov r10d, dword [rsp + 0x44]
mov rbx, rdx
mov rsi, r11
mov qword [rsp + 0xc8], r15
mov r8, r12
mov rdi, qword [rsp + 0xc0]
mov r9, qword [rsp + 0xb8]
mov edx, dword [rsp + 0x54]
mov r11d, dword [rsp + 0x40]
mov r12d, dword [rsp + 0x50]
mov r15d, dword [rsp + 0x34]
cmp r8, 0x40
jl 0x4b0b89
mov qword [rsp + 0xc0], rdi
mov rdi, qword [rsp + 0xc8]
cmp rdi, 0x40
jl 0x4b0b89
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xb8], r9
mov qword [rsp + 0xb0], r8
mov qword [rsp + 0xd0], rsi
nop
mov edi, dword [rax + 0x80]
mov r8d, dword [rax + 0x94]
mov r9d, dword [rax + 0x7c]
mov ecx, dword [rax + 0x90]
mov r12d, dword [rax + 0xa4]
mov edx, dword [rax + 0x8c]
mov r13d, dword [rax + 0xa0]
mov r15d, dword [rax + 0x88]
mov r11d, dword [rax + 0x9c]
mov dword [rsp + 0x7c], r11d
mov r10d, dword [rax + 0x84]
mov dword [rsp + 0x60], r10d
mov ebx, dword [rax + 0x98]
mov dword [rsp + 0x2c], ebx
mov esi, dword [rsp + 0x48]
lea r10d, [rsi + 0x61707865]
mov dword [rsp + 0x84], r10d
xor r10d, dword [rax + 0x20]
rol r10d, 0x10
mov ebx, dword [rsp + 0x38]
add ebx, r10d
mov dword [rsp + 0x64], ebx
xor ebx, esi
rol ebx, 0xc
add esi, ebx
mov r11d, dword [rsp + 0x84]
add r11d, ebx
xor r11d, r10d
rol r11d, 8
mov r10d, dword [rsp + 0x64]
add r10d, r11d
xor ebx, r10d
rol ebx, 7
mov dword [rsp + 0x78], ebx
lea ebx, [rsi + 0x61707865]
add ebx, edi
add esi, edi
xor ebx, dword [rax + 0xa8]
rol ebx, 0x10
add r8d, ebx
xor edi, r8d
rol edi, 0xc
add esi, 0x61707865
add esi, edi
xor ebx, esi
rol ebx, 8
mov dword [rsp + 0x30], ebx
add r8d, ebx
xor edi, r8d
rol edi, 7
add r9d, ecx
xor r11d, r9d
rol r11d, 0x10
add r12d, r11d
xor ecx, r12d
rol ecx, 0xc
add r9d, ecx
xor r11d, r9d
rol r11d, 8
add r12d, r11d
xor ecx, r12d
rol ecx, 7
mov dword [rsp + 0x74], ecx
add edx, r13d
xor r15d, edx
rol r15d, 0x10
add r10d, r15d
xor r13d, r10d
rol r13d, 0xc
add edx, r13d
mov dword [rsp + 0x80], edx
xor r15d, edx
rol r15d, 8
add r10d, r15d
xor r13d, r10d
rol r13d, 7
mov eax, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x7c]
add ecx, eax
mov edx, dword [rsp + 0x2c]
xor edx, ecx
rol edx, 0x10
mov ebx, dword [rsp + 0x60]
add ebx, edx
xor eax, ebx
rol eax, 0xc
add ecx, eax
xor edx, ecx
rol edx, 8
add ebx, edx
xor eax, ebx
rol eax, 7
mov dword [rsp + 0xa0], eax
xor eax, eax
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x98], ecx
mov ecx, dword [rsp + 0x74]
mov dword [rsp + 0x14], ecx
mov eax, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0x98]
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x1c], eax
mov eax, dword [rsp + 0xa0]
jmp 0x4b0d02
mov rbp, qword [rsp + 0xe0]
add rsp, 0xe8
ret
inc r12
mov qword [rsp + 0x88], r12
nop
nop
nop
nop
nop
add esi, eax
xor r11d, esi
rol r11d, 0x10
add r10d, r11d
xor eax, r10d
rol eax, 0xc
add esi, eax
xor r11d, esi
rol r11d, 8
add r10d, r11d
xor eax, r10d
rol eax, 7
mov dword [rsp + 0x18], eax
add r9d, edi
xor r15d, r9d
rol r15d, 0x10
add ebx, r15d
xor edi, ebx
rol edi, 0xc
add r9d, edi
xor r15d, r9d
rol r15d, 8
add ebx, r15d
mov dword [rsp + 0x10], ebx
xor edi, ebx
rol edi, 7
mov r12d, dword [rsp + 0x14]
mov ebx, dword [rsp + 0x1c]
add ebx, r12d
xor edx, ebx
rol edx, 0x10
add r8d, edx
xor r12d, r8d
rol r12d, 0xc
add ebx, r12d
xor edx, ebx
rol edx, 8
mov dword [rsp + 0x24], edx
add r8d, edx
xor r12d, r8d
rol r12d, 7
add ecx, r13d
mov edx, dword [rsp + 0x20]
xor edx, ecx
rol edx, 0x10
mov eax, dword [rsp + 0x28]
add eax, edx
xor r13d, eax
rol r13d, 0xc
add ecx, r13d
xor edx, ecx
rol edx, 8
add eax, edx
xor r13d, eax
rol r13d, 7
add esi, edi
xor edx, esi
rol edx, 0x10
add r8d, edx
xor edi, r8d
rol edi, 0xc
add esi, edi
xor edx, esi
rol edx, 8
mov dword [rsp + 0x20], edx
add r8d, edx
xor edi, r8d
rol edi, 7
add r9d, r12d
xor r11d, r9d
rol r11d, 0x10
add eax, r11d
xor r12d, eax
rol r12d, 0xc
add r9d, r12d
xor r11d, r9d
rol r11d, 8
add eax, r11d
mov dword [rsp + 0x28], eax
xor r12d, eax
rol r12d, 7
add ebx, r13d
xor r15d, ebx
rol r15d, 0x10
add r10d, r15d
xor r13d, r10d
rol r13d, 0xc
add ebx, r13d
mov dword [rsp + 0x1c], ebx
xor r15d, ebx
rol r15d, 8
add r10d, r15d
xor r13d, r10d
rol r13d, 7
mov eax, dword [rsp + 0x18]
add ecx, eax
mov edx, dword [rsp + 0x24]
xor edx, ecx
rol edx, 0x10
mov ebx, dword [rsp + 0x10]
add ebx, edx
xor eax, ebx
rol eax, 0xc
add ecx, eax
xor edx, ecx
rol edx, 8
add ebx, edx
xor eax, ebx
rol eax, 7
mov dword [rsp + 0x14], r12d
mov r12d, dword [rsp + 0x28]
mov dword [rsp + 0x28], r12d
mov r12, qword [rsp + 0x88]
cmp r12, 9
jl 0x4b0b99
jmp 0x4b07b6
lea rax, [0x00518c40]
lea rbx, [0x00573ce0]
call fcn.00435920
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
call fcn.00461980
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
nop dword [rax]
jmp fcn.004b05c0