Function at 0x1402f1630
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 0x1402f1e49
mov rdi, rdx
mov rbx, rcx
mov rsi, qword [rcx + 8]
lea r14, [rsi + 1]
mov rcx, r14
shr rcx, 3
mov rdx, r14
and rdx, 0xfffffffffffffff8
sub rdx, rcx
cmp rsi, 8
cmovb rdx, rsi
mov rcx, rdx
shr rcx, 1
cmp rax, rcx
jbe 0x1402f16ae
inc rdx
cmp rax, rdx
cmova rdx, rax
cmp rdx, 8
jae 0x1402f172b
xor eax, eax
cmp rdx, 4
setae al
lea r15, [rax*4 + 4]
jmp 0x1402f177e
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x30], rbx
test r14, r14
je 0x1402f1e1b
mov rax, qword [rsp + 0x30]
mov rbx, qword [rax]
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx]
por xmm0, xmmword [0x1402f96e0]
movdqa xmmword [rbx], xmm0
cmp r14, 0x11
jb 0x1402f170d
mov eax, 0x10
movdqa xmm0, xmmword [0x1402f96e0]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + rax]
por xmm1, xmm0
movdqa xmmword [rbx + rax], xmm1
add rax, 0x10
jb 0x1402f170d
cmp rax, r14
jb 0x1402f16f0
cmp r14, 0x10
jae 0x1402f19b5
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, r14
call sub.VCRUNTIME140.dll_memmove
jmp 0x1402f19bf
mov rax, rdx
shr rax, 0x3d
jne 0x1402f1e49
mov r8, rdx
shl r8, 3
mov r15d, 1
cmp r8, 0xe
jb 0x1402f177e
movabs rcx, 0x2492492492492493
mov rax, r8
mul rcx
sub r8, rdx
shr r8, 1
add r8, rdx
shr r8, 2
dec r8
bsr rcx, r8
not ecx
mov r15, 0xffffffffffffffff
shr r15, cl
inc r15
mov ecx, 0x18
mov rax, r15
mul rcx
jo 0x1402f1e49
mov r12, rax
add r12, 0xf
and r12, 0xfffffffffffffff0
lea r13, [r15 + 0x10]
mov rbp, r12
add rbp, r13
jb 0x1402f1e49
movabs rax, 0x7ffffffffffffff1
cmp rbp, rax
jae 0x1402f1e49
test rbp, rbp
mov qword [rsp + 0x28], rdi
je 0x1402f180c
movzx eax, byte [0x1403ce430]
mov rcx, qword [0x1403cdf08]
test rcx, rcx
jne 0x1402f17ef
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1402f1802
mov rcx, rax
mov qword [0x1403cdf08], rax
xor edx, edx
mov r8, rbp
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x1402f1811
mov rcx, rbp
call fcn.140157ae0
ud2
mov edi, 0x10
lea rbp, [r15 - 1]
mov rax, r15
shr rax, 3
and r15, 0xfffffffffffffff8
sub r15, rax
cmp rbp, 8
cmovb r15, rbp
add rdi, r12
mov rcx, rdi
mov dl, 0xff
mov r8, r13
call sub.VCRUNTIME140.dll_memset
sub r15, qword [rsp + 0x48]
mov r12, qword [rbx]
test r14, r14
je 0x1402f1970
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x30], rbx
mov rax, qword [rsp + 0x28]
mov r13, qword [rax]
mov r15, qword [rax + 8]
lea r14, [r12 - 0x18]
xor ebx, ebx
jmp 0x1402f18c8
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, rbp
mov byte [rdi + rdx], al
mov byte [rcx + rdi + 0x10], al
lea rax, [rbx*8]
lea rax, [rax + rax*2]
mov rcx, r12
sub rcx, rax
shl rdx, 3
lea rax, [rdx + rdx*2]
mov rdx, rdi
sub rdx, rax
neg rax
movdqu xmm0, xmmword [rcx - 0x18]
movdqu xmmword [rdi + rax - 0x18], xmm0
mov rax, qword [rcx - 8]
mov qword [rdx - 8], rax
lea rax, [rbx + 1]
cmp rbx, rsi
mov rbx, rax
je 0x1402f194c
cmp byte [r12 + rbx], 0
js 0x1402f18b8
mov rax, rbx
neg rax
lea rax, [rax + rax*2]
mov r8, qword [r14 + rax*8]
mov r9, qword [r14 + rax*8 + 8]
mov rcx, r13
mov rdx, r15
call fcn.14020cee0
mov rcx, rax
and rcx, rbp
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x1402f1927
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, rbp
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x1402f1910
tzcnt edx, edx
add rdx, rcx
and rdx, rbp
cmp byte [rdi + rdx], 0
js 0x1402f1870
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x1402f1870
mov rax, qword [rsp + 0x30]
mov qword [rax], rdi
mov qword [rax + 8], rbp
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
test rsi, rsi
mov r14, qword [rsp + 0x40]
jne 0x1402f197b
jmp 0x1402f1e2e
mov qword [rbx], rdi
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], r15
mov ecx, 0x18
mov rax, r14
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rsi, rax
cmp rsi, 0xffffffffffffffef
je 0x1402f1e2e
sub r12, rax
mov rcx, qword [0x1403cdf08]
xor edx, edx
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1402f1e2e
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r14], xmm0
lea rax, [rbx - 0x18]
mov qword [rsp + 0x68], rax
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
movabs r12, 0x736f6d6570736575
xor r12, rax
movabs r15, 0x646f72616e646f6d
xor r15, rcx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x58], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x50], rax
xor r10d, r10d
mov qword [rsp + 0x70], rsi
jmp 0x1402f1a43
shr rax, 0x39
lea rcx, [r10 - 0x10]
and rcx, rsi
mov byte [rbx + r10], al
mov byte [rcx + rbx + 0x10], al
lea rax, [r10 + 1]
cmp r10, rsi
mov r10, rax
je 0x1402f1e1b
cmp byte [rbx + r10], 0x80
jne 0x1402f1a33
lea rax, [r10*8]
lea rax, [rax + rax*2]
mov rcx, rbx
sub rcx, rax
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x28], r10
mov rax, r10
neg rax
lea rax, [rax + rax*2]
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x40], rax
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x40]
mov r10, qword [rax]
mov rdx, qword [rax + 8]
mov edi, edx
and edi, 7
mov rax, rdx
and rax, 0xfffffffffffffff8
je 0x1402f1b40
mov r13, qword [rsp + 0x58]
mov r9, r15
mov rbp, qword [rsp + 0x50]
xor r11d, r11d
mov r8, r12
nop word cs:[rax + rax]
add r8, r9
rol r9, 0xd
mov rcx, qword [r10 + r11 + 0x10]
xor r9, r8
rol r8, 0x20
xor rbp, rcx
add r13, rbp
rol rbp, 0x10
xor rbp, r13
add r8, rbp
rol rbp, 0x15
add r13, r9
rol r9, 0x11
xor r9, r13
rol r13, 0x20
xor rbp, r8
xor r8, rcx
add r11, 8
cmp r11, rax
jb 0x1402f1ad0
cmp edi, 3
jbe 0x1402f1b58
mov r14d, dword [r10 + r11 + 0x10]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rdi
jb 0x1402f1b69
jmp 0x1402f1b95
mov rbp, qword [rsp + 0x50]
mov r9, r15
mov r13, qword [rsp + 0x58]
mov r8, r12
xor r11d, r11d
cmp edi, 3
ja 0x1402f1b19
xor r14d, r14d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rdi
jae 0x1402f1b95
lea rcx, [rax + r11]
mov rsi, r15
mov r15, r12
movzx r12d, word [r10 + rcx + 0x10]
lea ecx, [rax*8]
shl r12, cl
or r14, r12
mov r12, r15
mov r15, rsi
mov rsi, qword [rsp + 0x70]
or rax, 2
cmp rax, rdi
jae 0x1402f1bc0
add r11, rax
movzx r10d, byte [r10 + r11 + 0x10]
shl eax, 3
mov ecx, eax
shl r10, cl
or r14, r10
inc rdx
jmp 0x1402f1bc8
inc rdx
test rdi, rdi
je 0x1402f1c1f
mov r10, qword [rsp + 0x28]
lea ecx, [rdi*8]
mov eax, 0xff
shl rax, cl
or rax, r14
cmp rdi, 7
jne 0x1402f1c30
add r8, r9
rol r9, 0xd
xor rbp, rax
xor r9, r8
rol r8, 0x20
add r13, rbp
rol rbp, 0x10
xor rbp, r13
add r8, rbp
rol rbp, 0x15
xor rbp, r8
add r13, r9
rol r9, 0x11
xor r9, r13
rol r13, 0x20
xor r8, rax
xor eax, eax
jmp 0x1402f1c30
mov eax, 0xff
mov r10, qword [rsp + 0x28]
nop dword [rax]
shl rdx, 0x38
add r8, r9
rol r9, 0xd
or rdx, rax
xor r9, r8
rol r8, 0x20
xor rbp, rdx
add r13, rbp
rol rbp, 0x10
xor rbp, r13
add r8, rbp
rol rbp, 0x15
add r13, r9
rol r9, 0x11
xor rbp, r8
xor r9, r13
rol r13, 0x20
xor r8, rdx
add r8, r9
rol r9, 0xd
xor r9, r8
rol r8, 0x20
xor r13, 0xff
add r13, rbp
rol rbp, 0x10
xor rbp, r13
add r8, rbp
rol rbp, 0x15
add r13, r9
rol r9, 0x11
xor r9, r13
rol r13, 0x20
xor rbp, r8
add r8, r9
rol r9, 0xd
xor r9, r8
rol r8, 0x20
add r13, rbp
rol rbp, 0x10
xor rbp, r13
add r8, rbp
rol rbp, 0x15
add r13, r9
rol r9, 0x11
xor r9, r13
rol r13, 0x20
xor rbp, r8
add r8, r9
rol r9, 0xd
add r13, rbp
rol rbp, 0x10
xor rbp, r13
rol rbp, 0x15
xor r9, r8
add r13, r9
rol r9, 0x11
mov rax, r13
rol rax, 0x20
xor rax, r9
xor rax, rbp
xor rax, r13
mov rcx, rax
and rcx, rsi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x1402f1d48
mov r9d, 0x10
mov r8, rcx
nop word cs:[rax + rax]
add r8, r9
and r8, rsi
movdqu xmm0, xmmword [rbx + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x1402f1d30
tzcnt edx, edx
add rdx, r8
and rdx, rsi
cmp byte [rbx + rdx], 0
js 0x1402f1d64
movdqa xmm0, xmmword [rbx]
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 0x1402f1a20
lea rcx, [rdx*8]
lea rcx, [rcx + rcx*2]
neg rcx
add rcx, rbx
add rcx, 0xffffffffffffffe8
movzx r8d, byte [rbx + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rsi
mov byte [rbx + rdx], al
mov byte [r9 + rbx + 0x10], al
cmp r8b, 0xff
je 0x1402f1df0
mov r8, qword [rsp + 0x38]
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
jmp 0x1402f1a90
lea rax, [r10 - 0x10]
and rax, rsi
mov byte [rbx + r10], 0xff
mov byte [rax + rbx + 0x10], 0xff
mov rdx, qword [rsp + 0x38]
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
movdqu xmm0, xmmword [rdx]
movdqu xmmword [rcx], xmm0
jmp 0x1402f1a33
mov rcx, qword [rsp + 0x60]
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.140157b00
ud2