Function at 0x1000c8aa8
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x90
and dword [rax + 8], 0
xor esi, esi
mov rbx, r9
mov r13d, r8d
mov r14, rdx
mov rdi, rcx
mov qword [rax - 0x78], rsi
mov rcx, qword [0x1001653b8]
lea rbp, [0x1001653b8]
cmp rcx, rbp
je 0x1000c8b0c
test byte [rcx + 0x1c], 4
je 0x1000c8b0c
cmp byte [rcx + 0x19], 4
jb 0x1000c8b0c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0xb4
call fcn.10001c7b8
mov edx, dword [rdi + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r12, rax
test rax, rax
jne 0x1000c8b29
lea eax, [r12 + 3]
jmp 0x1000c8f01
mov r8d, dword [rdi + 0x48]
lea rcx, [rsp + 0x58]
mov rdx, rax
call qword [sym.imp.ntdll.dll_RtlInitializeBitMap]
mov r8d, dword [rdi + 0x48]
mov rdx, qword [rdi + 0x58]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitializeBitMap]
mov rax, qword [0x1001653b8]
cmp rax, rbp
je 0x1000c8b90
test byte [rax + 0x1c], 4
je 0x1000c8b90
cmp byte [rax + 0x19], 4
jb 0x1000c8b90
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlNumberOfSetBits]
mov rcx, qword [0x1001653b8]
lea r8, [0x100003198]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xb5
call fcn.10001c7dc
mov eax, dword [rdi + 0x4c]
mov rbp, qword [rsp + 0xe0]
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], eax
mov eax, dword [rdi + 0x48]
mov r9, r12
mov r8, rbx
mov edx, r13d
mov dword [rsp + 0x20], eax
call fcn.1000c3dc8
mov ebx, eax
test eax, eax
jne 0x1000c8e72
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
add rax, 0x1f
shr rax, 5
test eax, eax
je 0x1000c8bf6
mov r8d, eax
mov eax, dword [rdx]
add rdx, 4
xor dword [rcx], eax
add rcx, 4
sub r8, 1
jne 0x1000c8be4
cmp dword [rdi + 0x4c], 1
jne 0x1000c8e72
mov qword [rsp + 0x38], rbp
or qword [rsp + 0x30], 0xffffffffffffffff
lea rax, [0x10000d420]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x48]
mov r9d, r13d
mov r8b, 1
xor edx, edx
mov qword [rsp + 0x20], r14
call fcn.1000c54e8
mov ebx, eax
test eax, eax
jne 0x1000c8e72
mov qword [rsp + 0x38], rbp
or qword [rsp + 0x30], 0xffffffffffffffff
lea rax, [0x10000d440]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x48]
mov r9d, r13d
mov r8b, 1
xor edx, edx
mov qword [rsp + 0x20], r14
call fcn.1000c54e8
mov ebx, eax
test eax, eax
jne 0x1000c8e72
lea rcx, [rsp + 0x48]
mov r9d, r13d
mov r8b, 1
xor edx, edx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r14
call fcn.1000c5d2c
mov ebx, eax
test eax, eax
jne 0x1000c8e72
mov rdx, rbp
mov rcx, rdi
call fcn.1000c88f8
mov ebx, eax
test eax, eax
jne 0x1000c8e72
cmp byte [rdi + 0xf8], sil
je 0x1000c8e51
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlClearAllBits]
and qword [rsp + 0x38], rsi
mov rcx, qword [rdi + 0x20]
lea rax, [rsp + 0xc0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov eax, dword [rdi + 0x50]
mov edx, 0x5301b2
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1000c8d4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp], eax
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
mov ebx, 2
cmp rcx, rdi
je 0x1000c8e79
test byte [rcx + 0x1c], 4
je 0x1000c8e79
cmp byte [rcx + 0x19], bl
jb 0x1000c8e79
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0xb6
mov r9d, eax
call fcn.10001c7dc
jmp 0x1000c8e79
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
add rax, 0x1f
shr rax, 5
test eax, eax
je 0x1000c8d7e
mov r8d, eax
mov eax, dword [rdx]
add rdx, 4
or dword [rcx], eax
add rcx, 4
sub r8, 1
jne 0x1000c8d6c
mov r8d, dword [rdi + 0x48]
mov rdx, qword [rdi + 0x68]
lea rcx, [rsp + 0x68]
shl r8d, 2
call qword [sym.imp.ntdll.dll_RtlInitializeBitMap]
xor ebx, ebx
cmp dword [rdi + 0x48], ebx
jbe 0x1000c8dd0
mov edx, ebx
lea rcx, [rsp + 0x68]
mov r8d, 4
shl edx, 2
call qword [sym.imp.ntdll.dll_RtlAreBitsClear]
test al, al
jne 0x1000c8dc9
lea rcx, [rsp + 0x48]
mov r8d, 1
mov edx, ebx
call qword [sym.imp.ntdll.dll_RtlSetBits]
inc ebx
cmp ebx, dword [rdi + 0x48]
jb 0x1000c8d9c
movdqu xmm0, xmmword [rdi + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x80]
movdqu xmmword [rsp + 0x80], xmm0
call fcn.1000c7588
mov rsi, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
jne 0x1000c8e72
mov qword [rsp + 0x38], rbp
or qword [rsp + 0x30], 0xffffffffffffffff
lea rcx, [rsp + 0x48]
mov r9d, r13d
mov r8b, 1
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r14
call fcn.1000c54e8
mov ebx, eax
test eax, eax
jne 0x1000c8e72
lea rax, [rdi + 0xfc]
mov byte [rsp + 0x30], 1
lea r9, [rdi + 0x70]
mov r8, rbp
xor edx, edx
mov rcx, rdi
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call fcn.1000c6954
jmp 0x1000c8e70
xor edx, edx
lea rcx, [rsp + 0x48]
lea r8d, [rdx + 1]
call qword [sym.imp.ntdll.dll_RtlSetBits]
mov r8, rbp
mov edx, r13d
mov rcx, rdi
call fcn.1000c6320
mov ebx, eax
lea rdi, [0x1001653b8]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rsi, rsi
je 0x1000c8e90
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000c8eff
test byte [rcx + 0x1c], 4
je 0x1000c8ed9
cmp byte [rcx + 0x19], 4
jb 0x1000c8ed9
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlNumberOfSetBits]
mov rcx, qword [0x1001653b8]
lea r8, [0x100003198]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xb7
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000c8eff
test byte [rcx + 0x1c], 4
je 0x1000c8eff
cmp byte [rcx + 0x19], 4
jb 0x1000c8eff
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0xb8
call fcn.10001c7b8
mov eax, ebx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret