Function at 0x180031a90
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
movups xmm0, xmmword [0x18003acf0]
mov rdi, qword [0x180041828]
xor ebx, ebx
movups xmm1, xmmword [0x18003ad00]
mov r8d, ebx
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
lea r14d, [rbx + 0x14]
movaps xmmword [rax - 0x48], xmm8
lea r15d, [rbx + 0x1f]
mov qword [rax + 8], rsi
movzx eax, word [0x18003ad28]
mov esi, dword [0x180041018]
mov word [rbp - 0x11], ax
movzx eax, byte [0x18003ad2a]
mov byte [rbp - 0xf], al
movups xmmword [rbp - 0x49], xmm0
movups xmm0, xmmword [0x18003ad10]
movups xmmword [rbp - 0x39], xmm1
movsd xmm1, qword [0x18003ad20]
movsd qword [rbp - 0x19], xmm1
movups xmmword [rbp - 0x29], xmm0
cmp esi, 2
jl 0x180031c92
movdqa xmm0, xmmword [0x18003af90]
lea rcx, [rbp - 0x45]
movdqa xmm5, xmmword [0x18003aef0]
movdqa xmm4, xmmword [0x18003af60]
movdqa xmm7, xmmword [0x18003af80]
movdqa xmmword [rbp - 0x59], xmm0
mov edx, dword [rbp - 0x59]
movd xmm6, r14d
movd xmm8, r15d
nop dword [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 [0x18003af50]
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 [0x18003af50]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x38
jl 0x180031b60
cmp r8d, 0x3b
jl 0x180031c92
mov r9d, 7
lea r8, [rbp - 0x49]
call fcn.180031100
movzx ecx, word [0x18003ac80]
mov rdx, rax
mov word [rbp - 0x19], cx
movzx ecx, byte [0x18003ac82]
mov byte [rbp - 0x17], cl
jmp 0x180031cf8
movsxd rax, r8d
lea r9, [rbp - 0x49]
add r9, rax
nop dword [rax]
mov eax, 0x22dba73
lea r9, [r9 + 1]
imul r8d
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x77
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x39
xor byte [r9 - 1], al
cmp r8d, 0x3b
jl 0x180031ca0
mov r9d, 7
lea r8, [rbp - 0x49]
call fcn.180031100
mov rdx, rax
movzx eax, word [0x18003ac80]
mov word [rbp - 0x19], ax
movzx eax, byte [0x18003ac82]
mov byte [rbp - 0x17], al
mov rax, rdi
mov r8d, ebx
movups xmm0, xmmword [0x18003ac50]
movups xmm1, xmmword [0x18003ac60]
movups xmmword [rbp - 0x49], xmm0
movups xmm0, xmmword [0x18003ac70]
movups xmmword [rbp - 0x39], xmm1
movups xmmword [rbp - 0x29], xmm0
mov qword [rax], rdx
cmp esi, 2
jl 0x180031e6a
movdqa xmm0, xmmword [0x18003af90]
lea rcx, [rbp - 0x45]
movdqa xmm5, xmmword [0x18003aef0]
movdqa xmm4, xmmword [0x18003af60]
movdqa xmm7, xmmword [0x18003af80]
movdqa xmmword [rbp - 0x59], xmm0
mov edx, dword [rbp - 0x59]
movd xmm6, r14d
movd xmm8, r15d
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 [0x18003af50]
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 [0x18003af50]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x30
jl 0x180031d61
cmp r8d, 0x33
jge 0x180031eb1
movsxd rax, r8d
lea r10, [rbp - 0x49]
add r10, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x22dba73
lea r10, [r10 + 1]
imul r8d
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x77
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x39
xor byte [r10 - 1], al
cmp r8d, 0x33
jl 0x180031e80
mov r9d, 7
lea r8, [rbp - 0x49]
call fcn.180031100
movups xmm0, xmmword [0x18003ad30]
mov r8d, ebx
movups xmm1, xmmword [0x18003ad40]
movups xmmword [rbp - 0x49], xmm0
movups xmm0, xmmword [0x18003ad50]
movups xmmword [rbp - 0x29], xmm0
movups xmm0, xmmword [0x18003ad70]
movups xmmword [rbp - 0x39], xmm1
movups xmm1, xmmword [0x18003ad60]
mov qword [rdi + 0x28], rax
mov eax, dword [0x18003ad80]
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp - 0x19], xmm1
mov dword [rbp + 7], eax
cmp esi, 2
jl 0x180032059
movdqa xmm0, xmmword [0x18003af90]
lea rcx, [rbp - 0x45]
movdqa xmm5, xmmword [0x18003aef0]
movdqa xmm4, xmmword [0x18003af60]
movdqa xmm7, xmmword [0x18003af80]
movdqa xmmword [rbp - 0x59], xmm0
mov edx, dword [rbp - 0x59]
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 [0x18003af50]
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 [0x18003af50]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x50
jl 0x180031f50
cmp r8d, 0x54
jge 0x1800320a1
movsxd rax, r8d
lea r9, [rbp - 0x49]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x22dba73
lea r9, [r9 + 1]
imul r8d
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x77
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x39
xor byte [r9 - 1], al
cmp r8d, 0x54
jl 0x180032070
xor r9d, r9d
lea r8, [rbp - 0x49]
call fcn.180031100
movups xmm0, xmmword [0x18003ac90]
cmp esi, 2
movups xmm1, xmmword [0x18003aca0]
mov rsi, qword [rsp + 0xf0]
movups xmmword [rbp - 0x49], xmm0
movups xmm0, xmmword [0x18003acb0]
movups xmmword [rbp - 0x39], xmm1
movups xmm1, xmmword [0x18003acc0]
movups xmmword [rbp - 0x29], xmm0
movups xmm0, xmmword [0x18003acd0]
movups xmmword [rbp - 0x19], xmm1
movsd xmm1, qword [0x18003ace0]
mov qword [rdi + 0x48], rax
mov eax, dword [0x18003ace8]
movups xmmword [rbp - 9], xmm0
movsd qword [rbp + 7], xmm1
mov dword [rbp + 0xf], eax
jl 0x180032254
movdqa xmm0, xmmword [0x18003af90]
lea rcx, [rbp - 0x45]
movdqa xmm5, xmmword [0x18003aef0]
movdqa xmm4, xmmword [0x18003af60]
movdqa xmm7, xmmword [0x18003af80]
movdqa xmmword [rbp - 0x59], xmm0
mov edx, dword [rbp - 0x59]
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 [0x18003af50]
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 [0x18003af50]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x58
jl 0x180032150
cmp ebx, 0x5c
jge 0x18003228d
movsxd rax, ebx
lea r8, [rbp - 0x49]
add r8, rax
nop
mov eax, 0x22dba73
lea r8, [r8 + 1]
imul ebx
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x77
movzx eax, bl
inc ebx
sub al, cl
add al, 0x39
xor byte [r8 - 1], al
cmp ebx, 0x5c
jl 0x180032260
xor r9d, r9d
lea r8, [rbp - 0x49]
call fcn.180031100
lea r11, [rsp + 0xd0]
mov qword [rdi + 0x98], rax
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret