Function at 0x1801a6b20
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 rax, qword [rcx + 0x18]
mov qword [rsp + 0x48], rax
inc rax
je 0x1801a748a
mov r14, rdx
mov rdi, rcx
mov rsi, qword [rcx + 8]
lea rbx, [rsi + 1]
mov rcx, rbx
shr rcx, 3
mov rdx, rbx
and rdx, 0xfffffffffffffff8
sub rdx, rcx
cmp rsi, 8
mov qword [rsp + 0x50], rdx
mov rcx, rdx
cmovb rcx, rsi
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
jbe 0x1801a6ba6
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
jae 0x1801a6c1b
xor eax, eax
cmp rcx, 4
setae al
lea r8, [rax*4 + 4]
jmp 0x1801a6c6b
mov qword [rsp + 0x30], rdi
mov rdi, qword [rdi]
test rbx, rbx
je 0x1801a6cfc
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rdi]
por xmm0, xmmword [0x1801a87c0]
movdqa xmmword [rdi], xmm0
cmp rbx, 0x11
jb 0x1801a6bfd
mov eax, 0x10
movdqa xmm0, xmmword [0x1801a87c0]
nop
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + rax]
por xmm1, xmm0
movdqa xmmword [rdi + rax], xmm1
add rax, 0x10
jb 0x1801a6bfd
cmp rax, rbx
jb 0x1801a6be0
cmp rbx, 0x10
jae 0x1801a6ee3
lea rcx, [rdi + 0x10]
mov rdx, rdi
mov r8, rbx
call sub.VCRUNTIME140.dll_memmove
jmp 0x1801a6eec
mov rax, rcx
shr rax, 0x3d
jne 0x1801a748a
shl rcx, 3
mov r8d, 1
cmp rcx, 0xe
jb 0x1801a6c6b
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 r8, 0xffffffffffffffff
shr r8, cl
inc r8
mov ecx, 0x28
mov rax, r8
mul rcx
jo 0x1801a748a
mov r12, rax
add r12, 0xf
and r12, 0xfffffffffffffff0
lea r13, [r8 + 0x10]
mov rbp, r12
add rbp, r13
jb 0x1801a748a
movabs rax, 0x7ffffffffffffff1
cmp rbp, rax
jae 0x1801a748a
mov qword [rsp + 0x40], r14
mov r14, r8
test rbp, rbp
je 0x1801a6d12
movzx eax, byte [0x180247060]
mov rcx, qword [0x180246f98]
test rcx, rcx
jne 0x1801a6cdf
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1801a6cf2
mov rcx, rax
mov qword [0x180246f98], rax
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
jne 0x1801a6d18
mov rcx, rbp
call fcn.180054480
ud2
lea rcx, [rdi + 0x10]
mov rdx, rdi
mov r8, rbx
call sub.VCRUNTIME140.dll_memmove
xor ecx, ecx
jmp 0x1801a7461
mov r15d, 0x10
lea rbp, [r14 - 1]
mov rax, r14
shr rax, 3
and r14, 0xfffffffffffffff8
sub r14, rax
cmp rbp, 8
cmovb r14, rbp
add r15, r12
mov rcx, r15
mov dl, 0xff
mov r8, r13
call sub.VCRUNTIME140.dll_memset
sub r14, qword [rsp + 0x48]
mov r12, qword [rdi]
test rbx, rbx
je 0x1801a6e9e
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rdi
lea rax, [r12 - 0x28]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov r14, qword [rax + 8]
mov r13d, 1
xor edi, edi
jmp 0x1801a6df4
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, rbp
mov byte [r15 + rdx], al
mov byte [rcx + r15 + 0x10], al
shl rdi, 3
lea rax, [rdi + rdi*4]
mov rcx, r12
sub rcx, rax
shl rdx, 3
lea rax, [rdx + rdx*4]
mov rdx, r15
sub rdx, rax
neg rax
movdqu xmm0, xmmword [rcx - 0x28]
movdqu xmm1, xmmword [rcx - 0x18]
movdqu xmmword [r15 + rax - 0x28], xmm0
mov rax, qword [rcx - 8]
mov qword [rdx - 8], rax
movdqu xmmword [rdx - 0x18], xmm1
mov rdi, r13
lea rax, [r13 + 1]
cmp r13, rbx
mov r13, rax
je 0x1801a6e7f
cmp byte [r12 + rdi], 0
js 0x1801a6de1
mov rax, rdi
neg rax
lea rax, [rax + rax*4]
mov rcx, qword [rsp + 0x28]
lea r8, [rcx + rax*8]
mov rcx, qword [rsp + 0x20]
mov rdx, r14
call fcn.18015c6b0
mov rcx, rax
and rcx, rbp
movdqu xmm0, xmmword [r15 + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x1801a6e58
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, rbp
movdqu xmm0, xmmword [r15 + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x1801a6e40
tzcnt edx, edx
add rdx, rcx
and rdx, rbp
cmp byte [r15 + rdx], 0
js 0x1801a6d90
movdqa xmm0, xmmword [r15]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x1801a6d90
mov rax, qword [rsp + 0x30]
mov qword [rax], r15
mov qword [rax + 8], rbp
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
test rsi, rsi
jne 0x1801a6ea9
jmp 0x1801a746f
mov qword [rdi], r15
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], r14
mov ecx, 0x28
mov rax, rbx
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rsi, rax
cmp rsi, 0xffffffffffffffef
je 0x1801a746f
sub r12, rax
mov rcx, qword [0x180246f98]
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1801a746f
movdqu xmm0, xmmword [rdi]
movdqu xmmword [rdi + rbx], xmm0
mov rax, qword [r14]
mov rcx, qword [r14 + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
movabs r8, 0x646f72616e646f6d
mov qword [rsp + 0x40], rcx
xor r8, rcx
add rdx, r8
rol r8, 0xd
movabs rcx, 0x6c7967656e657261
xor r8, rdx
rol rdx, 0x20
mov qword [rsp + 0x38], rdx
xor rcx, rax
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], r8
rol r8, 0x11
mov qword [rsp + 0x60], r8
xor ebp, ebp
jmp 0x1801a6f72
shr rax, 0x39
lea rcx, [rbp - 0x10]
and rcx, rsi
mov byte [rdi + rbp], al
mov byte [rcx + rdi + 0x10], al
lea rax, [rbp + 1]
cmp rbp, rsi
mov rbp, rax
je 0x1801a7454
cmp byte [rdi + rbp], 0x80
jne 0x1801a6f62
mov rax, rbp
not rax
lea rax, [rax + rax*4]
lea rax, [rdi + rax*8]
mov qword [rsp + 0x20], rax
mov rax, rbp
neg rax
lea rax, [rax + rax*4]
lea r15, [rdi + rax*8]
add r15, 0xffffffffffffffd8
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x28], r15
mov r11, qword [r15]
mov r8, qword [r15 + 0x10]
test r11, r11
jne 0x1801a6fc4
nop word cs:[rax + rax]
mov r11, qword [r15 + 8]
mov rdx, qword [rsp + 0x40]
xor rdx, r8
movabs rax, 0x7465646279746573
xor rdx, rax
mov rax, qword [rsp + 0x68]
lea r14, [rdx + rax]
rol rdx, 0x10
xor rdx, r14
mov rax, qword [rsp + 0x38]
lea rbx, [rdx + rax]
add r14, qword [rsp + 0x70]
mov r12, r14
rol r12, 0x20
xor r14, qword [rsp + 0x60]
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 0x1801a7063
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 0x1801a7020
cmp r10d, 3
jbe 0x1801a7080
mov r13d, dword [r11 + r9]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r10
jb 0x1801a7091
jmp 0x1801a70b0
xor r13d, r13d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r10
jae 0x1801a70b0
lea rcx, [rax + r9]
movzx r15d, word [r11 + rcx]
lea ecx, [rax*8]
shl r15, cl
or r13, r15
mov r15, qword [rsp + 0x28]
or rax, 2
cmp rax, r10
jae 0x1801a70d0
add r9, rax
movzx r9d, byte [r11 + r9]
shl eax, 3
mov ecx, eax
shl r9, cl
or r13, r9
movzx r9d, byte [r15 + 0x18]
jmp 0x1801a70da
movzx r9d, byte [r15 + 0x18]
test r10, r10
je 0x1801a7140
movzx eax, r9b
lea ecx, [r10*8]
shl rax, cl
or rax, r13
cmp r10, 7
jne 0x1801a7223
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 0x1801a7142
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 0x1801a71d0
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 0x1801a7160
xor ebp, ebp
cmp r10, 4
setae bpl
cmp r10d, 4
mov r11d, 0
cmovae r11, rax
shl rbp, 2
jmp 0x1801a71d5
xor r11d, r11d
xor ebp, ebp
mov r15, rbp
or r15, 1
lea ecx, [rbp*8]
mov r13, rax
shl r13, cl
mov r9, rbp
or r9, 2
cmp r15, r10
mov r15d, 0
cmovae r13, r15
cmovae r9, rbp
or r13, r11
lea ecx, [r9*8]
shl rax, cl
cmp r9, r10
cmovae rax, r15
or rax, r13
mov rbp, qword [rsp + 0x58]
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, rsi
and rcx, rax
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x1801a7348
mov r9d, 0x10
mov r8, rcx
nop word cs:[rax + rax]
add r8, r9
and r8, rsi
movdqu xmm0, xmmword [rdi + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x1801a7330
tzcnt edx, edx
add rdx, r8
and rdx, rsi
cmp byte [rdi + rdx], 0
js 0x1801a7364
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, rsi
cmp r9, 0x10
jb 0x1801a6f50
mov rcx, rdx
not rcx
lea rcx, [rcx + rcx*4]
lea rcx, [rdi + rcx*8]
movzx r8d, byte [rdi + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rsi
mov byte [rdi + rdx], al
mov byte [r9 + rdi + 0x10], al
cmp r8b, 0xff
je 0x1801a7420
mov r8, qword [rsp + 0x20]
mov rax, qword [r8]
mov rdx, qword [rcx]
mov qword [r8], rdx
mov qword [rcx], rax
mov rax, qword [r8 + 8]
mov rdx, qword [rcx + 8]
mov qword [r8 + 8], rdx
mov qword [rcx + 8], rax
mov rax, qword [r8 + 0x10]
mov rdx, qword [rcx + 0x10]
mov qword [r8 + 0x10], rdx
mov qword [rcx + 0x10], rax
mov rax, qword [r8 + 0x18]
mov rdx, qword [rcx + 0x18]
mov qword [r8 + 0x18], rdx
mov qword [rcx + 0x18], rax
mov rax, qword [r8 + 0x20]
mov rdx, qword [rcx + 0x20]
mov qword [r8 + 0x20], rdx
mov qword [rcx + 0x20], rax
mov r11, qword [r15]
mov r8, qword [r15 + 0x10]
test r11, r11
je 0x1801a6fc0
jmp 0x1801a6fc4
lea rax, [rbp - 0x10]
and rax, rsi
mov byte [rdi + rbp], 0xff
mov byte [rax + rdi + 0x10], 0xff
mov rdx, qword [rsp + 0x20]
mov rax, qword [rdx + 0x20]
mov qword [rcx + 0x20], rax
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 0x10]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x1801a6f62
cmp rsi, 8
mov rcx, qword [rsp + 0x50]
cmovb rcx, rsi
sub rcx, qword [rsp + 0x48]
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