Function at 0x1801a6210
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 r9, qword [rcx + 0x18]
mov rax, r9
inc rax
je 0x1801a6b12
mov rbp, rdx
mov r8, rcx
mov r13, qword [rcx + 8]
lea rbx, [r13 + 1]
mov rcx, rbx
shr rcx, 3
mov r10, rbx
and r10, 0xfffffffffffffff8
sub r10, rcx
cmp r13, 8
mov rcx, r10
cmovb rcx, r13
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x40], r9
jbe 0x1801a6299
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
jae 0x1801a631b
xor eax, eax
cmp rcx, 4
setae al
lea r14, [rax*4 + 4]
jmp 0x1801a6378
mov qword [rsp + 0x48], r10
mov rdi, qword [r8]
test rbx, rbx
je 0x1801a63ec
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rdi]
por xmm0, xmmword [0x1801a87c0]
movdqa xmmword [rdi], xmm0
cmp rbx, 0x11
jb 0x1801a62fd
mov eax, 0x10
movdqa xmm0, xmmword [0x1801a87c0]
nop word cs:[rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + rax]
por xmm1, xmm0
movdqa xmmword [rdi + rax], xmm1
add rax, 0x10
jb 0x1801a62fd
cmp rax, rbx
jb 0x1801a62e0
cmp rbx, 0x10
jae 0x1801a65a2
lea rcx, [rdi + 0x10]
mov rdx, rdi
mov r8, rbx
call sub.VCRUNTIME140.dll_memmove
jmp 0x1801a65ab
mov rax, rcx
shr rax, 0x3d
jne 0x1801a6b12
shl rcx, 3
mov r14d, 1
cmp rcx, 0xe
jb 0x1801a6378
movabs rdx, 0x2492492492492493
mov rax, rcx
mul rdx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 2
dec rcx
bsr rcx, rcx
not ecx
mov r14, 0xffffffffffffffff
shr r14, cl
inc r14
mov rax, r14
shr rax, 0x3b
jne 0x1801a6b12
mov rsi, r14
shl rsi, 5
lea r15, [r14 + 0x10]
mov r12, rsi
add r12, r15
jb 0x1801a6b12
movabs rax, 0x7ffffffffffffff1
cmp r12, rax
jae 0x1801a6b12
test r12, r12
je 0x1801a6402
movzx eax, byte [0x180247060]
mov rcx, qword [0x180246f98]
test rcx, rcx
jne 0x1801a63cf
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1801a63e2
mov rcx, rax
mov qword [0x180246f98], rax
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x1801a6407
mov rcx, r12
call fcn.180054480
ud2
lea rcx, [rdi + 0x10]
mov rdx, rdi
mov r8, rbx
call sub.VCRUNTIME140.dll_memmove
xor ecx, ecx
jmp 0x1801a6ae9
mov edi, 0x10
mov r12, rbp
lea rbp, [r14 - 1]
mov rax, r14
shr rax, 3
and r14, 0xfffffffffffffff8
sub r14, rax
cmp rbp, 8
cmovb r14, rbp
add rdi, rsi
mov rcx, rdi
mov dl, 0xff
mov r8, r15
call sub.VCRUNTIME140.dll_memset
sub r14, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
mov r15, qword [rax]
test rbx, rbx
je 0x1801a656c
mov qword [rsp + 0x38], r14
lea rax, [r15 - 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [r12]
mov qword [rsp + 0x20], rax
mov r14, qword [r12 + 8]
mov r12d, 1
xor esi, esi
jmp 0x1801a64be
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, rbp
mov byte [rdi + rdx], al
mov byte [rcx + rdi + 0x10], al
mov rax, r15
sub rax, rsi
shl rdx, 5
mov rcx, rdi
sub rcx, rdx
neg rdx
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmmword [rdi + rdx - 0x20], xmm0
movdqu xmmword [rcx - 0x10], xmm1
mov rsi, r12
lea rax, [r12 + 1]
cmp r12, rbx
mov r12, rax
je 0x1801a653c
cmp byte [r15 + rsi], 0
js 0x1801a64aa
shl rsi, 5
mov r8, qword [rsp + 0x28]
sub r8, rsi
mov rcx, qword [rsp + 0x20]
mov rdx, r14
call fcn.18015c6b0
mov rcx, rax
and rcx, rbp
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x1801a6517
mov r8d, 0x10
nop word [rax + rax]
add rcx, r8
and rcx, rbp
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x1801a6500
tzcnt edx, edx
add rdx, rcx
and rdx, rbp
cmp byte [rdi + rdx], 0
js 0x1801a6470
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x1801a6470
mov rax, qword [rsp + 0x30]
mov qword [rax], rdi
mov qword [rax + 8], rbp
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
test r13, r13
je 0x1801a6af7
shl rbx, 5
add r13, rbx
cmp r13, 0xffffffffffffffef
jne 0x1801a6588
jmp 0x1801a6af7
mov qword [rax], rdi
mov qword [rax + 8], rbp
mov qword [rax + 0x10], r14
shl rbx, 5
add r13, rbx
cmp r13, 0xffffffffffffffef
je 0x1801a6af7
sub r15, rbx
mov rcx, qword [0x180246f98]
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1801a6af7
movdqu xmm0, xmmword [rdi]
movdqu xmmword [rdi + rbx], xmm0
mov rax, qword [rbp]
mov rcx, qword [rbp + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
movabs r8, 0x646f72616e646f6d
mov qword [rsp + 0x38], rcx
xor r8, rcx
add rdx, r8
rol r8, 0xd
movabs rcx, 0x6c7967656e657261
xor r8, rdx
rol rdx, 0x20
mov qword [rsp + 0x70], rdx
xor rcx, rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], r8
rol r8, 0x11
mov qword [rsp + 0x58], r8
xor ebp, ebp
jmp 0x1801a6632
shr rax, 0x39
lea rcx, [rbp - 0x10]
and rcx, r13
mov byte [rdi + rbp], al
mov byte [rcx + rdi + 0x10], al
lea rax, [rbp + 1]
cmp rbp, r13
mov rbp, rax
je 0x1801a6adc
cmp byte [rdi + rbp], 0x80
jne 0x1801a6622
mov rax, rbp
not rax
shl rax, 5
add rax, rdi
mov qword [rsp + 0x20], rax
mov rax, rbp
shl rax, 5
neg rax
lea r15, [rdi + rax]
add r15, 0xffffffffffffffe0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x28], r15
mov r11, qword [r15]
mov r8, qword [r15 + 0x10]
test r11, r11
jne 0x1801a6684
nop word cs:[rax + rax]
mov r11, qword [r15 + 8]
mov rdx, qword [rsp + 0x38]
xor rdx, r8
movabs rax, 0x7465646279746573
xor rdx, rax
mov rax, qword [rsp + 0x60]
lea r14, [rdx + rax]
rol rdx, 0x10
xor rdx, r14
mov rax, qword [rsp + 0x70]
lea rbx, [rdx + rax]
add r14, qword [rsp + 0x68]
mov r12, r14
rol r12, 0x20
xor r14, qword [rsp + 0x58]
rol rdx, 0x15
xor rdx, rbx
xor rbx, r8
mov r10d, r8d
and r10d, 7
mov rax, r8
xor r9d, r9d
and rax, 0xfffffffffffffff8
je 0x1801a6723
add rbx, r14
rol r14, 0xd
mov rcx, qword [r11 + r9]
xor r14, rbx
rol rbx, 0x20
xor rdx, rcx
add r12, rdx
rol rdx, 0x10
xor rdx, r12
add rbx, rdx
rol rdx, 0x15
add r12, r14
rol r14, 0x11
xor r14, r12
rol r12, 0x20
xor rdx, rbx
xor rbx, rcx
add r9, 8
cmp r9, rax
jb 0x1801a66e0
cmp r10d, 3
jbe 0x1801a6740
mov esi, dword [r11 + r9]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r10
jb 0x1801a6750
jmp 0x1801a676f
xor esi, esi
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r10
jae 0x1801a676f
lea rcx, [rax + r9]
movzx r15d, word [r11 + rcx]
lea ecx, [rax*8]
shl r15, cl
or rsi, r15
mov r15, qword [rsp + 0x28]
or rax, 2
cmp rax, r10
jae 0x1801a6790
add r9, rax
movzx r9d, byte [r11 + r9]
shl eax, 3
mov ecx, eax
shl r9, cl
or rsi, r9
movzx r9d, byte [r15 + 0x18]
jmp 0x1801a679a
movzx r9d, byte [r15 + 0x18]
test r10, r10
je 0x1801a6800
movzx eax, r9b
lea ecx, [r10*8]
shl rax, cl
or rax, rsi
cmp r10, 7
jne 0x1801a68e2
mov ecx, 8
add rbx, r14
rol r14, 0xd
sub rcx, r10
xor r14, rbx
rol rbx, 0x20
xor rdx, rax
add r12, rdx
rol rdx, 0x10
xor rdx, r12
add rbx, rdx
rol rdx, 0x15
xor rdx, rbx
add r12, r14
rol r14, 0x11
xor r14, r12
rol r12, 0x20
xor rbx, rax
jmp 0x1801a6802
xor ecx, ecx
mov r11d, 1
sub r11, rcx
mov r10d, r11d
and r10d, 7
and r11, 0xfffffffffffffff8
movzx eax, r9b
cmp rcx, r11
jae 0x1801a6890
nop
add rbx, r14
rol r14, 0xd
mov r9, rdx
xor r14, rbx
rol rbx, 0x20
xor r9, rax
add r12, r9
shld r9, rdx, 0x10
xor r9, r12
add rbx, r9
rol r9, 0x15
add r12, r14
rol r14, 0x11
mov rdx, r9
xor r14, r12
rol r12, 0x20
xor rdx, rbx
xor rbx, rax
add rcx, 8
cmp rcx, r11
jb 0x1801a6820
xor ebp, ebp
cmp r10, 4
setae bpl
cmp r10d, 4
mov r11d, 0
cmovae r11, rax
shl rbp, 2
jmp 0x1801a6895
xor r11d, r11d
xor ebp, ebp
mov rsi, rbp
or rsi, 1
lea ecx, [rbp*8]
mov r15, rax
shl r15, cl
mov r9, rbp
or r9, 2
cmp rsi, r10
mov esi, 0
cmovae r15, rsi
cmovae r9, rbp
or r15, r11
lea ecx, [r9*8]
shl rax, cl
cmp r9, r10
cmovae rax, rsi
or rax, r15
mov rbp, qword [rsp + 0x50]
mov r15, qword [rsp + 0x28]
shl r8, 0x38
movabs rcx, 0x900000000000000
add r8, rcx
add rbx, r14
rol r14, 0xd
or r8, rax
xor r14, rbx
rol rbx, 0x20
xor rdx, r8
add r12, rdx
rol rdx, 0x10
xor rdx, r12
add rbx, rdx
rol rdx, 0x15
add r12, r14
rol r14, 0x11
xor rdx, rbx
xor r14, r12
rol r12, 0x20
xor rbx, r8
add rbx, r14
rol r14, 0xd
xor r14, rbx
rol rbx, 0x20
xor r12, 0xff
add r12, rdx
rol rdx, 0x10
xor rdx, r12
add rbx, rdx
rol rdx, 0x15
add r12, r14
rol r14, 0x11
xor r14, r12
rol r12, 0x20
xor rdx, rbx
add rbx, r14
rol r14, 0xd
xor r14, rbx
rol rbx, 0x20
add r12, rdx
rol rdx, 0x10
xor rdx, r12
add rbx, rdx
rol rdx, 0x15
add r12, r14
rol r14, 0x11
xor r14, r12
rol r12, 0x20
xor rdx, rbx
add rbx, r14
rol r14, 0xd
add r12, rdx
rol rdx, 0x10
xor rdx, r12
rol rdx, 0x15
xor r14, rbx
add r12, r14
rol r14, 0x11
mov rax, r12
rol rax, 0x20
xor rax, r14
xor rax, rdx
xor rax, r12
mov rcx, r13
and rcx, rax
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x1801a6a08
mov r9d, 0x10
mov r8, rcx
nop word cs:[rax + rax]
add r8, r9
and r8, r13
movdqu xmm0, xmmword [rdi + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x1801a69f0
tzcnt edx, edx
add rdx, r8
and rdx, r13
cmp byte [rdi + rdx], 0
js 0x1801a6a24
movdqa xmm0, xmmword [rdi]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, rbp
sub r8, rcx
mov r9, rdx
sub r9, rcx
xor r9, r8
and r9, r13
cmp r9, 0x10
jb 0x1801a6610
mov rcx, rdx
not rcx
shl rcx, 5
add rcx, rdi
movzx r8d, byte [rdi + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, r13
mov byte [rdi + rdx], al
mov byte [r9 + rdi + 0x10], al
cmp r8b, 0xff
je 0x1801a6ab0
mov rax, qword [rsp + 0x20]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rcx]
movups xmmword [rax], xmm1
movups xmmword [rcx], xmm0
movdqu xmm0, xmmword [rax + 0x10]
movdqu xmm1, xmmword [rcx + 0x10]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rcx + 0x10], xmm0
mov r11, qword [r15]
mov r8, qword [r15 + 0x10]
test r11, r11
je 0x1801a6680
jmp 0x1801a6684
lea rax, [rbp - 0x10]
and rax, r13
mov byte [rdi + rbp], 0xff
mov byte [rax + rdi + 0x10], 0xff
mov rax, qword [rsp + 0x20]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 0x10]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x1801a6622
cmp r13, 8
mov rcx, qword [rsp + 0x48]
cmovb rcx, r13
sub rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
movabs rax, 0x8000000000000001
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.180054440
ud2