Function at 0x18010a240
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r15, qword [rcx + 0x18]
cmp r15, 0xffffffffffffffff
je 0x18010a37e
mov rsi, qword [rcx + 8]
lea rbp, [rsi + 1]
mov rax, rbp
shr rax, 3
mov r8, rbp
and r8, 0xfffffffffffffff8
sub r8, rax
cmp rsi, 8
cmovb r8, rsi
mov rax, r8
shr rax, 1
cmp r15, rax
jae 0x18010a2c7
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x28], rcx
mov r14, qword [rcx]
mov rcx, rbp
shr rcx, 4
xor eax, eax
test bpl, 0xf
setne al
add rax, rcx
je 0x18010a403
cmp rax, 1
jne 0x18010a395
xor r8d, r8d
jmp 0x18010a3e7
lea rax, [r15 + 1]
inc r8
cmp rax, r8
cmova r8, rax
cmp r8, 8
jae 0x18010a2f6
mov qword [rsp + 0x28], rcx
mov r13, rdx
xor eax, eax
cmp r8, 4
setae al
lea rbx, [rax*4 + 4]
jmp 0x18010a33e
mov rax, r8
shr rax, 0x3d
jne 0x18010a37e
mov qword [rsp + 0x28], rcx
mov r13, rdx
shl r8, 3
movabs rcx, 0x2492492492492493
mov rax, r8
mul rcx
sub r8, rdx
shr r8, 1
add r8, rdx
shr r8, 2
dec r8
bsr rcx, r8
not ecx
mov rbx, 0xffffffffffffffff
shr rbx, cl
inc rbx
mov ecx, 0x18
mov rax, rbx
mul rcx
seto cl
cmp rax, 0xfffffffffffffff1
setae dl
or dl, cl
jne 0x18010a37e
add rax, 0xf
and rax, 0xfffffffffffffff0
lea r12, [rbx + 0x10]
mov r14, rax
add r14, r12
jb 0x18010a37e
movabs rcx, 0x7ffffffffffffff1
cmp r14, rcx
jb 0x18010a84b
mov cl, 1
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x1801000a0
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r9d, r9d
movdqa xmm0, xmmword [0x18012d460]
nop dword [rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r14 + r9]
por xmm1, xmm0
movdqa xmmword [r14 + r9], xmm1
lea r8, [r9 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r14 + r9 + 0x10]
por xmm1, xmm0
movdqa xmmword [r14 + r9 + 0x10], xmm1
mov r9, r8
add rcx, 0xfffffffffffffffe
jne 0x18010a3b0
test al, 1
je 0x18010a403
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [r14 + r8]
por xmm0, xmmword [0x18012d460]
movdqa xmmword [r14 + r8], xmm0
cmp rbp, 0x10
jae 0x18010a42a
lea rcx, [r14 + 0x10]
mov rdi, rdx
mov rdx, r14
mov r8, rbp
call sub.VCRUNTIME140.dll_memmove
mov rdx, rdi
test rbp, rbp
jne 0x18010a435
xor ecx, ecx
jmp 0x18010a82c
movdqu xmm0, xmmword [r14]
movdqu xmmword [r14 + rbp], xmm0
mov rax, qword [rdx]
mov rbx, qword [rdx + 8]
movabs r15, 0x736f6d6570736575
xor r15, rax
movabs rcx, 0x646f72616e646f6d
xor rcx, rbx
add r15, rcx
rol rcx, 0xd
movabs rdx, 0x6c7967656e657261
xor rcx, r15
rol r15, 0x20
xor rdx, rax
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rcx
rol rcx, 0x11
mov qword [rsp + 0x50], rcx
xor ecx, ecx
xor r10d, r10d
mov qword [rsp + 0x70], rsi
jmp 0x18010a4b6
shr rax, 0x39
lea rcx, [r10 - 0x10]
and rcx, rsi
mov byte [r14 + r10], al
mov byte [r14 + rcx + 0x10], al
xor ecx, ecx
lea rax, [r10 + 1]
cmp r10, rsi
mov r10, rax
je 0x18010a827
cmp cl, byte [r14 + r10]
jno 0x18010a4a6
lea rax, [r10*8]
lea rax, [rax + rax*2]
mov rcx, r14
sub rcx, rax
mov qword [rsp + 0x30], rcx
neg rax
add rax, r14
add rax, 0xffffffffffffffe8
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], r10
mov rax, r10
neg rax
lea rax, [rax + rax*2]
lea rax, [r14 + rax*8]
mov qword [rsp + 0x38], rax
nop word [rax + rax]
mov rax, qword [rsp + 0x38]
mov r10, qword [rax - 0x18]
mov rbp, qword [rax - 0x10]
add r10, 0x10
mov rdx, rbx
xor rdx, rbp
movabs rax, 0x7465646279746573
xor rdx, rax
mov rax, qword [rsp + 0x58]
lea r13, [rdx + rax]
rol rdx, 0x10
xor rdx, r13
add r13, qword [rsp + 0x60]
lea rdi, [rdx + r15]
mov r12, r13
xor r12, qword [rsp + 0x50]
rol rdx, 0x15
rol r13, 0x20
xor rdx, rdi
xor rdi, rbp
mov rax, rbp
xor r9d, r9d
and rax, 0xfffffffffffffff8
je 0x18010a5a3
nop
mov rcx, qword [r10 + r9]
xor rdx, rcx
add rdi, r12
rol r12, 0xd
add r13, rdx
xor r12, rdi
rol rdx, 0x10
xor rdx, r13
rol rdi, 0x20
add r13, r12
add rdi, rdx
rol r12, 0x11
xor r12, r13
rol rdx, 0x15
rol r13, 0x20
xor rdx, rdi
xor rdi, rcx
add r9, 8
cmp r9, rax
jb 0x18010a560
mov r8d, ebp
and r8d, 7
cmp r8d, 4
jb 0x18010a5d0
mov r11d, dword [r10 + r9]
mov eax, 4
mov ecx, eax
or ecx, 1
cmp ecx, r8d
jb 0x18010a5df
jmp 0x18010a60a
xor r11d, r11d
xor eax, eax
mov ecx, eax
or ecx, 1
cmp ecx, r8d
jae 0x18010a60a
lea rcx, [r10 + rax]
mov rsi, r15
mov r15, rbx
movzx ebx, word [r9 + rcx]
lea ecx, [rax*8]
shl rbx, cl
or r11, rbx
mov rbx, r15
mov r15, rsi
mov rsi, qword [rsp + 0x70]
or rax, 2
cmp eax, r8d
jae 0x18010a622
add r9, rax
movzx r8d, byte [r10 + r9]
shl eax, 3
mov ecx, eax
shl r8, cl
or r11, r8
mov r10, qword [rsp + 0x20]
shl rbp, 0x38
movabs rax, 0x800000000000000
add rbp, rax
or rbp, r11
xor rdx, rbp
add rdi, r12
rol r12, 0xd
add r13, rdx
xor r12, rdi
rol rdx, 0x10
xor rdx, r13
rol rdi, 0x20
add r13, r12
add rdi, rdx
rol r12, 0x11
xor r12, r13
rol rdx, 0x15
rol r13, 0x20
xor rdx, rdi
xor rdi, rbp
xor r13, 0xff
add rdi, r12
add r13, rdx
rol r12, 0xd
xor r12, rdi
rol rdx, 0x10
rol rdi, 0x20
xor rdx, r13
add r13, r12
rol r12, 0x11
add rdi, rdx
xor r12, r13
rol rdx, 0x15
xor rdx, rdi
rol r13, 0x20
add rdi, r12
add r13, rdx
rol r12, 0xd
xor r12, rdi
rol rdx, 0x10
rol rdi, 0x20
xor rdx, r13
add r13, r12
rol r12, 0x11
add rdi, rdx
xor r12, r13
rol rdx, 0x15
xor rdx, rdi
rol r13, 0x20
add rdi, r12
add r13, rdx
rol r12, 0xd
xor r12, rdi
rol rdx, 0x10
xor rdx, r13
add r13, r12
rol r12, 0x11
rol rdx, 0x15
mov rax, r13
rol rax, 0x20
xor rax, r12
xor rax, rdx
xor rax, r13
mov rcx, rax
and rcx, rsi
movdqu xmm0, xmmword [r14 + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x18010a748
mov r9d, 0x10
mov r8, rcx
nop word [rax + rax]
add r8, r9
and r8, rsi
movdqu xmm0, xmmword [r14 + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x18010a730
tzcnt edx, edx
add rdx, r8
and rdx, rsi
cmp byte [r14 + rdx], 0
js 0x18010a766
movdqa xmm0, xmmword [r14]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, r10
sub r8, rcx
mov r9, rdx
sub r9, rcx
xor r9, r8
and r9, rsi
cmp r9, 0x10
jb 0x18010a490
lea rcx, [rdx*8]
lea rcx, [rcx + rcx*2]
movzx r8d, byte [r14 + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rsi
mov byte [r14 + rdx], al
mov byte [r14 + r9 + 0x10], al
cmp r8b, 0xff
je 0x18010a7f0
mov rax, r14
sub rax, rcx
mov r8, qword [rsp + 0x30]
mov rcx, qword [r8 - 0x18]
mov rdx, qword [rax - 0x18]
mov qword [r8 - 0x18], rdx
mov qword [rax - 0x18], rcx
mov rcx, qword [r8 - 0x10]
mov rdx, qword [rax - 0x10]
mov qword [r8 - 0x10], rdx
mov qword [rax - 0x10], rcx
mov rcx, qword [r8 - 8]
mov rdx, qword [rax - 8]
mov qword [r8 - 8], rdx
mov qword [rax - 8], rcx
jmp 0x18010a500
neg rcx
lea rax, [r14 + rcx]
add rax, 0xffffffffffffffe8
lea rcx, [r10 - 0x10]
and rcx, rsi
mov byte [r14 + r10], 0xff
mov byte [r14 + rcx + 0x10], 0xff
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rdx + 0x10]
mov qword [rax + 0x10], rcx
movdqu xmm0, xmmword [rdx]
movdqu xmmword [rax], xmm0
jmp 0x18010a4a4
mov rcx, qword [rsp + 0x68]
sub rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x20], rax
movzx eax, byte [0x1801bb181]
mov edx, 0x10
mov rcx, r14
call fcn.1800098a0
test rax, rax
je 0x18010aa30
mov rbp, rax
lea rdi, [rbx - 1]
mov rax, rbx
shr rax, 3
mov rcx, rbx
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rbx, 9
cmovb rcx, rdi
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x20]
lea r14, [rbp + rax]
mov rcx, r14
mov dl, 0xff
mov r8, r12
call sub.VCRUNTIME140.dll_memset
test r15, r15
mov qword [rsp + 0x40], r15
je 0x18010aa4f
mov rax, qword [rsp + 0x20]
add rax, rbp
add rax, 0xffffffffffffffe8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
mov r12, qword [rax]
movdqa xmm0, xmmword [r12]
pmovmskb ebp, xmm0
not ebp
lea r9, [r12 - 0x18]
mov rax, qword [r13]
mov qword [rsp + 0x60], rax
mov rax, qword [r13 + 8]
mov qword [rsp + 0x58], rax
xor ebx, ebx
mov qword [rsp + 0x48], r12
mov r13, r15
mov qword [rsp + 0x38], r9
jmp 0x18010a966
lea ecx, [rbp - 1]
and ecx, ebp
dec r13
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, rdi
mov byte [r14 + rdx], al
mov byte [r14 + r8 + 0x10], al
shl r15, 3
lea rax, [r15 + r15*2]
mov r8, r9
sub r8, rax
shl rdx, 3
lea rax, [rdx + rdx*2]
mov rdx, qword [rsp + 0x20]
sub rdx, rax
mov rax, qword [r8 + 0x10]
mov qword [rdx + 0x10], rax
movdqu xmm0, xmmword [r8]
movdqu xmmword [rdx], xmm0
mov ebp, ecx
test r13, r13
je 0x18010aa24
test bp, bp
jne 0x18010a98d
nop dword [rax + rax]
movdqa xmm0, xmmword [r12 + 0x10]
add r12, 0x10
pmovmskb ebp, xmm0
add rbx, 0x10
cmp ebp, 0xffff
je 0x18010a970
not ebp
tzcnt r15d, ebp
add r15, rbx
mov rax, r15
neg rax
lea rax, [rax + rax*2]
mov r8, qword [r9 + rax*8]
mov r9, qword [r9 + rax*8 + 8]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
call fcn.18001f3c0
mov rcx, rax
and rcx, rdi
movdqu xmm0, xmmword [r14 + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x18010a9f8
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, rdi
movdqu xmm0, xmmword [r14 + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x18010a9e0
mov r9, qword [rsp + 0x38]
tzcnt edx, edx
add rdx, rcx
and rdx, rdi
cmp byte [r14 + rdx], 0
js 0x18010a910
movdqa xmm0, xmmword [r14]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x18010a910
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
jmp 0x18010aa57
mov edx, 0x10
mov cl, 1
mov r8, r14
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x1801000f0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax]
mov rdx, qword [rsp + 0x30]
sub rdx, qword [rsp + 0x40]
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdx
test rsi, rsi
mov rax, qword [rsp + 0x50]
je 0x18010a83a
mov edx, 0x18
mul rdx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rsi, rax
add rsi, 0x11
je 0x18010a83a
sub rcx, rax
mov r8d, 0x10
mov rdx, rsi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1800098b0