Function at 0x18019f3b0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r15, qword [rcx + 0x18]
mov rax, r15
inc rax
je 0x18019fdd1
mov r14, rdx
mov rdi, rcx
mov rsi, qword [rcx + 8]
lea rbx, [rsi + 1]
mov rcx, rbx
shr rcx, 3
mov r8, rbx
and r8, 0xfffffffffffffff8
sub r8, rcx
cmp rsi, 8
mov rcx, r8
cmovb rcx, rsi
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
jbe 0x18019f437
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
mov qword [rsp + 0x40], r15
jae 0x18019f4b5
xor eax, eax
cmp rcx, 4
setae al
lea r8, [rax*4 + 4]
jmp 0x18019f505
mov qword [rsp + 0x38], rdi
mov rdi, qword [rdi]
test rbx, rbx
je 0x18019f596
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rdi]
por xmm0, xmmword [0x1801a87c0]
movdqa xmmword [rdi], xmm0
cmp rbx, 0x11
jb 0x18019f48d
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 0x18019f48d
cmp rax, rbx
jb 0x18019f470
cmp rbx, 0x10
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x70], r8
jae 0x18019f793
lea rcx, [rdi + 0x10]
mov rdx, rdi
mov r8, rbx
call sub.VCRUNTIME140.dll_memmove
jmp 0x18019f79c
mov rax, rcx
shr rax, 0x3d
jne 0x18019fdd1
shl rcx, 3
mov r8d, 1
cmp rcx, 0xe
jb 0x18019f505
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, 0x68
mov rax, r8
mul rcx
jo 0x18019fdd1
mov r12, rax
add r12, 0xf
and r12, 0xfffffffffffffff0
lea r13, [r8 + 0x10]
mov rbp, r12
add rbp, r13
jb 0x18019fdd1
movabs rax, 0x7ffffffffffffff1
cmp rbp, rax
jae 0x18019fdd1
mov qword [rsp + 0x28], r14
mov r14, r8
test rbp, rbp
je 0x18019f5ac
movzx eax, byte [0x180247060]
mov rcx, qword [0x180246f98]
test rcx, rcx
jne 0x18019f579
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18019f58c
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 0x18019f5b2
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 0x18019fda7
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 + 0x40]
mov r12, qword [rdi]
test rbx, rbx
je 0x18019f74e
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], rdi
lea rdi, [r12 - 0x68]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax]
mov qword [rsp + 0x48], rcx
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
mov r14d, 1
xor r13d, r13d
jmp 0x18019f6a5
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, rbp
mov byte [r15 + rdx], al
mov byte [rcx + r15 + 0x10], al
imul rax, r13, 0xffffffffffffff98
imul rcx, rdx, 0xffffffffffffff98
mov rdx, qword [rax + r12 - 8]
mov qword [rcx + r15 - 8], rdx
movups xmm0, xmmword [rax + r12 - 0x18]
movups xmmword [rcx + r15 - 0x18], xmm0
movups xmm0, xmmword [rax + r12 - 0x28]
movups xmmword [rcx + r15 - 0x28], xmm0
movdqu xmm0, xmmword [rax + r12 - 0x68]
movdqu xmm1, xmmword [rax + r12 - 0x58]
movups xmm2, xmmword [rax + r12 - 0x48]
movups xmm3, xmmword [rax + r12 - 0x38]
movups xmmword [rcx + r15 - 0x38], xmm3
movups xmmword [rcx + r15 - 0x48], xmm2
movdqu xmmword [rcx + r15 - 0x58], xmm1
movdqu xmmword [rcx + r15 - 0x68], xmm0
mov r13, r14
lea rax, [r14 + 1]
cmp r14, rbx
mov r14, rax
je 0x18019f72f
cmp byte [r12 + r13], 0
js 0x18019f692
mov rax, r13
neg rax
imul rax, rax, 0x68
mov r8, qword [rdi + rax]
mov r9, qword [rdi + rax + 0x10]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x28]
call fcn.180009a00
mov rcx, rax
and rcx, rbp
movdqu xmm0, xmmword [r15 + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x18019f708
mov r8d, 0x10
nop dword [rax + rax]
add rcx, r8
and rcx, rbp
movdqu xmm0, xmmword [r15 + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x18019f6f0
tzcnt edx, edx
add rdx, rcx
and rdx, rbp
cmp byte [r15 + rdx], 0
js 0x18019f620
movdqa xmm0, xmmword [r15]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x18019f620
mov rax, qword [rsp + 0x38]
mov qword [rax], r15
mov qword [rax + 8], rbp
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
test rsi, rsi
jne 0x18019f759
jmp 0x18019fdb3
mov qword [rdi], r15
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], r14
mov ecx, 0x68
mov rax, rbx
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rsi, rax
cmp rsi, 0xffffffffffffffef
je 0x18019fdb3
sub r12, rax
mov rcx, qword [0x180246f98]
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18019fdb3
movdqu xmm0, xmmword [rdi]
movdqu xmmword [rdi + rbx], xmm0
mov rax, qword [r14]
mov rcx, qword [r14 + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x30], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x68], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x60], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x58], rax
mov r12, rdi
xor r10d, r10d
jmp 0x18019f827
shr rax, 0x39
lea rcx, [r10 - 0x10]
and rcx, rsi
mov byte [rdi + r10], al
mov byte [rcx + rdi + 0x10], al
lea rax, [r10 + 1]
add r12, 0xffffffffffffff98
cmp r10, rsi
mov r10, rax
je 0x18019fd95
cmp byte [rdi + r10], 0x80
jne 0x18019f813
imul rax, r10, 0xffffffffffffff98
lea rcx, [rdi + rax]
add rcx, 0xffffffffffffff98
mov qword [rsp + 0x80], rcx
add rax, rdi
mov qword [rsp + 0x78], rax
mov rax, r10
not rax
imul rax, rax, 0x68
add rax, rdi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r10
mov rax, r10
neg rax
imul rax, rax, 0x68
add rax, rdi
add rax, 0xffffffffffffff98
mov qword [rsp + 0x28], rax
jmp 0x18019f901
mov r8, qword [rsp + 0x50]
movups xmm0, xmmword [r8]
movups xmm1, xmmword [rcx]
movups xmmword [r8], xmm1
movups xmmword [rcx], xmm0
movups xmm0, xmmword [r8 + 0x10]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [r8 + 0x10], xmm1
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [r8 + 0x20]
movups xmm1, xmmword [rcx + 0x20]
movups xmmword [r8 + 0x20], xmm1
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [r8 + 0x30]
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [r8 + 0x30], xmm1
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [r8 + 0x40]
movups xmm1, xmmword [rcx + 0x40]
movups xmmword [r8 + 0x40], xmm1
movups xmmword [rcx + 0x40], xmm0
movdqu xmm0, xmmword [r8 + 0x50]
movdqu xmm1, xmmword [rcx + 0x50]
movdqu xmmword [r8 + 0x50], xmm1
movdqu xmmword [rcx + 0x50], xmm0
mov rax, qword [r8 + 0x60]
mov rdx, qword [rcx + 0x60]
mov qword [r8 + 0x60], rdx
mov qword [rcx + 0x60], rax
mov rax, qword [rsp + 0x28]
mov rbx, qword [rax]
mov r15, qword [rax + 0x10]
mov edx, r15d
and edx, 7
mov rax, r15
and rax, 0xfffffffffffffff8
je 0x18019f9a0
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov r10, qword [rsp + 0x58]
xor r13d, r13d
mov r11, qword [rsp + 0x30]
nop word [rax + rax]
add r11, r8
rol r8, 0xd
mov rcx, qword [rbx + r13]
xor r8, r11
rol r11, 0x20
xor r10, rcx
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, r11
xor r11, rcx
add r13, 8
cmp r13, rax
jb 0x18019f940
cmp edx, 3
jbe 0x18019f9bc
mov r14d, dword [rbx + r13]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rdx
jb 0x18019f9cd
jmp 0x18019f9e6
mov r10, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
mov r9, qword [rsp + 0x60]
mov r11, qword [rsp + 0x30]
xor r13d, r13d
cmp edx, 3
ja 0x18019f988
xor r14d, r14d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rdx
jae 0x18019f9e6
lea rcx, [rax + r13]
movzx ebp, word [rbx + rcx]
lea ecx, [rax*8]
shl rbp, cl
or r14, rbp
or rax, 2
cmp rax, rdx
jae 0x18019fa00
add r13, rax
movzx ebx, byte [rbx + r13]
shl eax, 3
mov ecx, eax
shl rbx, cl
or r14, rbx
jmp 0x18019fa05
test rdx, rdx
je 0x18019fa61
lea ecx, [rdx*8]
mov ebx, 0xff
shl rbx, cl
or rbx, r14
cmp rdx, 7
jne 0x18019fb3f
mov ecx, 8
add r11, r8
rol r8, 0xd
sub rcx, rdx
xor r8, r11
rol r11, 0x20
xor r10, rbx
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
xor r10, r11
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r11, rbx
jmp 0x18019fa63
xor ecx, ecx
mov edx, 1
sub rdx, rcx
mov eax, edx
and eax, 7
and rdx, 0xfffffffffffffff8
cmp rcx, rdx
jae 0x18019faf0
nop dword [rax]
add r11, r8
rol r8, 0xd
mov rbx, r10
xor r8, r11
rol r11, 0x20
xor rbx, 0xff
add r9, rbx
shld rbx, r10, 0x10
xor rbx, r9
add r11, rbx
rol rbx, 0x15
add r9, r8
rol r8, 0x11
mov r10, rbx
xor r8, r9
rol r9, 0x20
xor r10, r11
xor r11, 0xff
add rcx, 8
cmp rcx, rdx
jb 0x18019fa80
xor edx, edx
cmp rax, 4
setae dl
cmp eax, 4
mov ebx, 0
mov ecx, 0xff
cmovae rbx, rcx
shl rdx, 2
jmp 0x18019faf4
xor ebx, ebx
xor edx, edx
mov r14, rdx
lea ecx, [rdx*8]
mov r13d, 0xff
shl r13, cl
or r14, 1
mov rbp, rdx
or rbp, 2
cmp r14, rax
mov r14d, 0
cmovae r13, r14
cmovae rbp, rdx
or r13, rbx
lea ecx, [rbp*8]
mov ebx, 0xff
shl rbx, cl
cmp rbp, rax
cmovae rbx, r14
or rbx, r13
shl r15, 0x38
movabs rax, 0x100000000000000
add r15, rax
add r11, r8
rol r8, 0xd
or r15, rbx
xor r8, r11
rol r11, 0x20
xor r10, r15
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r10, r11
xor r8, r9
rol r9, 0x20
xor r11, r15
add r11, r8
rol r8, 0xd
xor r8, r11
rol r11, 0x20
xor r9, 0xff
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, r11
add r11, r8
rol r8, 0xd
xor r8, r11
rol r11, 0x20
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, r11
add r11, r8
rol r8, 0xd
add r9, r10
rol r10, 0x10
xor r10, r9
rol r10, 0x15
xor r8, r11
add r9, r8
rol r8, 0x11
mov rax, r9
rol rax, 0x20
xor rax, r8
xor rax, r10
xor rax, r9
mov rcx, rsi
and rcx, rax
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
mov r10, qword [rsp + 0x48]
jne 0x18019fc68
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 0x18019fc50
tzcnt edx, edx
add rdx, r8
and rdx, rsi
cmp byte [rdi + rdx], 0
js 0x18019fc84
movdqa xmm0, xmmword [rdi]
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 0x18019f800
mov rcx, rdx
not rcx
imul rcx, rcx, 0x68
add rcx, rdi
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 0x18019fd40
imul rax, rdx, 0xffffffffffffff98
add rax, rdi
cmp qword [rsp + 0x80], rax
jae 0x18019f880
cmp rcx, qword [rsp + 0x78]
jae 0x18019f880
mov rcx, 0xffffffffffffff98
nop word cs:[rax + rax]
movzx edx, byte [r12 + rcx]
movzx r8d, byte [rax + rcx]
mov byte [r12 + rcx], r8b
mov byte [rax + rcx], dl
movzx edx, byte [r12 + rcx + 1]
movzx r8d, byte [rax + rcx + 1]
mov byte [r12 + rcx + 1], r8b
mov byte [rax + rcx + 1], dl
add rcx, 2
jne 0x18019fd00
jmp 0x18019f901
lea rax, [r10 - 0x10]
and rax, rsi
mov byte [rdi + r10], 0xff
mov byte [rax + rdi + 0x10], 0xff
mov rdx, qword [rsp + 0x50]
mov rax, qword [rdx + 0x60]
mov qword [rcx + 0x60], rax
movups xmm0, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
movups xmm3, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm3
movups xmmword [rcx + 0x20], xmm2
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x18019f813
cmp rsi, 8
mov rcx, qword [rsp + 0x70]
cmovb rcx, rsi
mov r15, qword [rsp + 0x40]
sub rcx, r15
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
movabs rax, 0x8000000000000001
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.180054440
ud2