Function at 0x14005a110
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 - 0x148]
sub rsp, 0x230
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
mov rax, qword [0x140108088]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov eax, dword [0x1400f3d80]
mov dword [rsp + 0x60], eax
xor ebx, ebx
lea r14d, [rbx + 5]
lea r15d, [rbx + 0x1f]
mov edi, dword [0x1401080a0]
cmp byte [0x1400f3d83], bl
je 0x14005a253
cmp edi, 2
jl 0x14005a209
movdqa xmm3, xmmword [0x1400f4d80]
movdqa xmm2, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x1400f4fd0]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x1400f4fd0]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
movd xmm0, r14d
psrad xmm2, xmm0
movd xmm0, r15d
movdqa xmm1, xmm2
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x1400f4dd0]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400f4e20]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400f4e60]
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rsp + 0x60], xmm2
jmp 0x14005a253
lea r9, [rsp + 0x60]
mov r8d, ebx
nop dword [rax]
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 4
jl 0x14005a220
lea rcx, [rsp + 0x60]
call qword [int.1400d6bd8]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x20]
call fcn.1400d2886
movups xmm0, xmmword [0x1400f4708]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [0x1400f4718]
movups xmmword [rbp - 0x40], xmm1
movzx eax, byte [0x1400f4728]
mov byte [rbp - 0x30], al
mov r8d, ebx
cmp edi, 2
jl 0x14005a3eb
movdqa xmm5, xmmword [0x1400f4d80]
movdqa xmm4, xmmword [0x1400f4fd0]
movd xmm6, r14d
movdqa xmm7, xmmword [0x1400f4dd0]
movd xmm8, r15d
movdqa xmm0, xmmword [0x1400f4e60]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rbp - 0x4c]
mov edx, dword [rsp + 0x70]
nop dword [rax]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, 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
andps xmm2, xmmword [0x1400f4e20]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
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
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400f4e20]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x20
jl 0x14005a2e0
cmp r8d, 0x21
jge 0x14005a433
movsxd rax, r8d
lea r9, [rbp - 0x50]
add r9, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x21
jl 0x14005a400
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x20]
call fcn.14004b310
nop
movups xmm0, xmmword [0x1400f3830]
movups xmmword [rsp + 0x40], xmm0
movsd xmm0, qword [0x1400f3840]
movsd qword [rsp + 0x50], xmm0
movzx eax, word [0x1400f3848]
mov word [rsp + 0x58], ax
movzx eax, byte [0x1400f384a]
mov byte [rsp + 0x5a], al
mov r8d, ebx
cmp edi, 2
jl 0x14005a5cb
movdqa xmm5, xmmword [0x1400f4d80]
movdqa xmm4, xmmword [0x1400f4fd0]
movd xmm6, r14d
movdqa xmm7, xmmword [0x1400f4dd0]
movd xmm8, r15d
movdqa xmm0, xmmword [0x1400f4e60]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x44]
mov edx, dword [rsp + 0x70]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, 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
andps xmm2, xmmword [0x1400f4e20]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
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
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400f4e20]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x18
jl 0x14005a4c0
cmp r8d, 0x1b
jge 0x14005a613
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x1b
jl 0x14005a5e0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.14004cb50
lea rdx, [0x14004cd40]
mov rcx, rax
call qword [0x1400d6530]
lea rcx, [rbp - 0x18]
call fcn.14004c580
test rax, rax
jne 0x14005a65b
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x20]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [fcn.1400d6588]
movups xmm0, xmmword [0x1400f3718]
movups xmmword [rbp - 0x80], xmm0
movzx eax, word [0x1400f3728]
mov word [rbp - 0x70], ax
movzx eax, byte [0x1400f372a]
mov byte [rbp - 0x6e], al
mov r8d, ebx
cmp edi, 2
jl 0x14005a7cb
movdqa xmm5, xmmword [0x1400f4d80]
movdqa xmm4, xmmword [0x1400f4fd0]
movd xmm6, r14d
movdqa xmm7, xmmword [0x1400f4dd0]
movd xmm8, r15d
movdqa xmm0, xmmword [0x1400f4e60]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rbp - 0x7c]
mov edx, dword [rsp + 0x70]
nop
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, 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
andps xmm2, xmmword [0x1400f4e20]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
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
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400f4e20]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x10
jl 0x14005a6c0
cmp r8d, 0x13
jge 0x14005a813
movsxd rax, r8d
lea r9, [rbp - 0x80]
add r9, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x13
jl 0x14005a7e0
movsd xmm0, qword [0x1400f3f18]
movsd qword [rsp + 0x30], xmm0
movzx eax, word [0x1400f3f20]
mov word [rsp + 0x38], ax
cmp byte [0x1400f3f21], 0
je 0x14005a868
mov byte [rsp + 0x30], 0x6e
xor byte [rsp + 0x31], 0x33
xor byte [rsp + 0x32], 0x34
xor byte [rsp + 0x33], 0x35
xor byte [rsp + 0x34], 0x36
xor byte [rsp + 0x35], 0x37
xor byte [rsp + 0x36], 0x38
xor byte [rsp + 0x37], 0x39
xor byte [rsp + 0x38], 0x3a
xor byte [rsp + 0x39], 0x3b
lea rcx, [rsp + 0x30]
call fcn.140f1e854
nop
lea rdx, [rbp - 0x80]
mov rcx, rax
call int.140f21279
nop
mov rsi, rax
movups xmm0, xmmword [0x1400f4098]
movups xmmword [rbp - 0x68], xmm0
movzx ecx, byte [0x1400f40a8]
mov byte [rbp - 0x58], cl
cmp edi, 2
jl 0x14005a9e6
movdqa xmm5, xmmword [0x1400f4d80]
movdqa xmm4, xmmword [0x1400f4fd0]
movd xmm6, r14d
movdqa xmm7, xmmword [0x1400f4dd0]
movd xmm8, r15d
movdqa xmm0, xmmword [0x1400f4e60]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rbp - 0x64]
mov edx, dword [rsp + 0x70]
nop dword [rax]
movd xmm2, ebx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, 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
andps xmm2, xmmword [0x1400f4e20]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
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
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400f4e20]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
lea rcx, [rcx + 8]
cmp ebx, 0x10
jl 0x14005a8e0
cmp ebx, 0x11
jge 0x14005aa1e
movsxd rax, ebx
lea r8, [rbp - 0x68]
add r8, rax
mov eax, 0x8fb823ef
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, bl
sub al, cl
add al, 0x32
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x11
jl 0x14005a9f0
movups xmm0, xmmword [0x1400f3f28]
movups xmmword [rsp + 0x40], xmm0
mov eax, dword [0x1400f3f38]
mov dword [rsp + 0x50], eax
cmp word [0x1400f3f3a], 0
je 0x14005aa7e
mov eax, 0x6e
mov word [rsp + 0x40], ax
xor word [rsp + 0x42], 0x33
xor word [rsp + 0x44], 0x34
xor word [rsp + 0x46], 0x35
xor word [rsp + 0x48], 0x36
xor word [rsp + 0x4a], 0x37
xor word [rsp + 0x4c], 0x38
xor word [rsp + 0x4e], 0x39
xor word [rsp + 0x50], 0x3a
xor word [rsp + 0x52], 0x3b
lea rcx, [rsp + 0x40]
call fcn.140f25ff1
nop
lea rdx, [rbp - 0x68]
mov rcx, rax
call int.140f21279
nop
mov rbx, rax
lea r9, [rbp - 0x28]
xor r8d, r8d
mov dl, 1
lea ecx, [r8 + 0x13]
call rsi
lea rax, [rbp - 0x24]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 6
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc00002b4
call rbx
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [0x1400f2d78]
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x18]
call fcn.14004bfb0
lea rcx, [rbp - 0x10]
call qword [fcn.1400d6540]
lea rcx, [rbp + 0x88]
call qword [fcn.1400d6548]
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400d1840
lea r11, [rsp + 0x230]
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]
mov rsp, r11
pop r15
pop r14
pop rbp
ret