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

Disassembly:
lea r12, [rsp - 0x68]
cmp r12, qword [r14 + 0x10]
jbe 0x54a8ae
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 0x54a89a
nop
test rcx, 0x3f
jne 0x54a89a
mov qword [rsp + 0x100], rcx
mov edx, dword [rax]
mov dword [rsp + 0x4c], edx
mov r10d, dword [rax + 4]
mov r11d, dword [rax + 8]
mov r12d, dword [rax + 0xc]
mov dword [rsp + 0x40], r12d
mov r13d, dword [rax + 0x10]
mov dword [rsp + 0x3c], r13d
mov r15d, dword [rax + 0x14]
mov dword [rsp + 0x38], r15d
mov r13d, dword [rax + 0x18]
mov edx, dword [rax + 0x1c]
mov dword [rsp + 0x5c], edx
mov edx, dword [rax + 0x24]
mov dword [rsp + 0x58], edx
mov r12d, dword [rax + 0x28]
mov dword [rsp + 0x54], r12d
mov ecx, dword [rax + 0x2c]
mov dword [rsp + 0x50], ecx
cmp byte [rax + 0x79], 0
jne 0x54a2e9
mov qword [rsp + 0xf8], rbx
lea ebx, [r10 + 0x3320646e]
xor ebx, edx
rol ebx, 0x10
lea edx, [r15 + rbx]
mov dword [rsp + 0x70], edx
xor edx, r10d
rol edx, 0xc
lea r15d, [r10 + rdx]
lea r15d, [r15 + 0x3320646e]
mov dword [rax + 0x7c], r15d
xor r15d, ebx
rol r15d, 8
mov ebx, dword [rsp + 0x70]
add ebx, r15d
xor edx, ebx
rol edx, 7
mov dword [rax + 0x80], edx
mov dword [rax + 0x84], ebx
mov dword [rax + 0x88], r15d
lea edx, [r11 + 0x79622d32]
xor edx, r12d
rol edx, 0x10
lea ebx, [r13 + rdx]
mov r15d, ebx
xor ebx, r11d
rol ebx, 0xc
lea r12d, [r11 + rbx]
lea r12d, [r12 + 0x79622d32]
mov dword [rax + 0x8c], r12d
xor r12d, edx
rol r12d, 8
lea edx, [r12 + r15]
xor ebx, edx
rol ebx, 7
mov dword [rax + 0x90], ebx
mov dword [rax + 0x94], edx
mov dword [rax + 0x98], r12d
mov edx, dword [rsp + 0x40]
lea ebx, [rdx + 0x6b206574]
xor ebx, ecx
rol ebx, 0x10
mov r12d, dword [rsp + 0x5c]
lea r15d, [r12 + rbx]
mov dword [rsp + 0x64], r15d
xor r15d, edx
rol r15d, 0xc
lea ecx, [rdx + r15]
lea ecx, [rcx + 0x6b206574]
mov dword [rax + 0x9c], ecx
xor ecx, ebx
rol ecx, 8
mov ebx, dword [rsp + 0x64]
add ebx, ecx
xor r15d, ebx
rol r15d, 7
mov dword [rax + 0xa0], r15d
mov dword [rax + 0xa4], ebx
mov dword [rax + 0xa8], ecx
mov byte [rax + 0x79], 1
mov ecx, dword [rsp + 0x50]
mov edx, dword [rsp + 0x58]
mov rbx, qword [rsp + 0xf8]
mov r12d, dword [rsp + 0x54]
mov r15d, dword [rsp + 0x38]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x44], r11d
mov dword [rsp + 0x60], r13d
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xa8]
jmp 0x54a500
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x24], r11d
nop
mov r12d, dword [rsp + 0x30]
add r12d, 0x61707865
mov r11, qword [rsp + 0xd0]
xor r12d, dword [r11]
mov rdx, qword [rsp + 0xd8]
mov dword [rdx], r12d
nop
add r9d, 0x3320646e
xor r9d, dword [r11 + 4]
mov dword [rdx + 4], r9d
nop
mov r9d, dword [rsp + 0x20]
add r9d, 0x79622d32
xor r9d, dword [r11 + 8]
mov dword [rdx + 8], r9d
nop
add ecx, 0x6b206574
xor ecx, dword [r11 + 0xc]
mov dword [rdx + 0xc], ecx
nop
mov ecx, dword [rsp + 0x4c]
add eax, ecx
xor eax, dword [r11 + 0x10]
mov dword [rdx + 0x10], eax
nop
mov eax, dword [rsp + 0x48]
add edi, eax
xor edi, dword [r11 + 0x14]
mov dword [rdx + 0x14], edi
nop
mov edi, dword [rsp + 0x18]
mov r9d, dword [rsp + 0x44]
add edi, r9d
xor edi, dword [r11 + 0x18]
mov dword [rdx + 0x18], edi
nop
mov edi, dword [rsp + 0x40]
lea r12d, [rdi + r13]
xor r12d, dword [r11 + 0x1c]
mov dword [rdx + 0x1c], r12d
nop
mov r12d, dword [rsp + 0x3c]
add r10d, r12d
xor r10d, dword [r11 + 0x20]
mov dword [rdx + 0x20], r10d
nop
mov r10d, dword [rsp + 0x38]
add ebx, r10d
xor ebx, dword [r11 + 0x24]
mov dword [rdx + 0x24], ebx
nop
mov r13d, dword [rsp + 0x60]
lea ebx, [r13 + r8]
xor ebx, dword [r11 + 0x28]
mov dword [rdx + 0x28], ebx
nop
mov ebx, dword [rsp + 0x2c]
mov r8d, dword [rsp + 0x5c]
add ebx, r8d
xor ebx, dword [r11 + 0x2c]
mov dword [rdx + 0x2c], ebx
mov rbx, qword [rsp + 0xf0]
mov r8d, dword [rbx + 0x20]
add esi, r8d
xor esi, dword [r11 + 0x30]
mov dword [rdx + 0x30], esi
nop
mov esi, dword [rsp + 0x58]
lea r8d, [rsi + r15]
xor r8d, dword [r11 + 0x34]
mov dword [rdx + 0x34], r8d
nop
mov r8d, dword [rsp + 0x28]
mov r15d, dword [rsp + 0x54]
add r8d, r15d
xor r8d, dword [r11 + 0x38]
mov dword [rdx + 0x38], r8d
nop
mov r8d, dword [rsp + 0x24]
mov r15d, dword [rsp + 0x50]
add r8d, r15d
xor r8d, dword [r11 + 0x3c]
mov dword [rdx + 0x3c], r8d
inc dword [rbx + 0x20]
mov r8, qword [rsp + 0xb8]
add r8, 0xffffffffffffffc0
mov qword [rsp + 0xb8], r8
neg r8
sar r8, 0x3f
and r8, 0x40
add r8, r11
mov r11, qword [rsp + 0xb0]
add r11, 0xffffffffffffffc0
mov r15, qword [rsp + 0xc0]
add r15, 0xffffffffffffffc0
mov qword [rsp + 0xc0], r15
neg r15
sar r15, 0x3f
and r15, 0x40
add rdx, r15
mov r15, qword [rsp + 0xc8]
add r15, 0xffffffffffffffc0
mov rax, rbx
mov ecx, dword [rsp + 0x50]
mov r10d, dword [rsp + 0x48]
mov r12d, dword [rsp + 0x54]
mov rbx, rdx
mov rsi, r8
mov qword [rsp + 0xc8], r15
mov r8, r11
mov rdi, qword [rsp + 0xc0]
mov r9, qword [rsp + 0xb8]
mov edx, dword [rsp + 0x58]
mov r11d, dword [rsp + 0x44]
mov r15d, dword [rsp + 0x38]
nop
cmp r8, 0x40
jl 0x54a705
mov qword [rsp + 0xc0], rdi
mov rdi, qword [rsp + 0xc8]
nop word [rax + rax]
cmp rdi, 0x40
jl 0x54a705
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 + 0x84], r11d
mov r10d, dword [rax + 0x84]
mov dword [rsp + 0x68], r10d
mov ebx, dword [rax + 0x98]
mov dword [rsp + 0x34], ebx
mov esi, dword [rsp + 0x4c]
lea r10d, [rsi + 0x61707865]
xor r10d, dword [rax + 0x20]
rol r10d, 0x10
mov ebx, dword [rsp + 0x3c]
add ebx, r10d
mov dword [rsp + 0x6c], ebx
xor ebx, esi
rol ebx, 0xc
lea r11d, [rsi + rbx]
lea esi, [rbx + rsi]
lea esi, [rsi + 0x61707865]
xor esi, r10d
rol esi, 8
mov r10d, dword [rsp + 0x6c]
add r10d, esi
xor ebx, r10d
rol ebx, 7
mov dword [rsp + 0x74], ebx
lea ebx, [rdi + r11]
lea r11d, [r11 + rdi]
lea r11d, [r11 + 0x61707865]
xor r11d, dword [rax + 0xa8]
rol r11d, 0x10
add r8d, r11d
xor edi, r8d
rol edi, 0xc
lea ebx, [rbx + rdi]
lea ebx, [rbx + 0x61707865]
mov dword [rsp + 0x7c], ebx
xor r11d, ebx
rol r11d, 8
add r8d, r11d
xor edi, r8d
rol edi, 7
add r9d, ecx
xor esi, r9d
rol esi, 0x10
add r12d, esi
xor ecx, r12d
rol ecx, 0xc
add r9d, ecx
xor esi, r9d
rol esi, 8
add r12d, esi
xor ecx, r12d
rol ecx, 7
mov dword [rsp + 0x78], 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 + 0x74]
mov ecx, dword [rsp + 0x84]
add ecx, eax
mov edx, dword [rsp + 0x34]
xor edx, ecx
rol edx, 0x10
mov ebx, dword [rsp + 0x68]
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 + 0x7c]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x98], ecx
mov ecx, dword [rsp + 0x78]
mov dword [rsp + 0x18], ecx
mov eax, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0x98]
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xa0]
nop
jmp 0x54a87e
mov rbp, qword [rsp + 0xe0]
add rsp, 0xe8
ret
inc r12
mov qword [rsp + 0x88], r12
nop
nop
nop
nop
nop
mov r12d, dword [rsp + 0x30]
add r12d, eax
xor esi, r12d
rol esi, 0x10
add r10d, esi
xor eax, r10d
rol eax, 0xc
add r12d, eax
xor esi, r12d
rol esi, 8
add r10d, esi
xor eax, r10d
rol eax, 7
mov dword [rsp + 0x1c], 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 + 0x14], ebx
xor edi, ebx
rol edi, 7
mov ebx, dword [rsp + 0x18]
mov eax, dword [rsp + 0x20]
add eax, ebx
xor edx, eax
rol edx, 0x10
add r8d, edx
xor ebx, r8d
rol ebx, 0xc
add eax, ebx
xor edx, eax
rol edx, 8
mov dword [rsp + 0x28], edx
add r8d, edx
xor ebx, r8d
rol ebx, 7
add ecx, r13d
xor r11d, ecx
rol r11d, 0x10
mov edx, dword [rsp + 0x2c]
add edx, r11d
xor r13d, edx
rol r13d, 0xc
add ecx, r13d
xor r11d, ecx
rol r11d, 8
add edx, r11d
xor r13d, edx
rol r13d, 7
add r12d, edi
xor r11d, r12d
rol r11d, 0x10
add r8d, r11d
xor edi, r8d
rol edi, 0xc
add r12d, edi
xor r11d, r12d
rol r11d, 8
add r8d, r11d
xor edi, r8d
rol edi, 7
add r9d, ebx
xor esi, r9d
rol esi, 0x10
add edx, esi
xor ebx, edx
rol ebx, 0xc
add r9d, ebx
xor esi, r9d
rol esi, 8
add edx, esi
mov dword [rsp + 0x2c], edx
xor ebx, edx
rol ebx, 7
mov dword [rsp + 0x18], ebx
add eax, r13d
xor r15d, eax
rol r15d, 0x10
add r10d, r15d
xor r13d, r10d
rol r13d, 0xc
add eax, r13d
mov dword [rsp + 0x20], eax
xor r15d, eax
rol r15d, 8
add r10d, r15d
xor r13d, r10d
rol r13d, 7
mov eax, dword [rsp + 0x1c]
add ecx, eax
mov edx, dword [rsp + 0x28]
xor edx, ecx
rol edx, 0x10
mov ebx, dword [rsp + 0x14]
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 + 0x30], r12d
mov r12d, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], r12d
mov r12, qword [rsp + 0x88]
cmp r12, 9
jl 0x54a715
jmp 0x54a325
lea rax, [0x0064fc60]
lea rbx, [0x006f7c00]
call fcn.00435820
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.00461140
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]
jmp fcn.0054a120