Function at 0x1403d29e0
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 r14, qword [rcx + 0x18]
mov rax, r14
inc rax
je 0x1403d2b70
mov r15, rdx
mov rbx, rcx
mov r12, qword [rcx + 8]
lea r8, [r12 + 1]
mov rcx, r8
shr rcx, 3
mov r9, r8
and r9, 0xfffffffffffffff8
sub r9, rcx
cmp r12, 8
cmovb r9, r12
movabs r10, 0x7ffffffffffffff0
mov rcx, r9
shr rcx, 1
cmp rax, rcx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x68], r12
jbe 0x1403d2a78
mov qword [rsp + 0x40], r8
inc r9
cmp rax, r9
cmova r9, rax
cmp r9, 8
jae 0x1403d2aaa
mov rsi, r14
xor eax, eax
cmp r9, 4
setae al
lea r14, [rax*4 + 4]
jmp 0x1403d2b07
mov qword [rsp + 0x70], r9
mov rdi, qword [rbx]
mov rcx, r8
shr rcx, 4
xor eax, eax
test r8b, 0xf
setne al
add rax, rcx
je 0x1403d2e11
cmp rax, 1
jne 0x1403d2da7
xor edx, edx
jmp 0x1403d2df7
movabs rax, 0x1ffffffffffffffe
add rax, 2
cmp r9, rax
jae 0x1403d2b70
mov rsi, r14
shl r9, 3
mov r14d, 1
cmp r9, 0xe
jb 0x1403d2b07
movabs rcx, 0x2492492492492493
mov rax, r9
mul rcx
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 2
dec r9
bsr rcx, r9
not ecx
mov r14, 0xffffffffffffffff
shr r14, cl
inc r14
mov ecx, 0x88
mov rax, r14
mul rcx
jo 0x1403d2b70
mov r13, rax
add r13, 0xf
and r13, 0xfffffffffffffff0
lea rbp, [r14 + 0x10]
mov rbx, r13
add rbx, rbp
jb 0x1403d2b70
cmp rbx, r10
ja 0x1403d2b70
test rbx, rbx
je 0x1403d2b72
movzx eax, byte [0x1404d41e8]
mov rcx, qword [0x1404d4148]
test rcx, rcx
jne 0x1403d2b5d
call qword [0x1403d75c0]
test rax, rax
je 0x1403d2b70
mov rcx, rax
mov qword [0x1404d4148], rax
xor edx, edx
mov r8, rbx
call qword [0x1403d7588]
mov rbx, rax
test rax, rax
jne 0x1403d2b77
ud2
mov ebx, 0x10
lea rdi, [r14 - 1]
mov rax, r14
shr rax, 3
mov r12, r14
and r12, 0xfffffffffffffff8
sub r12, rax
cmp r14, 9
cmovb r12, rdi
add rbx, r13
mov rcx, rbx
mov dl, 0xff
mov r8, rbp
call fcn.1403c4432
test rsi, rsi
je 0x1403d2d30
mov rcx, rsi
mov qword [rsp + 0x38], r12
mov rax, qword [rsp + 0x30]
mov r14, qword [rax]
movdqa xmm0, xmmword [r14]
pmovmskb r12d, xmm0
not r12d
mov rax, qword [r15]
mov qword [rsp + 0x50], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x28], r14
jmp 0x1403d2c53
lea r15d, [r12 - 1]
and r15d, r12d
mov rsi, qword [rsp + 0x58]
dec rsi
shr rax, 0x39
lea rcx, [r8 - 0x10]
and rcx, rdi
mov byte [rbx + r8], al
mov byte [rcx + rbx + 0x10], al
not r13
mov rax, r13
shl rax, 7
lea rdx, [rax + r13*8]
add rdx, qword [rsp + 0x28]
not r8
mov rax, r8
shl rax, 7
lea rcx, [rax + r8*8]
add rcx, rbx
mov r8d, 0x88
call fcn.1403c4426
mov r12d, r15d
mov qword [rsp + 0x58], rsi
test rsi, rsi
je 0x1403d2d1f
test r12w, r12w
jne 0x1403d2c7f
nop dword [rax]
movdqa xmm0, xmmword [r14 + 0x10]
add r14, 0x10
pmovmskb r12d, xmm0
add rbp, 0x10
cmp r12d, 0xffff
je 0x1403d2c60
not r12d
tzcnt r13d, r12d
add r13, rbp
mov rax, r13
neg rax
lea rcx, [r13*8]
shl rax, 7
sub rax, rcx
mov rcx, qword [rsp + 0x28]
mov r8, qword [rcx + rax - 0x80]
mov r9, qword [rcx + rax - 0x78]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
call fcn.1401ca1f0
mov rcx, rax
and rcx, rdi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x1403d2cf7
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, rdi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x1403d2ce0
tzcnt r8d, edx
add r8, rcx
and r8, rdi
cmp byte [rbx + r8], 0
js 0x1403d2bf0
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt r8d, ecx
jmp 0x1403d2bf0
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x38]
jmp 0x1403d2d3f
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
xor esi, esi
sub r12, rsi
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], rsi
mov r8, qword [rsp + 0x68]
test r8, r8
movabs rsi, 0x7ffffffffffffff0
je 0x1403d3470
mov ecx, 0x88
mov rax, qword [rsp + 0x40]
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add r8, rax
cmp r8, 0xffffffffffffffef
je 0x1403d3470
mov r8, qword [rsp + 0x28]
sub r8, rax
mov rcx, qword [0x1404d4148]
xor edx, edx
call qword [0x1403d75f8]
jmp 0x1403d3470
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r9d, r9d
movdqa xmm0, xmmword [0x1403d7e20]
nop
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + r9]
por xmm1, xmm0
movdqa xmmword [rdi + r9], xmm1
lea rdx, [r9 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + r9 + 0x10]
por xmm1, xmm0
movdqa xmmword [rdi + r9 + 0x10], xmm1
mov r9, rdx
add rcx, 0xfffffffffffffffe
jne 0x1403d2dc0
test al, 1
je 0x1403d2e11
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rdi + rdx]
por xmm0, xmmword [0x1403d7e20]
movdqa xmmword [rdi + rdx], xmm0
cmp r8, 0x10
jae 0x1403d2e30
lea rcx, [rdi + 0x10]
mov rdx, rdi
call fcn.1403c4420
cmp r12, 0xffffffffffffffff
jne 0x1403d2e3a
xor eax, eax
jmp 0x1403d345f
movdqu xmm0, xmmword [rdi]
movdqu xmmword [rdi + r8], xmm0
mov qword [rsp + 0x60], r14
mov rax, qword [r15]
mov rcx, qword [r15 + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x50], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x48], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x40], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x38], rax
mov r14, rdi
xor esi, esi
jmp 0x1403d2ec9
shr rax, 0x39
lea rcx, [rsi - 0x10]
and rcx, r12
mov byte [rdi + rsi], al
mov byte [rcx + rdi + 0x10], al
lea rax, [rsi + 1]
add r14, 0xffffffffffffff78
cmp rsi, r12
mov rsi, rax
je 0x1403d3450
cmp byte [rdi + rsi], 0x80
jne 0x1403d2eb2
imul rax, rsi, 0xffffffffffffff78
lea rcx, [rdi + rax]
add rcx, 0xffffffffffffff78
mov qword [rsp + 0x80], rcx
add rax, rdi
mov qword [rsp + 0x78], rax
mov rax, rsi
not rax
mov rcx, rax
shl rcx, 7
lea rdx, [rcx + rax*8]
add rdx, rdi
mov rcx, rsi
neg rcx
mov qword [rsp + 0x28], rsi
lea rax, [rsi*8]
shl rcx, 7
sub rcx, rax
add rcx, rdi
mov qword [rsp + 0x58], rcx
jmp 0x1403d2fcc
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rcx]
movups xmm3, xmmword [rcx + 0x10]
movups xmmword [rdx], xmm2
movups xmmword [rdx + 0x10], xmm3
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmm1, xmmword [rdx + 0x30]
movups xmm2, xmmword [rcx + 0x20]
movups xmm3, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm2
movups xmmword [rdx + 0x30], xmm3
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmm1, xmmword [rdx + 0x50]
movups xmm2, xmmword [rcx + 0x40]
movups xmm3, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x40], xmm2
movups xmmword [rdx + 0x50], xmm3
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm1
movdqu xmm0, xmmword [rdx + 0x60]
movdqu xmm1, xmmword [rdx + 0x70]
movups xmm2, xmmword [rcx + 0x60]
movups xmm3, xmmword [rcx + 0x70]
movups xmmword [rdx + 0x60], xmm2
movups xmmword [rdx + 0x70], xmm3
movdqu xmmword [rcx + 0x60], xmm0
movdqu xmmword [rcx + 0x70], xmm1
mov rax, qword [rdx + 0x80]
mov r8, qword [rcx + 0x80]
mov qword [rdx + 0x80], r8
mov qword [rcx + 0x80], rax
mov rax, qword [rsp + 0x58]
mov r15, qword [rax - 0x80]
mov rbx, qword [rax - 0x78]
mov rax, rbx
and rax, 0xfffffffffffffff8
je 0x1403d3070
mov r11, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
xor r9d, r9d
mov r8, qword [rsp + 0x50]
nop dword [rax]
add r8, r12
rol r12, 0xd
mov rcx, qword [r15 + r9]
xor r12, r8
rol r8, 0x20
xor rbp, rcx
add r11, rbp
rol rbp, 0x10
xor rbp, r11
add r8, rbp
rol rbp, 0x15
add r11, r12
rol r12, 0x11
xor r12, r11
rol r11, 0x20
xor rbp, r8
xor r8, rcx
add r9, 8
cmp r9, rax
jb 0x1403d3000
mov r13d, ebx
and r13d, 7
cmp r13d, 4
jb 0x1403d3094
mov r10d, dword [r15 + r9]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r13
jb 0x1403d30a5
jmp 0x1403d30bf
mov rbp, qword [rsp + 0x38]
mov r12, qword [rsp + 0x48]
mov r11, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
xor r9d, r9d
mov r13d, ebx
and r13d, 7
cmp r13d, 4
jae 0x1403d3050
xor r10d, r10d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r13
jae 0x1403d30bf
lea rcx, [rax + r9]
movzx esi, word [r15 + rcx]
lea ecx, [rax*8]
shl rsi, cl
or r10, rsi
or rax, 2
cmp rax, r13
jae 0x1403d30e0
add r9, rax
movzx r9d, byte [r15 + r9]
shl eax, 3
mov ecx, eax
shl r9, cl
or r10, r9
jmp 0x1403d30e5
test r13, r13
je 0x1403d3143
lea ecx, [r13*8]
mov r9d, 0xff
shl r9, cl
or r9, r10
cmp r13, 7
jne 0x1403d321b
mov ecx, 8
add r8, r12
rol r12, 0xd
sub rcx, r13
xor r12, r8
rol r8, 0x20
xor rbp, r9
add r11, rbp
rol rbp, 0x10
xor rbp, r11
add r8, rbp
rol rbp, 0x15
xor rbp, r8
add r11, r12
rol r12, 0x11
xor r12, r11
rol r11, 0x20
xor r8, r9
jmp 0x1403d3145
xor ecx, ecx
mov r9d, 1
sub r9, rcx
mov eax, r9d
and eax, 7
and r9, 0xfffffffffffffff8
cmp rcx, r9
jae 0x1403d31d0
nop dword [rax]
add r8, r12
rol r12, 0xd
xor r12, r8
rol r8, 0x20
xor rbp, 0xff
add r11, rbp
rol rbp, 0x10
xor rbp, r11
add r8, rbp
rol rbp, 0x15
add r11, r12
rol r12, 0x11
xor r12, r11
rol r11, 0x20
xor rbp, r8
xor r8, 0xff
add rcx, 8
cmp rcx, r9
jb 0x1403d3160
xor r10d, r10d
cmp rax, 4
setae r10b
cmp eax, 4
mov r15d, 0
mov ecx, 0xff
cmovae r15, rcx
shl r10, 2
jmp 0x1403d31d6
xor r15d, r15d
xor r10d, r10d
mov rsi, r10
or rsi, 1
lea ecx, [r10*8]
mov r9d, 0xff
shl r9, cl
mov rcx, r10
or rcx, 2
cmp rsi, rax
mov esi, 0
cmovae r9, rsi
cmovae rcx, r10
or r9, r15
cmp rcx, rax
jae 0x1403d321b
shl ecx, 3
mov eax, 0xff
shl rax, cl
or r9, rax
shl rbx, 0x38
movabs rax, 0x100000000000000
add rbx, rax
add r8, r12
rol r12, 0xd
or rbx, r9
xor r12, r8
rol r8, 0x20
xor rbp, rbx
add r11, rbp
rol rbp, 0x10
xor rbp, r11
add r8, rbp
rol rbp, 0x15
add r11, r12
rol r12, 0x11
xor rbp, r8
xor r12, r11
rol r11, 0x20
xor r8, rbx
add r8, r12
rol r12, 0xd
xor r12, r8
rol r8, 0x20
xor r11, 0xff
add r11, rbp
rol rbp, 0x10
xor rbp, r11
add r8, rbp
rol rbp, 0x15
add r11, r12
rol r12, 0x11
xor r12, r11
rol r11, 0x20
xor rbp, r8
add r8, r12
rol r12, 0xd
xor r12, r8
rol r8, 0x20
add r11, rbp
rol rbp, 0x10
xor rbp, r11
add r8, rbp
rol rbp, 0x15
add r11, r12
rol r12, 0x11
xor r12, r11
rol r11, 0x20
xor rbp, r8
add r8, r12
rol r12, 0xd
add r11, rbp
rol rbp, 0x10
xor rbp, r11
rol rbp, 0x15
xor r12, r8
add r11, r12
rol r12, 0x11
mov rax, r11
rol rax, 0x20
xor rax, r12
xor rax, rbp
xor rax, r11
mov r12, qword [rsp + 0x68]
mov rcx, r12
and rcx, rax
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb r8d, xmm0
mov r9, rcx
test r8d, r8d
mov rsi, qword [rsp + 0x28]
jne 0x1403d334a
mov r10d, 0x10
mov r9, rcx
nop word cs:[rax + rax]
add r9, r10
and r9, r12
movdqu xmm0, xmmword [rdi + r9]
pmovmskb r8d, xmm0
add r10, 0x10
test r8d, r8d
je 0x1403d3330
tzcnt r8d, r8d
add r8, r9
and r8, r12
cmp byte [rdi + r8], 0
js 0x1403d336a
movdqa xmm0, xmmword [rdi]
pmovmskb r8d, xmm0
tzcnt r8d, r8d
mov r9, rsi
sub r9, rcx
mov r10, r8
sub r10, rcx
xor r10, r9
and r10, r12
cmp r10, 0x10
jb 0x1403d2ea0
mov rcx, r8
not rcx
mov r9, rcx
shl r9, 7
lea rcx, [r9 + rcx*8]
add rcx, rdi
movzx r9d, byte [rdi + r8]
shr rax, 0x39
lea r10, [r8 - 0x10]
and r10, r12
mov byte [rdi + r8], al
mov byte [r10 + rdi + 0x10], al
cmp r9b, 0xff
je 0x1403d3430
imul rax, r8, 0xffffffffffffff78
add rax, rdi
cmp qword [rsp + 0x80], rax
jae 0x1403d2f30
cmp rcx, qword [rsp + 0x78]
jae 0x1403d2f30
mov rcx, 0xffffffffffffff78
nop word cs:[rax + rax]
movzx r8d, byte [r14 + rcx]
movzx r9d, byte [rax + rcx]
mov byte [r14 + rcx], r9b
mov byte [rax + rcx], r8b
movzx r8d, byte [r14 + rcx + 1]
movzx r9d, byte [rax + rcx + 1]
mov byte [r14 + rcx + 1], r9b
mov byte [rax + rcx + 1], r8b
add rcx, 2
jne 0x1403d33f0
jmp 0x1403d2fcc
lea rax, [rsi - 0x10]
and rax, r12
mov byte [rdi + rsi], 0xff
mov byte [rax + rdi + 0x10], 0xff
mov r8d, 0x88
call fcn.1403c4426
jmp 0x1403d2eb2
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x60]
mov rax, qword [rsp + 0x70]
sub rax, r14
mov qword [rbx + 0x10], rax
movabs rsi, 0x7ffffffffffffff0
add rsi, 0x11
mov rax, rsi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret