Function at 0x1400187d0
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
movaps xmmword [rsp + 0x70], xmm6
mov r15, rdx
mov rdx, qword [rcx + 0x18]
cmp rdx, 0xffffffffffffffff
je 0x14001908c
mov r9, rcx
mov rsi, qword [rcx + 8]
lea r14, [rsi + 1]
mov rax, r14
shr rax, 3
mov r10, r14
and r10, 0xfffffffffffffff8
sub r10, rax
cmp rsi, 8
mov rax, r10
cmovb rax, rsi
movabs r8, 0x7ffffffffffffff0
mov rcx, rax
shr rcx, 1
cmp rdx, rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r9
jae 0x14001886c
mov rbx, qword [r9]
mov rcx, r14
shr rcx, 4
xor eax, eax
test r14b, 0xf
setne al
add rax, rcx
je 0x140018b9a
cmp rax, 1
jne 0x140018b38
xor ecx, ecx
jmp 0x140018b84
cmp rdx, rax
cmova rax, rdx
cmp rax, 7
jae 0x14001888c
xor ecx, ecx
cmp rax, 3
setae cl
lea r12, [rcx*4 + 4]
jmp 0x1400188da
movabs rcx, 0x1ffffffffffffffe
cmp rax, rcx
ja 0x14001908c
lea rcx, [rax*8 + 8]
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 r12, 0xffffffffffffffff
shr r12, cl
inc r12
mov ecx, 0x18
mov rax, r12
mul rcx
jo 0x14001908c
mov r13, rax
cmp rax, 0xfffffffffffffff0
ja 0x14001908c
add r13, 0xf
and r13, 0xfffffffffffffff0
lea rbp, [r12 + 0x10]
mov rdx, r13
add rdx, rbp
jb 0x14001908c
cmp rdx, r8
ja 0x14001908c
movzx eax, byte [0x14009b108]
xor ecx, ecx
call fcn.14002a8d0
test rax, rax
je 0x14001908c
mov rbx, rax
lea rdi, [r12 - 1]
mov rax, r12
shr rax, 3
mov rcx, r12
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp r12, 9
cmovb rcx, rdi
mov qword [rsp + 0x48], rcx
add rbx, r13
mov rcx, rbx
mov dl, 0xff
mov r8, rbp
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140018ac8
mov qword [rsp + 0x40], r14
mov rax, qword [rsp + 0x30]
mov r12, qword [rax]
movdqa xmm0, xmmword [r12]
pmovmskb r14d, xmm0
not r14d
lea rax, [r12 - 0x18]
mov qword [rsp + 0x50], rax
movups xmm6, xmmword [r15]
xor ebp, ebp
mov qword [rsp + 0x28], r12
mov r15, rcx
jmp 0x140018a08
lea ecx, [r14 - 1]
and ecx, r14d
dec r15
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, rdi
mov byte [rbx + rdx], al
mov byte [rbx + r8 + 0x10], al
not r13
lea rax, [r13*2]
add rax, r13
not rdx
lea rdx, [rdx + rdx*2]
mov r9, qword [rsp + 0x28]
mov r8, qword [r9 + rax*8 + 0x10]
mov qword [rbx + rdx*8 + 0x10], r8
movdqu xmm0, xmmword [r9 + rax*8]
movdqu xmmword [rbx + rdx*8], xmm0
mov r14d, ecx
test r15, r15
je 0x140018abc
test r14w, r14w
jne 0x140018a30
nop
movdqa xmm0, xmmword [r12 + 0x10]
add r12, 0x10
pmovmskb r14d, xmm0
add rbp, 0x10
cmp r14d, 0xffff
je 0x140018a10
not r14d
tzcnt r13d, r14d
add r13, rbp
mov rax, r13
neg rax
lea rax, [rax + rax*2]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx + rax*8 + 8]
mov r8, qword [rcx + rax*8 + 0x10]
movaps xmmword [rsp + 0x60], xmm6
lea rcx, [rsp + 0x60]
call fcn.1400193f0
mov rcx, rax
and rcx, rdi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140018a97
mov r8d, 0x10
nop dword [rax]
add rcx, r8
and rcx, rdi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x140018a80
tzcnt edx, edx
add rdx, rcx
and rdx, rdi
cmp byte [rbx + rdx], 0
js 0x1400189b0
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x1400189b0
mov rax, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
jmp 0x140018ad5
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x48]
sub rcx, qword [rsp + 0x38]
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rcx
test rsi, rsi
movabs rdi, 0x7ffffffffffffff0
je 0x14001906c
mov ecx, 0x18
mov rax, r14
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rsi, rax
cmp rsi, 0xffffffffffffffef
je 0x14001906c
mov r8, qword [rsp + 0x28]
sub r8, rax
mov rcx, qword [0x14009b0f0]
xor edx, edx
call sub.kernel32.dll_HeapFree
jmp 0x14001906c
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x140044580]
nop
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + rcx]
por xmm1, xmm0
movdqa xmmword [rbx + rcx], xmm1
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + rcx + 0x10]
por xmm1, xmm0
movdqa xmmword [rbx + rcx + 0x10], xmm1
add rcx, 0x20
add rdx, 0xfffffffffffffffe
jne 0x140018b50
test al, 1
je 0x140018b9a
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rcx]
por xmm0, xmmword [0x140044580]
movdqa xmmword [rbx + rcx], xmm0
mov qword [rsp + 0x58], r10
cmp r14, 0x10
jae 0x140018bc0
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, r14
call sub.msvcrt.dll_memmove
test r14, r14
jne 0x140018bca
xor ecx, ecx
jmp 0x140019054
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r14], xmm0
movdqu xmm1, xmmword [r15]
pshufd xmm0, xmm1, 0x44
pxor xmm0, xmmword [str.uespemosarenegylmodnarodsetybdetuespemosarenegylmodnarodsetybdetuespemosarenegylmodnarodsetybdet]
pshufd xmm1, xmm1, 0xee
pxor xmm1, xmmword [0x1400445a0]
pshufd xmm2, xmm1, 0xee
movq qword [rsp + 0x28], xmm2
movq qword [rsp + 0x50], xmm0
movq qword [rsp + 0x48], xmm1
pshufd xmm2, xmm0, 0xee
movq qword [rsp + 0x40], xmm2
xor r11d, r11d
jmp 0x140018c34
shr rdi, 0x39
lea rax, [r11 - 0x10]
and rax, rsi
mov byte [rbx + r11], dil
mov byte [rbx + rax + 0x10], dil
lea rax, [r11 + 1]
cmp r11, rsi
mov r11, rax
je 0x140019047
cmp byte [rbx + r11], 0x80
jne 0x140018c24
lea rax, [r11*8]
lea rax, [rax + rax*2]
mov rcx, r11
not rcx
lea rcx, [rcx + rcx*2]
lea r15, [rbx + rcx*8]
mov r13, rbx
sub r13, rax
mov rax, r11
neg rax
lea rax, [rax + rax*2]
lea rbp, [rbx + rax*8]
jmp 0x140018c8e
mov rcx, qword [r15 + 8]
movq qword [r15 + 8], xmm2
mov qword [rax + 8], rcx
mov rcx, qword [r15 + 0x10]
mov rdx, qword [rax + 0x10]
mov qword [r15 + 0x10], rdx
mov qword [rax + 0x10], rcx
mov r12, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rcx, rdx
and rcx, 0xfffffffffffffff8
je 0x140018d40
mov rax, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r9, qword [rsp + 0x28]
xor r14d, r14d
mov r8, qword [rsp + 0x50]
nop word [rax + rax]
mov r10, qword [r12 + r14]
xor r9, r10
add r8, rdi
rol rdi, 0xd
add rax, r9
xor rdi, r8
rol r9, 0x10
xor r9, rax
rol r8, 0x20
add rax, rdi
add r8, r9
rol rdi, 0x11
xor rdi, rax
rol r9, 0x15
rol rax, 0x20
xor r9, r8
xor r8, r10
add r14, 8
cmp r14, rcx
jb 0x140018cc0
movq xmm3, r9
movq xmm2, rdi
punpcklqdq xmm2, xmm3
movq xmm4, rax
movq xmm3, r8
punpcklqdq xmm3, xmm4
mov edi, edx
and edi, 7
cmp edi, 4
jb 0x140018d55
mov r8d, dword [r12 + r14]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rdi
jb 0x140018d66
jmp 0x140018d80
movdqa xmm2, xmm1
movdqa xmm3, xmm0
xor r14d, r14d
mov edi, edx
and edi, 7
cmp edi, 4
jae 0x140018d29
xor r8d, r8d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rdi
jae 0x140018d80
lea rcx, [r12 + rax]
movzx r9d, word [r14 + rcx]
lea ecx, [rax*8]
shl r9, cl
or r8, r9
or rax, 2
cmp rax, rdi
jae 0x140018da0
add r14, rax
movzx r9d, byte [r12 + r14]
shl eax, 3
mov ecx, eax
shl r9, cl
or r8, r9
jmp 0x140018da9
test rdi, rdi
je 0x140018e3c
lea ecx, [rdi*8]
mov r14d, 0xff
shl r14, cl
or r14, r8
cmp rdi, 7
jne 0x140018e50
pshufd xmm4, xmm2, 0xee
movq rcx, xmm4
xor rcx, r14
movq r9, xmm2
paddq xmm2, xmm3
movq rax, xmm2
pshufd xmm2, xmm3, 0xee
movq r8, xmm2
add r8, rcx
rol r9, 0xd
xor r9, rax
rol rcx, 0x10
xor rcx, r8
rol rax, 0x20
add r8, r9
add rax, rcx
rol r9, 0x11
rol rcx, 0x15
xor r9, r8
xor rcx, rax
movq xmm3, rcx
movq xmm2, r9
punpcklqdq xmm2, xmm3
rol r8, 0x20
xor rax, r14
movq xmm4, r8
movq xmm3, rax
punpcklqdq xmm3, xmm4
xor r14d, r14d
jmp 0x140018e50
mov r14d, 0xff
nop word cs:[rax + rax]
pshufd xmm4, xmm3, 0xee
movq rax, xmm4
movq rcx, xmm2
pshufd xmm4, xmm2, 0xee
movq r12, xmm4
shl rdx, 0x38
movabs r8, 0x100000000000000
add rdx, r8
or rdx, r14
xor r12, rdx
paddq xmm2, xmm3
movq r14, xmm2
rol rcx, 0xd
add rax, r12
xor rcx, r14
rol r12, 0x10
xor r12, rax
rol r14, 0x20
add rax, rcx
add r14, r12
rol rcx, 0x11
xor rcx, rax
rol r12, 0x15
rol rax, 0x20
xor r12, r14
xor r14, rdx
xor rax, 0xff
add r14, rcx
add rax, r12
rol rcx, 0xd
xor rcx, r14
rol r12, 0x10
rol r14, 0x20
xor r12, rax
add rax, rcx
rol rcx, 0x11
add r14, r12
xor rcx, rax
rol r12, 0x15
xor r12, r14
rol rax, 0x20
add r14, rcx
add rax, r12
rol rcx, 0xd
xor rcx, r14
rol r12, 0x10
rol r14, 0x20
xor r12, rax
add rax, rcx
rol rcx, 0x11
add r14, r12
xor rcx, rax
rol r12, 0x15
xor r12, r14
rol rax, 0x20
add r14, rcx
add rax, r12
rol rcx, 0xd
xor rcx, r14
rol r12, 0x10
xor r12, rax
add rax, rcx
rol rcx, 0x11
rol r12, 0x15
mov rdi, rax
rol rdi, 0x20
xor rdi, rcx
xor rdi, r12
xor rdi, rax
mov rax, rsi
and rax, rdi
movdqu xmm2, xmmword [rbx + rax]
pmovmskb ecx, xmm2
mov rdx, rax
test ecx, ecx
jne 0x140018f87
mov r8d, 0x10
mov rdx, rax
nop dword [rax]
add rdx, r8
and rdx, rsi
movdqu xmm2, xmmword [rbx + rdx]
pmovmskb ecx, xmm2
add r8, 0x10
test ecx, ecx
je 0x140018f70
tzcnt ecx, ecx
add rcx, rdx
and rcx, rsi
cmp byte [rbx + rcx], 0
js 0x140018fa3
movdqa xmm2, xmmword [rbx]
pmovmskb ecx, xmm2
tzcnt ecx, ecx
mov rdx, r11
sub rdx, rax
mov r8, rcx
sub r8, rax
xor r8, rdx
and r8, rsi
cmp r8, 0x10
jb 0x140018c10
mov rax, rcx
not rax
lea rax, [rax + rax*2]
lea rax, [rbx + rax*8]
movzx edx, byte [rbx + rcx]
shr rdi, 0x39
lea r8, [rcx - 0x10]
and r8, rsi
mov byte [rbx + rcx], dil
mov byte [rbx + r8 + 0x10], dil
cmp dl, 0xff
je 0x140019020
shl rcx, 3
lea rcx, [rcx + rcx*2]
mov rdx, rbx
sub rdx, rcx
mov rcx, qword [r15]
mov r8, qword [rax]
mov qword [r15], r8
mov qword [rax], rcx
movq xmm2, qword [rax + 8]
cmp r15, rdx
jae 0x140018c70
cmp rax, r13
jmp 0x140018c70
lea rcx, [r11 - 0x10]
and rcx, rsi
mov byte [rbx + r11], 0xff
mov byte [rbx + rcx + 0x10], 0xff
mov rcx, qword [r15 + 0x10]
mov qword [rax + 0x10], rcx
movdqu xmm2, xmmword [r15]
movdqu xmmword [rax], xmm2
jmp 0x140018c24
cmp rsi, 8
mov rcx, qword [rsp + 0x58]
cmovb rcx, rsi
sub rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
movabs rdi, 0x7ffffffffffffff0
add rdi, 0x11
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2