Function at 0x1400022e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x30]
sub rsp, 0x130
movaps xmmword [rsp + 0x120], xmm6
mov rdi, rcx
xor r8d, r8d
mov qword [rbp - 0x1c], r8
mov qword [rbp - 8], 2
mov qword [rbp + 0x10], 2
mov qword [rbp - 0x30], r8
mov dword [rbp - 0x20], 0x1c
mov dword [rbp - 0x28], 0x3c
mov dword [rbp - 0x24], 1
mov dword [rbp - 0xc], 0x20
mov qword [rbp], rdx
mov qword [rbp - 0x14], 1
mov qword [rbp + 8], 1
mov dword [rbp + 0x70], 0xb000
mov dword [rbp + 0x74], 0xa000
movups xmm0, xmmword [0x1400c2df0]
movups xmmword [rbp - 0x50], xmm0
movsd xmm0, qword [0x1400c2e00]
movsd qword [rbp - 0x40], xmm0
mov eax, dword [0x1400c2e08]
mov dword [rbp - 0x38], eax
movzx eax, word [0x1400c2e0c]
mov word [rbp - 0x34], ax
cmp byte [0x1400c2e0d], r8b
je 0x140002510
cmp dword [0x1400e1258], 2
jl 0x1400024c7
movdqa xmm4, xmmword [0x1400c2e60]
movdqa xmm3, xmmword [0x1400c3010]
movdqa xmm5, xmmword [str.6666]
movdqa xmm0, xmmword [0x1400c2ee0]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rbp - 0x4c]
movdqa xmm6, xmmword [0x1400c2ed0]
mov edx, dword [rsp + 0x60]
nop dword [rax]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x18
jl 0x1400023e0
cmp r8d, 0x1e
jge 0x140002510
movsxd rax, r8d
lea r9, [rbp - 0x50]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x1e
jl 0x1400024e0
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
lea rax, [rbp - 0x50]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140002530
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.140001620
nop
lea rsi, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rsi, qword [rbp - 0x70]
movsd xmm0, qword [0x1400c2de0]
movsd qword [rsp + 0x60], xmm0
movzx eax, word [0x1400c2de8]
mov word [rsp + 0x68], ax
cmp byte [0x1400c2de9], 0
je 0x1400025ab
mov byte [rsp + 0x60], 0x64
xor byte [rsp + 0x61], 0x33
xor byte [rsp + 0x62], 0x34
xor byte [rsp + 0x63], 0x35
xor byte [rsp + 0x64], 0x36
xor byte [rsp + 0x65], 0x37
xor byte [rsp + 0x66], 0x38
xor byte [rsp + 0x67], 0x39
xor byte [rsp + 0x68], 0x3a
xor byte [rsp + 0x69], 0x3b
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
lea rax, [rsp + 0x60]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400025c0
mov r8, rbx
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.140001620
nop
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rdx, qword [rsp + 0x70]
mov r8, rsi
lea rcx, [0x1400e14d8]
call fcn.140050b40
mov r14, rax
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14000263d
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002638
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002638
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059504
movdqa xmm0, xmmword [0x1400c2e50]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140002695
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002688
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002688
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059504
movdqa xmm0, xmmword [0x1400c2e50]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
lea rsi, [rdi + 8]
lea rbx, [rdi + 0x10]
mov qword [rsp + 0x58], rsi
lea rax, [rbp + 0x68]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call r14
cmp eax, 0x887a0004
jne 0x140002741
mov qword [rsp + 0x58], rsi
lea rax, [rbp + 0x68]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 5
xor ecx, ecx
call r14
test eax, eax
je 0x140002749
xor al, al
jmp 0x14000277f
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea r9, [rbp + 0x78]
lea r8, [0x1400c2e10]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [rdi]
mov rax, qword [rcx]
lea r9, [rdi + 0x18]
xor r8d, r8d
mov rdx, qword [rbp + 0x78]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov al, 1
movaps xmm6, xmmword [rsp + 0x120]
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret