Function at 0x18004ec20
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x140
movups xmm0, xmmword [0x18009ea20]
mov esi, dword [0x1800ab090]
xor ebx, ebx
movaps xmmword [rax - 0x28], xmm6
mov r8d, ebx
movdqa xmm6, xmmword [0x1800a0170]
movaps xmmword [rax - 0x38], xmm7
movdqa xmm7, xmmword [0x1800a0340]
movaps xmmword [rax - 0x48], xmm8
movdqa xmm8, xmmword [0x1800a02c0]
movaps xmmword [rax - 0x58], xmm9
movdqa xmm9, xmmword [0x1800a0280]
movaps xmmword [rax - 0x68], xmm10
mov eax, dword [0x18009ea30]
movdqa xmm10, xmmword [0x1800a01b0]
mov dword [rbp - 0x30], eax
movzx eax, word [0x18009ea34]
mov word [rbp - 0x2c], ax
movzx eax, byte [0x18009ea36]
mov byte [rbp - 0x2a], al
movups xmmword [rbp - 0x40], xmm0
cmp esi, 2
jl 0x18004edbd
movdqa xmmword [rsp + 0x30], xmm8
lea rcx, [rbp - 0x3c]
mov edx, dword [rsp + 0x30]
nop dword [rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm6
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm7
pmuldq xmm1, xmm7
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm6
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm7
pmuldq xmm1, xmm7
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x18004ecd0
cmp r8d, 0x17
jge 0x18004ee03
movsxd rax, r8d
lea r9, [rbp - 0x40]
add r9, rax
nop word [rax + rax]
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x31
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0x17
jl 0x18004edd0
mov eax, dword [0x18009e758]
mov r8d, ebx
mov dword [rsp + 0x50], eax
movzx eax, word [0x18009e75c]
mov word [rsp + 0x54], ax
movzx eax, byte [0x18009e75e]
mov byte [rsp + 0x56], al
movups xmm0, xmmword [0x18009e748]
movups xmmword [rsp + 0x40], xmm0
cmp esi, 2
jl 0x18004ef3d
movdqa xmmword [rsp + 0x30], xmm8
lea rcx, [rsp + 0x44]
mov edx, dword [rsp + 0x30]
nop dword [rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm6
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm7
pmuldq xmm1, xmm7
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm6
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm7
pmuldq xmm1, xmm7
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x18004ee50
cmp r8d, 0x17
jge 0x18004ef83
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop dword [rax + rax]
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x31
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0x17
jl 0x18004ef50
lea rax, [rsp + 0x40]
mov r8d, ebx
mov qword [rbp - 0x60], rax
movzx eax, byte [0x18009eeb8]
mov byte [rbp - 0x65], al
movups xmm0, xmmword [0x18009eea0]
movups xmmword [rbp - 0x7d], xmm0
movsd xmm0, qword [0x18009eeb0]
movsd qword [rbp - 0x6d], xmm0
cmp esi, 2
jl 0x18004f0bd
movdqa xmmword [rsp + 0x30], xmm8
lea rcx, [rbp - 0x79]
mov edx, dword [rsp + 0x30]
nop dword [rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm6
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm7
pmuldq xmm1, xmm7
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm6
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm7
pmuldq xmm1, xmm7
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x18
jl 0x18004efd0
cmp r8d, 0x19
jge 0x18004f103
movsxd rax, r8d
lea r9, [rbp - 0x7d]
add r9, rax
nop word [rax + rax]
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x31
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0x19
jl 0x18004f0d0
lea rax, [rbp - 0x7d]
mov r8d, ebx
mov qword [rbp - 0x58], rax
mov eax, dword [0x18009e5c0]
mov dword [rsp + 0x7e], eax
movzx eax, byte [0x18009e5c4]
mov byte [rbp - 0x7e], al
movups xmm0, xmmword [0x18009e5b0]
movups xmmword [rsp + 0x6e], xmm0
cmp esi, 2
jl 0x18004f23d
movdqa xmmword [rsp + 0x30], xmm8
lea rcx, [rsp + 0x72]
mov edx, dword [rsp + 0x30]
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm6
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm7
pmuldq xmm1, xmm7
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm6
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm7
pmuldq xmm1, xmm7
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x18004f150
cmp r8d, 0x15
jge 0x18004f283
movsxd rax, r8d
lea r9, [rsp + 0x6e]
add r9, rax
nop dword [rax + rax]
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x31
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0x15
jl 0x18004f250
lea rax, [rsp + 0x6e]
mov r8d, ebx
mov qword [rbp - 0x50], rax
mov eax, dword [0x18009e690]
mov dword [rsp + 0x67], eax
movzx eax, word [0x18009e694]
mov word [rsp + 0x6b], ax
movzx eax, byte [0x18009e696]
mov byte [rsp + 0x6d], al
movups xmm0, xmmword [0x18009e680]
movups xmmword [rsp + 0x57], xmm0
cmp esi, 2
jl 0x18004f3db
movdqa xmmword [rsp + 0x30], xmm8
lea rcx, [rsp + 0x5b]
mov edx, dword [rsp + 0x30]
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm6
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm7
pmuldq xmm1, xmm7
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm6
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm7
pmuldq xmm1, xmm7
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x18004f2e0
cmp r8d, 0x17
jl 0x18004f3db
xorps xmm0, xmm0
mov qword [rbp - 0x18], rbx
movdqu xmmword [rbp - 0x28], xmm0
jmp 0x18004f423
movsxd rax, r8d
lea r9, [rsp + 0x57]
add r9, rax
nop word [rax + rax]
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x31
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0x17
jl 0x18004f3f0
mov ecx, 0x20
lea rax, [rsp + 0x57]
mov r15d, ecx
mov qword [rbp - 0x48], rax
lea r14, [rbp - 0x60]
call fcn.18006a6f0
mov r8d, r15d
mov qword [rbp - 0x28], rax
mov rdx, r14
mov rdi, rax
lea rcx, [rax + 0x20]
mov qword [rbp - 0x18], rcx
mov rcx, rax
call fcn.18008e4e0
movsd xmm0, qword [str.pBCQ_RdLKSU_]
lea rax, [rdi + 0x20]
mov qword [rbp - 0x20], rax
mov eax, dword [0x18009e480]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x18009e484]
mov byte [rsp + 0x3c], al
movsd qword [rsp + 0x30], xmm0
cmp esi, 2
jl 0x18004f55c
movdqa xmm2, xmmword [0x1800a0180]
movdqa xmm1, xmm6
punpckldq xmm1, xmm6
movdqa xmm0, xmm6
punpckhdq xmm0, xmm6
mov ebx, 8
pmuldq xmm0, xmm7
pmuldq xmm1, xmm7
movd eax, xmm8
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmm10
psubd xmm6, xmm0
punpckldq xmm1, xmm2
andps xmm6, xmm9
pmuldq xmm1, xmm7
packuswb xmm6, xmm6
packuswb xmm6, xmm6
movd xmm0, eax
paddb xmm6, xmm0
movd xmm0, dword [str.pBCQ_RdLKSU_]
xorps xmm6, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm7
movd dword [rsp + 0x30], xmm6
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, dword [rsp + 0x34]
pmulld xmm0, xmm10
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rsp + 0x34], xmm2
movsxd rax, ebx
lea r8, [rsp + 0x30]
add r8, rax
nop word [rax + rax]
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x31
add cl, bl
inc ebx
xor byte [r8 - 1], cl
cmp ebx, 0xd
jl 0x18004f570
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x30]
call fcn.18004b230
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
mov rsp, r11
pop r15
pop r14
pop rbp
ret