Function at 0x18004fdb0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
movups xmm0, xmmword [str.kmoc_S]
mov r14d, dword [0x18010c090]
xor ebx, ebx
movdqa xmm5, xmmword [0x1800f8bf0]
mov r8d, ebx
movaps xmmword [rax - 0x28], xmm6
movdqa xmm6, xmmword [0x1800f8a70]
movaps xmmword [rax - 0x38], xmm7
mov eax, dword [0x1800e9a50]
movdqa xmm7, xmmword [0x1800f8b00]
mov dword [rbp + 0x1f], eax
movzx eax, word [0x1800e9a54]
mov word [rbp + 0x23], ax
movups xmm1, xmmword [0x1800e9a40]
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm1
cmp r14d, 2
jl 0x18004ff31
movdqa xmm4, xmmword [0x1800f8be0]
lea rcx, [rbp - 1]
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm6
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm4
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm6
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm4
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp r8d, 0x10
jl 0x18004fe40
cmp r8d, 0x13
jge 0x18004ff74
movsxd rax, r8d
lea r9, [rbp - 1]
lea r9, [r9 + rax*2]
nop dword [rax]
mov eax, 0x94f2095
lea r9, [r9 + 2]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x37
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x38
xor word [r9 - 2], ax
cmp r8d, 0x13
jl 0x18004ff40
cmp byte [0x1800e93b5], bl
mov eax, dword [0x1800e93b0]
movsd xmm0, qword [0x1800e93a8]
mov dword [rbp - 0x21], eax
movzx eax, word [0x1800e93b4]
mov word [rbp - 0x1d], ax
movsd qword [rbp - 0x29], xmm0
je 0x1800500c0
mov r8d, ebx
cmp r14d, 2
jl 0x180050079
movdqa xmm2, xmmword [0x1800f8a90]
movdqa xmm1, xmm6
punpckldq xmm1, xmm6
movdqa xmm0, xmm6
punpckhdq xmm0, xmm6
mov r8d, 8
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmm7
psubd xmm6, xmm0
punpckldq xmm1, xmm2
andps xmm6, xmmword [0x1800f8b90]
movd xmm0, dword [0x1800e93a8]
packuswb xmm6, xmm6
packuswb xmm6, xmm6
paddb xmm6, xmmword [0x1800f8c10]
xorps xmm6, xmm0
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
movd dword [rbp - 0x29], xmm6
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
movd xmm0, dword [rbp - 0x25]
andps xmm2, xmmword [0x1800f8b90]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800f8c10]
xorps xmm2, xmm0
movd dword [rbp - 0x25], xmm2
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, 0x38
xor byte [r9 - 1], al
cmp r8d, 0xe
jl 0x180050090
xorps xmm0, xmm0
mov qword [rbp - 9], rbx
lea rax, [rbp - 0x29]
mov ecx, 8
movdqu xmmword [rbp - 0x19], xmm0
mov qword [rbp + 0x67], rax
lea rsi, [rbp + 0x67]
call fcn.1800b0f50
mov r8d, 8
mov qword [rbp - 0x19], rax
mov rdx, rsi
mov qword [rbp - 0x11], rax
mov rdi, rax
lea rcx, [rax + 8]
mov qword [rbp - 9], rcx
mov rcx, rax
call fcn.1800d7a80
movsd xmm0, qword [0x1800e9700]
lea rax, [rdi + 8]
mov qword [rbp - 0x11], rax
mov eax, dword [0x1800e9708]
mov dword [rbp - 0x31], eax
movzx eax, byte [0x1800e970c]
mov byte [rbp - 0x2d], al
movsd qword [rbp - 0x39], xmm0
cmp r14d, 2
jl 0x180050220
movdqa xmm3, xmmword [0x1800f8a70]
mov ebx, 8
movdqa xmm2, xmmword [0x1800f8a90]
movdqa xmm1, xmm3
movdqa xmm5, xmmword [0x1800f8bf0]
movdqa xmm0, xmm3
mov eax, dword [0x1800f8c10]
punpckhdq xmm0, xmm3
punpckldq xmm1, xmm3
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmmword [0x1800f8b00]
psubd xmm3, xmm0
punpckldq xmm1, xmm2
andps xmm3, xmmword [0x1800f8b90]
packuswb xmm3, xmm3
pmuldq xmm1, xmm5
packuswb xmm3, xmm3
movd xmm0, eax
paddb xmm3, xmm0
movd xmm0, dword [0x1800e9700]
xorps xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
movd dword [rbp - 0x39], xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, dword [rbp - 0x35]
pmulld xmm0, xmmword [0x1800f8b00]
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmmword [0x1800f8b90]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rbp - 0x35], xmm2
movsxd rax, ebx
lea r8, [rbp - 0x39]
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, 0x38
xor byte [r8 - 1], al
cmp ebx, 0xd
jl 0x180050230
lea r8, [rbp - 1]
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x39]
call fcn.18004c280
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret