Function at 0x140016cc0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rbx
push r13
push r14
push r15
lea rbp, [r11 - 0x218]
sub rsp, 0x2f0
mov rax, qword [0x1400b1008]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor r15b, r15b
mov qword [rsp + 0x30], r8
mov r13, r9
mov r14d, edx
mov rbx, rcx
cmp byte [rcx], r15b
je 0x1400170e9
mov qword [r11 + 0x10], rsi
mov qword [r11 - 0x38], r12
lea r12, [rcx + 0x108]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [rbx + 0x138]
test rsi, rsi
je 0x1400170d0
mov qword [rsp + 0x2e8], rdi
lea rcx, [rsp + 0x40]
xor edx, edx
movaps xmmword [rsp + 0x2d0], xmm6
mov r8d, 0x170
call fcn.140068930
xor edi, edi
mov dword [rsp + 0x60], 1
mov rax, 0xffffffffffffffff
mov dword [rsp + 0x70], edi
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov rax, qword [rbx + 0x140]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x68], rsi
mov qword [rbp + 0x98], rdi
mov qword [rbp + 0xa0], rdi
mov qword [rbp + 0xa8], rdi
cmp dword [rbp - 0x80], edi
jne 0x140016e29
cmp dword [rbp - 0x38], 1
je 0x140016dd4
lea rcx, [rsp + 0x40]
call fcn.14000f100
test al, al
jne 0x140016dd4
mov rax, qword [rsp + 0x48]
neg rax
sbb edx, edx
add edx, 3
cmp dword [rbp - 0x80], edi
jne 0x140016e29
mov rax, qword [rsp + 0x40]
mov dword [rbp - 0x80], edx
test rax, rax
je 0x140016e02
lea rcx, [rsp + 0x40]
call rax
jmp 0x140016dfd
lea rcx, [rsp + 0x40]
call fcn.14000f000
test al, al
jne 0x140016df6
cmp dword [rbp - 0x80], edi
jne 0x140016e29
mov rax, qword [rsp + 0x48]
neg rax
sbb edx, edx
add edx, 3
jmp 0x140016dbe
mov dword [rbp - 0x38], 2
mov rax, qword [rsp + 0x40]
cmp dword [rbp - 0x80], edi
jne 0x140016e29
cmp dword [rbp - 0x38], 2
je 0x140016e94
mov dword [rbp - 0x80], 8
test rax, rax
je 0x140016e29
mov edx, 8
lea rcx, [rsp + 0x40]
call rax
lea rax, [rsp + 0x60]
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
movaps xmm6, xmmword [rsp + 0x20]
mov rdx, r14
movdqa xmmword [rsp + 0x20], xmm6
lea rcx, [rsp + 0x20]
mov rsi, r14
call fcn.14000f2f0
test rax, rax
jne 0x140016e80
cmp dword [rbx + 0x40], edi
jne 0x140016e7b
mov rax, qword [rbx]
mov dword [rbx + 0x40], 9
test rax, rax
je 0x140016e7b
mov edx, 9
mov rcx, rbx
call rax
lea rax, [rsp + 0x60]
cmp dword [rbx + 0x40], edi
jne 0x140016ed4
cmp dword [rax], 8
jne 0x140016ebb
mov r14, qword [rbx + 0x58]
add r14, qword [rax + 8]
jmp 0x140016ed7
mov rax, qword [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
movaps xmm6, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm6
mov rbx, qword [rsp + 0x28]
jmp 0x140016e42
mov dword [rbx + 0x40], 5
mov rax, qword [rbx]
test rax, rax
je 0x140016ed4
mov edx, 5
mov rcx, rbx
call rax
mov r14, rdi
mov rdx, rsi
movdqa xmmword [rsp + 0x20], xmm6
lea rcx, [rsp + 0x20]
call fcn.14000f2f0
movaps xmm6, xmmword [rsp + 0x2d0]
test rax, rax
jne 0x140016f19
cmp dword [rbx + 0x40], edi
jne 0x140016f15
mov rax, qword [rbx]
mov dword [rbx + 0x40], 9
test rax, rax
je 0x140016f15
mov edx, 9
mov rcx, rbx
call rax
lea rax, [rbx + 0x20]
cmp dword [rbx + 0x40], edi
jne 0x140016f41
cmp dword [rax], 8
jne 0x140016f28
mov esi, dword [rax + 4]
jmp 0x140016f44
mov dword [rbx + 0x40], 5
mov rax, qword [rbx]
test rax, rax
je 0x140016f41
mov edx, 5
mov rcx, rbx
call rax
mov rsi, rdi
cmp byte [rbp + 8], dil
je 0x140016f5b
mov rcx, qword [rbp - 8]
call fcn.14006ac0c
mov qword [rbp - 8], rdi
mov byte [rbp + 8], dil
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x140016f77
mov rbx, qword [rcx]
call fcn.14006ac0c
mov rcx, rbx
test rbx, rbx
jne 0x140016f67
mov rcx, qword [rbp - 0x78]
mov qword [rbp + 0xa8], rdi
test rcx, rcx
je 0x140016f8c
call fcn.14006ac0c
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140016f9d
lea rcx, [rsp + 0x40]
call rax
mov qword [rsp + 0x50], rdi
cmp dword [rbp - 0x80], edi
jne 0x1400170c8
mov rax, 0xffffffffffffffff
mov rcx, rsi
add rcx, 1
cmovb rcx, rax
lea edx, [rax + 2]
call fcn.14006bdc8
mov r11, rax
test rax, rax
je 0x1400170c8
mov ecx, edi
lea rdx, [rbp + 0xb0]
nop word [rax + rax]
mov byte [rdx], cl
lea rdx, [rdx + 1]
inc ecx
cmp ecx, 0x100
jl 0x140016fe0
mov r9d, edi
lea rbx, str.eCZ
mov r10d, edi
nop dword [rax]
mov eax, r9d
lea rdx, [rbp + 0xb0]
add rdx, rax
mov eax, r9d
and eax, 0xf
inc r9d
movzx r8d, byte [rdx]
movzx ecx, byte [rax + rbx]
add ecx, r10d
add ecx, r8d
movzx r10d, cl
movzx eax, byte [rbp + r10 + 0xb0]
mov byte [rdx], al
mov byte [rbp + r10 + 0xb0], r8b
cmp r9d, 0x100
jl 0x140017000
mov qword [rbp + 0x1b0], rdi
mov r10, rsi
mov r8, r11
test rsi, rsi
je 0x1400170b4
mov r9d, edi
sub r14, r11
nop dword [rax]
lea eax, [rdi + 1]
movzx ecx, al
lea rdx, [rbp + 0xb0]
add rdx, rcx
lea r8, [r8 + 1]
mov edi, ecx
movzx ecx, byte [rdx]
lea eax, [r9 + rcx]
movzx r9d, al
movzx eax, byte [rbp + r9 + 0xb0]
mov byte [rdx], al
mov byte [rbp + r9 + 0xb0], cl
movzx eax, byte [rdx]
add rcx, rax
movzx eax, cl
movzx ecx, byte [rbp + rax + 0xb0]
xor cl, byte [r14 + r8 - 1]
mov byte [r8 - 1], cl
sub r10, 1
jne 0x140017060
mov rax, qword [rsp + 0x30]
mov qword [rax], r11
test r13, r13
je 0x1400170c5
mov qword [r13], rsi
mov r15b, 1
mov rdi, qword [rsp + 0x2e8]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r12, qword [rsp + 0x2e0]
mov rsi, qword [rsp + 0x328]
movzx eax, r15b
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14001a6d0
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop rbx
pop rbp
ret