Function at 0x1402645e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4a8
mov rax, qword [0x140469080]
xor rax, rsp
mov qword [rsp + 0x490], rax
cmp dword [rcx + 0x148], 1
mov r12, r9
mov rax, qword [rsp + 0x518]
mov rsi, r8
mov r15, qword [rsp + 0x520]
mov rdi, rdx
mov qword [rsp + 0x38], rax
mov rbp, rcx
mov rax, qword [rsp + 0x528]
mov qword [rsp + 0x40], rax
jne 0x1402648fb
mov r14, qword [rcx + 8]
lea rax, [r14 - 0x10]
cmp rax, 0x3f0
ja 0x1402648fb
mov ecx, dword [rcx + 0x14c]
call fcn.140265b30
movzx ebx, al
test al, al
je 0x1402648fb
lea r13d, [rbx + rbx]
lea ecx, [r13 + 2]
cmp rcx, r14
ja 0x1402648fb
lea rax, [rsp + 0x90]
mov r9, r15
mov r8, rsi
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbp
call fcn.140264030
mov edi, eax
test eax, eax
jne 0x1402648d6
mov eax, dword [rbp + 0x14c]
lea rcx, [rsp + 0x91]
mov esi, ebx
mov dword [rsp + 0x20], eax
mov r15, r14
mov edx, esi
sub r15, rbx
lea rbx, [rsp + 0x91]
add rbx, rsi
mov r8, rbx
lea r9, [r15 - 1]
call fcn.140264b40
mov edi, eax
test eax, eax
jne 0x1402648d6
mov eax, dword [rbp + 0x14c]
lea r8, [rsp + 0x91]
mov r9d, esi
mov dword [rsp + 0x20], eax
lea rdx, [r15 - 1]
mov rcx, rbx
call fcn.140264b40
mov edi, eax
test eax, eax
jne 0x1402648d6
mov ecx, dword [rbp + 0x14c]
call fcn.14025b770
test rax, rax
jne 0x140264726
mov edi, 0xffffbf80
jmp 0x1402648d6
mov r8, qword [rsp + 0x510]
lea r9, [rsp + 0x50]
mov rdx, r12
mov rcx, rax
call fcn.14025b0e0
mov edi, eax
test eax, eax
jne 0x1402648d6
movzx r8d, byte [rsp + 0x90]
xor edi, edi
mov ecx, edi
test rsi, rsi
je 0x140264805
cmp rsi, 0x20
jb 0x1402647f0
mov rax, rsi
xorps xmm3, xmm3
and rax, 0xffffffffffffffe0
xorps xmm2, xmm2
nop word [rax + rax]
movdqu xmm0, xmmword [rbx]
movdqu xmm1, xmmword [rsp + rcx + 0x50]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rbx + 0x10]
add rbx, 0x20
orps xmm3, xmm1
movdqu xmm1, xmmword [rsp + rcx + 0x60]
add rcx, 0x20
xorps xmm1, xmm0
orps xmm2, xmm1
cmp rcx, rax
jb 0x140264780
orps xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 2
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 1
orps xmm2, xmm0
movd eax, xmm2
or r8b, al
cmp rcx, rsi
jae 0x140264805
nop dword [rax]
movzx eax, byte [rsp + rcx + 0x50]
inc rcx
xor al, byte [rbx]
inc rbx
or r8b, al
cmp rcx, rsi
jb 0x1402647f0
mov eax, r13d
mov rbp, r14
sub rbp, rax
xor dl, dl
add rbp, 0xfffffffffffffffe
mov r9, rdi
mov r10, rdi
mov r11, rdi
mov rcx, rdi
cmp rbp, 2
jb 0x140264866
lea rsi, [rbp - 1]
nop word [rax + rax]
or dl, byte [rbx + rcx]
movzx eax, dl
neg al
or al, dl
or dl, byte [rbx + rcx + 1]
not al
add rcx, 2
movzx eax, al
shr rax, 7
add r9, rax
movzx eax, dl
neg al
or al, dl
not al
movzx eax, al
shr rax, 7
add r10, rax
cmp rcx, rsi
jb 0x140264830
cmp rcx, rbp
jae 0x14026487f
or dl, byte [rcx + rbx]
movzx eax, dl
neg al
or al, dl
not al
movzx r11d, al
shr r11, 7
lea rax, [r10 + r9]
add rax, r11
add rbx, rax
movzx eax, byte [rbx]
inc rbx
xor al, 1
or r8b, al
je 0x14026489d
mov edi, 0xffffbf00
jmp 0x1402648d6
sub r14, rbx
lea r8, [rsp + 0x90]
add r8, r14
cmp r8, qword [rsp + 0x530]
jbe 0x1402648bc
mov edi, 0xffffbc00
jmp 0x1402648d6
mov rax, qword [rsp + 0x38]
mov qword [rax], r8
test r8, r8
je 0x1402648d6
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov edx, 0x400
lea rcx, [rsp + 0x90]
call fcn.14025c9a0
mov edx, 0x40
lea rcx, [rsp + 0x50]
call fcn.14025c9a0
mov eax, edi
jmp 0x140264900
mov eax, 0xffffbf80
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140283da0
add rsp, 0x4a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret