Function at 0x1402eeaa0
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 rbx, qword [rcx + 0x18]
mov rax, rbx
inc rax
je 0x1402ef4b1
mov r14, rdx
mov rdi, rcx
mov rsi, qword [rcx + 8]
lea r8, [rsi + 1]
mov rcx, r8
shr rcx, 3
mov r9, r8
and r9, 0xfffffffffffffff8
sub r9, rcx
cmp rsi, 8
mov rcx, r9
cmovb rcx, rsi
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
jbe 0x1402eeb27
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
mov qword [rsp + 0x30], r8
jae 0x1402eeba2
xor eax, eax
cmp rcx, 4
setae al
lea r8, [rax*4 + 4]
jmp 0x1402eebf2
mov qword [rsp + 0x38], rdi
mov rdi, qword [rdi]
test r8, r8
je 0x1402eec83
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rdi]
por xmm0, xmmword [0x1402f96e0]
movdqa xmmword [rdi], xmm0
cmp r8, 0x11
jb 0x1402eeb7d
mov eax, 0x10
movdqa xmm0, xmmword [0x1402f96e0]
nop
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + rax]
por xmm1, xmm0
movdqa xmmword [rdi + rax], xmm1
add rax, 0x10
jb 0x1402eeb7d
cmp rax, r8
jb 0x1402eeb60
cmp r8, 0x10
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], r9
jae 0x1402eee75
lea rcx, [rdi + 0x10]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
jmp 0x1402eee7f
mov rax, rcx
shr rax, 0x3d
jne 0x1402ef4b1
shl rcx, 3
mov r8d, 1
cmp rcx, 0xe
jb 0x1402eebf2
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 0x1402ef4b1
mov r12, rax
add r12, 0xf
and r12, 0xfffffffffffffff0
lea r13, [r8 + 0x10]
mov rbp, r12
add rbp, r13
jb 0x1402ef4b1
movabs rax, 0x7ffffffffffffff1
cmp rbp, rax
jae 0x1402ef4b1
mov qword [rsp + 0x40], r14
mov r14, r8
test rbp, rbp
je 0x1402eec96
movzx eax, byte [0x1403ce430]
mov rcx, qword [0x1403cdf08]
test rcx, rcx
jne 0x1402eec66
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1402eec79
mov rcx, rax
mov qword [0x1403cdf08], rax
xor edx, edx
mov r8, rbp
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov r15, rax
test rax, rax
jne 0x1402eec9c
mov rcx, rbp
call fcn.140157ae0
ud2
lea rcx, [rdi + 0x10]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
xor ecx, ecx
jmp 0x1402ef487
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, rbx
mov r12, qword [rdi]
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1402eee33
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x38], rdi
lea rbx, [r12 - 0x68]
mov rax, qword [rsp + 0x40]
mov r13, qword [rax]
mov r14, qword [rax + 8]
xor edi, edi
jmp 0x1402eed82
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, rbp
mov byte [r15 + rdx], al
mov byte [rcx + r15 + 0x10], al
imul rax, rdi, 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
lea rax, [rdi + 1]
cmp rdi, rsi
mov rdi, rax
je 0x1402eee0f
cmp byte [r12 + rdi], 0
js 0x1402eed72
mov rax, rdi
neg rax
imul rax, rax, 0x68
mov r8, qword [rbx + rax]
mov r9, qword [rbx + rax + 0x10]
mov rcx, r13
mov rdx, r14
call fcn.140109740
mov rcx, rax
and rcx, rbp
movdqu xmm0, xmmword [r15 + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x1402eede8
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 0x1402eedd0
tzcnt edx, edx
add rdx, rcx
and rdx, rbp
cmp byte [r15 + rdx], 0
js 0x1402eed00
movdqa xmm0, xmmword [r15]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x1402eed00
mov rax, qword [rsp + 0x38]
mov qword [rax], r15
mov qword [rax + 8], rbp
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
test rsi, rsi
mov rax, qword [rsp + 0x30]
jne 0x1402eee3e
jmp 0x1402ef493
mov qword [rdi], r15
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], r14
mov ecx, 0x68
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rsi, rax
cmp rsi, 0xffffffffffffffef
je 0x1402ef493
sub r12, rax
mov rcx, qword [0x1403cdf08]
xor edx, edx
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1402ef493
movdqu xmm0, xmmword [rdi]
movdqu xmmword [rdi + r8], xmm0
mov rax, qword [r14]
mov rcx, qword [r14 + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x28], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x60], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x58], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x50], rax
mov r12, rdi
xor r10d, r10d
jmp 0x1402eef07
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 0x1402ef475
cmp byte [rdi + r10], 0x80
jne 0x1402eeef3
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 + 0x48], rax
mov qword [rsp + 0x30], r10
mov rax, r10
neg rax
imul rax, rax, 0x68
add rax, rdi
add rax, 0xffffffffffffff98
mov qword [rsp + 0x40], rax
jmp 0x1402eefe1
mov r8, qword [rsp + 0x48]
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 + 0x40]
mov rbx, qword [rax]
mov r15, qword [rax + 0x10]
mov edx, r15d
and edx, 7
mov rax, r15
and rax, 0xfffffffffffffff8
je 0x1402ef080
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
mov r10, qword [rsp + 0x50]
xor r13d, r13d
mov r11, qword [rsp + 0x28]
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 0x1402ef020
cmp edx, 3
jbe 0x1402ef09c
mov r14d, dword [rbx + r13]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rdx
jb 0x1402ef0ad
jmp 0x1402ef0c6
mov r10, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x58]
mov r11, qword [rsp + 0x28]
xor r13d, r13d
cmp edx, 3
ja 0x1402ef068
xor r14d, r14d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rdx
jae 0x1402ef0c6
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 0x1402ef0e0
add r13, rax
movzx ebx, byte [rbx + r13]
shl eax, 3
mov ecx, eax
shl rbx, cl
or r14, rbx
jmp 0x1402ef0e5
test rdx, rdx
je 0x1402ef141
lea ecx, [rdx*8]
mov ebx, 0xff
shl rbx, cl
or rbx, r14
cmp rdx, 7
jne 0x1402ef21f
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 0x1402ef143
xor ecx, ecx
mov edx, 1
sub rdx, rcx
mov eax, edx
and eax, 7
and rdx, 0xfffffffffffffff8
cmp rcx, rdx
jae 0x1402ef1d0
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 0x1402ef160
xor edx, edx
cmp rax, 4
setae dl
cmp eax, 4
mov ebx, 0
mov ecx, 0xff
cmovae rbx, rcx
shl rdx, 2
jmp 0x1402ef1d4
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 + 0x30]
jne 0x1402ef348
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 0x1402ef330
tzcnt edx, edx
add rdx, r8
and rdx, rsi
cmp byte [rdi + rdx], 0
js 0x1402ef364
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 0x1402eeee0
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 0x1402ef420
imul rax, rdx, 0xffffffffffffff98
add rax, rdi
cmp qword [rsp + 0x80], rax
jae 0x1402eef60
cmp rcx, qword [rsp + 0x78]
jae 0x1402eef60
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 0x1402ef3e0
jmp 0x1402eefe1
lea rax, [r10 - 0x10]
and rax, rsi
mov byte [rdi + r10], 0xff
mov byte [rax + rdi + 0x10], 0xff
mov rdx, qword [rsp + 0x48]
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 0x1402eeef3
cmp rsi, 8
mov rcx, qword [rsp + 0x68]
cmovb rcx, rsi
mov rbx, qword [rsp + 0x70]
sub rcx, rbx
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.140157b00
ud2