Function at 0x1400e8d10
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov rdx, qword [rcx + 8]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rcx + 0x10]
mov eax, 0xff
mov rbx, rcx
mov qword [rsp + 0x38], rdx
nop word cs:[rax + rax]
cmp rcx, 2
jb 0x1400e954c
mov r11d, dword [rdx]
mov r10d, dword [rdx + 4]
mov r8d, dword [rdx + 8]
mov r9d, dword [rdx + 0xc]
xor esi, esi
cmp r11d, r8d
setne sil
cmovb esi, eax
cmp r10d, r9d
mov edi, 0
sbb edi, edi
test sil, sil
cmovne edi, esi
cmp dil, 2
jb 0x1400e8da8
dec rcx
cmp r11d, r8d
cmova r8d, r11d
cmp r10d, r9d
cmovb r9d, r10d
inc r9d
add rdx, 8
cmp r8d, r9d
ja 0x1400e8d50
mov rdx, rbx
cmp rbx, 0x15
jae 0x1400e8dd3
cmp rdx, 1
jbe 0x1400e943f
mov r8d, 1
mov rcx, qword [rsp + 0x38]
call fcn.1400e5900
mov rdx, rbx
jmp 0x1400e9448
movabs rax, 0x7ffffffffffffff8
lea rdx, [rdx*4]
and rdx, rax
movzx eax, byte [0x141af8129]
xor ecx, ecx
call fcn.140146820
test rax, rax
je 0x1400e9568
mov r14, rax
movzx eax, byte [0x141af8129]
mov edx, 0x100
xor ecx, ecx
call fcn.140146820
test rax, rax
je 0x1400e9568
mov rbp, rax
mov rax, qword [rsp + 0x38]
lea rcx, [rax + 8]
mov qword [rsp + 0x58], rcx
add rax, 0xfffffffffffffff8
mov qword [rsp + 0x50], rax
mov eax, 0x10
mov qword [rsp + 0x48], rax
xor eax, eax
movabs r13, 0x1ffffffffffffffe
xor r15d, r15d
mov qword [rsp + 0x20], r14
mov r10, rbx
mov qword [rsp + 0x60], rbx
jmp 0x1400e8e74
mov r15d, 1
mov rax, qword [rsp + 0x30]
cmp rax, r10
jae 0x1400e9417
mov rbx, rax
mov rax, r10
sub rax, rbx
mov rcx, qword [rsp + 0x38]
lea rcx, [rcx + rbx*8]
cmp rax, 2
mov r12, r10
jae 0x1400e9260
mov r8, rax
lea rax, [r8 + rbx]
mov rsi, rax
sub rsi, rbx
jb 0x1400e9568
cmp rax, r10
ja 0x1400e9568
jae 0x1400e8eec
cmp r8, 0xa
jae 0x1400e8eec
cmp rbx, 0xfffffffffffffff6
jae 0x1400e9568
lea rdi, [rbx + 0xa]
cmp rdi, r10
cmovae rdi, r10
cmp rax, rbx
mov eax, 1
cmove r8, rax
mov rsi, rdi
sub rsi, rbx
mov rdx, rsi
call fcn.1400e5900
mov r10, r12
mov rax, rdi
mov qword [rsp + 0x30], rax
cmp r15, qword [rsp + 0x48]
jne 0x1400e8f55
mov rdx, r15
shl rdx, 5
movzx eax, byte [0x141af8129]
xor ecx, ecx
call fcn.140146820
test rax, rax
je 0x1400e9568
mov r13, rax
lea rax, [r15 + r15]
mov qword [rsp + 0x48], rax
mov r8, r15
shl r8, 4
mov rcx, r13
mov rdx, rbp
call sub.msvcrt.dll_memcpy
mov rcx, qword [0x141af8068]
xor edx, edx
mov r8, rbp
call sub.KERNEL32.dll_HeapFree
mov rbp, r13
movabs r13, 0x1ffffffffffffffe
mov r10, r12
mov rax, r15
shl rax, 4
mov qword [rbp + rax], rsi
mov qword [rbp + rax + 8], rbx
inc r15
mov rax, r15
cmp r15, 2
mov qword [rsp + 0x68], rbp
jae 0x1400e8ff9
jmp 0x1400e8e66
mov rsi, rbp
mov r14, qword [rsp + 0x20]
mov rdx, r14
mov rbp, qword [rsp + 0x68]
add r13, rbp
add rbx, rbp
sub r8, rdx
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x70]
add rax, qword [rsp + 0x28]
mov qword [rbx], rax
mov rax, qword [rsp + 0x78]
mov qword [rbx + 8], rax
lea rdx, [r13 + 0x10]
mov rax, qword [rsp + 0x88]
not rax
add r12, rax
shl r12, 4
mov rcx, r13
mov r8, r12
call sub.msvcrt.dll_memmove
mov rax, qword [rsp + 0x80]
cmp rax, 1
mov r10, qword [rsp + 0x60]
movabs r13, 0x1ffffffffffffffe
jbe 0x1400e8e60
mov r15, rax
lea r11, [rax - 1]
mov rcx, r11
shl rcx, 4
mov rax, qword [rbp + rcx]
mov rcx, qword [rbp + rcx + 8]
add rcx, rax
cmp rcx, r10
je 0x1400e9070
mov rdx, r15
shl rdx, 4
mov r8, qword [rdx + rbp - 0x20]
cmp r8, rax
jbe 0x1400e9070
cmp r15, 2
je 0x1400e9368
lea rsi, [r15 - 3]
mov rcx, rsi
shl rcx, 4
mov rcx, qword [rbp + rcx]
lea r9, [r8 + rax]
cmp rcx, r9
jbe 0x1400e9086
cmp r15, 3
jbe 0x1400e940c
add r8, rcx
cmp qword [rdx + rbp - 0x40], r8
jbe 0x1400e9086
jmp 0x1400e8e66
cmp r15, 2
je 0x1400e908b
lea rsi, [r15 - 3]
mov rcx, rsi
shl rcx, 4
mov rcx, qword [rbp + rcx]
cmp rcx, rax
jb 0x1400e908f
lea rsi, [r15 - 2]
cmp rsi, r15
jae 0x1400e9568
lea rbx, [rsi + 1]
cmp rbx, r15
jae 0x1400e9568
mov r12, r15
mov r13, rsi
shl r13, 4
mov rcx, qword [rbp + r13 + 8]
shl rbx, 4
mov rax, qword [rbp + rbx]
mov rdi, qword [rbp + rbx + 8]
add rdi, rax
mov r15, rdi
sub r15, rcx
jb 0x1400e9568
mov qword [rsp + 0x88], rsi
cmp rdi, r10
ja 0x1400e9568
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x80], r11
mov rdx, qword [rbp + r13]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x78], rcx
lea rsi, [rax + rcx*8]
lea rbp, [rsi + rdx*8]
mov r14, r15
sub r14, rdx
cmp r14, rdx
mov qword [rsp + 0x28], rdx
jae 0x1400e91c0
lea r8, [r14*8]
mov r15, qword [rsp + 0x20]
mov rcx, r15
mov rdx, rbp
call sub.msvcrt.dll_memcpy
lea r8, [r15 + r14*8]
cmp qword [rsp + 0x28], 0
jle 0x1400e8f80
test r14, r14
jle 0x1400e8f80
mov rax, qword [rsp + 0x50]
lea rax, [rax + rdi*8]
mov r14, qword [rsp + 0x20]
nop dword [rax]
mov ecx, dword [r8 - 8]
mov edx, dword [r8 - 4]
xor r9d, r9d
cmp edx, dword [rbp - 4]
setb r9b
xor edx, edx
cmp ecx, dword [rbp - 8]
setb dl
cmove edx, r9d
movzx ecx, dl
lea rdx, [rcx*8]
sub rbp, rdx
lea r8, [r8 + rcx*8]
add r8, 0xfffffffffffffff8
test cl, cl
mov rcx, r8
cmovne rcx, rbp
mov rcx, qword [rcx]
mov qword [rax], rcx
cmp rbp, rsi
jbe 0x1400e91b1
add rax, 0xfffffffffffffff8
cmp r8, r14
ja 0x1400e9160
mov rsi, rbp
jmp 0x1400e8f88
lea r8, [rdx*8]
mov r14, qword [rsp + 0x20]
mov rcx, r14
mov rdx, rsi
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x28]
lea r8, [r14 + rax*8]
test rax, rax
jle 0x1400e8f88
cmp r15, rax
jle 0x1400e8f88
mov rax, qword [rsp + 0x38]
lea rax, [rax + rdi*8]
mov rdx, r14
nop
mov r9d, dword [rbp]
mov ecx, dword [rbp + 4]
xor r10d, r10d
cmp ecx, dword [rdx + 4]
setb r10b
xor ecx, ecx
cmp r9d, dword [rdx]
setb cl
cmove ecx, r10d
test cl, cl
mov r9, rdx
cmovne r9, rbp
mov r9, qword [r9]
mov qword [rsi], r9
add rsi, 8
mov r9d, ecx
xor r9b, 1
movzx r9d, r9b
lea rdx, [rdx + r9*8]
cmp rdx, r8
jae 0x1400e8f8b
movzx ecx, cl
lea rbp, [rbp + rcx*8]
cmp rbp, rax
jb 0x1400e9200
jmp 0x1400e8f8b
mov edx, dword [rcx + 8]
mov r9d, dword [rcx + 0xc]
xor r8d, r8d
cmp r9d, dword [rcx + 4]
setb r8b
xor r10d, r10d
cmp edx, dword [rcx]
setb r10b
cmove r10d, r8d
mov r8d, 2
test r10b, r10b
je 0x1400e92f0
cmp rax, 2
je 0x1400e92c7
mov r10d, edx
mov r11d, r9d
mov edx, dword [rcx + r8*8]
mov r9d, dword [rcx + r8*8 + 4]
xor esi, esi
cmp r9d, r11d
setb sil
xor r11d, r11d
cmp edx, r10d
setb r11b
cmove r11d, esi
cmp r11b, 1
jne 0x1400e92c7
inc r8
cmp rax, r8
jne 0x1400e9290
mov r8, rax
mov rax, r8
add rax, rbx
jb 0x1400e9568
mov r10, r12
cmp rax, r12
ja 0x1400e9568
cmp r8, 2
jae 0x1400e933e
mov r8d, 1
jmp 0x1400e8e9a
cmp rax, 2
mov r10, r12
je 0x1400e8e96
nop dword [rax]
mov r10d, edx
mov r11d, r9d
mov edx, dword [rcx + r8*8]
mov r9d, dword [rcx + r8*8 + 4]
xor esi, esi
cmp r9d, r11d
setb sil
xor r11d, r11d
cmp edx, r10d
setb r11b
cmove r11d, esi
test r11b, r11b
jne 0x1400e9336
inc r8
cmp rax, r8
jne 0x1400e9300
mov r8, rax
mov r10, r12
jmp 0x1400e8e96
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov rax, r8
shr rax, 1
lea rdx, [rcx + r8*8]
lea r9, [rax*8]
sub rdx, r9
cmp rax, 1
jne 0x1400e9373
xor r9d, r9d
jmp 0x1400e93d6
mov r15d, 2
jmp 0x1400e8e66
movabs r9, 0x7ffffffffffffff8
lea r10, [r9 + 6]
and r10, rax
mov r9, qword [rsp + 0x58]
lea r11, [r9 + rbx*8]
mov r9, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x30]
lea rsi, [r9 + rsi*8]
xor r9d, r9d
nop
mov rdi, qword [rsi]
mov r14, qword [r11 + r9*8 - 8]
mov qword [r11 + r9*8 - 8], rdi
mov qword [rsi], r14
mov rdi, r9
xor rdi, r13
add rdi, rax
mov r14, qword [rdx + rdi*8]
mov r15, qword [r11 + r9*8]
mov qword [r11 + r9*8], r14
mov qword [rdx + rdi*8], r15
add r9, 2
add rsi, 0xfffffffffffffff0
cmp r10, r9
jne 0x1400e93a0
test r8b, 2
je 0x1400e93f5
mov r10, r9
not r10
add rax, r10
mov r10, qword [rdx + rax*8]
mov r11, qword [rcx + r9*8]
mov qword [rcx + r9*8], r10
mov qword [rdx + rax*8], r11
mov r14, qword [rsp + 0x20]
mov r15, qword [rsp + 0x28]
mov r10, r12
mov rax, qword [rsp + 0x30]
jmp 0x1400e8e9a
mov r15d, 3
jmp 0x1400e8e66
mov rcx, qword [0x141af8068]
xor edx, edx
mov r8, rbp
mov rsi, r10
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x141af8068]
xor edx, edx
mov r8, r14
call sub.KERNEL32.dll_HeapFree
mov rdx, rsi
test rdx, rdx
je 0x1400e9568
mov r11, qword [rsp + 0x40]
mov rsi, qword [r11 + 0x10]
xor eax, eax
jmp 0x1400e947a
movlps qword [rcx + rsi*8], xmm6
inc rsi
mov qword [r11 + 0x10], rsi
mov rax, rdi
mov rdx, r14
cmp r14, rdi
je 0x1400e9523
lea rdi, [rax + 1]
mov r14, rdx
cmp rsi, rdx
jbe 0x1400e94bc
mov rcx, qword [r11 + 8]
mov r9d, dword [rcx + rsi*8 - 8]
mov edx, dword [rcx + rax*8]
cmp r9d, edx
mov r11d, edx
cmova r11d, r9d
mov r10d, dword [rcx + rsi*8 - 4]
mov r8d, dword [rcx + rdi*8 - 4]
cmp r10d, r8d
mov ebx, r8d
cmovb ebx, r10d
inc ebx
cmp r11d, ebx
mov r11, qword [rsp + 0x40]
jbe 0x1400e94f0
cmp rax, rsi
jae 0x1400e9568
mov rcx, qword [r11 + 8]
movsd xmm6, qword [rcx + rax*8]
cmp rsi, qword [r11]
jne 0x1400e9460
mov rcx, r11
call fcn.140068f20
mov r11, qword [rsp + 0x40]
mov rcx, qword [r11 + 8]
jmp 0x1400e9460
cmp r9d, edx
cmovb edx, r9d
cmp r10d, r8d
cmova r8d, r10d
cmp edx, r8d
mov eax, r8d
cmova r8d, edx
cmovb eax, edx
mov dword [rcx + rsi*8 - 8], eax
mov dword [rcx + rsi*8 - 4], r8d
mov rax, rdi
mov rdx, r14
cmp r14, rdi
jne 0x1400e947a
sub rsi, rdx
jb 0x1400e9568
mov qword [r11 + 0x10], 0
je 0x1400e954c
lea rdx, [rcx + r14*8]
lea r8, [rsi*8]
call sub.msvcrt.dll_memmove
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], rsi
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2