Function at 0x18004e7e0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov r9, qword [0x180209730]
xor edi, edi
mov r10, qword [0x180209728]
mov esi, edi
movzx r11d, byte [0x180209720]
mov r12d, edi
mov qword [rax + 0x18], r14
movaps xmmword [rax - 0x38], xmm6
nop
test r11b, r11b
je 0x18004e830
test r10, r10
je 0x18004e83b
mov eax, dword [r10 + 0x14]
jmp 0x18004e83d
test r9, r9
je 0x18004e83b
mov eax, dword [r9 + 0xc]
jmp 0x18004e83d
mov eax, edi
cmp esi, eax
jge 0x18004f0d0
test r11b, r11b
je 0x18004e88c
test r10, r10
je 0x18004e903
test esi, esi
js 0x18004e8a4
cmp esi, dword [r10 + 0x14]
jg 0x18004e8a4
movzx ecx, si
mov eax, esi
test esi, esi
jns 0x18004e872
lea eax, [rsi + 0xffff]
sub ecx, 0x10000
mov rdx, qword [r10]
sar eax, 0x10
movsxd r8, eax
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdx + r8*8]
mov r14, qword [rax + rcx*8]
jmp 0x18004e8a7
test r9, r9
je 0x18004e903
test esi, esi
js 0x18004e8a4
cmp esi, dword [r9 + 0xc]
jg 0x18004e8a4
mov rax, qword [r9]
mov r14, qword [r12 + rax]
jmp 0x18004e8a7
mov r14, rdi
test r14, r14
je 0x18004e903
call fcn.180028a30
mov rbx, qword [r14 + 0x10]
mov r15, rax
test rbx, rbx
je 0x18004e8ed
nop dword [rax]
cmp rbx, r15
je 0x18004e8e2
mov rcx, rbx
call fcn.18004b6f0
test al, al
je 0x18004e8ed
mov eax, dword [0x180209710]
mov rbx, qword [rax + rbx]
test rbx, rbx
jne 0x18004e8c0
jmp 0x18004e8ed
mov eax, dword [r14 + 8]
shr eax, 4
test al, 1
je 0x18004e90e
mov r9, qword [0x180209730]
mov r10, qword [0x180209728]
movzx r11d, byte [0x180209720]
inc esi
add r12, 0x18
jmp 0x18004e820
mov r12, qword [r14]
test r12, r12
je 0x18004f0d0
mov eax, dword [0x1800e7e98]
xorps xmm0, xmm0
movups xmm1, xmmword [0x1800e7e88]
mov ebx, dword [0x18010a088]
mov r14, 0xffffffffffffffff
mov dword [rbp - 0x29], eax
mov r8d, edi
movzx eax, word [0x1800e7e9c]
mov qword [rsp + 0x118], r13
movaps xmmword [rsp + 0xc0], xmm7
mov qword [rbp + 0x67], r14
mov qword [rbp + 0xf], rdi
mov word [rbp - 0x25], ax
movdqu xmmword [rbp - 1], xmm0
movups xmm0, xmmword [str.pYT_mUXIO_36]
movups xmmword [rbp - 0x39], xmm1
movups xmmword [rbp - 0x49], xmm0
cmp ebx, 2
jl 0x18004ea92
movdqa xmm5, xmmword [0x1800f8c90]
lea rcx, [rbp - 0x49]
movdqa xmm4, xmmword [0x1800f8e20]
movdqa xmm6, xmmword [0x1800f8d20]
movdqa xmm7, xmmword [0x1800f8e00]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshufhw 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, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshufhw 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 0x18004e9a1
cmp r8d, 0x13
jge 0x18004ead5
movsxd rax, r8d
lea r9, [rbp - 0x49]
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
mov eax, 1
sub ax, dx
movzx eax, ax
imul ecx, eax, 0x37
add cx, r8w
inc r8d
xor word [r9 - 2], cx
cmp r8d, 0x13
jl 0x18004eaa0
mov r10, qword [0x1802097d0]
mov qword [rbp - 0x69], rdi
test r10, r10
je 0x18004eb23
mov rax, qword [0x1802097d8]
test rax, rax
jne 0x18004eb0f
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x10]
mov rax, qword [0x1802097d0]
add rax, rcx
mov qword [0x1802097d8], rax
mov r8b, 1
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x69]
call rax
mov r10, qword [0x1802097d0]
movzx eax, word [0x1800e7f90]
mov r8d, edi
movsd xmm0, qword [0x1800e7f88]
mov word [rbp - 0x71], ax
movsd qword [rbp - 0x79], xmm0
movups xmm7, xmmword [str.pYT_rRNJ._C]
movups xmmword [rsp + 0x20], xmm7
cmp ebx, 2
jl 0x18004ec3d
movdqa xmm2, xmmword [0x1800f8c90]
mov r8d, 8
movdqa xmm4, xmmword [0x1800f8e20]
movdqa xmm1, xmm2
movdqa xmm6, xmmword [0x1800f8e00]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800f8d20]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm6
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm1, xmm7
paddw xmm3, xmm2
movdqa xmm2, xmmword [0x1800f8cb0]
xorps xmm3, xmm1
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
movdqa xmm1, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movq qword [rsp + 0x20], xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800f8d20]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm6
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x28]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rsp + 0x28], xmm3
movaps xmm7, xmmword [rsp + 0xc0]
lea r9, [rsp + 0x20]
movsxd rax, r8d
lea r9, [r9 + rax*2]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x94f2095
lea r9, [r9 + 2]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub ax, dx
movzx eax, ax
imul ecx, eax, 0x37
add cx, r8w
inc r8d
xor word [r9 - 2], cx
cmp r8d, 0xd
jl 0x18004ec60
mov qword [rbp - 0x61], rdi
test r10, r10
je 0x18004ecd6
mov rax, qword [0x1802097d8]
test rax, rax
jne 0x18004ecc8
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x10]
mov rax, qword [0x1802097d0]
add rax, rcx
mov qword [0x1802097d8], rax
mov r8b, 1
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x61]
call rax
lea rax, [rbp + 0x67]
mov qword [rbp - 0x51], rdi
mov ecx, 0x20
mov qword [rbp - 0x59], rax
call fcn.1800b2a54
mov r8d, 0x20
mov qword [rbp - 0x19], rax
lea rdx, [rbp - 0x69]
mov rcx, rax
lea rbx, [rax + 0x20]
mov qword [rbp - 9], rbx
call fcn.1800da380
lea rdx, [rbp - 0x19]
mov qword [rbp - 0x11], rbx
lea rcx, [rbp - 1]
call fcn.18002f5a0
mov r13d, dword [rbp + 0x67]
mov r15d, edi
add r13d, 8
nop word [rax + rax]
mov rdx, qword [r12]
test rdx, rdx
je 0x18004ee32
mov rax, qword gs:[0x60]
mov r8, qword [rax + 0x10]
cmp rdx, r8
jbe 0x18004ee32
movsxd rax, dword [r8 + 0x3c]
mov ecx, dword [rax + r8 + 0x50]
add rcx, r8
cmp rdx, rcx
jae 0x18004ee32
cmp byte [rdx], 0xe9
jne 0x18004ed9b
mov rax, qword gs:[0x60]
movsxd rbx, dword [rdx + 1]
add rbx, 5
add rbx, rdx
mov r8, qword [rax + 0x10]
cmp rbx, r8
jbe 0x18004ed9b
movsxd rax, dword [r8 + 0x3c]
mov ecx, dword [rax + r8 + 0x50]
add rcx, r8
cmp rbx, rcx
jb 0x18004ed9e
mov rbx, rdx
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov ecx, 0x1c
mov dword [rsp + 0x24], 0xb9
movdqu xmmword [rbp - 0x7d], xmm0
mov dword [rsp + 0x28], r13d
call fcn.1800b2a54
mov r8d, 0x1c
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rsi, rax
call fcn.1800da380
mov r9d, edi
mov r10, rdi
mov eax, edi
mov rcx, rdi
nop word [rax + rax]
mov r8d, dword [rsi + rcx*4]
lea ecx, [rax + r9]
movzx ecx, byte [rcx + rbx]
cmp ecx, r8d
je 0x18004ee0a
cmp r8d, r14d
jne 0x18004f0a9
inc eax
mov ecx, eax
cmp rcx, 7
jb 0x18004edf0
add rbx, r10
test rsi, rsi
je 0x18004ee29
mov edx, 0x1c
mov rcx, rsi
call fcn.1800b2a4c
test rbx, rbx
jne 0x18004f0c1
inc r15d
add r12, 8
cmp r15d, 0x150
jl 0x18004ed30
cmp qword [0x180209ae8], rdi
jne 0x18004f049
cmp dword [0x18010a088], 2
mov r8d, edi
movups xmm0, xmmword [0x1800e9b80]
movzx eax, byte [0x1800e9ba8]
movups xmm1, xmmword [0x1800e9b90]
mov byte [rbp - 0x21], al
movups xmmword [rbp - 0x49], xmm0
movsd xmm0, qword [0x1800e9ba0]
movsd qword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x39], xmm1
jl 0x18004efc7
movdqa xmm0, xmmword [0x1800f8e40]
lea rcx, [rbp - 0x45]
movdqa xmm5, xmmword [0x1800f8c90]
movdqa xmm4, xmmword [0x1800f8e20]
movdqa xmm6, xmmword [0x1800f8d20]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
nop
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, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800f8e10]
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
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800f8e10]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x28
jl 0x18004eec0
cmp r8d, 0x29
jge 0x18004f012
movsxd rax, r8d
lea r9, [rbp - 0x49]
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
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x37
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0x29
jl 0x18004efe0
xorps xmm0, xmm0
lea rax, [rbp - 0x49]
xorps xmm1, xmm1
movups xmmword [rbp - 0x69], xmm0
movdqu xmmword [rbp - 0x59], xmm1
inc r14
cmp byte [rax + r14], dil
jne 0x18004f025
mov r8, r14
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x69]
call fcn.180013f10
xor edx, edx
lea rcx, [rbp - 0x69]
call fcn.1800279c0
mov rcx, qword [rbp - 0x19]
mov r13, qword [rsp + 0x118]
test rcx, rcx
je 0x18004f09b
mov rdx, qword [rbp - 9]
mov rax, rcx
sub rdx, rcx
and rdx, 0xffffffffffffffe0
cmp rdx, 0x1000
jb 0x18004f08a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004f2ec
call fcn.1800b2a4c
xorps xmm0, xmm0
mov qword [rbp - 9], rdi
movdqu xmmword [rbp - 0x19], xmm0
lea rcx, [rbp - 1]
call fcn.180030c40
jmp 0x18004f2c5
inc r9d
inc r10
cmp r9d, 0x2e
jb 0x18004ede1
mov rbx, rdi
jmp 0x18004ee17
movsxd rax, r15d
mov qword [0x180209ae8], rax
jmp 0x18004f049
cmp dword [0x18010a088], 2
movups xmm0, xmmword [0x1800e9510]
mov eax, dword [0x1800e9538]
movups xmm1, xmmword [0x1800e9520]
mov dword [rbp - 0x21], eax
movups xmmword [rbp - 0x49], xmm0
movsd xmm0, qword [0x1800e9530]
movsd qword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x39], xmm1
jl 0x18004f244
movdqa xmm0, xmmword [0x1800f8e40]
lea rcx, [rbp - 0x45]
movdqa xmm5, xmmword [0x1800f8c90]
movdqa xmm4, xmmword [0x1800f8e20]
movdqa xmm6, xmmword [0x1800f8d20]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
nop word [rax + rax]
movd xmm2, edi
lea eax, [rdi + 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 edi, 8
pmuldq xmm1, xmm4
mov eax, edi
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800f8e10]
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
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800f8e10]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edi, 0x28
jl 0x18004f140
cmp eax, 0x2c
jge 0x18004f27f
movsxd rax, edi
lea r8, [rbp - 0x49]
add r8, rax
nop
mov eax, 0x94f2095
lea r8, [r8 + 1]
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x37
add cl, dil
inc edi
xor byte [r8 - 1], cl
cmp edi, 0x2c
jl 0x18004f250
xorps xmm0, xmm0
lea rax, [rbp - 0x49]
xorps xmm1, xmm1
mov r14, 0xffffffffffffffff
movups xmmword [rbp - 0x69], xmm0
movdqu xmmword [rbp - 0x59], xmm1
nop dword [rax]
inc r14
cmp byte [rax + r14], 0
jne 0x18004f2a0
mov r8, r14
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x69]
call fcn.180013f10
mov dl, 1
lea rcx, [rbp - 0x69]
call fcn.1800279c0
movaps xmm6, xmmword [rsp + 0xd0]
mov r14, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x128]
add rsp, 0xe0
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800b96fc
int3