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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 0x98]
cmp rax, qword [rcx + 0x10]
jbe 0x56ded6
sub rsp, 0x118
mov qword [rsp + 0x110], rbp
lea rbp, [rsp + 0x110]
mov rbx, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x148]
cmp rbx, rcx
jne 0x56deb9
test rbx, 0x3f
jne 0x56deb9
mov rbx, qword [rsp + 0x120]
mov esi, dword [rbx]
mov edi, dword [rbx + 4]
mov r8d, dword [rbx + 8]
mov r9d, dword [rbx + 0xc]
mov r10d, dword [rbx + 0x10]
mov r11d, dword [rbx + 0x14]
mov dword [rsp + 0x68], r11d
mov r12d, dword [rbx + 0x18]
mov r13d, dword [rbx + 0x1c]
mov r14d, dword [rbx + 0x24]
mov dword [rsp + 0x44], r14d
mov r15d, dword [rbx + 0x28]
mov dword [rsp + 0x64], r15d
mov eax, r10d
mov r10d, dword [rbx + 0x2c]
cmp byte [rbx + 0x78], 0
je 0x56dd62
mov dword [rsp + 0x94], esi
mov dword [rsp + 0x98], edi
mov dword [rsp + 0x9c], r8d
mov dword [rsp + 0x8c], r9d
mov dword [rsp + 0xb4], eax
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r13d
mov dword [rsp + 0x48], r10d
xor edx, edx
jmp 0x56db24
inc r11
mov qword [rsp + 0xd0], r11
nop
nop
nop
nop
nop
mov ecx, dword [rsp + 0xa4]
add ecx, ebx
mov edx, dword [rsp + 0x58]
xor edx, ecx
rol edx, 0x10
mov eax, dword [rsp + 0x7c]
add eax, edx
xor ebx, eax
rol ebx, 0xc
add ecx, ebx
xor edx, ecx
rol edx, 8
add eax, edx
xor ebx, eax
rol ebx, 7
add r13d, r15d
mov r11d, dword [rsp + 0x54]
xor r11d, r13d
rol r11d, 0x10
add r8d, r11d
xor r15d, r8d
rol r15d, 0xc
add r13d, r15d
xor r11d, r13d
rol r11d, 8
add r8d, r11d
mov dword [rsp + 0x6c], r8d
xor r15d, r8d
rol r15d, 7
add r9d, r12d
xor edi, r9d
rol edi, 0x10
add r14d, edi
xor r12d, r14d
rol r12d, 0xc
add r9d, r12d
xor edi, r9d
rol edi, 8
mov dword [rsp + 0x60], edi
add r14d, edi
xor r12d, r14d
rol r12d, 7
mov r8d, dword [rsp + 0xa0]
add esi, r8d
xor r10d, esi
rol r10d, 0x10
mov edi, dword [rsp + 0x84]
add edi, r10d
xor r8d, edi
rol r8d, 0xc
add esi, r8d
xor r10d, esi
rol r10d, 8
add edi, r10d
xor r8d, edi
rol r8d, 7
add ecx, r15d
xor r10d, ecx
rol r10d, 0x10
add r14d, r10d
xor r15d, r14d
rol r15d, 0xc
add ecx, r15d
mov dword [rsp + 0x18], ecx
xor r10d, ecx
rol r10d, 8
add r14d, r10d
xor r15d, r14d
rol r15d, 7
add r13d, r12d
xor edx, r13d
rol edx, 0x10
add edi, edx
xor r12d, edi
rol r12d, 0xc
add r13d, r12d
xor edx, r13d
rol edx, 8
add edi, edx
xor r12d, edi
rol r12d, 7
add r9d, r8d
xor r11d, r9d
rol r11d, 0x10
add eax, r11d
xor r8d, eax
rol r8d, 0xc
add r9d, r8d
xor r11d, r9d
rol r11d, 8
add eax, r11d
mov dword [rsp + 0x14], eax
xor r8d, eax
rol r8d, 7
add esi, ebx
mov eax, dword [rsp + 0x60]
xor eax, esi
rol eax, 0x10
mov ecx, dword [rsp + 0x6c]
add ecx, eax
xor ebx, ecx
rol ebx, 0xc
add esi, ebx
xor eax, esi
rol eax, 8
add ecx, eax
xor ebx, ecx
rol ebx, 7
mov dword [rsp + 0xe0], eax
mov eax, dword [rsp + 0x18]
mov dword [rsp + 0xa4], eax
mov dword [rsp + 0x58], edx
mov dword [rsp + 0xd8], ecx
mov ecx, dword [rsp + 0x14]
mov dword [rsp + 0x7c], ecx
mov dword [rsp + 0xa0], r8d
mov dword [rsp + 0x54], r11d
mov eax, dword [rsp + 0xb4]
mov rcx, qword [rsp + 0x148]
mov rdx, qword [rsp + 0xc8]
mov r11d, edi
mov r8d, dword [rsp + 0xd8]
mov edi, dword [rsp + 0xe0]
mov dword [rsp + 0x84], r11d
mov r11, qword [rsp + 0xd0]
cmp r11, 9
jl 0x56d687
mov dword [rsp + 0xb0], r9d
mov dword [rsp + 0xac], esi
mov r11d, dword [rsp + 0x50]
lea esi, [r11 + 1]
mov r9, qword [rsp + 0x120]
mov dword [r9 + 0x20], esi
mov esi, dword [rsp + 0x94]
add ebx, esi
mov esi, dword [rsp + 0x98]
add r15d, esi
mov esi, dword [rsp + 0x9c]
add r12d, esi
mov esi, dword [rsp + 0xa0]
mov r9d, dword [rsp + 0x8c]
add esi, r9d
mov r9d, dword [rsp + 0x7c]
add r9d, eax
mov dword [rsp + 0x34], r9d
mov r9d, dword [rsp + 0x68]
add r8d, r9d
mov r9d, dword [rsp + 0x78]
add r14d, r9d
mov dword [rsp + 0x3c], r14d
mov r9d, dword [rsp + 0x84]
mov r14d, dword [rsp + 0x70]
add r9d, r14d
mov dword [rsp + 0x30], r9d
mov r14d, dword [rsp + 0x58]
add r14d, r11d
mov dword [rsp + 0x40], r14d
mov r14d, dword [rsp + 0x54]
mov r9d, dword [rsp + 0x44]
add r14d, r9d
mov r9d, dword [rsp + 0x64]
add edi, r9d
mov r9d, dword [rsp + 0x48]
add r10d, r9d
cmp r11d, 0xffffffff
je 0x56de9d
cmp rdx, rcx
ja 0x56de95
mov dword [rsp + 0x38], r10d
mov r11, qword [rsp + 0x150]
sub r11, rdx
mov qword [rsp + 0xc0], r11
neg r11
sar r11, 0x3f
and r11, rdx
mov r9, qword [rsp + 0x138]
sub r9, rdx
mov qword [rsp + 0xb8], r9
neg r9
sar r9, 0x3f
and r9, rdx
mov r10, qword [rsp + 0xc0]
cmp r10, 0x40
jb 0x56de88
mov r10, qword [rsp + 0xb8]
cmp r10, 0x40
jb 0x56de7b
mov r10d, dword [rsp + 0xa4]
add r10d, 0x61707865
nop
mov rax, qword [rsp + 0x140]
mov ecx, dword [rax + r11]
xor ecx, r10d
mov r10, qword [rsp + 0x128]
mov dword [r10 + r9], ecx
lea ecx, [r13 + 0x3320646e]
nop
mov r13d, dword [rax + r11 + 4]
xor r13d, ecx
mov dword [r10 + r9 + 4], r13d
mov ecx, dword [rsp + 0xb0]
add ecx, 0x79622d32
nop
mov r13d, dword [rax + r11 + 8]
xor r13d, ecx
mov dword [r10 + r9 + 8], r13d
mov ecx, dword [rsp + 0xac]
add ecx, 0x6b206574
nop
mov r13d, dword [rax + r11 + 0xc]
xor r13d, ecx
mov dword [r10 + r9 + 0xc], r13d
nop
mov ecx, dword [rax + r11 + 0x10]
xor ecx, ebx
mov dword [r10 + r9 + 0x10], ecx
nop
mov ecx, dword [rax + r11 + 0x14]
xor ecx, r15d
mov dword [r10 + r9 + 0x14], ecx
nop
mov ecx, dword [rax + r11 + 0x18]
xor r12d, ecx
mov dword [r10 + r9 + 0x18], r12d
nop
mov ecx, dword [rax + r11 + 0x1c]
xor esi, ecx
mov dword [r10 + r9 + 0x1c], esi
nop
mov ecx, dword [rax + r11 + 0x20]
mov ebx, dword [rsp + 0x34]
xor ebx, ecx
mov dword [r10 + r9 + 0x20], ebx
nop
mov ecx, dword [rax + r11 + 0x24]
xor ecx, r8d
mov dword [r10 + r9 + 0x24], ecx
nop
mov ecx, dword [rax + r11 + 0x28]
mov ebx, dword [rsp + 0x3c]
xor ecx, ebx
mov dword [r10 + r9 + 0x28], ecx
nop
mov ecx, dword [rax + r11 + 0x2c]
mov ebx, dword [rsp + 0x30]
xor ecx, ebx
mov dword [r10 + r9 + 0x2c], ecx
nop
mov ecx, dword [rax + r11 + 0x30]
mov ebx, dword [rsp + 0x40]
xor ecx, ebx
mov dword [r10 + r9 + 0x30], ecx
nop
mov ecx, dword [rax + r11 + 0x34]
xor ecx, r14d
mov dword [r10 + r9 + 0x34], ecx
nop
mov ecx, dword [rax + r11 + 0x38]
xor ecx, edi
mov dword [r10 + r9 + 0x38], ecx
nop
mov ecx, dword [rax + r11 + 0x3c]
mov ebx, dword [rsp + 0x38]
xor ecx, ebx
mov dword [r10 + r9 + 0x3c], ecx
add rdx, 0x40
mov rcx, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x148]
mov esi, dword [rsp + 0xb4]
mov edi, dword [rsp + 0x94]
mov eax, esi
mov rcx, rbx
mov rbx, qword [rsp + 0x120]
mov esi, edi
mov edi, dword [rsp + 0x98]
mov r8d, dword [rsp + 0x9c]
mov r9d, dword [rsp + 0x8c]
mov r10d, dword [rsp + 0x48]
mov r11d, dword [rsp + 0x68]
mov r12d, dword [rsp + 0x78]
mov r13d, dword [rsp + 0x70]
mov r14d, dword [rsp + 0x44]
mov r15d, dword [rsp + 0x64]
cmp rdx, rcx
jge 0x56dd52
mov qword [rsp + 0xc8], rdx
mov r10d, dword [rbx + 0x20]
mov dword [rsp + 0x50], r10d
mov r15d, dword [rbx + 0x80]
mov r14d, dword [rbx + 0x94]
mov r13d, dword [rbx + 0x7c]
mov r12d, dword [rbx + 0x90]
mov r11d, dword [rbx + 0xa4]
mov r9d, dword [rbx + 0x8c]
mov r8d, dword [rbx + 0xa0]
mov dword [rsp + 0x90], r8d
mov edi, dword [rbx + 0x88]
mov dword [rsp + 0x4c], edi
mov edi, dword [rbx + 0x9c]
mov dword [rsp + 0xa8], edi
mov edi, dword [rbx + 0x84]
mov dword [rsp + 0x80], edi
mov edi, dword [rbx + 0x98]
mov dword [rsp + 0x5c], edi
lea edi, [rsi + 0x61707865]
xor edi, r10d
rol edi, 0x10
lea r10d, [rax + rdi]
mov dword [rsp + 0x74], r10d
xor r10d, esi
rol r10d, 0xc
lea r8d, [r10 + rsi]
lea r8d, [r8 + 0x61707865]
add esi, r10d
xor edi, r8d
rol edi, 8
mov r8d, dword [rsp + 0x74]
add r8d, edi
xor r10d, r8d
rol r10d, 7
mov dword [rsp + 0x88], r10d
lea r10d, [rsi + r15]
lea r10d, [r10 + 0x61707865]
add esi, r15d
xor r10d, dword [rbx + 0xa8]
rol r10d, 0x10
add r14d, r10d
xor r15d, r14d
rol r15d, 0xc
lea esi, [rsi + r15]
lea esi, [rsi + 0x61707865]
mov dword [rsp + 0x2c], esi
xor r10d, esi
rol r10d, 8
add r14d, r10d
xor r15d, r14d
rol r15d, 7
add r13d, r12d
xor edi, r13d
rol edi, 0x10
add r11d, edi
xor r12d, r11d
rol r12d, 0xc
add r13d, r12d
xor edi, r13d
rol edi, 8
mov dword [rsp + 0x28], edi
add r11d, edi
xor r12d, r11d
rol r12d, 7
mov ebx, dword [rsp + 0x90]
add r9d, ebx
mov esi, dword [rsp + 0x4c]
xor esi, r9d
rol esi, 0x10
add r8d, esi
xor ebx, r8d
rol ebx, 0xc
add r9d, ebx
xor esi, r9d
rol esi, 8
mov dword [rsp + 0x24], esi
add r8d, esi
mov dword [rsp + 0x1c], r8d
xor ebx, r8d
rol ebx, 7
mov dword [rsp + 0x20], ebx
mov ebx, dword [rsp + 0x88]
mov esi, dword [rsp + 0xa8]
add esi, ebx
mov edi, dword [rsp + 0x5c]
xor edi, esi
rol edi, 0x10
mov r8d, dword [rsp + 0x80]
add r8d, edi
xor ebx, r8d
rol ebx, 0xc
add esi, ebx
xor edi, esi
rol edi, 8
add r8d, edi
xor ebx, r8d
rol ebx, 7
mov dword [rsp + 0x108], eax
xor eax, eax
mov qword [rsp + 0xd0], rax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0xa4], eax
mov qword [rsp + 0x100], rcx
mov ecx, dword [rsp + 0x28]
mov dword [rsp + 0x58], ecx
mov qword [rsp + 0xf8], rdx
mov edx, dword [rsp + 0x1c]
mov dword [rsp + 0x7c], edx
mov dword [rsp + 0xf0], ebx
mov ebx, dword [rsp + 0x20]
mov dword [rsp + 0xa0], ebx
mov dword [rsp + 0xe8], esi
mov esi, dword [rsp + 0x24]
mov dword [rsp + 0x54], esi
mov eax, dword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
mov rdx, qword [rsp + 0xf8]
mov ebx, dword [rsp + 0xf0]
mov esi, dword [rsp + 0xe8]
jmp 0x56d850
mov rbp, qword [rsp + 0x110]
add rsp, 0x118
ret
lea edx, [rdi + 0x3320646e]
xor edx, r14d
rol edx, 0x10
lea r14d, [r11 + rdx]
mov dword [rsp + 0xb4], r14d
xor r14d, edi
rol r14d, 0xc
lea r11d, [rdi + r14]
lea r11d, [r11 + 0x3320646e]
mov dword [rbx + 0x7c], r11d
xor r11d, edx
rol r11d, 8
mov edx, dword [rsp + 0xb4]
add edx, r11d
xor r14d, edx
rol r14d, 7
mov dword [rbx + 0x80], r14d
mov dword [rbx + 0x84], edx
mov dword [rbx + 0x88], r11d
lea edx, [r8 + 0x79622d32]
xor edx, r15d
rol edx, 0x10
lea r11d, [r12 + rdx]
mov r14d, r11d
xor r11d, r8d
rol r11d, 0xc
lea r15d, [r8 + r11]
lea r15d, [r15 + 0x79622d32]
mov dword [rbx + 0x8c], r15d
xor r15d, edx
rol r15d, 8
lea edx, [r14 + r15]
xor r11d, edx
rol r11d, 7
mov dword [rbx + 0x90], r11d
mov dword [rbx + 0x94], edx
mov dword [rbx + 0x98], r15d
lea edx, [r9 + 0x6b206574]
xor edx, r10d
rol edx, 0x10
lea r11d, [r13 + rdx]
mov r14d, r11d
xor r11d, r9d
rol r11d, 0xc
lea r15d, [r9 + r11]
lea r15d, [r15 + 0x6b206574]
mov dword [rbx + 0x9c], r15d
xor r15d, edx
rol r15d, 8
lea edx, [r14 + r15]
xor r11d, edx
rol r11d, 7
mov dword [rbx + 0xa0], r11d
mov dword [rbx + 0xa4], edx
mov dword [rbx + 0xa8], r15d
mov byte [rbx + 0x78], 1
mov r11d, dword [rsp + 0x68]
mov r14d, dword [rsp + 0x44]
mov r15d, dword [rsp + 0x64]
jmp 0x56d64c
mov ecx, 0x40
mov rdx, r10
call sym.a.out.exe_runtime.panicSliceAcap
mov ecx, 0x40
mov rdx, r10
call sym.a.out.exe_runtime.panicSliceAcap
mov rax, rdx
call sym.a.out.exe_runtime.panicSliceB
lea rax, [0x00609040]
mov qword [rsp], rax
lea rax, sym.a.out.exe_golang.org_x_crypto_chacha20..stmp_5
mov qword [rsp + 8], rax
call sym.a.out.exe_runtime.gopanic
lea rax, [0x00609040]
mov qword [rsp], rax
lea rax, sym.a.out.exe_golang.org_x_crypto_chacha20..stmp_4
mov qword [rsp + 8], rax
call sym.a.out.exe_runtime.gopanic
nop
call sym.a.out.exe_runtime.morestack_noctxt
jmp sym.a.out.exe_golang.org_x_crypto_chacha20._Cipher_.xorKeyStreamBlocksGeneric