Function at 0x180199ec0
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 rsi, qword [rcx + 0x18]
mov rax, rsi
inc rax
je 0x18019a85e
mov r14, rdx
mov rdi, rcx
mov rbp, qword [rcx + 8]
lea rbx, [rbp + 1]
mov rcx, rbx
shr rcx, 3
mov r8, rbx
and r8, 0xfffffffffffffff8
sub r8, rcx
cmp rbp, 8
mov rcx, r8
cmovb rcx, rbp
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
jbe 0x180199f44
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
mov qword [rsp + 0x30], rsi
jae 0x180199fc5
xor eax, eax
cmp rcx, 4
setae al
lea rsi, [rax*4 + 4]
jmp 0x18019a014
mov qword [rsp + 0x28], rdi
mov rdi, qword [rdi]
test rbx, rbx
je 0x18019a092
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rdi]
por xmm0, xmmword [0x1801a87c0]
movdqa xmmword [rdi], xmm0
cmp rbx, 0x11
jb 0x180199f9d
mov eax, 0x10
movdqa xmm0, xmmword [0x1801a87c0]
nop dword [rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + rax]
por xmm1, xmm0
movdqa xmmword [rdi + rax], xmm1
add rax, 0x10
jb 0x180199f9d
cmp rax, rbx
jb 0x180199f80
cmp rbx, 0x10
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x68], r8
jae 0x18019a27b
lea rcx, [rdi + 0x10]
mov rdx, rdi
mov r8, rbx
call sub.VCRUNTIME140.dll_memmove
jmp 0x18019a284
mov rax, rcx
shr rax, 0x3d
jne 0x18019a85e
shl rcx, 3
mov esi, 1
cmp rcx, 0xe
jb 0x18019a014
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 rsi, 0xffffffffffffffff
shr rsi, cl
inc rsi
mov ecx, 0x30
mov rax, rsi
mul rcx
jo 0x18019a85e
mov r15, rax
lea r12, [rsi + 0x10]
mov r13, rax
add r13, r12
jb 0x18019a85e
movabs rax, 0x7ffffffffffffff1
cmp r13, rax
jae 0x18019a85e
test r13, r13
je 0x18019a0a8
movzx eax, byte [0x180247060]
mov rcx, qword [0x180246f98]
test rcx, rcx
jne 0x18019a078
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18019a088
mov rcx, rax
mov qword [0x180246f98], rax
xor edx, edx
mov r8, r13
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
jne 0x18019a0ad
mov rcx, r13
call fcn.180054480
ud2
lea rcx, [rdi + 0x10]
mov rdx, rdi
mov r8, rbx
call sub.VCRUNTIME140.dll_memmove
xor ecx, ecx
jmp 0x18019a837
mov eax, 0x10
mov r13, rsi
dec rsi
mov rcx, r13
shr rcx, 3
and r13, 0xfffffffffffffff8
sub r13, rcx
cmp rsi, 8
cmovb r13, rsi
add r15, rax
mov rcx, r15
mov dl, 0xff
mov r8, r12
call sub.VCRUNTIME140.dll_memset
sub r13, qword [rsp + 0x30]
mov r12, qword [rdi]
test rbx, rbx
je 0x18019a23e
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x28], rdi
lea rdi, [r12 - 0x30]
mov rax, qword [r14]
mov qword [rsp + 0x20], rax
mov rax, qword [r14 + 8]
mov qword [rsp + 0x40], rax
mov r14d, 1
xor r13d, r13d
jmp 0x18019a18b
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, rsi
mov byte [r15 + rdx], al
mov byte [rcx + r15 + 0x10], al
shl r13, 4
lea rax, [r13*2]
add rax, r13
mov rcx, r12
sub rcx, rax
shl rdx, 4
lea rax, [rdx + rdx*2]
mov rdx, r15
sub rdx, rax
neg rax
movdqu xmm0, xmmword [rcx - 0x30]
movdqu xmm1, xmmword [rcx - 0x20]
movups xmm2, xmmword [rcx - 0x10]
movdqu xmmword [r15 + rax - 0x30], xmm0
movups xmmword [rdx - 0x10], xmm2
movdqu xmmword [rdx - 0x20], xmm1
mov r13, r14
lea rax, [r14 + 1]
cmp r14, rbx
mov r14, rax
je 0x18019a21f
cmp byte [r12 + r13], 0
js 0x18019a178
mov rax, r13
neg rax
lea rax, [rax + rax*2]
shl rax, 4
mov r8, qword [rdi + rax]
mov r9, qword [rdi + rax + 0x10]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x40]
call fcn.180009a00
mov rcx, rax
and rcx, rsi
movdqu xmm0, xmmword [r15 + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x18019a1f8
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, rsi
movdqu xmm0, xmmword [r15 + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x18019a1e0
tzcnt edx, edx
add rdx, rcx
and rdx, rsi
cmp byte [r15 + rdx], 0
js 0x18019a120
movdqa xmm0, xmmword [r15]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x18019a120
mov rax, qword [rsp + 0x28]
mov qword [rax], r15
mov qword [rax + 8], rsi
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
test rbp, rbp
jne 0x18019a249
jmp 0x18019a843
mov qword [rdi], r15
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], r13
mov ecx, 0x30
mov rax, rbx
mul rcx
add rbp, rax
cmp rbp, 0xffffffffffffffef
je 0x18019a843
sub r12, rax
mov rcx, qword [0x180246f98]
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18019a843
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 + 0x60], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x58], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x50], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x48], rax
mov r12, rdi
xor r10d, r10d
jmp 0x18019a307
shr rax, 0x39
lea rcx, [r10 - 0x10]
and rcx, rbp
mov byte [rdi + r10], al
mov byte [rcx + rdi + 0x10], al
lea rax, [r10 + 1]
add r12, 0xffffffffffffffd0
cmp r10, rbp
mov r10, rax
je 0x18019a825
cmp byte [rdi + r10], 0x80
jne 0x18019a2f3
mov rax, r10
shl rax, 4
lea rax, [rax + rax*2]
mov rcx, r10
not rcx
lea rcx, [rcx + rcx*2]
shl rcx, 4
add rcx, rdi
mov qword [rsp + 0x20], rcx
mov rcx, rdi
sub rcx, rax
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x40], r10
mov rax, r10
neg rax
lea rax, [rax + rax*2]
shl rax, 4
add rax, rdi
add rax, 0xffffffffffffffd0
mov qword [rsp + 0x38], rax
jmp 0x18019a3a9
mov r8, qword [rsp + 0x20]
movdqu xmm0, xmmword [r8]
movdqu xmm1, xmmword [r8 + 0x10]
movups xmm2, xmmword [rcx]
movups xmm3, xmmword [rcx + 0x10]
movups xmmword [r8], xmm2
movups xmmword [r8 + 0x10], xmm3
movdqu xmmword [rcx], xmm0
movdqu xmmword [rcx + 0x10], xmm1
mov rax, qword [r8 + 0x20]
mov rdx, qword [rcx + 0x20]
mov qword [r8 + 0x20], rdx
mov qword [rcx + 0x20], rax
mov rax, qword [r8 + 0x28]
mov rdx, qword [rcx + 0x28]
mov qword [r8 + 0x28], rdx
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x38]
mov r15, qword [rax]
mov r14, qword [rax + 0x10]
mov r11d, r14d
and r11d, 7
mov rax, r14
and rax, 0xfffffffffffffff8
je 0x18019a440
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov r10, qword [rsp + 0x48]
xor r13d, r13d
mov rdx, qword [rsp + 0x60]
nop dword [rax]
add rdx, r8
rol r8, 0xd
mov rcx, qword [r15 + r13]
xor r8, rdx
rol rdx, 0x20
xor r10, rcx
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, rdx
xor rdx, rcx
add r13, 8
cmp r13, rax
jb 0x18019a3e0
cmp r11d, 3
jbe 0x18019a45d
mov ebx, dword [r15 + r13]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r11
jb 0x18019a46d
jmp 0x18019a487
mov r10, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
xor r13d, r13d
cmp r11d, 3
ja 0x18019a429
xor ebx, ebx
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r11
jae 0x18019a487
lea rcx, [rax + r13]
movzx esi, word [r15 + rcx]
lea ecx, [rax*8]
shl rsi, cl
or rbx, rsi
or rax, 2
cmp rax, r11
jae 0x18019a4b0
add r13, rax
movzx esi, byte [r15 + r13]
shl eax, 3
mov ecx, eax
shl rsi, cl
or rbx, rsi
jmp 0x18019a4b5
test r11, r11
je 0x18019a513
lea ecx, [r11*8]
mov r15d, 0xff
shl r15, cl
or r15, rbx
cmp r11, 7
jne 0x18019a5f2
mov ecx, 8
add rdx, r8
rol r8, 0xd
sub rcx, r11
xor r8, rdx
rol rdx, 0x20
xor r10, r15
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
xor r10, rdx
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor rdx, r15
jmp 0x18019a515
xor ecx, ecx
mov r11d, 1
sub r11, rcx
mov eax, r11d
and eax, 7
and r11, 0xfffffffffffffff8
cmp rcx, r11
jae 0x18019a5a0
nop dword [rax]
add rdx, r8
rol r8, 0xd
mov rsi, r10
xor r8, rdx
rol rdx, 0x20
xor rsi, 0xff
add r9, rsi
shld rsi, r10, 0x10
xor rsi, r9
add rdx, rsi
rol rsi, 0x15
add r9, r8
rol r8, 0x11
mov r10, rsi
xor r8, r9
rol r9, 0x20
xor r10, rdx
xor rdx, 0xff
add rcx, 8
cmp rcx, r11
jb 0x18019a530
xor r15d, r15d
cmp rax, 4
setae r15b
cmp eax, 4
mov ebx, 0
mov ecx, 0xff
cmovae rbx, rcx
shl r15, 2
jmp 0x18019a5a5
xor ebx, ebx
xor r15d, r15d
mov rsi, r15
lea ecx, [r15*8]
mov r13d, 0xff
shl r13, cl
or rsi, 1
mov r11, r15
or r11, 2
cmp rsi, rax
mov esi, 0
cmovae r13, rsi
cmovae r11, r15
or r13, rbx
lea ecx, [r11*8]
mov r15d, 0xff
shl r15, cl
cmp r11, rax
cmovae r15, rsi
or r15, r13
shl r14, 0x38
movabs rax, 0x100000000000000
add r14, rax
add rdx, r8
rol r8, 0xd
or r14, r15
xor r8, rdx
rol rdx, 0x20
xor r10, r14
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r10, rdx
xor r8, r9
rol r9, 0x20
xor rdx, r14
add rdx, r8
rol r8, 0xd
xor r8, rdx
rol rdx, 0x20
xor r9, 0xff
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, rdx
add rdx, r8
rol r8, 0xd
xor r8, rdx
rol rdx, 0x20
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, rdx
add rdx, r8
rol r8, 0xd
add r9, r10
rol r10, 0x10
xor r10, r9
rol r10, 0x15
xor r8, rdx
add r9, r8
rol r8, 0x11
mov rax, r9
rol rax, 0x20
xor rax, r8
xor rax, r10
xor rax, r9
mov rcx, rbp
and rcx, rax
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
mov r10, qword [rsp + 0x40]
jne 0x18019a718
mov r9d, 0x10
mov r8, rcx
nop word cs:[rax + rax]
add r8, r9
and r8, rbp
movdqu xmm0, xmmword [rdi + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x18019a700
tzcnt edx, edx
add rdx, r8
and rdx, rbp
cmp byte [rdi + rdx], 0
js 0x18019a734
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, rbp
cmp r9, 0x10
jb 0x18019a2e0
mov rcx, rdx
not rcx
lea rcx, [rcx + rcx*2]
shl rcx, 4
add rcx, rdi
movzx r8d, byte [rdi + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rbp
mov byte [rdi + rdx], al
mov byte [r9 + rdi + 0x10], al
cmp r8b, 0xff
je 0x18019a7f0
shl rdx, 4
lea rdx, [rdx + rdx*2]
mov rax, rdi
sub rax, rdx
cmp qword [rsp + 0x20], rax
jae 0x18019a360
cmp rcx, qword [rsp + 0x70]
jae 0x18019a360
mov rcx, 0xffffffffffffffd0
nop word [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 0x18019a7b0
jmp 0x18019a3a9
lea rax, [r10 - 0x10]
and rax, rbp
mov byte [rdi + r10], 0xff
mov byte [rax + rdi + 0x10], 0xff
mov rax, qword [rsp + 0x20]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm2
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x18019a2f3
cmp rbp, 8
mov rcx, qword [rsp + 0x68]
cmovb rcx, rbp
mov rsi, qword [rsp + 0x30]
sub rcx, rsi
mov rax, qword [rsp + 0x28]
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