Function at 0x140006cc0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x14005e040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rdx
mov qword [rbp - 0x21], rdx
xor ebx, ebx
lea rdx, [rcx + 0x40]
call fcn.1400047a0
mov r14, rax
test rax, rax
jne 0x140006e80
mov rax, qword [0x14004fa60]
mov qword [rbp - 0x21], rax
cmp byte [0x14004fa67], bl
je 0x140006e6f
cmp dword [0x14005e088], 2
jl 0x140006e31
movdqa xmm4, xmmword [0x140056550]
movdqa xmm2, xmmword [0x140056370]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400563a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140056420]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.7777777777777777]
movd xmm0, dword [rbp - 0x21]
xorps xmm2, xmm0
movd dword [rbp - 0x21], xmm2
movdqa xmm3, xmmword [0x140056390]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400563a0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140056420]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.7777777777777777]
movd xmm0, dword [rbp - 0x1d]
xorps xmm2, xmm0
movd dword [rbp - 0x1d], xmm2
lea rdx, [rbp - 0x21]
mov rcx, rsi
call fcn.140004680
jmp 0x140006fb7
lea r8, [rbp - 0x21]
nop word [rax + rax]
mov eax, 0xa0a0a0a1
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx edx, bl
sub dl, cl
add dl, 0x37
xor byte [r8], dl
inc ebx
lea r8, [r8 + 1]
cmp ebx, 8
jl 0x140006e40
lea rdx, [rbp - 0x21]
mov rcx, rsi
call fcn.140004680
jmp 0x140006fb7
mov dword [rbp - 0x21], ebx
mov dword [rbp + 8], ebx
mov word [rbp + 0xc], bx
mov byte [rbp + 0xe], bl
mov dword [rbp - 0x19], 0xe5d9a1
add rax, 0x30
mov qword [rbp - 0x11], rax
lea rax, [rbp - 0x21]
mov qword [rbp - 9], rax
mov qword [rbp - 1], 4
mov eax, dword [0x1400d8478]
mov dword [rbp - 0x15], eax
mov byte [rbp + 7], bl
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r9d, 0x28
lea r8, [rbp - 0x19]
mov edx, 0x2209e0
mov rcx, qword [0x1400d8480]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [rbp - 0x21]
lea rcx, [rdi + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14004c1a8
mov r15, rax
add rdi, rdi
lea rdx, [r14 + 0x28]
call fcn.1400047a0
mov rdx, rax
mov r9, rdi
mov r8, r15
call fcn.140004840
mov rdx, r15
lea rcx, [rbp + 0xf]
call fcn.140003140
nop
lea rcx, [rbp + 0xf]
mov rax, qword [rbp + 0x1f]
cmp qword [rbp + 0x27], 7
jbe 0x140006f4c
mov rdx, qword [rbp + 0xf]
lea r8, [rdx + rax*2]
jmp 0x140006f54
lea r8, [rcx + rax*2]
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x19]
call fcn.1400048e0
mov rcx, r15
call fcn.14004c174
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 9]
movups xmmword [rsi + 0x10], xmm1
mov rdx, qword [rbp + 0x27]
cmp rdx, 7
jbe 0x140006fb7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006fb2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006fb2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004c174
mov rax, rsi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14004bed0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret