Function at 0x180191bb
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push edi
mov ecx, 0x180c1cc4
mov edi, eax
call fcn.18018c8b
mov ecx, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], eax
call fcn.18018c8b
lea ecx, [edi + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], eax
call fcn.18018c8b
lea ecx, [edi + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x40], eax
call fcn.18018c8b
lea ecx, [edi + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x44], eax
call fcn.18018c8b
mov ebx, eax
mov ecx, 0x180c1cc8
mov dword [ebp - 0x48], ebx
call fcn.18018c8b
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x4c], eax
call fcn.18018c8b
mov ecx, dword [ebp + 8]
add ecx, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x50], eax
call fcn.18018c8b
mov ecx, dword [ebp + 8]
add ecx, 8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x54], eax
call fcn.18018c8b
mov ecx, dword [ebp + 8]
add ecx, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x58], eax
call fcn.18018c8b
mov ecx, 0x180c1ccc
mov dword [ebp + 8], eax
mov dword [ebp - 0x5c], eax
call fcn.18018c8b
lea ecx, [edi + 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x60], eax
call fcn.18018c8b
lea ecx, [edi + 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x64], eax
call fcn.18018c8b
lea ecx, [edi + 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x68], eax
call fcn.18018c8b
lea ecx, [edi + 0x1c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x6c], eax
call fcn.18018c8b
mov edi, eax
mov ecx, 0x180c1cd0
mov dword [ebp - 0x70], edi
call fcn.18018c8b
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x34], 0xa
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
add edx, ecx
rol edx, 7
xor ebx, edx
add ecx, ebx
rol ecx, 9
xor dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
add ecx, ebx
rol ecx, 0xd
xor dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
add edx, ecx
mov ecx, dword [ebp - 4]
ror edx, 0xe
xor dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x10]
add edx, ecx
mov ecx, dword [ebp - 0x10]
rol edx, 7
xor dword [ebp + 8], edx
mov edx, dword [ebp + 8]
add edx, ecx
mov ecx, dword [ebp + 8]
rol edx, 9
xor dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x30]
add edx, ecx
mov ecx, dword [ebp - 0x30]
rol edx, 0xd
xor dword [ebp - 4], edx
mov edx, dword [ebp - 4]
add ecx, edx
mov edx, dword [ebp - 0x1c]
ror ecx, 0xe
xor dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x14]
add edx, ecx
mov ecx, dword [ebp - 0x1c]
rol edx, 7
xor edi, edx
add ecx, edi
rol ecx, 9
xor dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
add ecx, edi
rol ecx, 0xd
xor dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
add edx, ecx
mov ecx, dword [ebp - 0x20]
ror edx, 0xe
xor dword [ebp - 0x1c], edx
add ecx, eax
rol ecx, 7
xor dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
add ecx, eax
rol ecx, 9
xor dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x2c]
add edx, ecx
mov ecx, dword [ebp - 0x2c]
rol edx, 0xd
xor dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x20]
add edx, ecx
mov ecx, dword [ebp - 0xc]
ror edx, 0xe
xor eax, edx
mov edx, dword [ebp - 0x28]
add ecx, edx
rol ecx, 7
xor dword [ebp - 4], ecx
mov ecx, edx
mov edx, dword [ebp - 4]
add edx, ecx
rol edx, 9
xor dword [ebp - 8], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
add edx, ecx
mov ecx, dword [ebp - 8]
rol edx, 0xd
xor dword [ebp - 0xc], edx
mov edx, dword [ebp - 0xc]
add edx, ecx
mov ecx, dword [ebp - 0x10]
add ecx, ebx
ror edx, 0xe
xor dword [ebp - 0x28], edx
rol ecx, 7
xor dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
add edx, ecx
mov ecx, dword [ebp - 0x2c]
rol edx, 9
xor ecx, edx
mov edx, dword [ebp - 0x14]
add edx, ecx
rol edx, 0xd
xor ebx, edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
add ecx, ebx
ror ecx, 0xe
xor dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
rol ecx, 7
xor dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add edx, ecx
mov ecx, dword [ebp - 0x20]
rol edx, 9
xor dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x18]
add ecx, edx
rol ecx, 0xd
xor dword [ebp + 8], ecx
mov ecx, edx
mov edx, dword [ebp + 8]
add edx, ecx
ror edx, 0xe
xor dword [ebp - 0x1c], edx
lea ecx, [eax + edi]
rol ecx, 7
xor dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
lea edx, [eax + ecx]
mov ecx, dword [ebp - 0x30]
rol edx, 9
xor ecx, edx
mov edx, dword [ebp - 0x24]
add edx, ecx
rol edx, 0xd
xor edi, edx
mov dword [ebp - 0x30], ecx
add ecx, edi
ror ecx, 0xe
xor eax, ecx
dec dword [ebp - 0x34]
jne 0x180192b7
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
add ecx, edx
mov byte [esi], cl
shr ecx, 8
mov byte [esi + 1], cl
shr ecx, 8
mov byte [esi + 2], cl
shr ecx, 8
mov byte [esi + 3], cl
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 4]
add ecx, edx
mov byte [esi + 4], cl
shr ecx, 8
mov byte [esi + 5], cl
shr ecx, 8
mov byte [esi + 6], cl
shr ecx, 8
mov byte [esi + 7], cl
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 8]
add ecx, edx
mov byte [esi + 8], cl
shr ecx, 8
mov byte [esi + 9], cl
shr ecx, 8
mov byte [esi + 0xa], cl
mov edx, dword [ebp - 0x44]
shr ecx, 8
mov byte [esi + 0xb], cl
mov ecx, dword [ebp - 0xc]
add ecx, edx
mov byte [esi + 0xc], cl
shr ecx, 8
mov byte [esi + 0xd], cl
shr ecx, 8
mov byte [esi + 0xe], cl
shr ecx, 8
mov byte [esi + 0xf], cl
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
add ecx, ebx
mov byte [esi + 0x10], cl
shr ecx, 8
mov byte [esi + 0x11], cl
shr ecx, 8
mov byte [esi + 0x12], cl
shr ecx, 8
mov byte [esi + 0x13], cl
mov ecx, dword [ebp - 0x10]
add ecx, edx
mov edx, dword [ebp - 0x50]
mov byte [esi + 0x14], cl
shr ecx, 8
mov byte [esi + 0x15], cl
shr ecx, 8
mov byte [esi + 0x16], cl
shr ecx, 8
mov byte [esi + 0x17], cl
mov ecx, dword [ebp - 0x14]
add ecx, edx
mov edx, dword [ebp - 0x54]
mov byte [esi + 0x18], cl
shr ecx, 8
mov byte [esi + 0x19], cl
shr ecx, 8
mov byte [esi + 0x1a], cl
shr ecx, 8
mov byte [esi + 0x1b], cl
mov ecx, dword [ebp - 0x2c]
add ecx, edx
mov edx, dword [ebp - 0x58]
mov byte [esi + 0x1c], cl
shr ecx, 8
mov byte [esi + 0x1d], cl
shr ecx, 8
mov byte [esi + 0x1e], cl
shr ecx, 8
mov byte [esi + 0x1f], cl
mov ecx, dword [ebp - 0x18]
add ecx, edx
mov byte [esi + 0x20], cl
shr ecx, 8
mov byte [esi + 0x21], cl
shr ecx, 8
mov byte [esi + 0x22], cl
shr ecx, 8
mov byte [esi + 0x23], cl
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp + 8]
add ecx, edx
mov byte [esi + 0x24], cl
shr ecx, 8
mov byte [esi + 0x25], cl
shr ecx, 8
mov byte [esi + 0x26], cl
mov edx, dword [ebp - 0x60]
shr ecx, 8
mov byte [esi + 0x27], cl
mov ecx, dword [ebp - 0x1c]
add ecx, edx
mov byte [esi + 0x28], cl
shr ecx, 8
mov byte [esi + 0x29], cl
mov edx, dword [ebp - 0x64]
shr ecx, 8
mov byte [esi + 0x2a], cl
shr ecx, 8
mov byte [esi + 0x2b], cl
mov ecx, dword [ebp - 0x20]
add ecx, edx
mov byte [esi + 0x2c], cl
mov edx, dword [ebp - 0x68]
shr ecx, 8
mov byte [esi + 0x2d], cl
shr ecx, 8
mov byte [esi + 0x2e], cl
shr ecx, 8
mov byte [esi + 0x2f], cl
mov ecx, dword [ebp - 0x24]
add ecx, edx
mov byte [esi + 0x30], cl
mov edx, dword [ebp - 0x6c]
shr ecx, 8
mov byte [esi + 0x31], cl
shr ecx, 8
mov byte [esi + 0x32], cl
shr ecx, 8
mov byte [esi + 0x33], cl
mov ecx, dword [ebp - 0x30]
add ecx, edx
mov byte [esi + 0x34], cl
shr ecx, 8
mov byte [esi + 0x35], cl
shr ecx, 8
mov byte [esi + 0x36], cl
shr ecx, 8
mov byte [esi + 0x37], cl
mov ecx, dword [ebp - 0x70]
add ecx, edi
mov byte [esi + 0x38], cl
shr ecx, 8
mov byte [esi + 0x39], cl
shr ecx, 8
mov byte [esi + 0x3a], cl
shr ecx, 8
mov byte [esi + 0x3b], cl
mov ecx, dword [ebp - 0x74]
add eax, ecx
mov byte [esi + 0x3c], al
shr eax, 8
mov byte [esi + 0x3d], al
shr eax, 8
mov byte [esi + 0x3e], al
shr eax, 8
pop edi
mov byte [esi + 0x3f], al
xor eax, eax
pop ebx
leave
ret