Function at 0x140049490
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 - 0x28]
sub rsp, 0x110
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
mov rax, qword [0x14024b028]
xor rax, rsp
mov qword [rbp - 0x28], rax
movups xmm0, xmmword [0x14022edc8]
mov esi, dword [0x14024b008]
xor ebx, ebx
movups xmmword [rbp - 0x48], xmm0
psrldq xmm0, 0xf
lea r14d, [rbx + 5]
movd eax, xmm0
lea r15d, [rbx + 0x1f]
test al, al
je 0x140049686
cmp esi, 2
jl 0x140049647
movdqa xmm0, xmmword [0x140230170]
lea rcx, [rbp - 0x44]
movdqa xmm5, xmmword [0x14022ffe0]
mov edx, ebx
movdqa xmm4, xmmword [0x1402302d0]
movdqa xmm7, xmmword [0x140230000]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movd xmm6, r14d
movd xmm8, r15d
nop word [rax + rax]
movd xmm2, edx
lea eax, [rdx + 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 edx, 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
andps xmm2, xmmword [0x140230080]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps 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, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140230080]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x10
jl 0x140049540
jmp 0x140049686
lea r9, [rbp - 0x48]
mov r8d, ebx
nop
mov eax, 0x8fb823ef
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x39
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0x10
jl 0x140049650
mov eax, dword [0x14022f22c]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], eax
movzx eax, word [0x14022f230]
xor byte [rsp + 0x31], 0x3a
xor byte [rsp + 0x32], 0x3b
xor byte [rsp + 0x33], 0x3c
mov word [rsp + 0x34], ax
movzx eax, byte [0x14022f232]
xor byte [rsp + 0x34], 0x3d
xor al, 0x3f
xor byte [rsp + 0x35], 0x3e
mov byte [rsp + 0x36], al
mov byte [rsp + 0x30], 0x77
call qword [0x1401e6320]
mov rcx, rax
lea rdx, [rbp - 0x48]
call qword [0x1401e62a0]
mov rdi, rax
test rax, rax
jne 0x1400499b9
movups xmm0, xmmword [0x14022edc8]
movups xmmword [rbp - 0x38], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x140049896
cmp esi, 2
jl 0x140049857
movdqa xmm0, xmmword [0x140230170]
lea rcx, [rbp - 0x34]
movdqa xmm5, xmmword [0x14022ffe0]
mov edx, ebx
movdqa xmm4, xmmword [0x1402302d0]
movdqa xmm7, xmmword [0x140230000]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movd xmm6, r14d
movd xmm8, r15d
nop dword [rax + rax]
movd xmm2, edx
lea eax, [rdx + 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 edx, 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
andps xmm2, xmmword [0x140230080]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps 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, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140230080]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x10
jl 0x140049750
jmp 0x140049896
lea r9, [rbp - 0x38]
mov r8d, ebx
nop
mov eax, 0x8fb823ef
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x39
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0x10
jl 0x140049860
mov eax, dword [0x14022f4e0]
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x38], eax
movzx eax, word [0x14022f4e4]
xor byte [rsp + 0x39], 0x3a
xor byte [rsp + 0x3a], 0x3b
xor byte [rsp + 0x3b], 0x3c
mov word [rsp + 0x3c], ax
movzx eax, byte [0x14022f4e6]
xor byte [rsp + 0x3c], 0x3d
xor al, 0x3f
xor byte [rsp + 0x3d], 0x3e
mov byte [rsp + 0x3e], al
mov byte [rsp + 0x38], 0x75
call qword [0x1401e6320]
mov rcx, rax
lea rdx, [rbp - 0x38]
call qword [0x1401e62a0]
mov rdi, rax
test rax, rax
jne 0x1400499b9
cmp byte [0x14022ee31], bl
movzx eax, word [0x14022ee30]
movsd xmm0, qword [0x14022ee28]
mov word [rsp + 0x68], ax
mov eax, dword [0x14022f4e0]
mov dword [rsp + 0x40], eax
movzx eax, word [0x14022f4e4]
mov word [rsp + 0x44], ax
movzx eax, byte [0x14022f4e6]
movsd qword [rsp + 0x60], xmm0
je 0x140049970
xor byte [rsp + 0x61], 0x3a
xor byte [rsp + 0x62], 0x3b
xor byte [rsp + 0x63], 0x3c
xor byte [rsp + 0x64], 0x3d
xor byte [rsp + 0x65], 0x3e
xor byte [rsp + 0x66], 0x3f
xor byte [rsp + 0x67], 0x40
xor byte [rsp + 0x68], 0x41
xor byte [rsp + 0x69], 0x42
mov byte [rsp + 0x60], 0x53
nop dword [rax]
xor byte [rsp + 0x41], 0x3a
lea rcx, [rsp + 0x40]
xor byte [rsp + 0x42], 0x3b
xor al, 0x3f
xor byte [rsp + 0x43], 0x3c
xor byte [rsp + 0x44], 0x3d
xor byte [rsp + 0x45], 0x3e
mov byte [rsp + 0x46], al
mov byte [rsp + 0x40], 0x75
call qword [0x1401e6320]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [0x1401e62a0]
mov rdi, rax
test rax, rax
je 0x14004a032
mov eax, dword [0x14022f008]
mov r8d, ebx
mov dword [rbp - 0x80], eax
movzx eax, word [0x14022f00c]
mov word [rbp - 0x7c], ax
movzx eax, byte [0x14022f00e]
mov byte [rbp - 0x7a], al
movups xmm0, xmmword [0x14022eff8]
movups xmmword [rsp + 0x70], xmm0
cmp esi, 2
jl 0x140049b3d
movdqa xmm0, xmmword [0x140230170]
lea rcx, [rsp + 0x74]
movdqa xmm5, xmmword [0x14022ffe0]
movdqa xmm4, xmmword [0x1402302d0]
movdqa xmm7, xmmword [0x140230000]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
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
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
andps xmm2, xmmword [0x140230080]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps 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
andps xmm2, xmmword [0x140230080]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x140049a30
cmp r8d, 0x17
jge 0x140049b86
movsxd rax, r8d
lea r9, [rsp + 0x70]
add r9, rax
nop dword [rax + rax]
mov eax, 0x8fb823ef
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x39
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0x17
jl 0x140049b50
mov eax, dword [0x14022f22c]
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x48], eax
movzx eax, word [0x14022f230]
xor byte [rsp + 0x49], 0x3a
xor byte [rsp + 0x4a], 0x3b
xor byte [rsp + 0x4b], 0x3c
mov word [rsp + 0x4c], ax
movzx eax, byte [0x14022f232]
xor byte [rsp + 0x4c], 0x3d
xor al, 0x3f
xor byte [rsp + 0x4d], 0x3e
mov byte [rsp + 0x4e], al
mov byte [rsp + 0x48], 0x77
call qword [0x1401e6320]
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [0x1401e62a0]
mov rcx, rax
test rax, rax
jne 0x14004a036
mov eax, dword [0x14022f008]
mov r8d, ebx
mov dword [rbp - 0x68], eax
movzx eax, word [0x14022f00c]
mov word [rbp - 0x64], ax
movzx eax, byte [0x14022f00e]
mov byte [rbp - 0x62], al
movups xmm0, xmmword [0x14022eff8]
movups xmmword [rbp - 0x78], xmm0
cmp esi, 2
jl 0x140049d6d
movdqa xmm0, xmmword [0x140230170]
lea rcx, [rbp - 0x74]
movdqa xmm5, xmmword [0x14022ffe0]
movdqa xmm4, xmmword [0x1402302d0]
movdqa xmm7, xmmword [0x140230000]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
movd xmm6, r14d
movd xmm8, r15d
nop dword [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
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
andps xmm2, xmmword [0x140230080]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps 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
andps xmm2, xmmword [0x140230080]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x140049c60
cmp r8d, 0x17
jge 0x140049db6
movsxd rax, r8d
lea r9, [rbp - 0x78]
add r9, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x39
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0x17
jl 0x140049d80
mov eax, dword [0x14022f4e0]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], eax
movzx eax, word [0x14022f4e4]
xor byte [rsp + 0x51], 0x3a
xor byte [rsp + 0x52], 0x3b
xor byte [rsp + 0x53], 0x3c
mov word [rsp + 0x54], ax
movzx eax, byte [0x14022f4e6]
xor byte [rsp + 0x54], 0x3d
xor al, 0x3f
xor byte [rsp + 0x55], 0x3e
mov byte [rsp + 0x56], al
mov byte [rsp + 0x50], 0x75
call qword [0x1401e6320]
mov rcx, rax
lea rdx, [rbp - 0x78]
call qword [0x1401e62a0]
mov rcx, rax
test rax, rax
jne 0x14004a036
movzx eax, byte [0x14022f268]
mov byte [rbp - 0x50], al
movups xmm0, xmmword [0x14022f258]
movups xmmword [rbp - 0x60], xmm0
cmp esi, 2
jl 0x140049f88
movdqa xmm0, xmmword [0x140230170]
lea rcx, [rbp - 0x5c]
movdqa xmm5, xmmword [0x14022ffe0]
movdqa xmm4, xmmword [0x1402302d0]
movdqa xmm7, xmmword [0x140230000]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
movd xmm6, r14d
movd xmm8, r15d
nop dword [rax]
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
andps xmm2, xmmword [0x140230080]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps 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
andps xmm2, xmmword [0x140230080]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x10
jl 0x140049e80
cmp ebx, 0x11
jge 0x140049fd1
movsxd rax, ebx
lea r8, [rbp - 0x60]
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x39
add cl, bl
inc ebx
xor byte [r8 - 1], cl
cmp ebx, 0x11
jl 0x140049fa0
mov eax, dword [0x14022f4e0]
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x58], eax
movzx eax, word [0x14022f4e4]
xor byte [rsp + 0x59], 0x3a
xor byte [rsp + 0x5a], 0x3b
xor byte [rsp + 0x5b], 0x3c
mov word [rsp + 0x5c], ax
movzx eax, byte [0x14022f4e6]
xor byte [rsp + 0x5c], 0x3d
xor al, 0x3f
xor byte [rsp + 0x5d], 0x3e
mov byte [rsp + 0x5e], al
mov byte [rsp + 0x58], 0x75
call qword [0x1401e6320]
mov rcx, rax
lea rdx, [rbp - 0x60]
call qword [0x1401e62a0]
mov rcx, rax
test rax, rax
jne 0x14004a036
xor al, al
jmp 0x14004a08e
movups xmm0, xmmword [rdi]
movups xmmword [0x1403476c0], xmm0
movsd xmm1, qword [rdi + 0x10]
movsd qword [0x1403476d0], xmm1
mov eax, dword [rdi + 0x18]
mov dword [0x1403476d8], eax
movzx eax, word [rdi + 0x1c]
mov word [0x1403476dc], ax
movups xmm0, xmmword [rcx]
movups xmmword [0x1403476e0], xmm0
movsd xmm1, qword [rcx + 0x10]
movsd qword [0x1403476f0], xmm1
mov eax, dword [rcx + 0x18]
mov dword [0x1403476f8], eax
movzx eax, word [rcx + 0x1c]
mov word [0x1403476fc], ax
mov al, 1
mov rcx, qword [rbp - 0x28]
xor rcx, rsp
call fcn.140075760
lea r11, [rsp + 0x110]
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