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

Disassembly:
mov ecx, dword [0x9aee30]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x2c]
cmp eax, dword [ecx + 8]
jbe 0x5d5f54
sub esp, 0xac
mov edx, dword [esp + 0xc0]
cmp edx, 0x20
jne 0x5d5c1b
mov edx, dword [esp + 0xcc]
cmp edx, 0x10
jne 0x5d5bbd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 0xbc]
mov ebx, dword [edx]
mov ebp, dword [edx + 4]
mov esi, dword [edx + 8]
mov edi, dword [edx + 0xc]
mov eax, dword [edx + 0x10]
mov dword [esp + 0xa8], eax
mov ecx, dword [edx + 0x14]
mov eax, dword [edx + 0x18]
mov dword [esp + 0xa4], eax
mov edx, dword [edx + 0x1c]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0xc8]
mov eax, dword [edx]
mov dword [esp + 0x9c], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x98], eax
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x90], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x34], edx
mov dword [esp + 0x78], ebx
mov ebx, 0x61707865
mov dword [esp + 0x20], ebx
mov ebx, 0x3320646e
mov dword [esp + 0x58], ebx
mov ebx, 0x79622d32
mov dword [esp + 0x2c], ebx
mov ebx, 0x6b206574
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x9c]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x70], ebp
mov ebp, dword [esp + 0x98]
mov dword [esp + 0x50], ebp
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x88]
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x70]
jmp 0x5d5ebc
nop
lea eax, [0x69de40]
mov dword [esp], eax
call fcn.0040d2a0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x24
lea ecx, [0x6de831]
mov dword [eax], ecx
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
lea ecx, [0x74924c]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], eax
add esp, 0xac
ret
nop
lea eax, [0x69de40]
mov dword [esp], eax
call fcn.0040d2a0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x22
lea ecx, [0x6dda76]
mov dword [eax], ecx
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
lea ecx, [0x74924c]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], eax
add esp, 0xac
ret
mov dword [esp + 0x60], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], ebp
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], eax
call fcn.005d4cd0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x5c], ebx
mov ebp, dword [esp + 0x58]
mov dword [esp], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 0xc], ebp
call fcn.005d4cd0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x50], ebx
mov ebp, dword [esp + 0x2c]
mov dword [esp], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x6c]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0xc], ebp
call fcn.005d4cd0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x6c], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x3c], ebx
mov ebp, dword [esp + 0x68]
mov dword [esp], ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x60]
mov dword [esp + 0xc], ebp
call fcn.005d4cd0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x34], edx
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov dword [esp], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x6c]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
call fcn.005d4cd0
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], edx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x6c], ebx
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x40], ebp
mov esi, dword [esp + 0x58]
mov dword [esp], esi
mov esi, dword [esp + 0x54]
mov dword [esp + 4], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0xc], esi
call fcn.005d4cd0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x34], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x5c], ebx
mov ebp, dword [esp + 0x2c]
mov dword [esp], ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 0xc], ebp
call fcn.005d4cd0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x50], ebx
mov ebp, dword [esp + 0x24]
mov dword [esp], ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0xc], ebp
call fcn.005d4cd0
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x68], eax
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x64], ebp
mov eax, edx
mov edx, dword [esp + 0x40]
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x38]
cmp edi, 0xa
jl 0x5d5c79
mov ecx, dword [esp + 0xb4]
cmp ecx, 0x1f
jbe 0x5d5f49
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0xb0]
mov dword [ebp], ebx
mov ebx, dword [esp + 0x58]
mov dword [ebp + 4], ebx
mov ebx, dword [esp + 0x2c]
mov dword [ebp + 8], ebx
mov ebx, dword [esp + 0x68]
mov dword [ebp + 0xc], ebx
mov ebx, dword [esp + 0x64]
mov dword [ebp + 0x10], ebx
mov ebx, dword [esp + 0x50]
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], edx
mov dword [esp + 0xd4], ebp
mov dword [esp + 0xd8], ecx
mov eax, dword [esp + 0xb8]
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
add esp, 0xac
ret
mov eax, 0x1f
call fcn.0046c910
nop
call fcn.0046b490
jmp fcn.005d5a80