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

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x599078
push rbp
mov rbp, rsp
sub rsp, 0x68
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0xa8], r9
cmp rsi, 0x20
jne 0x598d49
cmp r10, 0x10
jne 0x598d25
mov qword [rsp + 0xb8], r11
mov qword [rsp + 0xa8], r9
mov qword [rsp + 0xa0], r8
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x78], rax
mov rax, rdi
mov ebx, 4
mov rcx, r8
nop dword [rax + rax]
call fcn.00544bc0
mov dword [rsp + 0x54], eax
mov rdx, qword [rsp + 0x90]
lea rsi, [rdx + 4]
mov rcx, qword [rsp + 0xa0]
lea rdi, [rcx - 4]
mov ebx, 4
mov rax, rsi
mov rcx, rdi
call fcn.00544bc0
mov dword [rsp + 0x40], eax
mov rdx, qword [rsp + 0x90]
lea rsi, [rdx + 8]
mov rcx, qword [rsp + 0xa0]
lea rdi, [rcx - 8]
mov ebx, 4
mov rax, rsi
mov rcx, rdi
call fcn.00544bc0
mov dword [rsp + 0x5c], eax
mov rdx, qword [rsp + 0x90]
lea rsi, [rdx + 0xc]
mov rcx, qword [rsp + 0xa0]
lea rdi, [rcx - 0xc]
mov ebx, 4
mov rax, rsi
mov rcx, rdi
call fcn.00544bc0
mov dword [rsp + 0x3c], eax
mov rdx, qword [rsp + 0x90]
lea rsi, [rdx + 0x10]
mov rcx, qword [rsp + 0xa0]
lea rdi, [rcx - 0x10]
mov ebx, 4
mov rax, rsi
mov rcx, rdi
call fcn.00544bc0
mov dword [rsp + 0x20], eax
mov rdx, qword [rsp + 0x90]
lea rsi, [rdx + 0x14]
mov rcx, qword [rsp + 0xa0]
lea rdi, [rcx - 0x14]
mov ebx, 4
mov rax, rsi
mov rcx, rdi
nop dword [rax]
call fcn.00544bc0
mov dword [rsp + 0x50], eax
mov rdx, qword [rsp + 0x90]
lea rsi, [rdx + 0x18]
mov rcx, qword [rsp + 0xa0]
lea rdi, [rcx - 0x18]
mov ebx, 4
mov rax, rsi
mov rcx, rdi
call fcn.00544bc0
mov dword [rsp + 0x28], eax
mov rdx, qword [rsp + 0x90]
add rdx, 0x1c
mov rcx, qword [rsp + 0xa0]
add rcx, 0xffffffffffffffe4
mov ebx, 4
mov rax, rdx
call fcn.00544bc0
mov dword [rsp + 0x48], eax
mov ebx, 4
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xa8]
call fcn.00544bc0
mov dword [rsp + 0x38], eax
mov rdx, qword [rsp + 0xa8]
lea rsi, [rdx + 4]
mov rcx, qword [rsp + 0xb8]
lea rdi, [rcx - 4]
mov ebx, 4
mov rax, rsi
mov rcx, rdi
nop
call fcn.00544bc0
mov dword [rsp + 0x2c], eax
mov rdx, qword [rsp + 0xa8]
lea rsi, [rdx + 8]
mov rcx, qword [rsp + 0xb8]
lea rdi, [rcx - 8]
mov ebx, 4
mov rax, rsi
mov rcx, rdi
call fcn.00544bc0
mov dword [rsp + 0x34], eax
mov rdx, qword [rsp + 0xa8]
add rdx, 0xc
mov rcx, qword [rsp + 0xb8]
add rcx, 0xfffffffffffffff4
mov ebx, 4
mov rax, rdx
call fcn.00544bc0
xor ecx, ecx
mov edx, dword [rsp + 0x20]
mov ebx, dword [rsp + 0x54]
mov esi, dword [rsp + 0x50]
mov edi, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x28]
mov r9d, dword [rsp + 0x5c]
mov r10d, dword [rsp + 0x48]
mov r11d, dword [rsp + 0x3c]
mov r12d, 0x61707865
mov r13d, 0x3320646e
mov r15d, 0x79622d32
mov edx, 0x6b206574
mov dword [rsp + 0x24], edx
mov edx, dword [rsp + 0x20]
nop
jmp 0x598edf
lea rax, [0x006d7a81]
mov ebx, 0x24
call fcn.004855e0
xor ecx, ecx
mov rdi, rax
mov rsi, rbx
xor eax, eax
mov rbx, rcx
add rsp, 0x68
pop rbp
ret
lea rax, [0x006d6bf4]
mov ebx, 0x22
call fcn.004855e0
xor ecx, ecx
mov rdi, rax
mov rsi, rbx
xor eax, eax
mov rbx, rcx
add rsp, 0x68
pop rbp
ret
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x3c], r11d
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x5c], r9d
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x40], edi
mov eax, r12d
mov ecx, edx
mov edi, dword [rsp + 0x38]
call fcn.005977a0
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x54], ebx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x38], edi
mov eax, dword [rsp + 0x58]
mov ebx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x50]
mov edi, dword [rsp + 0x2c]
nop dword [rax]
call fcn.005977a0
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x2c], edi
mov eax, dword [rsp + 0x4c]
mov ebx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x28]
mov edi, dword [rsp + 0x34]
call fcn.005977a0
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x5c], ebx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x34], edi
mov eax, dword [rsp + 0x24]
mov ebx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x48]
mov edi, dword [rsp + 0x44]
call fcn.005977a0
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x3c], ebx
mov dword [rsp + 0x48], ecx
mov eax, dword [rsp + 0x30]
mov ebx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x28]
call fcn.005977a0
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x44], edi
mov eax, dword [rsp + 0x58]
mov ebx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x48]
mov edi, dword [rsp + 0x38]
call fcn.005977a0
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], ebx
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x38], edi
mov eax, dword [rsp + 0x4c]
mov ebx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x20]
mov edi, dword [rsp + 0x2c]
call fcn.005977a0
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x3c], ebx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x2c], edi
mov eax, dword [rsp + 0x24]
mov ebx, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x50]
mov edi, dword [rsp + 0x34]
call fcn.005977a0
mov rdx, qword [rsp + 0x60]
inc rdx
mov esi, ecx
mov r8d, dword [rsp + 0x28]
mov r9d, dword [rsp + 0x5c]
mov r10d, dword [rsp + 0x48]
mov r11d, dword [rsp + 0x3c]
mov r12d, dword [rsp + 0x30]
mov r13d, dword [rsp + 0x58]
mov r15d, dword [rsp + 0x4c]
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x34], edi
mov eax, dword [rsp + 0x44]
mov rcx, rdx
mov edx, dword [rsp + 0x20]
mov edi, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x4c], r15d
mov dword [rsp + 0x58], r13d
cmp rcx, 0xa
jl 0x598d6d
mov rcx, qword [rsp + 0x80]
nop
cmp rcx, 0x1f
jbe 0x59906d
mov rax, qword [rsp + 0x78]
mov ebx, 4
mov rcx, qword [rsp + 0x88]
mov edi, r12d
nop
call fcn.00544c00
mov rax, qword [rsp + 0x78]
lea rdx, [rax + 4]
mov rcx, qword [rsp + 0x88]
lea rsi, [rcx - 4]
mov ebx, 4
mov edi, dword [rsp + 0x58]
mov rax, rdx
mov rcx, rsi
call fcn.00544c00
mov rax, qword [rsp + 0x78]
lea rdx, [rax + 8]
mov rcx, qword [rsp + 0x88]
lea rsi, [rcx - 8]
mov ebx, 4
mov edi, dword [rsp + 0x4c]
mov rax, rdx
mov rcx, rsi
call fcn.00544c00
mov rax, qword [rsp + 0x78]
lea rdx, [rax + 0xc]
mov rcx, qword [rsp + 0x88]
lea rsi, [rcx - 0xc]
mov ebx, 4
mov edi, dword [rsp + 0x24]
mov rax, rdx
mov rcx, rsi
nop dword [rax + rax]
call fcn.00544c00
mov rax, qword [rsp + 0x78]
lea rdx, [rax + 0x10]
mov rcx, qword [rsp + 0x88]
lea rsi, [rcx - 0x10]
mov ebx, 4
mov edi, dword [rsp + 0x38]
mov rax, rdx
mov rcx, rsi
call fcn.00544c00
mov rax, qword [rsp + 0x78]
lea rdx, [rax + 0x14]
mov rcx, qword [rsp + 0x88]
lea rsi, [rcx - 0x14]
mov ebx, 4
mov edi, dword [rsp + 0x2c]
mov rax, rdx
mov rcx, rsi
call fcn.00544c00
mov rax, qword [rsp + 0x78]
lea rdx, [rax + 0x18]
mov rcx, qword [rsp + 0x88]
lea rsi, [rcx - 0x18]
mov ebx, 4
mov edi, dword [rsp + 0x34]
mov rax, rdx
mov rcx, rsi
nop dword [rax + rax]
call fcn.00544c00
mov rax, qword [rsp + 0x78]
lea rdx, [rax + 0x1c]
mov rcx, qword [rsp + 0x88]
lea rsi, [rcx - 0x1c]
mov ebx, 4
mov edi, dword [rsp + 0x44]
mov rax, rdx
mov rcx, rsi
call fcn.00544c00
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
xor edi, edi
xor esi, esi
add rsp, 0x68
pop rbp
ret
mov eax, 0x1f
call fcn.0047a0e0
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
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x48], r11
call fcn.00477e00
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]
mov r10, qword [rsp + 0x40]
mov r11, qword [rsp + 0x48]
jmp fcn.00598a80