Function at 0x1801dbf60
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov r9, qword [rcx + 0x18]
mov rax, r9
inc rax
jne 0x1801dbf8b
mov cl, 1
call fcn.1801bddd0
jmp 0x1801dc1a5
mov rsi, qword [rcx + 8]
lea r13, [rsi + 1]
mov r8, r13
shr r8, 3
mov r10, r13
and r10, 0xfffffffffffffff8
sub r10, r8
cmp rsi, 8
cmovb r10, rsi
mov r8, r10
shr r8, 1
cmp rax, r8
jbe 0x1801dbff5
inc r10
cmp rax, r10
cmova r10, rax
cmp r10, 8
jae 0x1801dc02d
mov r15, r9
mov qword [rsp + 0x28], rcx
mov rbp, rdx
xor eax, eax
cmp r10, 4
setae al
lea rbx, [rax*4 + 4]
mov ecx, 0x30
mov rax, rbx
mul rcx
jo 0x1801dbf7f
jmp 0x1801dc08d
mov qword [rsp + 0x70], r10
mov qword [rsp + 0x40], r9
mov r14, qword [rcx]
mov r8, r13
shr r8, 4
xor eax, eax
test r13b, 0xf
setne al
add rax, r8
je 0x1801dc163
cmp rax, 1
jne 0x1801dc0f8
xor r8d, r8d
jmp 0x1801dc147
mov rax, r10
shr rax, 0x3d
jne 0x1801dbf7f
mov r15, r9
mov qword [rsp + 0x28], rcx
mov rbp, rdx
shl r10, 3
movabs rcx, 0x2492492492492493
mov rax, r10
mul rcx
sub r10, rdx
shr r10, 1
add r10, rdx
shr r10, 2
dec r10
bsr rcx, r10
not ecx
mov rbx, 0xffffffffffffffff
shr rbx, cl
inc rbx
mov ecx, 0x30
mov rax, rbx
mul rcx
jo 0x1801dbf7f
lea r12, [rbx + 0x10]
mov r14, rax
add r14, r12
jb 0x1801dbf7f
movabs rcx, 0x7ffffffffffffff1
cmp r14, rcx
jae 0x1801dbf7f
mov qword [rsp + 0x58], r13
test r14, r14
je 0x1801dc656
movzx ecx, byte [0x1802de561]
mov edx, 0x10
mov rcx, r14
mov rdi, rax
call fcn.180039410
mov r13, rax
mov rax, rdi
test r13, r13
jne 0x1801dc65c
mov edx, 0x10
mov cl, 1
mov r8, r14
call fcn.1801bde20
jmp 0x1801dc1a5
movabs r10, 0x1ffffffffffffffe
and r10, rax
xor r9d, r9d
movdqa xmm0, xmmword [0x1801e4280]
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 r10, 0xfffffffffffffffe
jne 0x1801dc110
test al, 1
je 0x1801dc163
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [r14 + r8]
por xmm0, xmmword [0x1801e4280]
movdqa xmmword [r14 + r8], xmm0
mov qword [rsp + 0x28], rcx
cmp r13, 0x10
jae 0x1801dc1b9
lea rcx, [r14 + 0x10]
mov rdi, rdx
mov rdx, r14
mov r8, r13
call sub.VCRUNTIME140.dll_memmove
mov rdx, rdi
test r13, r13
jne 0x1801dc1c4
mov rcx, qword [rsp + 0x70]
sub rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
movabs rax, 0x8000000000000001
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movdqu xmm0, xmmword [r14]
movdqu xmmword [r14 + r13], xmm0
lea rax, [r14 - 0x30]
mov qword [rsp + 0x30], rax
mov rax, qword [rdx]
mov rcx, qword [rdx + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
movabs r8, 0x646f72616e646f6d
mov qword [rsp + 0x58], rcx
xor r8, rcx
movabs rcx, 0x6c7967656e657261
add rdx, r8
rol r8, 0xd
xor rcx, rax
mov qword [rsp + 0x90], rcx
xor r8, rdx
rol rdx, 0x20
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], r8
rol r8, 0x11
mov qword [rsp + 0x88], r8
lea r12, [r14 - 0x2e]
xor r11d, r11d
mov qword [rsp + 0x78], r12
jmp 0x1801dc268
shr rax, 0x39
lea rcx, [r11 - 0x10]
and rcx, rsi
mov byte [r14 + r11], al
mov byte [r14 + rcx + 0x10], al
lea rax, [r11 + 1]
add r12, 0xffffffffffffffd0
cmp r11, rsi
mov r11, rax
je 0x1801dc188
cmp byte [r14 + r11], 0x80
jne 0x1801dc254
mov rax, r11
shl rax, 4
lea rax, [rax + rax*2]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov qword [rsp + 0x38], rcx
mov rcx, r14
sub rcx, rax
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x68], r11
mov rax, r11
neg rax
lea rax, [rax + rax*2]
shl rax, 4
add rax, r14
mov qword [rsp + 0x60], rax
jmp 0x1801dc2f5
mov rax, qword [rsp + 0x38]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rdx]
movups xmmword [rax], xmm1
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rdx + 0x10], xmm0
movdqu xmm0, xmmword [rax + 0x20]
movdqu xmm1, xmmword [rdx + 0x20]
movdqu xmmword [rax + 0x20], xmm1
movdqu xmmword [rdx + 0x20], xmm0
mov rax, qword [rsp + 0x60]
mov r10, qword [rax - 0x30]
mov rdi, qword [rax - 0x28]
mov rdx, qword [rsp + 0x58]
xor rdx, rdi
movabs rax, 0x7465646279746573
xor rdx, rax
mov rax, qword [rsp + 0x90]
lea r13, [rdx + rax]
rol rdx, 0x10
xor rdx, r13
mov rax, qword [rsp + 0x50]
lea r9, [rdx + rax]
rol rdx, 0x15
xor rdx, r9
add r13, qword [rsp + 0x48]
mov r11, r13
rol r13, 0x20
xor r11, qword [rsp + 0x88]
xor r9, rdi
mov rax, rdi
xor r15d, r15d
and rax, 0xfffffffffffffff8
je 0x1801dc3a3
nop dword [rax]
add r9, r11
rol r11, 0xd
mov rcx, qword [r10 + r15]
xor r11, r9
rol r9, 0x20
xor rdx, rcx
add r13, rdx
rol rdx, 0x10
xor rdx, r13
add r9, rdx
rol rdx, 0x15
add r13, r11
rol r11, 0x11
xor r11, r13
rol r13, 0x20
xor rdx, r9
xor r9, rcx
add r15, 8
cmp r15, rax
jb 0x1801dc360
mov ebx, edi
and ebx, 7
cmp ebx, 4
jb 0x1801dc3d0
mov ebp, dword [r10 + r15]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rbx
jb 0x1801dc3e0
jmp 0x1801dc3fa
xor ebp, ebp
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rbx
jae 0x1801dc3fa
lea rcx, [r10 + rax]
movzx r8d, word [r15 + rcx]
lea ecx, [rax*8]
shl r8, cl
or rbp, r8
or rax, 2
cmp rax, rbx
jae 0x1801dc412
add r15, rax
movzx r8d, byte [r10 + r15]
shl eax, 3
mov ecx, eax
shl r8, cl
or rbp, r8
shl rdi, 0x38
movabs rax, 0x800000000000000
add rdi, rax
add r9, r11
rol r11, 0xd
or rdi, rbp
xor r11, r9
rol r9, 0x20
xor rdx, rdi
add r13, rdx
rol rdx, 0x10
xor rdx, r13
add r9, rdx
rol rdx, 0x15
add r13, r11
rol r11, 0x11
xor rdx, r9
xor r11, r13
rol r13, 0x20
xor r9, rdi
add r9, r11
rol r11, 0xd
xor r11, r9
rol r9, 0x20
xor r13, 0xff
add r13, rdx
rol rdx, 0x10
xor rdx, r13
add r9, rdx
rol rdx, 0x15
add r13, r11
rol r11, 0x11
xor r11, r13
rol r13, 0x20
xor rdx, r9
add r9, r11
rol r11, 0xd
xor r11, r9
rol r9, 0x20
add r13, rdx
rol rdx, 0x10
xor rdx, r13
add r9, rdx
rol rdx, 0x15
add r13, r11
rol r11, 0x11
xor r11, r13
rol r13, 0x20
xor rdx, r9
add r9, r11
rol r11, 0xd
add r13, rdx
rol rdx, 0x10
xor rdx, r13
rol rdx, 0x15
xor r11, r9
add r13, r11
rol r11, 0x11
mov rax, r13
rol rax, 0x20
xor rax, r11
xor rax, rdx
xor rax, r13
mov rcx, rax
and rcx, rsi
movdqu xmm0, xmmword [r14 + rcx]
pmovmskb r9d, xmm0
mov rdx, rcx
test r9d, r9d
mov r11, qword [rsp + 0x68]
jne 0x1801dc53a
mov r10d, 0x10
mov rdx, rcx
nop dword [rax]
add rdx, r10
and rdx, rsi
movdqu xmm0, xmmword [r14 + rdx]
pmovmskb r9d, xmm0
add r10, 0x10
test r9d, r9d
je 0x1801dc520
tzcnt r9d, r9d
add r9, rdx
and r9, rsi
cmp byte [r14 + r9], 0
js 0x1801dc55a
movdqa xmm0, xmmword [r14]
pmovmskb edx, xmm0
tzcnt r9d, edx
mov rdx, r11
sub rdx, rcx
mov r8, r9
sub r8, rcx
xor r8, rdx
and r8, rsi
cmp r8, 0x10
jb 0x1801dc240
mov rcx, r9
shl rcx, 4
lea rcx, [rcx + rcx*2]
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
movzx r8d, byte [r14 + r9]
shr rax, 0x39
lea r10, [r9 - 0x10]
and r10, rsi
mov byte [r14 + r9], al
mov byte [r14 + r10 + 0x10], al
cmp r8b, 0xff
je 0x1801dc620
neg rcx
lea rax, [r14 + rcx]
cmp qword [rsp + 0x38], rax
jae 0x1801dc2c0
cmp rdx, qword [rsp + 0x80]
jae 0x1801dc2c0
add rcx, qword [rsp + 0x78]
xor eax, eax
nop
movzx edx, byte [r12 + rax - 2]
movzx r8d, byte [rcx + rax - 2]
mov byte [r12 + rax - 2], r8b
mov byte [rcx + rax - 2], dl
movzx edx, byte [r12 + rax - 1]
movzx r8d, byte [rcx + rax - 1]
mov byte [r12 + rax - 1], r8b
mov byte [rcx + rax - 1], dl
movzx edx, byte [r12 + rax]
movzx r8d, byte [rcx + rax]
mov byte [r12 + rax], r8b
mov byte [rcx + rax], dl
add rax, 3
cmp rax, 0x30
jne 0x1801dc5d0
jmp 0x1801dc2f5
lea rax, [r11 - 0x10]
and rax, rsi
mov byte [r14 + r11], 0xff
mov byte [r14 + rax + 0x10], 0xff
mov rax, qword [rsp + 0x38]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm2
movdqu xmmword [rdx + 0x10], xmm1
movdqu xmmword [rdx], xmm0
jmp 0x1801dc254
mov r13d, 0x10
lea rdi, [rbx - 1]
mov rcx, rbx
shr rcx, 3
mov rdx, rbx
and rdx, 0xfffffffffffffff8
sub rdx, rcx
cmp rbx, 9
cmovb rdx, rdi
mov qword [rsp + 0x50], rdx
mov rbx, rax
lea r14, [r13 + rax]
mov rcx, r14
mov dl, 0xff
mov r8, r12
call sub.VCRUNTIME140.dll_memset
mov r12, r15
test r15, r15
je 0x1801dc835
lea rax, [rbx + r13]
add rax, 0xffffffffffffffd0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x28]
mov r13, qword [rax]
movdqa xmm0, xmmword [r13]
pmovmskb r15d, xmm0
not r15d
mov rax, qword [rbp]
mov qword [rsp + 0x68], rax
mov rax, qword [rbp + 8]
mov qword [rsp + 0x60], rax
lea r9, [r13 - 0x30]
xor ebx, ebx
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x30], r9
jmp 0x1801dc75c
lea ecx, [r15 - 1]
and ecx, r15d
dec r12
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, rdi
mov byte [r14 + rdx], al
mov byte [r14 + r8 + 0x10], al
shl rbp, 4
lea rax, [rbp*2]
add rax, rbp
mov r8, r9
sub r8, rax
shl rdx, 4
lea rax, [rdx + rdx*2]
mov rdx, qword [rsp + 0x38]
sub rdx, rax
movdqu xmm0, xmmword [r8]
movdqu xmm1, xmmword [r8 + 0x10]
movups xmm2, xmmword [r8 + 0x20]
movups xmmword [rdx + 0x20], xmm2
movdqu xmmword [rdx + 0x10], xmm1
movdqu xmmword [rdx], xmm0
mov r15d, ecx
test r12, r12
je 0x1801dc824
test r15w, r15w
jne 0x1801dc78f
nop word cs:[rax + rax]
movdqa xmm0, xmmword [r13 + 0x10]
add r13, 0x10
pmovmskb r15d, xmm0
add rbx, 0x10
cmp r15d, 0xffff
je 0x1801dc770
not r15d
tzcnt ebp, r15d
add rbp, rbx
mov rax, rbp
neg rax
lea r8, [rax + rax*2]
shl r8, 4
add r8, r9
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
call fcn.1801a4e80
mov rcx, rax
and rcx, rdi
movdqu xmm0, xmmword [r14 + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x1801dc7f8
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 0x1801dc7e0
mov r9, qword [rsp + 0x30]
tzcnt edx, edx
add rdx, rcx
and rdx, rdi
cmp byte [r14 + rdx], 0
js 0x1801dc6f0
movdqa xmm0, xmmword [r14]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x1801dc6f0
mov rax, qword [rsp + 0x28]
mov r12, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
jmp 0x1801dc83d
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax]
mov rdx, qword [rsp + 0x50]
sub rdx, r12
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdx
movabs rax, 0x8000000000000001
test rsi, rsi
mov rdx, qword [rsp + 0x58]
je 0x1801dc1a5
mov rdi, rax
mov r8d, 0x30
mov rax, rdx
mul r8
add rsi, rax
add rsi, 0x11
je 0x1801dc891
sub rcx, rax
mov r8d, 0x10
mov rdx, rsi
call fcn.180039420
mov rax, rdi
jmp 0x1801dc1a5