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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x2c]
cmp eax, dword [ecx + 8]
jbe 0x5d04f9
sub esp, 0xac
mov eax, dword [esp + 0xc0]
cmp eax, 0x20
jne 0x5d0063
mov eax, dword [esp + 0xcc]
cmp eax, 0x10
jne 0x5d000f
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov dword [esp + 4], 4
mov ecx, dword [esp + 0xc4]
mov dword [esp + 8], ecx
call fcn.004e57b0
mov eax, dword [esp + 0xc4]
lea ecx, [eax - 4]
mov edx, dword [esp + 0xbc]
lea ebx, [edx + 4]
lea ebp, [eax - 8]
mov dword [esp + 0x84], ebp
lea esi, [edx + 8]
mov dword [esp + 0xa8], esi
lea edi, [eax - 0xc]
mov dword [esp + 0x80], edi
lea edi, [edx + 0xc]
mov dword [esp + 0xa4], edi
lea edi, [eax - 0x10]
mov dword [esp + 0x7c], edi
lea edi, [edx + 0x10]
mov dword [esp + 0xa0], edi
lea edi, [eax - 0x14]
mov dword [esp + 0x78], edi
lea edi, [edx + 0x14]
mov dword [esp + 0x9c], edi
lea edi, [eax - 0x18]
mov dword [esp + 0x74], edi
lea edi, [edx + 0x18]
mov dword [esp + 0x98], edi
add eax, 0xffffffe4
mov dword [esp + 0x70], eax
add edx, 0x1c
mov dword [esp + 0x94], edx
mov eax, dword [esp + 0xd0]
lea edx, [eax - 4]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0xc8]
lea edi, [edx + 4]
mov dword [esp + 0x90], edi
lea edi, [eax - 8]
mov dword [esp + 0x68], edi
lea edi, [edx + 8]
mov dword [esp + 0x8c], edi
lea edi, [eax - 0xc]
mov dword [esp + 0x64], edi
lea edi, [edx + 0xc]
mov dword [esp + 0x88], edi
mov edi, dword [esp + 0xc]
mov dword [esp + 0x34], edi
mov dword [esp], ebx
mov dword [esp + 4], 4
mov dword [esp + 8], ecx
call fcn.004e57b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0xa8]
mov dword [esp], ecx
mov dword [esp + 4], 4
mov ecx, dword [esp + 0x84]
mov dword [esp + 8], ecx
call fcn.004e57b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0xa4]
mov dword [esp], ecx
mov dword [esp + 4], 4
mov ecx, dword [esp + 0x80]
mov dword [esp + 8], ecx
call fcn.004e57b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0xa0]
mov dword [esp], ecx
mov dword [esp + 4], 4
mov ecx, dword [esp + 0x7c]
mov dword [esp + 8], ecx
call fcn.004e57b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x9c]
mov dword [esp], ecx
mov dword [esp + 4], 4
mov ecx, dword [esp + 0x78]
mov dword [esp + 8], ecx
call fcn.004e57b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x98]
mov dword [esp], ecx
mov dword [esp + 4], 4
mov ecx, dword [esp + 0x74]
mov dword [esp + 8], ecx
call fcn.004e57b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x94]
mov dword [esp], ecx
mov dword [esp + 4], 4
mov ecx, dword [esp + 0x70]
mov dword [esp + 8], ecx
call fcn.004e57b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0xc8]
mov dword [esp], ecx
mov dword [esp + 4], 4
mov ecx, dword [esp + 0xd0]
mov dword [esp + 8], ecx
call fcn.004e57b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
mov dword [esp + 4], 4
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
call fcn.004e57b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x8c]
mov dword [esp], ecx
mov dword [esp + 4], 4
mov ecx, dword [esp + 0x68]
mov dword [esp + 8], ecx
call fcn.004e57b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x88]
mov dword [esp], ecx
mov dword [esp + 4], 4
mov ecx, dword [esp + 0x64]
mov dword [esp + 8], ecx
call fcn.004e57b0
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x54]
mov edx, 0x61707865
mov dword [esp + 0x5c], edx
mov ebx, 0x3320646e
mov dword [esp + 0x58], ebx
mov ebp, 0x79622d32
mov dword [esp + 0x3c], ebp
mov esi, 0x6b206574
mov dword [esp + 0x38], esi
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x30]
jmp 0x5d02ec
lea eax, [0x711972]
mov dword [esp], eax
mov dword [esp + 4], 0x24
call fcn.00480a00
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], ecx
add esp, 0xac
ret
lea eax, [0x710aa1]
mov dword [esp], eax
mov dword [esp + 4], 0x22
call fcn.00480a00
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], ecx
add esp, 0xac
ret
mov dword [esp + 0x60], ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
call fcn.005cea10
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x4c], ebx
mov ebp, dword [esp + 0x58]
mov dword [esp], ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0xc], ebp
call fcn.005cea10
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x48], ebx
mov ebp, dword [esp + 0x3c]
mov dword [esp], ebp
mov ebp, dword [esp + 0x2c]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 0xc], ebp
call fcn.005cea10
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x44], ebx
mov ebp, dword [esp + 0x38]
mov dword [esp], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 0xc], ebp
call fcn.005cea10
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x5c]
mov dword [esp], ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
call fcn.005cea10
mov eax, dword [esp + 0x60]
inc eax
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], edx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x54], ebx
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x40], ebp
mov esi, dword [esp + 0x58]
mov dword [esp], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 4], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0xc], esi
call fcn.005cea10
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x4c], ebx
mov ebp, dword [esp + 0x3c]
mov dword [esp], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0xc], ebp
call fcn.005cea10
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x48], ebx
mov ebp, dword [esp + 0x38]
mov dword [esp], ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 0xc], ebp
call fcn.005cea10
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x40], eax
cmp ecx, 0xa
jl 0x5d00b7
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
mov dword [esp + 4], 4
mov ecx, dword [esp + 0xb8]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xc], edx
call fcn.004e57e0
mov eax, dword [esp + 0xb8]
lea ecx, [eax - 4]
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 4
mov ebx, dword [esp + 0xb0]
add ecx, ebx
mov dword [esp], ecx
mov dword [esp + 4], 4
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xc], ecx
call fcn.004e57e0
mov eax, dword [esp + 0xb8]
lea ecx, [eax - 8]
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 8
mov ebx, dword [esp + 0xb0]
add ecx, ebx
mov dword [esp], ecx
mov dword [esp + 4], 4
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc], ecx
call fcn.004e57e0
mov eax, dword [esp + 0xb8]
lea ecx, [eax - 0xc]
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 0xc
mov ebx, dword [esp + 0xb0]
add ecx, ebx
mov dword [esp], ecx
mov dword [esp + 4], 4
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xc], ecx
call fcn.004e57e0
mov eax, dword [esp + 0xb8]
lea ecx, [eax - 0x10]
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 0x10
mov ebx, dword [esp + 0xb0]
add ecx, ebx
mov dword [esp], ecx
mov dword [esp + 4], 4
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xc], ecx
call fcn.004e57e0
mov eax, dword [esp + 0xb8]
lea ecx, [eax - 0x14]
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 0x14
mov ebx, dword [esp + 0xb0]
add ecx, ebx
mov dword [esp], ecx
mov dword [esp + 4], 4
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xc], ecx
call fcn.004e57e0
mov eax, dword [esp + 0xb8]
lea ecx, [eax - 0x18]
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 0x18
mov ebx, dword [esp + 0xb0]
add ecx, ebx
mov dword [esp], ecx
mov dword [esp + 4], 4
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xc], ecx
call fcn.004e57e0
mov eax, dword [esp + 0xb8]
lea ecx, [eax - 0x1c]
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 0x1c
mov ebx, dword [esp + 0xb0]
add ecx, ebx
mov dword [esp], ecx
mov dword [esp + 4], 4
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xc], ecx
call fcn.004e57e0
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
add esp, 0xac
ret
call fcn.00475ee0
jmp fcn.005cfcf0