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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x10011e450]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [rcx + 0x10]
lea r11, [0x100000000]
lea r9, [rax + 0xd]
lea rdi, [r9 - 1]
lea r8, [0x100109088]
mov rbp, rcx
mov qword [rsp + 0x70], rcx
mov ebx, dword [rax + 5]
mov esi, dword [rax + 9]
mov ecx, dword [rax + 1]
shr rcx, 1
mov qword [rsp + 0x78], rdx
mov edx, 0xfffffff
and rbx, rdx
and rcx, rdx
mov qword [rsp + 0x108], rcx
and rsi, rdx
add rbx, r11
mov qword [rsp + 0xf8], rsi
xor r12d, r12d
mov qword [rsp + 0x100], rbx
cmp rdi, r8
jb 0x100100cca
mov eax, dword [0x1000a5f24]
mov ecx, dword [0x10000c52c]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x100100cca
mov ecx, dword [0x1000a5f24]
mov rax, rdi
sub rax, r8
cqo
idiv rcx
mov edx, dword [0x1000a5f24]
imul rdx, rax
add r8, rdx
jmp 0x100100ccd
mov r8, r12
cmp r8, r12
jne 0x100100cdc
mov r8, rdi
and r8, 0xffffffffffff0000
mov r10d, ebx
sub r9, r8
lea rax, [r9 - 0x40]
cmp rax, r12
cmovl rax, r12
sub r10d, r11d
lea rdi, [r8 + rax]
xor eax, eax
mov r11d, dword [0x1000a5f24]
lea ecx, [rax + 0x40]
sub r11, rsi
inc r11
cmp r11, r12
mov r9, r11
rep stosb byte [rdi], al
mov rdi, r12
je 0x100100d49
mov rdx, qword [0x1001241b0]
imul rdx, rdx, 0x343fd
shl rdi, 0x10
shr r9, 0x10
add rdx, 0x269ec3
mov rcx, rdx
shr rcx, 0x10
movzx eax, cx
or rdi, rax
cmp r9, r12
jne 0x100100d1a
mov qword [0x1001241b0], rdx
xor edx, edx
mov rax, rdi
div r11
mov ecx, r10d
lea r12, [rdx + r8]
mov rdx, rsi
mov r8, r12
mov qword [rsp + 0xf0], r12
mov eax, 0x20a99223
mov qword [rsp + 0xa0], rsi
xor r9d, r9d
mov dil, r9b
cmp rsi, r9
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x98], r12
je 0x1001011ce
movdqu xmm0, xmmword [rsi + rbx]
mov dword [rsp + 0xc8], r9d
mov dword [rsp + 0xcc], r9d
mov dword [rsp + 0xd0], r9d
mov dword [rsp + 0xd4], r9d
mov rbp, r12
movdqu xmmword [rsp + 0x110], xmm0
mov rcx, qword [rsp + 0x118]
mov r8, qword [rsp + 0x110]
mov dword [rsp + 0xb4], r8d
mov rdx, r8
mov rax, rcx
mov dword [rsp + 0xbc], ecx
shr rax, 0x20
shr rdx, 0x20
mov dword [rsp + 0xc0], eax
mov dword [rsp + 0xe8], eax
mov eax, dword [0x10000a5b0]
mov dword [rsp + 0xb0], eax
mov eax, dword [0x10000a5b4]
mov dword [rsp + 0xb8], edx
mov dword [rsp + 0xc4], eax
mov eax, dword [0x10000a5b8]
mov dword [rsp + 0xdc], r8d
mov dword [rsp + 0xd8], eax
mov eax, dword [0x10000a5bc]
mov dword [rsp + 0xe0], edx
mov dword [rsp + 0xec], eax
lea rax, [rsp + 0x120]
sub rbp, rax
mov rax, rbx
lea ebx, [r9 + 0x40]
sub rax, r12
mov dword [rsp + 0xe4], ecx
mov qword [rsp + 0x110], rax
mov r8, rbx
mov qword [rsp + 0x88], rbp
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0xb0]
not rdx
call fcn.10001511c
mov edi, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x64]
mov r15d, dword [rsp + 0x48]
mov r12d, dword [rsp + 0x54]
mov r11d, dword [rsp + 0x58]
mov r14d, dword [rsp + 0x4c]
mov ebx, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x6c]
mov eax, dword [rsp + 0x44]
mov r9d, dword [rsp + 0x60]
mov r10d, dword [rsp + 0x5c]
mov edx, dword [rsp + 0x68]
mov esi, dword [rsp + 0x40]
mov ebp, dword [rsp + 0x3c]
mov dword [rsp + 0x2c], eax
mov r13d, dword [rsp + 0x2c]
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x90], 2
add eax, r9d
rol eax, 7
xor esi, eax
mov eax, dword [rsp + 0x28]
add eax, esi
rol eax, 9
xor ebx, eax
lea eax, [rbx + rsi]
rol eax, 0xd
xor r9d, eax
mov dword [rsp + 0x2c], r9d
lea eax, [rbx + r9]
ror eax, 0xe
xor dword [rsp + 0x28], eax
mov r9d, dword [rsp + 0x28]
mov eax, dword [rsp + 0x24]
add eax, r13d
rol eax, 7
xor r12d, eax
lea eax, [r13 + r12]
rol eax, 9
xor r8d, eax
lea eax, [r8 + r12]
rol eax, 0xd
xor dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
add eax, r8d
ror eax, 0xe
xor r13d, eax
lea eax, [r15 + r11]
rol eax, 7
xor edx, eax
lea eax, [r11 + rdx]
rol eax, 9
xor edi, eax
lea eax, [rdi + rdx]
rol eax, 0xd
xor r15d, eax
lea eax, [rdi + r15]
ror eax, 0xe
xor r11d, eax
lea eax, [r10 + rcx]
rol eax, 7
xor ebp, eax
lea eax, [rcx + rbp]
rol eax, 9
xor r14d, eax
lea eax, [r14 + rbp]
rol eax, 0xd
xor r10d, eax
lea eax, [r14 + r10]
ror eax, 0xe
xor ecx, eax
mov eax, dword [rsp + 0x28]
add eax, ebp
rol eax, 7
xor dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x34], eax
add eax, r9d
rol eax, 9
xor edi, eax
mov eax, dword [rsp + 0x24]
add eax, edi
rol eax, 0xd
xor ebp, eax
lea eax, [rbp + rdi]
ror eax, 0xe
xor r9d, eax
mov dword [rsp + 0x28], r9d
mov eax, r9d
mov dword [rsp + 0x30], eax
lea eax, [r13 + rsi]
mov r9d, dword [rsp + 0x2c]
rol eax, 7
xor r15d, eax
lea eax, [r15 + r13]
rol eax, 9
xor r14d, eax
lea eax, [r15 + r14]
rol eax, 0xd
xor esi, eax
lea eax, [r14 + rsi]
ror eax, 0xe
xor r13d, eax
lea eax, [r11 + r12]
rol eax, 7
xor r10d, eax
lea eax, [r10 + r11]
rol eax, 9
xor ebx, eax
lea eax, [rbx + r10]
rol eax, 0xd
xor r12d, eax
lea eax, [rbx + r12]
ror eax, 0xe
xor r11d, eax
lea eax, [rcx + rdx]
rol eax, 7
xor r9d, eax
lea eax, [rcx + r9]
rol eax, 9
xor r8d, eax
mov dword [rsp + 0x60], r9d
lea eax, [r9 + r8]
rol eax, 0xd
xor edx, eax
lea eax, [rdx + r8]
ror eax, 0xe
xor ecx, eax
sub qword [rsp + 0x90], 1
mov eax, dword [rsp + 0x28]
jne 0x100100ef5
mov dword [rsp + 0x6c], ecx
mov dword [rsp + 0x54], r12d
mov r12, qword [rsp + 0x110]
mov dword [rsp + 0x50], ebx
xor ecx, ecx
lea ebx, [rcx + 0x40]
mov dword [rsp + 0x4c], r14d
mov r14, qword [rsp + 0x80]
mov dword [rsp + 0x48], r15d
mov r15, qword [rsp + 0x98]
mov dword [rsp + 0x44], r13d
mov r13, qword [rsp + 0xa0]
mov dword [rsp + 0x40], esi
mov esi, dword [rsp + 0xd0]
mov dword [rsp + 0x3c], ebp
mov rbp, qword [rsp + 0x88]
mov dword [rsp + 0x38], edi
mov dil, byte [rsp + 0x20]
mov dword [rsp + 0x68], edx
mov dword [rsp + 0x64], r8d
mov dword [rsp + 0x5c], r10d
mov dword [rsp + 0x58], r11d
mov eax, dword [rsp + rcx + 0xb0]
add rcx, 4
add dword [rsp + rcx + 0x2c], eax
cmp rcx, rbx
jl 0x1001010e3
mov r8, rbx
lea rcx, [rsp + 0x120]
lea rdx, [rsp + 0x30]
not rdx
call fcn.10001511c
inc esi
cmp r13, rbx
mov dword [rsp + 0xd0], esi
jbe 0x10010116f
lea r8, [r12 + rbp]
mov rdx, rbx
lea rcx, [rsp + 0x120]
mov al, byte [r8 + rcx]
xor al, byte [rcx]
mov byte [rcx + rbp], al
inc rcx
xor dil, al
sub rdx, 1
jne 0x10010112c
mov byte [rsp + 0x20], dil
sub r13, rbx
mov qword [rsp + 0xa0], r13
add r15, rbx
add rbp, rbx
add r14, rbx
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x98], r15
jmp 0x100100e71
mov rsi, qword [rsp + 0xf8]
mov r12, qword [rsp + 0xf0]
xor r9d, r9d
mov edx, r9d
cmp r13, r9
mov rbx, qword [rsp + 0x100]
jbe 0x1001011c9
lea rax, [rsp + 0x120]
sub r14, rax
lea rcx, [rsp + 0x120]
lea rax, [rsp + 0x120]
sub r15, rax
mov al, byte [rcx + r14]
inc edx
xor al, byte [rcx]
xor dil, al
mov byte [rcx + r15], al
mov eax, edx
inc rcx
cmp rax, r13
jb 0x1001011b0
mov rbp, qword [rsp + 0x70]
cmp dil, byte [rsi + rbx + 0x10]
je 0x100101293
call fcn.100018aa8
lea r8, [rbp + 0x18]
mov rbx, rax
mov r11d, 0xffff
mov rax, 0xfffffffffffff000
and r8, 0xfffffffffffffff8
and rbx, rax
lea r9, [r8 + 0xfff]
and r9, rax
xor edi, edi
lea r10, [0x1000b5984]
mov qword [rbp + 0x10], r10
mov rax, qword [0x1001241b0]
imul rax, rax, 0x343fd
shl rdi, 0x10
shr r11, 0x10
add rax, 0x269ec3
mov rcx, rax
shr rcx, 0x10
movzx edx, cx
or rdi, rdx
test r11, r11
jne 0x100101217
mov qword [0x1001241b0], rax
movabs rax, 0x8000800080008001
mul rdi
mov rax, qword [rsp + 0x78]
shr rdx, 0xf
mov qword [rax + 0x98], rbx
imul rdx, rdx, 0xffff
sub rdi, rdx
inc rdi
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x78], r11
jmp 0x100101289
mov rax, qword [rsp + 0x78]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x10010127d
jmp 0x1001013a5
mov rbp, rbx
sub rbp, r12
lea r14, [0x100000000]
mov r13, r14
mov rax, qword [0x10000cac8]
sub r13, rax
jne 0x1001012b8
cmp rbp, r9
je 0x100101389
mov edi, r9d
mov r11, r12
sub r11, rbx
sub ebx, r14d
add esi, ebx
mov rcx, qword [0x1000e0550]
lea r8d, [rcx - 1]
lea r15, [0x1000e0550]
cmp r8d, r9d
jl 0x10010130a
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r15 + rdx*4 + 4]
and r9d, 0xfffffff
cmp ebx, r9d
jae 0x100101300
lea r8d, [rax - 1]
jmp 0x100101305
jbe 0x10010130f
lea edi, [rax + 1]
cmp r8d, edi
jge 0x1001012dd
movsxd r10, edi
jmp 0x100101382
movsxd r10, eax
jmp 0x100101382
mov edx, dword [r15 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, esi
jae 0x100101389
mov r8, rdx
mov edi, edx
sar edx, 0x1e
shl edi, 2
and r8d, 0xfffffff
and edx, 3
sar edi, 0x1e
add r8, r14
xor r9d, r9d
and edi, 3
sub edi, 1
je 0x10010135e
sub edi, 1
je 0x100101359
cmp edi, 1
jne 0x100101364
mov r9, r13
jmp 0x100101364
mov r9, rbp
jmp 0x100101364
mov r9, r13
sub r9, rbp
sub edx, 2
je 0x100101374
cmp edx, 1
jne 0x10010137f
add qword [r8 + r11], r9
jmp 0x100101378
add dword [r8 + r11], r9d
mov rcx, qword [0x1000e0550]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x100101314
mov eax, dword [0x1000a5f24]
mov eax, 0xec18f0c6
mov rbp, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x108]
lea r10, [r12 + rdx]
mov qword [rbp + 0x10], r10
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1000d8a8c
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret