Function at 0x140107670
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 qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rdx
mov r15, qword [rcx + 0x18]
mov rax, r15
inc rax
je 0x140107f84
mov r14, rcx
mov r12, qword [rcx + 8]
lea r13, [r12 + 1]
mov rcx, r13
shr rcx, 3
mov r8, r13
and r8, 0xfffffffffffffff8
sub r8, rcx
cmp r12, 8
cmovb r8, r12
mov rcx, r8
shr rcx, 1
cmp rax, rcx
jbe 0x1401076f0
inc r8
cmp rax, r8
cmova r8, rax
cmp r8, 8
jae 0x140107727
xor eax, eax
cmp r8, 4
setae al
lea rbx, [rax*4 + 4]
jmp 0x14010776b
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x58], r15
mov rbx, qword [r14]
mov rcx, r13
shr rcx, 4
xor eax, eax
test r13b, 0xf
setne al
add rax, rcx
je 0x140107a5a
cmp rax, 1
jne 0x1401079f2
xor ecx, ecx
jmp 0x140107a44
mov rax, r8
shr rax, 0x3d
jne 0x140107f84
shl r8, 3
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 rbx, 0xffffffffffffffff
shr rbx, cl
inc rbx
mov ecx, 0x30
mov rax, rbx
mul rcx
jo 0x140107f84
mov rbp, rax
lea r8, [rbx + 0x10]
mov rdi, rax
add rdi, r8
jb 0x140107f84
movabs rax, 0x7ffffffffffffff1
cmp rdi, rax
jae 0x140107f84
test rdi, rdi
je 0x1401077ce
movzx eax, byte [0x140182310]
xor ecx, ecx
mov rdx, rdi
mov rsi, r8
call fcn.1400df540
mov r8, rsi
mov rsi, rax
test rax, rax
jne 0x1401077d3
mov rcx, rdi
call fcn.14002eac0
mov esi, 0x10
lea rdi, [rsi + rbp]
mov qword [rsp + 0x40], rbp
lea rbp, [rbx - 1]
mov rax, rbx
shr rax, 3
mov rcx, rbx
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rbx, 9
cmovb rcx, rbp
mov qword [rsp + 0x30], rcx
mov rcx, rdi
mov dl, 0xff
call fcn.1401069a0
test r15, r15
je 0x140107997
mov qword [rsp + 0x50], r13
mov rax, qword [rsp + 0x40]
add rax, rsi
add rax, 0xffffffffffffffd0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x60], r14
mov rax, qword [r14]
movdqa xmm0, xmmword [rax]
pmovmskb esi, xmm0
not esi
lea r9, [rax - 0x30]
xor r13d, r13d
mov qword [rsp + 0x58], r15
mov r14, r15
mov qword [rsp + 0x48], rax
mov r15, rax
mov qword [rsp + 0x38], r9
jmp 0x1401078c1
lea ecx, [rsi - 1]
and ecx, esi
dec r14
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, rbp
mov byte [rdi + rdx], al
mov byte [rdi + r8 + 0x10], al
shl rbx, 4
lea rax, [rbx + rbx*2]
mov r8, r9
sub r8, rax
shl rdx, 4
lea rax, [rdx + rdx*2]
mov rdx, qword [rsp + 0x40]
sub rdx, rax
movdqu xmm0, xmmword [r8]
movdqu xmm1, xmmword [r8 + 0x10]
movups xmm2, xmmword [r8 + 0x20]
movups xmmword [rdx + 0x20], xmm2
movdqu xmmword [rdx + 0x10], xmm1
movdqu xmmword [rdx], xmm0
mov esi, ecx
test r14, r14
je 0x140107981
test si, si
jne 0x1401078ec
nop word cs:[rax + rax]
movdqa xmm0, xmmword [r15 + 0x10]
add r15, 0x10
pmovmskb esi, xmm0
add r13, 0x10
cmp esi, 0xffff
je 0x1401078d0
not esi
tzcnt ebx, esi
add rbx, r13
mov rax, rbx
neg rax
lea rax, [rax + rax*2]
shl rax, 4
mov r8, qword [r9 + rax + 8]
mov r9, qword [r9 + rax + 0x10]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
call fcn.1400525c0
mov rcx, rax
and rcx, rbp
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140107957
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 0x140107940
mov r9, qword [rsp + 0x38]
tzcnt edx, edx
add rdx, rcx
and rdx, rbp
cmp byte [rdi + rdx], 0
js 0x140107860
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x140107860
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x58]
mov r13, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
jmp 0x14010799a
mov r8, qword [r14]
mov rax, qword [rsp + 0x30]
sub rax, r15
mov qword [r14], rdi
mov qword [r14 + 8], rbp
mov qword [r14 + 0x10], rax
test r12, r12
je 0x140107a8c
mov ecx, 0x30
mov rax, r13
mul rcx
add r12, rax
cmp r12, 0xffffffffffffffef
je 0x140107a8c
sub r8, rax
mov rcx, qword [0x140182268]
xor edx, edx
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140101bb0
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x140112760]
nop dword [rax]
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 0x140107a10
test al, 1
je 0x140107a5a
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rcx]
por xmm0, xmmword [0x140112760]
movdqa xmmword [rbx + rcx], xmm0
mov qword [rsp + 0x60], r14
cmp r13, 0x10
jae 0x140107aa0
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, r13
call fcn.140106220
test r13, r13
jne 0x140107aaa
mov rcx, qword [rsp + 0x68]
sub rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x10], rcx
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r13], xmm0
lea r13, [rbx - 0x30]
movabs rax, 0x736f6d6570736575
mov rdx, qword [rsp + 0x20]
xor rax, rdx
mov qword [rsp + 0x38], rax
movabs rax, 0x646f72616e646f6d
mov rcx, qword [rsp + 0x28]
xor rax, rcx
mov qword [rsp + 0x30], rax
movabs rax, 0x6c7967656e657261
xor rax, rdx
mov qword [rsp + 0x50], rax
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x48], rax
lea r15, [rbx - 0x2e]
xor esi, esi
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r12
jmp 0x140107b46
shr rax, 0x39
lea rcx, [rsi - 0x10]
and rcx, r12
mov byte [rbx + rsi], al
mov byte [rbx + rcx + 0x10], al
lea rax, [rsi + 1]
add r15, 0xffffffffffffffd0
cmp rsi, r12
mov rsi, rax
je 0x140107a79
cmp byte [rbx + rsi], 0x80
jne 0x140107b32
mov rax, rsi
shl rax, 4
lea rax, [rax + rax*2]
mov rcx, r13
sub rcx, rax
mov qword [rsp + 0x28], rcx
mov rcx, rbx
sub rcx, rax
mov qword [rsp + 0x80], rcx
mov rax, rsi
neg rax
lea rax, [rax + rax*2]
shl rax, 4
add rax, rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], rsi
jmp 0x140107bc5
mov rax, qword [rsp + 0x28]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rdx]
movups xmmword [rax], xmm1
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rdx + 0x10], xmm0
movdqu xmm0, xmmword [rax + 0x20]
movdqu xmm1, xmmword [rdx + 0x20]
movdqu xmmword [rax + 0x20], xmm1
movdqu xmmword [rdx + 0x20], xmm0
mov rax, qword [rsp + 0x40]
mov rbp, qword [rax - 0x28]
mov r14, qword [rax - 0x20]
mov rax, r14
and rax, 0xfffffffffffffff8
je 0x140107c70
mov r10, qword [rsp + 0x50]
mov r9, qword [rsp + 0x30]
mov r11, qword [rsp + 0x48]
xor edx, edx
mov r8, qword [rsp + 0x38]
nop word cs:[rax + rax]
add r8, r9
rol r9, 0xd
mov rcx, qword [rbp + rdx]
xor r9, r8
rol r8, 0x20
xor r11, rcx
add r10, r11
rol r11, 0x10
xor r11, r10
add r8, r11
rol r11, 0x15
add r10, r9
rol r9, 0x11
xor r9, r10
rol r10, 0x20
xor r11, r8
xor r8, rcx
add rdx, 8
cmp rdx, rax
jb 0x140107c00
mov esi, r14d
and esi, 7
cmp esi, 4
jb 0x140107c91
mov edi, dword [rbp + rdx]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rsi
jb 0x140107ca1
jmp 0x140107cc6
mov r11, qword [rsp + 0x48]
mov r9, qword [rsp + 0x30]
mov r10, qword [rsp + 0x50]
mov r8, qword [rsp + 0x38]
xor edx, edx
mov esi, r14d
and esi, 7
cmp esi, 4
jae 0x140107c4f
xor edi, edi
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rsi
jae 0x140107cc6
lea rcx, [rax + rbp]
mov r12, r13
movzx r13d, word [rdx + rcx]
lea ecx, [rax*8]
shl r13, cl
or rdi, r13
mov r13, r12
mov r12, qword [rsp + 0x78]
or rax, 2
cmp rax, rsi
jae 0x140107cf0
add rdx, rax
movzx edx, byte [rbp + rdx]
shl eax, 3
mov ecx, eax
shl rdx, cl
or rdi, rdx
inc r14
jmp 0x140107cf8
inc r14
test rsi, rsi
je 0x140107d4a
lea ecx, [rsi*8]
mov eax, 0xff
shl rax, cl
or rax, rdi
cmp rsi, 7
jne 0x140107d50
add r8, r9
rol r9, 0xd
xor r11, rax
xor r9, r8
rol r8, 0x20
add r10, r11
rol r11, 0x10
xor r11, r10
add r8, r11
rol r11, 0x15
xor r11, r8
add r10, r9
rol r9, 0x11
xor r9, r10
rol r10, 0x20
xor r8, rax
xor eax, eax
jmp 0x140107d50
mov eax, 0xff
nop
mov rsi, qword [rsp + 0x20]
shl r14, 0x38
add r8, r9
rol r9, 0xd
or r14, rax
xor r9, r8
rol r8, 0x20
xor r11, r14
add r10, r11
rol r11, 0x10
xor r11, r10
add r8, r11
rol r11, 0x15
add r10, r9
rol r9, 0x11
xor r11, r8
xor r9, r10
rol r10, 0x20
xor r8, r14
add r8, r9
rol r9, 0xd
xor r9, r8
rol r8, 0x20
xor r10, 0xff
add r10, r11
rol r11, 0x10
xor r11, r10
add r8, r11
rol r11, 0x15
add r10, r9
rol r9, 0x11
xor r9, r10
rol r10, 0x20
xor r11, r8
add r8, r9
rol r9, 0xd
xor r9, r8
rol r8, 0x20
add r10, r11
rol r11, 0x10
xor r11, r10
add r8, r11
rol r11, 0x15
add r10, r9
rol r9, 0x11
xor r9, r10
rol r10, 0x20
xor r11, r8
add r8, r9
rol r9, 0xd
add r10, r11
rol r11, 0x10
xor r11, r10
rol r11, 0x15
xor r9, r8
add r10, r9
rol r9, 0x11
mov rax, r10
rol rax, 0x20
xor rax, r9
xor rax, r11
xor rax, r10
mov rcx, rax
and rcx, r12
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb r8d, xmm0
mov rdx, rcx
test r8d, r8d
jne 0x140107e69
mov r9d, 0x10
mov rdx, rcx
nop dword [rax]
add rdx, r9
and rdx, r12
movdqu xmm0, xmmword [rbx + rdx]
pmovmskb r8d, xmm0
add r9, 0x10
test r8d, r8d
je 0x140107e50
tzcnt r8d, r8d
add r8, rdx
and r8, r12
cmp byte [rbx + r8], 0
js 0x140107e88
movdqa xmm0, xmmword [rbx]
pmovmskb edx, xmm0
tzcnt r8d, edx
mov rdx, rsi
sub rdx, rcx
mov r9, r8
sub r9, rcx
xor r9, rdx
and r9, r12
cmp r9, 0x10
jb 0x140107b20
mov rcx, r8
shl rcx, 4
lea rcx, [rcx + rcx*2]
mov rdx, r13
sub rdx, rcx
movzx r9d, byte [rbx + r8]
shr rax, 0x39
lea r10, [r8 - 0x10]
and r10, r12
mov byte [rbx + r8], al
mov byte [rbx + r10 + 0x10], al
cmp r9b, 0xff
je 0x140107f50
neg rcx
lea rax, [rbx + rcx]
cmp qword [rsp + 0x28], rax
jae 0x140107b90
cmp rdx, qword [rsp + 0x80]
jae 0x140107b90
add rcx, qword [rsp + 0x70]
xor eax, eax
nop dword [rax + rax]
movzx edx, byte [r15 + rax - 2]
movzx r8d, byte [rcx + rax - 2]
mov byte [r15 + rax - 2], r8b
mov byte [rcx + rax - 2], dl
movzx edx, byte [r15 + rax - 1]
movzx r8d, byte [rcx + rax - 1]
mov byte [r15 + rax - 1], r8b
mov byte [rcx + rax - 1], dl
movzx edx, byte [r15 + rax]
movzx r8d, byte [rcx + rax]
mov byte [r15 + rax], r8b
mov byte [rcx + rax], dl
add rax, 3
cmp rax, 0x30
jne 0x140107f00
jmp 0x140107bc5
lea rax, [rsi - 0x10]
and rax, r12
mov byte [rbx + rsi], 0xff
mov byte [rbx + rax + 0x10], 0xff
mov rax, qword [rsp + 0x28]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm2
movdqu xmmword [rdx + 0x10], xmm1
movdqu xmmword [rdx], xmm0
jmp 0x140107b32
call fcn.14002ea80
int3