Function at 0x140110ee0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2e8
mov r10, rdx
mov qword [rsp + 0x50], rcx
movabs rax, 0x3fffffffffffffff
add rax, rdx
mov rcx, rax
or rcx, rdx
shr rcx, 0x20
je 0x140110f47
xor edx, edx
div r10
mov qword [rsp + 0x58], rax
mov rax, r10
cmp r10, 0x1001
jae 0x140110f5d
shr rax, 1
mov rcx, r10
sub rcx, rax
cmp rcx, 0x40
mov eax, 0x40
cmovb rax, rcx
mov qword [rsp + 0x48], rax
jmp 0x140110f86
xor edx, edx
div r10d
mov qword [rsp + 0x58], rax
mov rax, r10
cmp r10, 0x1001
jb 0x140110f2a
or rax, 1
bsr rcx, rax
xor ecx, 0xffffffc0
add ecx, 0x41
shr ecx, 1
mov eax, 1
shl rax, cl
mov rdx, r10
shr rdx, cl
add rdx, rax
shr rdx, 1
mov qword [rsp + 0x48], rdx
mov rax, qword [rsp + 0x50]
lea rcx, [rax + 3]
mov qword [rsp + 0x70], rcx
add rax, 0xfffffffffffffffe
mov qword [rsp + 0x60], rax
mov r12d, 1
xor ebp, ebp
movabs rsi, 0x7ffffffffffffffe
xor r14d, r14d
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x80], r10
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x50]
lea rax, [rax + rbp*2]
mov qword [rsp + 0x38], rax
sub r10, rbp
jbe 0x140111040
cmp r10, qword [rsp + 0x48]
jae 0x140111060
cmp byte [rsp + 0x350], 0
je 0x1401110e3
mov rsi, r10
cmp r10, 0x20
mov eax, 0x20
cmovae rsi, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call fcn.1401115f0
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x40]
mov eax, esi
lea rcx, [rax*2 + 1]
jmp 0x140111284
xor esi, esi
mov eax, 1
mov qword [rsp + 0x68], rax
cmp r14, 2
jae 0x1401112e0
jmp 0x140111566
mov r11, r8
cmp r10, 2
jb 0x140111279
mov rdi, r10
mov r10, qword [rsp + 0x38]
movzx edx, byte [r10 + 2]
movzx r8d, byte [r10 + 3]
xor eax, eax
cmp r8b, byte [r10 + 1]
setb al
xor ecx, ecx
cmp dl, byte [r10]
setb cl
cmove ecx, eax
test cl, cl
je 0x1401110fa
cmp rdi, 2
jne 0x14011114d
mov rax, qword [rsp + 0x38]
lea rcx, [rax + 2]
mov edx, 1
mov eax, 2
xor r8d, r8d
mov r11, r8
not r11
add r11, rdx
mov rsi, qword [rsp + 0x38]
movzx edx, word [rsi + r8*2]
movzx r10d, word [rcx + r11*2]
mov word [rsi + r8*2], r10w
mov word [rcx + r11*2], dx
mov r11, qword [rsp + 0x30]
jmp 0x140111276
mov rax, qword [rsp + 0x48]
mov rcx, r10
cmp rax, r10
cmovb rcx, rax
add rcx, rcx
jmp 0x140111284
mov r10d, 2
cmp rdi, 2
je 0x140111279
mov eax, 2
nop
mov r9d, edx
mov r10d, r8d
mov r8, qword [rsp + 0x38]
movzx edx, byte [r8 + rax*2]
movzx r8d, byte [r8 + rax*2 + 1]
xor r11d, r11d
cmp r8b, r10b
setb r11b
xor r10d, r10d
cmp dl, r9b
setb r10b
cmove r10d, r11d
test r10b, r10b
jne 0x14011119f
inc rax
cmp rdi, rax
jne 0x140111110
jmp 0x14011119c
mov eax, 2
nop word cs:[rax + rax]
mov r9d, edx
mov r10d, r8d
mov r8, qword [rsp + 0x38]
movzx edx, byte [r8 + rax*2]
movzx r8d, byte [r8 + rax*2 + 1]
xor r11d, r11d
cmp r8b, r10b
setb r11b
xor r10d, r10d
cmp dl, r9b
setb r10b
cmove r10d, r11d
cmp r10b, 1
jne 0x14011119f
inc rax
cmp rdi, rax
jne 0x140111160
mov rax, rdi
cmp rax, qword [rsp + 0x48]
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x30]
mov r10, rdi
jb 0x140110fea
mov r11, r8
test cl, cl
je 0x140111276
mov r10d, 1
cmp rax, 2
jb 0x140111279
mov rdx, rax
shr rdx, 1
mov rcx, qword [rsp + 0x38]
lea rcx, [rcx + rax*2]
mov r8, rax
and r8, 0xfffffffffffffffe
sub rcx, r8
cmp rdx, 1
je 0x1401110b4
mov r9, rdx
and r9, 0xfffffffffffffffe
mov r8, qword [rsp + 0x70]
lea r10, [r8 + rbp*2]
lea r8, [rax + rbp]
mov r11, qword [rsp + 0x60]
lea r11, [r11 + r8*2]
xor r8d, r8d
mov r15, rsi
nop dword [rax + rax]
movzx esi, word [r10 + r8*2 - 3]
movzx edi, word [r11]
mov word [r10 + r8*2 - 3], di
mov word [r11], si
mov rsi, r8
xor rsi, r15
add rsi, rdx
movzx edi, word [r10 + r8*2 - 1]
movzx ebx, word [rcx + rsi*2]
mov word [r10 + r8*2 - 1], bx
mov word [rcx + rsi*2], di
add r8, 2
add r11, 0xfffffffffffffffc
cmp r9, r8
jne 0x140111220
mov r10, rax
test dl, 1
mov r9, qword [rsp + 0x40]
mov r11, qword [rsp + 0x30]
jne 0x1401110b7
jmp 0x140111279
mov r10, rax
lea rcx, [r10*2 + 1]
mov r8, r11
mov rax, r12
shr rax, 1
mov qword [rsp + 0x68], rcx
shr rcx, 1
lea rdx, [rbp*2]
sub rdx, rax
lea rax, [rcx + rbp*2]
mov rcx, qword [rsp + 0x58]
imul rdx, rcx
imul rax, rcx
xor rax, rdx
je 0x1401112c6
bsr rsi, rax
xor rsi, 0x3f
cmp r14, 2
jae 0x1401112e0
jmp 0x140111566
mov esi, 0x40
cmp r14, 2
jb 0x140111566
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x60]
lea rax, [rax + rbp*2]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], rbp
jmp 0x14011132d
mov rbp, r12
mov rdx, r10
sub r8, rdx
mov rcx, rbp
call fcn.14025a776
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x30]
lea r12, [r13*2 + 1]
mov rbp, qword [rsp + 0x88]
cmp r14, 1
jbe 0x140111560
cmp byte [rsp + r14 + 0x95], sil
jb 0x140111566
dec r14
mov rdi, qword [rsp + r14*8 + 0xd8]
mov r15, rdi
shr r15, 1
mov rbx, r12
shr rbx, 1
lea r13, [r15 + rbx]
cmp r13, r9
ja 0x140111380
mov eax, edi
or eax, r12d
and eax, 1
jne 0x140111380
add r13, r13
mov r12, r13
cmp r14, 1
ja 0x14011132d
jmp 0x140111560
mov rax, rbp
sub rax, r13
mov rcx, qword [rsp + 0x50]
lea rbp, [rcx + rax*2]
test dil, 1
jne 0x1401113e0
mov rax, r15
or rax, 1
bsr rax, rax
xor eax, 0x3f
add eax, eax
xor eax, 0x7e
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rcx, rbp
mov rdx, r15
call fcn.1401115f0
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x40]
test r12b, 1
je 0x1401113e6
cmp r12, 2
jae 0x14011142d
jmp 0x140111313
test r12b, 1
jne 0x1401113d0
lea rcx, [r15*2]
add rcx, rbp
mov rax, rbx
or rax, 1
bsr rax, rax
xor eax, 0x3f
add eax, eax
xor eax, 0x7e
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rdx, rbx
call fcn.1401115f0
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x40]
cmp r12, 2
jb 0x140111313
cmp rdi, 2
jb 0x140111313
cmp r15, rbx
mov rdi, rbx
cmovb rdi, r15
cmp rdi, r9
ja 0x140111313
lea r12, [r15*2]
add r12, rbp
cmp rbx, r15
mov rdx, rbp
cmovb rdx, r12
mov rcx, r8
lea r8, [rdi + rdi]
call fcn.14025a776
mov r10, qword [rsp + 0x30]
lea r8, [r10 + rdi*2]
cmp rbx, r15
jae 0x1401114e5
mov rax, qword [rsp + 0x78]
nop
movzx edx, byte [r8 - 2]
movzx ecx, byte [r8 - 1]
xor r9d, r9d
cmp cl, byte [r12 - 1]
setb r9b
xor ecx, ecx
cmp dl, byte [r12 - 2]
setb cl
cmove ecx, r9d
mov rdx, r12
test cl, cl
jne 0x1401114ae
mov rdx, r8
movzx edx, word [rdx - 2]
mov word [rax], dx
movzx edx, cl
xor cl, 1
movzx ecx, cl
lea r12, [r12 + rcx*2]
add r12, 0xfffffffffffffffe
lea r8, [r8 + rdx*2]
add r8, 0xfffffffffffffffe
cmp r12, rbp
je 0x1401112f8
add rax, 0xfffffffffffffffe
cmp r8, r10
jne 0x140111480
jmp 0x1401112f8
mov rdx, r10
test rdi, rdi
je 0x1401112fe
nop word cs:[rax + rax]
movzx ecx, byte [r12]
movzx eax, byte [r12 + 1]
xor r9d, r9d
cmp al, byte [rdx + 1]
setb r9b
xor eax, eax
cmp cl, byte [rdx]
setb al
cmove eax, r9d
mov rcx, r12
test al, al
jne 0x14011152a
mov rcx, rdx
mov r9d, eax
xor r9b, 1
movzx ecx, word [rcx]
mov word [rbp], cx
movzx ecx, r9b
lea rdx, [rdx + rcx*2]
add rbp, 2
cmp rdx, r8
je 0x1401112fe
movzx eax, al
lea r12, [r12 + rax*2]
cmp r12, qword [rsp + 0x38]
jne 0x140111500
jmp 0x1401112fe
mov r14d, 1
mov qword [rsp + r14*8 + 0xd8], r12
mov byte [rsp + r14 + 0x96], sil
mov r10, qword [rsp + 0x80]
cmp r10, rbp
jbe 0x1401115a3
inc r14
mov r12, qword [rsp + 0x68]
mov rax, r12
shr rax, 1
add rbp, rax
movabs rsi, 0x7ffffffffffffffe
jmp 0x140110fd0
test r12b, 1
jne 0x1401115d6
mov rax, r10
or rax, 1
bsr rax, rax
xor eax, 0x3f
add eax, eax
xor eax, 0x7e
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x50]
mov rdx, r10
call fcn.1401115f0
nop
add rsp, 0x2e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret