Function at 0x1800b6140
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
call fcn.1800654b0
cmp eax, 1
jbe 0x1800b6166
mov eax, 0xfffffff8
add rsp, 0xb0
pop rbp
ret
mov rcx, qword [0x180211c80]
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xd8], rdi
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0xa0], r15
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm7
movaps xmmword [rsp + 0x70], xmm8
call fcn.18004efa0
mov edi, dword [0x180112028]
xor esi, esi
lea rbx, [rsi - 1]
lea r14d, [rsi + 1]
lea r15d, [rsi + 0x1f]
test al, al
jne 0x1800b63b9
cmp byte [0x1800fea73], sil
movups xmm0, xmmword [0x1800fea60]
mov eax, dword [0x1800fea70]
mov dword [rbp - 0x19], eax
movups xmmword [rbp - 0x29], xmm0
je 0x1800b6380
mov r8d, esi
cmp edi, 2
jl 0x1800b6339
movdqa xmm0, xmmword [0x1800fef30]
lea rcx, [rbp - 0x25]
movdqa xmm5, xmmword [0x1800feda0]
movdqa xmm4, xmmword [0x1800fef20]
movdqa xmm7, xmmword [0x1800fee30]
movdqa xmmword [rbp - 0x39], xmm0
mov edx, dword [rbp - 0x39]
movd xmm6, r14d
movd xmm8, r15d
nop
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x1800fef10]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1800fef10]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x1800b6230
cmp r8d, 0x14
jge 0x1800b6380
movsxd rax, r8d
lea r9, [rbp - 0x29]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x94f2095
lea r9, [r9 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x34
xor byte [r9 - 1], al
cmp r8d, 0x14
jl 0x1800b6350
xorps xmm0, xmm0
mov qword [rbp - 1], rsi
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp + 7], rsi
lea rax, [rbp - 0x29]
mov r8, rbx
inc r8
cmp byte [rax + r8], sil
jne 0x1800b6396
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x11]
call fcn.180013d70
movzx edx, r14b
lea rcx, [rbp - 0x11]
call fcn.180029370
cmp byte [0x180211c18], sil
je 0x1800b6446
mov rcx, qword [0x180211c80]
lea r8, [0x180211c50]
lea rdx, [0x1800b52c0]
mov rcx, qword [rcx + 0x40]
call fcn.180065630
test eax, eax
jne 0x1800b643c
mov rax, qword [0x180211c80]
mov edx, r14d
mov rcx, qword [rax + 0x40]
call fcn.180065bf0
test eax, eax
jne 0x1800b643c
mov rcx, qword [0x180211c80]
lea r8, [0x180211c68]
lea rdx, [0x1800b5580]
mov rcx, qword [rcx + 0x68]
call fcn.180065630
test eax, eax
jne 0x1800b643c
mov rax, qword [0x180211c80]
mov edx, r14d
mov rcx, qword [rax + 0x68]
call fcn.180065bf0
test eax, eax
je 0x1800b6634
mov eax, 0xfffffff9
jmp 0x1800b6634
cmp byte [0x1800fea4d], sil
mov eax, dword [0x1800fea48]
movups xmm0, xmmword [str.fTWOA]
mov dword [rbp - 0x19], eax
movzx eax, word [0x1800fea4c]
movups xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x15], ax
je 0x1800b65fc
mov ecx, esi
cmp edi, 2
jl 0x1800b65c6
movdqa xmm0, xmmword [0x1800fef30]
lea rdx, [rbp - 0x25]
movdqa xmm5, xmmword [0x1800feda0]
movdqa xmm4, xmmword [0x1800fef20]
movdqa xmm7, xmmword [0x1800fee30]
movdqa xmmword [rbp - 0x39], xmm0
mov r8d, dword [rbp - 0x39]
movd xmm6, r14d
movd xmm8, r15d
nop dword [rax]
nop dword [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 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 ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x1800fef10]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1800fef10]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
pxor xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x1800b64c0
cmp ecx, 0x16
jge 0x1800b65fc
movsxd rax, ecx
lea r8, [rbp - 0x29]
add r8, rax
mov eax, 0x94f2095
lea r8, [r8 + 1]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x37
movzx eax, cl
inc ecx
sub al, dl
add al, 0x34
xor byte [r8 - 1], al
cmp ecx, 0x16
jl 0x1800b65d0
xorps xmm0, xmm0
mov qword [rbp - 1], rsi
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp + 7], rsi
lea rax, [rbp - 0x29]
nop
inc rbx
cmp byte [rax + rbx], sil
jne 0x1800b6610
mov r8, rbx
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x11]
call fcn.180013d70
xor edx, edx
lea rcx, [rbp - 0x11]
call fcn.180029370
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov r14, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
movaps xmm8, xmmword [rsp + 0x70]
add rsp, 0xb0
pop rbp
ret