Function at 0x1000c8bfc
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 0x1000c8c60
test byte [rcx + 0x1c], 4
je 0x1000c8c60
cmp byte [rcx + 0x19], 4
jb 0x1000c8c60
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003158]
mov edx, VariantTimeToSystemTime
call fcn.10001c854
mov edx, dword [rdi + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r12, rax
test rax, rax
jne 0x1000c8c7d
lea eax, [r12 + 3]
jmp 0x1000c9055
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 0x1000c8ce4
test byte [rax + 0x1c], 4
je 0x1000c8ce4
cmp byte [rax + 0x19], 4
jb 0x1000c8ce4
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlNumberOfSetBits]
mov rcx, qword [0x1001653b8]
lea r8, [0x100003158]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, VariantTimeToSystemTime
call fcn.10001c878
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.1000c3f1c
mov ebx, eax
test eax, eax
jne 0x1000c8fc6
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 0x1000c8d4a
mov r8d, eax
mov eax, dword [rdx]
add rdx, 4
xor dword [rcx], eax
add rcx, 4
sub r8, 1
jne 0x1000c8d38
cmp dword [rdi + 0x4c], 1
jne 0x1000c8fc6
mov qword [rsp + 0x38], rbp
or qword [rsp + 0x30], 0xffffffffffffffff
lea rax, [0x10000d310]
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.1000c563c
mov ebx, eax
test eax, eax
jne 0x1000c8fc6
mov qword [rsp + 0x38], rbp
or qword [rsp + 0x30], 0xffffffffffffffff
lea rax, [0x10000d330]
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.1000c563c
mov ebx, eax
test eax, eax
jne 0x1000c8fc6
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.1000c5e80
mov ebx, eax
test eax, eax
jne 0x1000c8fc6
mov rdx, rbp
mov rcx, rdi
call fcn.1000c8a4c
mov ebx, eax
test eax, eax
jne 0x1000c8fc6
cmp byte [rdi + 0xf8], sil
je 0x1000c8fa5
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 0x1000c8ea3
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 0x1000c8fcd
test byte [rcx + 0x1c], 4
je 0x1000c8fcd
cmp byte [rcx + 0x19], bl
jb 0x1000c8fcd
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003158]
mov edx, VarDecFix
mov r9d, eax
call fcn.10001c878
jmp 0x1000c8fcd
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 0x1000c8ed2
mov r8d, eax
mov eax, dword [rdx]
add rdx, 4
or dword [rcx], eax
add rcx, 4
sub r8, 1
jne 0x1000c8ec0
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 0x1000c8f24
mov edx, ebx
lea rcx, [rsp + 0x68]
mov r8d, 4
shl edx, 2
call qword [sym.imp.ntdll.dll_RtlAreBitsClear]
test al, al
jne 0x1000c8f1d
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 0x1000c8ef0
movdqu xmm0, xmmword [rdi + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x80]
movdqu xmmword [rsp + 0x80], xmm0
call fcn.1000c76dc
mov rsi, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
jne 0x1000c8fc6
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.1000c563c
mov ebx, eax
test eax, eax
jne 0x1000c8fc6
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.1000c6aa8
jmp 0x1000c8fc4
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.1000c6474
mov ebx, eax
lea rdi, [0x1001653b8]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rsi, rsi
je 0x1000c8fe4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000c9053
test byte [rcx + 0x1c], 4
je 0x1000c902d
cmp byte [rcx + 0x19], 4
jb 0x1000c902d
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlNumberOfSetBits]
mov rcx, qword [0x1001653b8]
lea r8, [0x100003158]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, VarDecFix
call fcn.10001c878
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000c9053
test byte [rcx + 0x1c], 4
je 0x1000c9053
cmp byte [rcx + 0x19], 4
jb 0x1000c9053
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003158]
mov edx, reloc.OLEAUT32.dll_VariantTimeToSystemTime
call fcn.10001c854
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