Function at 0x18001ba10
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xc00
movsxd rbp, dword [rcx + 0x47c]
lea rdx, [0x18029d1e0]
mov rdi, rcx
shl rbp, 5
add rbp, qword [rcx + 0x58]
mov r8d, 0xb65
lea rcx, [rsp + 0x50]
call fcn.1800431e0
test byte [rdi + 4], 2
mov r8d, dword [rdi + 0x28]
jne 0x18001c210
movzx r10d, word [rbp + 4]
mov qword [rsp + 0xc20], rbx
xor ebx, ebx
mov r8d, ebx
mov qword [rsp + 0xc28], r12
mov r12d, dword [0x1802ed0e0]
mov qword [rsp + 0xc30], r13
lea r13d, [r10 + 0x6d]
mov qword [rsp + 0xbf8], r14
lea r14d, [rbx + 1]
mov qword [rsp + 0xbf0], r15
lea r15d, [rbx + 0x1f]
movaps xmmword [rsp + 0xbe0], xmm6
movaps xmmword [rsp + 0xbd0], xmm7
movaps xmmword [rsp + 0xbc0], xmm8
cmp qword [rdi + 0x18], rbx
je 0x18001be42
cmp r12d, 2
jl 0x18001bc0f
movdqa xmm0, xmmword [0x18029de80]
lea rcx, [rsp + 0x54]
movdqa xmm5, xmmword [0x18029de40]
movdqa xmm4, xmmword [0x18029de70]
movdqa xmm7, xmmword [0x18029de50]
movdqa xmmword [rsp + 0x40], xmm0
mov edx, dword [rsp + 0x40]
movd xmm6, r14d
movd xmm8, r15d
nop dword [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, 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 [0x18029de60]
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 [0x18029de60]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0xb60
jl 0x18001bb00
cmp r8d, 0xb65
jge 0x18001bc53
movsxd rax, r8d
lea r9, [rsp + 0x50]
add r9, 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, 0x32
xor byte [r9 - 1], al
cmp r8d, 0xb65
jl 0x18001bc20
movzx r8d, word [rbp + 6]
lea rax, [rsp + 0x50]
lea rsi, [rbp + 6]
mov byte [rsp + 0x30], 0x2e
mov edx, r10d
mov qword [rsp + 0x28], rax
mov rcx, rdi
call fcn.18001b410
cmp byte [rsp + 0xbb4], bl
je 0x18001be1f
cmp r12d, 2
jl 0x18001bdda
movdqa xmm0, xmmword [0x18029de80]
lea rcx, [rsp + 0x54]
movdqa xmm5, xmmword [0x18029de40]
movdqa xmm4, xmmword [0x18029de70]
movdqa xmm7, xmmword [0x18029de50]
movdqa xmmword [rsp + 0x40], xmm0
mov edx, dword [rsp + 0x40]
movd xmm6, r14d
movd xmm8, r15d
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 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 ebx, 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 [0x18029de60]
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 [0x18029de60]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0xb60
jl 0x18001bcd0
cmp ebx, 0xb65
jge 0x18001be1f
movsxd rax, ebx
lea r8, [rsp + 0x50]
add r8, rax
nop word [rax + rax]
mov eax, 0x94f2095
lea r8, [r8 + 1]
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, bl
inc ebx
sub al, cl
add al, 0x32
xor byte [r8 - 1], al
cmp ebx, 0xb65
jl 0x18001bdf0
movzx r8d, word [rsi]
lea rax, [rsp + 0x50]
mov byte [rsp + 0x30], 0x58
mov edx, r13d
mov rcx, rdi
mov qword [rsp + 0x28], rax
call fcn.18001b410
jmp 0x18001c1cd
cmp r12d, 2
jl 0x18001bf9f
movdqa xmm0, xmmword [0x18029de80]
lea rcx, [rsp + 0x54]
movdqa xmm5, xmmword [0x18029de40]
movdqa xmm4, xmmword [0x18029de70]
movdqa xmm7, xmmword [0x18029de50]
movdqa xmmword [rsp + 0x40], xmm0
mov edx, dword [rsp + 0x40]
movd xmm6, r14d
movd xmm8, r15d
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, 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 [0x18029de60]
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 [0x18029de60]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0xb60
jl 0x18001be90
cmp r8d, 0xb65
jge 0x18001bfe3
movsxd rax, r8d
lea r9, [rsp + 0x50]
add r9, 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, 0x32
xor byte [r9 - 1], al
cmp r8d, 0xb65
jl 0x18001bfb0
movzx r8d, word [rbp + 6]
lea rax, [rsp + 0x50]
lea rsi, [rbp + 6]
mov byte [rsp + 0x30], 0x2e
mov edx, r10d
mov qword [rsp + 0x28], rax
mov rcx, rdi
call fcn.18001b6e0
cmp byte [rsp + 0xbb4], bl
je 0x18001c1af
cmp r12d, 2
jl 0x18001c16a
movdqa xmm0, xmmword [0x18029de80]
lea rcx, [rsp + 0x54]
movdqa xmm5, xmmword [0x18029de40]
movdqa xmm4, xmmword [0x18029de70]
movdqa xmm7, xmmword [0x18029de50]
movdqa xmmword [rsp + 0x40], xmm0
mov edx, dword [rsp + 0x40]
movd xmm6, r14d
movd xmm8, r15d
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 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 ebx, 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 [0x18029de60]
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 [0x18029de60]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0xb60
jl 0x18001c060
cmp ebx, 0xb65
jge 0x18001c1af
movsxd rax, ebx
lea r8, [rsp + 0x50]
add r8, rax
nop word [rax + rax]
mov eax, 0x94f2095
lea r8, [r8 + 1]
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, bl
inc ebx
sub al, cl
add al, 0x32
xor byte [r8 - 1], al
cmp ebx, 0xb65
jl 0x18001c180
movzx r8d, word [rsi]
lea rax, [rsp + 0x50]
mov byte [rsp + 0x30], 0x58
mov edx, r13d
mov rcx, rdi
mov qword [rsp + 0x28], rax
call fcn.18001b6e0
movaps xmm8, xmmword [rsp + 0xbc0]
movaps xmm7, xmmword [rsp + 0xbd0]
movaps xmm6, xmmword [rsp + 0xbe0]
mov r15, qword [rsp + 0xbf0]
mov r14, qword [rsp + 0xbf8]
mov r13, qword [rsp + 0xc30]
mov r12, qword [rsp + 0xc28]
mov rbx, qword [rsp + 0xc20]
jmp 0x18001c287
movzx eax, word [rbp + 4]
lea rsi, [rbp + 6]
movzx edx, word [rsi]
mov r9, qword [rdi + 0x18]
imul edx, r8d
add edx, eax
lea eax, [rdx + r8]
movsxd r8, edx
movsxd rcx, eax
test r9, r9
je 0x18001c257
mov byte [r9 + rcx + 1], 0xff
mov rax, qword [rdi + 0x18]
mov byte [rcx + rax], 0xff
mov rax, qword [rdi + 0x18]
mov byte [r8 + rax + 1], 0xff
mov rax, qword [rdi + 0x18]
mov byte [r8 + rax], 0xff
jmp 0x18001c287
mov rax, qword [rdi + 0x20]
mov dword [rax + rcx*4 + 4], 0xffffffff
mov rax, qword [rdi + 0x20]
mov dword [rax + rcx*4], 0xffffffff
mov rax, qword [rdi + 0x20]
mov dword [rax + r8*4 + 4], 0xffffffff
mov rax, qword [rdi + 0x20]
mov dword [rax + r8*4], 0xffffffff
movzx eax, word [rbp + 4]
movd xmm2, eax
movzx eax, word [rsi]
cvtdq2ps xmm2, xmm2
movd xmm1, eax
addss xmm2, dword [0x18029dd70]
cvtdq2ps xmm1, xmm1
mulss xmm2, dword [rdi + 0x30]
addss xmm1, dword [0x18029dd70]
movss dword [rdi + 0x38], xmm2
mulss xmm1, dword [rdi + 0x34]
movss dword [rdi + 0x3c], xmm1
add rsp, 0xc00
pop rdi
pop rsi
pop rbp
ret