Function at 0x1800388f0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xe0
mov qword [r11 + 8], rbx
xor ebx, ebx
cmp qword [0x1800a7670], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov esi, dword [0x1800a5018]
lea ebp, [rbx + 5]
mov qword [r11 + 0x20], r14
lea r14d, [rbx + 0x1f]
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
movaps xmmword [r11 - 0x38], xmm8
jne 0x180038b21
movzx eax, word [0x1800982b8]
mov r8d, ebx
mov word [rsp + 0x58], ax
movups xmm0, xmmword [0x180098280]
movups xmm1, xmmword [0x180098290]
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [0x1800982a0]
movups xmmword [rsp + 0x30], xmm1
movsd xmm1, qword [0x1800982b0]
movsd qword [rsp + 0x50], xmm1
movups xmmword [rsp + 0x40], xmm0
cmp esi, 2
jl 0x180038ac4
movdqa xmm5, xmmword [0x18009d8f0]
lea rcx, [rsp + 0x20]
movdqa xmm4, xmmword [0x18009dd40]
movdqa xmm7, xmmword [0x18009d940]
movaps xmmword [r11 - 0x48], xmm9
movdqa xmm9, xmmword [0x18009d9d0]
movd xmm6, ebp
movd xmm8, r14d
nop dword [rax]
nop dword [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
pxor xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
pxor xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp r8d, 0x18
jl 0x1800389c0
movaps xmm9, xmmword [rsp + 0xa0]
cmp r8d, 0x1d
jge 0x180038b08
movsxd rax, r8d
lea r9, [rsp + 0x20]
lea r9, [r9 + rax*2]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 2]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x33
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x30
xor word [r9 - 2], ax
cmp r8d, 0x1d
jl 0x180038ad0
xor r9d, r9d
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [0x1800a7758]
mov qword [0x1800a7670], rax
call fcn.18005c870
test rax, rax
je 0x180038b37
mov rdx, qword [0x1800a7aa0]
add rdx, rax
jmp 0x180038b3a
mov rdx, rbx
mov rax, qword [rdx]
mov rcx, qword [rax]
test rcx, rcx
je 0x180038b51
mov rdi, qword [0x1800a7aa8]
add rdi, rcx
jmp 0x180038b54
mov rdi, rbx
movups xmm0, xmmword [0x180098210]
cmp esi, 2
movups xmm1, xmmword [0x180098220]
mov eax, dword [0x180098278]
mov rdi, qword [rdi]
mov rsi, qword [rsp + 0x100]
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [0x180098230]
movups xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x180098250]
movups xmmword [rsp + 0x30], xmm1
movups xmm1, xmmword [0x180098240]
movups xmmword [rsp + 0x60], xmm0
movsd xmm0, qword [0x180098270]
movups xmmword [rsp + 0x50], xmm1
movups xmm1, xmmword [0x180098260]
mov dword [rsp + 0x88], eax
movzx eax, byte [0x18009827c]
movsd qword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm1
mov byte [rsp + 0x8c], al
jl 0x180038d2c
movdqa xmm0, xmmword [str.0000000000000000]
lea rcx, [rsp + 0x24]
movdqa xmm5, xmmword [0x18009d8f0]
movdqa xmm4, xmmword [0x18009dd40]
movdqa xmm7, xmmword [0x18009d940]
movdqa xmmword [rsp + 0x90], xmm0
mov edx, dword [rsp + 0x90]
movd xmm6, ebp
movd xmm8, r14d
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
paddd xmm1, xmm2
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 [0x18009d9f0]
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
paddd xmm1, xmm3
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 [0x18009d9f0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x68
jl 0x180038c20
cmp ebx, 0x6d
jge 0x180038d6f
movsxd rax, ebx
lea r8, [rsp + 0x20]
add r8, rax
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r8, [r8 + 1]
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 eax, bl
inc ebx
sub al, cl
add al, 0x30
xor byte [r8 - 1], al
cmp ebx, 0x6d
jl 0x180038d40
mov rcx, qword [rdi]
lea rdx, [rsp + 0x20]
call fcn.1800796d0
movsxd rdx, eax
mov rcx, rdi
mov rax, qword [rdi]
mov r8, qword [rax + rdx*8]
mov qword [0x1800a7700], r8
lea r8, [0x180031cf0]
call fcn.180078a50
movaps xmm8, xmmword [rsp + 0xb0]
movaps xmm7, xmmword [rsp + 0xc0]
movaps xmm6, xmmword [rsp + 0xd0]
mov r14, qword [rsp + 0x108]
mov rbp, qword [rsp + 0xf8]
mov rbx, qword [rsp + 0xf0]
test al, al
je 0x180038dd9
mov rcx, rdi
call fcn.1800789b0
xor al, al
add rsp, 0xe0
pop rdi
ret