Function at 0x180008cb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x90
mov rax, qword [0x18005a080]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov edi, dword [0x18005ffb8]
xor r14d, r14d
mov r12, rcx
movabs r13, 0x7ffffef0000e
test edi, edi
jne 0x180009074
call fcn.180008ad0
cmp byte [0x18004fe99], r14b
mov rdi, rax
movups xmm0, xmmword [0x18004fe88]
movzx ecx, word [0x18004fe98]
mov word [rsp + 0x30], cx
movups xmmword [rsp + 0x20], xmm0
je 0x180008ec1
cmp dword [0x18005a0d0], 2
mov r8d, r14d
jl 0x180008e7f
movdqa xmm0, xmmword [0x1800518f0]
lea rcx, [rsp + 0x24]
movdqa xmm5, xmmword [0x180051840]
movdqa xmm4, xmmword [0x180051a80]
movdqa xmmword [rsp + 0x40], xmm0
mov edx, dword [rsp + 0x40]
movaps xmmword [rsp + 0x80], xmm6
movdqa xmm6, xmmword [0x180051880]
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800518d0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800518d0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x180008d70
movaps xmm6, xmmword [rsp + 0x80]
cmp r8d, 0x12
jge 0x180008ec1
movsxd rax, r8d
lea r9, [rsp + 0x20]
add r9, rax
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x34
xor byte [r9 - 1], al
cmp r8d, 0x12
jl 0x180008e90
lea rax, [rdi - 0xffffa9]
cmp rax, r13
ja 0x180008fe3
mov edx, 8
lea rcx, [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180008fe3
mov rdi, qword [rdi + 0x50]
test rdi, rdi
je 0x180008fe3
lea rax, [rsp + 0x20]
mov rbp, 0xffffffffffffffff
inc rbp
cmp byte [rax + rbp], r14b
jne 0x180008f01
nop word [rax + rax]
lea rax, [rdi - 0xffffd1]
mov qword [rsp + 0x40], r14
cmp rax, r13
ja 0x180008f3d
mov edx, 8
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180008f3d
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.180035f00
mov rsi, qword [rsp + 0x68]
lea rcx, [rsp + 0x50]
mov rbx, qword [rsp + 0x50]
cmp rsi, 0xf
mov r8, qword [rsp + 0x60]
cmova rcx, rbx
cmp r8, rbp
jne 0x180008f7b
lea rdx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180008ff1
cmp rsi, 0xf
jbe 0x180008fb2
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x180008faa
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800090c6
mov rcx, rbx
call fcn.18004c45c
lea rbx, [rdi + 0x20]
mov rdi, r14
lea rax, [rbx - 0xfffff9]
cmp rax, r13
ja 0x180008fda
mov edx, 8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180008fda
mov rdi, qword [rbx]
test rdi, rdi
jne 0x180008f10
mov dword [0x18005ffb8], r14d
xor eax, eax
jmp 0x18000909d
mov qword [rsp + 0xc8], r15
lea r15, [rdi + 0x4c]
lea rax, [r15 - 0xfffff9]
mov edi, r14d
cmp rax, r13
ja 0x18000902b
mov edx, 4
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
test eax, eax
jne 0x18000902b
mov edi, dword [r15]
mov r15, qword [rsp + 0xc8]
cmp rsi, 0xf
jbe 0x180009066
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x18000905e
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800090c6
mov rcx, rbx
call fcn.18004c45c
mov dword [0x18005ffb8], edi
test edi, edi
je 0x180008fea
mov ebx, edi
add rbx, r12
lea rax, [rbx - 0xfffff9]
cmp rax, r13
ja 0x18000909a
mov edx, 8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x18000909a
mov r14, qword [rbx]
mov rax, r14
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18004c400
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3