Function at 0x1400e8440
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rdx, qword [rcx + 8]
mov qword [rsp + 0x30], rcx
mov r14, qword [rcx + 0x10]
mov eax, 0xff
mov rcx, r14
mov qword [rsp + 0x38], rdx
nop dword [rax]
cmp rcx, 2
jb 0x1400e8caa
movzx r10d, byte [rdx]
movzx r8d, byte [rdx + 1]
movzx r11d, byte [rdx + 2]
movzx r9d, byte [rdx + 3]
xor esi, esi
cmp r10b, r11b
setne sil
cmovb esi, eax
cmp r8b, r9b
mov edi, 0
sbb edi, edi
test sil, sil
cmovne edi, esi
cmp dil, 2
jb 0x1400e84e3
dec rcx
movzx esi, r10b
movzx edi, r11b
cmp r10b, r11b
cmova edi, esi
movzx r10d, dil
movzx r11d, r8b
movzx esi, r9b
cmp r8b, r9b
cmovb esi, r11d
movzx r8d, sil
inc r8d
add rdx, 2
cmp r8d, r10d
jb 0x1400e8470
cmp r14, 0x15
jae 0x1400e850b
cmp r14, 1
jbe 0x1400e8b83
mov r8d, 1
mov rcx, qword [rsp + 0x38]
mov rdx, r14
call fcn.1400e59d0
jmp 0x1400e8b8c
movabs r12, 0x7ffffffffffffffe
mov rdx, r14
and rdx, r12
movzx eax, byte [0x141af8129]
xor ecx, ecx
call fcn.140146820
test rax, rax
je 0x1400e8cbe
mov r15, rax
movzx eax, byte [0x141af8129]
mov edx, 0x100
xor ecx, ecx
call fcn.140146820
test rax, rax
je 0x1400e8cbe
mov rbp, rax
mov rax, qword [rsp + 0x38]
lea rcx, [rax + 3]
mov qword [rsp + 0x68], rcx
add rax, 0xfffffffffffffffe
mov qword [rsp + 0x60], rax
mov eax, 0x10
mov qword [rsp + 0x58], rax
xor ebx, ebx
xor edi, edi
mov qword [rsp + 0x48], r14
jmp 0x1400e8593
mov edi, 1
mov rbx, qword [rsp + 0x70]
cmp rbx, r14
jae 0x1400e8b61
mov rax, r14
sub rax, rbx
mov rcx, qword [rsp + 0x38]
lea rcx, [rcx + rbx*2]
cmp rax, 2
jae 0x1400e89a0
mov r8, rax
lea rax, [r8 + rbx]
mov rsi, rax
sub rsi, rbx
jb 0x1400e8cbe
cmp rax, r14
ja 0x1400e8cbe
jae 0x1400e8608
cmp r8, 0xa
jae 0x1400e8608
cmp rbx, 0xfffffffffffffff6
jae 0x1400e8cbe
mov r13, rdi
lea rdi, [rbx + 0xa]
cmp rdi, r14
cmovae rdi, r14
cmp rax, rbx
mov eax, 1
cmove r8, rax
mov rsi, rdi
sub rsi, rbx
mov rdx, rsi
call fcn.1400e59d0
mov rax, rdi
mov rdi, r13
mov qword [rsp + 0x70], rax
cmp rdi, qword [rsp + 0x58]
jne 0x1400e8664
mov rdx, rdi
shl rdx, 5
movzx eax, byte [0x141af8129]
xor ecx, ecx
call fcn.140146820
test rax, rax
je 0x1400e8cbe
mov r13, rax
lea rax, [rdi + rdi]
mov qword [rsp + 0x58], rax
mov r8, rdi
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
mov rax, rdi
shl rax, 4
mov qword [rbp + rax], rsi
mov qword [rbp + rax + 8], rbx
inc rdi
mov rax, rdi
cmp rdi, 2
mov qword [rsp + 0x40], rbp
jae 0x1400e86fd
jmp 0x1400e8585
mov rsi, rbp
mov rdx, r15
mov rdi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x40]
add r13, rbp
add rbx, rbp
sub r8, rdx
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x78]
add rax, qword [rsp + 0x50]
mov qword [rbx], rax
mov rax, qword [rsp + 0x80]
mov qword [rbx + 8], rax
lea rdx, [r13 + 0x10]
mov rax, qword [rsp + 0x88]
not rax
add rdi, rax
shl rdi, 4
mov rcx, r13
mov r8, rdi
call sub.msvcrt.dll_memmove
mov rax, qword [rsp + 0x90]
cmp rax, 1
mov r14, qword [rsp + 0x48]
jbe 0x1400e8580
mov rdi, rax
lea r10, [rax - 1]
mov rcx, r10
shl rcx, 4
mov rax, qword [rbp + rcx]
mov rcx, qword [rbp + rcx + 8]
add rcx, rax
cmp rcx, r14
je 0x1400e8770
mov rdx, rdi
shl rdx, 4
mov r8, qword [rdx + rbp - 0x20]
cmp r8, rax
jbe 0x1400e8770
cmp rdi, 2
je 0x1400e8aba
lea r11, [rdi - 3]
mov rcx, r11
shl rcx, 4
mov rcx, qword [rbp + rcx]
lea r9, [r8 + rax]
cmp rcx, r9
jbe 0x1400e8786
cmp rdi, 3
jbe 0x1400e8b57
add r8, rcx
cmp qword [rdx + rbp - 0x40], r8
jbe 0x1400e8786
jmp 0x1400e8585
cmp rdi, 2
je 0x1400e878b
lea r11, [rdi - 3]
mov rcx, r11
shl rcx, 4
mov rcx, qword [rbp + rcx]
cmp rcx, rax
jb 0x1400e878f
lea r11, [rdi - 2]
cmp r11, rdi
jae 0x1400e8cbe
lea rbx, [r11 + 1]
mov qword [rsp + 0x28], rdi
cmp rbx, rdi
jae 0x1400e8cbe
mov r12, r15
mov r13, r11
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 0x1400e8cbe
cmp rdi, r14
ja 0x1400e8cbe
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], r11
mov qword [rsp + 0x90], r10
mov rdx, qword [rbp + r13]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x80], rcx
lea rsi, [rax + rcx*2]
lea rbp, [rsi + rdx*2]
mov r14, r15
sub r14, rdx
cmp r14, rdx
mov qword [rsp + 0x50], rdx
jae 0x1400e88d0
lea r8, [r14 + r14]
mov r15, r12
mov rcx, r12
mov rdx, rbp
call sub.msvcrt.dll_memcpy
lea r8, [r12 + r14*2]
cmp qword [rsp + 0x50], 0
jle 0x1400e8988
test r14, r14
movabs r12, 0x7ffffffffffffffe
jle 0x1400e868b
mov rax, qword [rsp + 0x60]
lea rax, [rax + rdi*2]
mov rdi, qword [rsp + 0x28]
nop word cs:[rax + rax]
movzx ecx, byte [r8 - 2]
movzx edx, byte [r8 - 1]
xor r9d, r9d
cmp dl, byte [rbp - 1]
setb r9b
xor edx, edx
cmp cl, byte [rbp - 2]
setb dl
cmove edx, r9d
movzx ecx, dl
sub rbp, rcx
sub rbp, rcx
lea r8, [r8 + rcx*2]
add r8, 0xfffffffffffffffe
test cl, cl
mov rcx, r8
cmovne rcx, rbp
movzx ecx, word [rcx]
mov word [rax], cx
cmp rbp, rsi
jbe 0x1400e88be
add rax, 0xfffffffffffffffe
cmp r8, r15
ja 0x1400e8870
mov rsi, rbp
mov rdx, r15
jmp 0x1400e8696
lea r8, [rdx + rdx]
mov r14, r12
mov rcx, r12
mov rdx, rsi
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x50]
lea r8, [r12 + rax*2]
test rax, rax
jle 0x1400e8980
cmp r15, rax
jle 0x1400e8980
mov rax, qword [rsp + 0x38]
lea rax, [rax + rdi*2]
mov r15, r12
mov rdx, r12
movabs r12, 0x7ffffffffffffffe
mov rdi, qword [rsp + 0x28]
nop dword [rax + rax]
movzx r9d, byte [rbp]
movzx ecx, byte [rbp + 1]
xor r10d, r10d
cmp cl, byte [rdx + 1]
setb r10b
xor ecx, ecx
cmp r9b, byte [rdx]
setb cl
cmove ecx, r10d
mov r9, rbp
test cl, cl
jne 0x1400e8949
mov r9, rdx
movzx r9d, word [r9]
mov word [rsi], r9w
add rsi, 2
mov r9d, ecx
xor r9b, 1
movzx r9d, r9b
lea rdx, [rdx + r9*2]
cmp rdx, r8
jae 0x1400e8696
movzx ecx, cl
lea rbp, [rbp + rcx*2]
cmp rbp, rax
jb 0x1400e8920
jmp 0x1400e8696
mov r15, r12
mov rdx, r12
jmp 0x1400e898e
mov rsi, rbp
mov rdx, r15
movabs r12, 0x7ffffffffffffffe
jmp 0x1400e8691
movzx edx, byte [rcx + 2]
movzx r9d, byte [rcx + 3]
xor r8d, r8d
cmp r9b, byte [rcx + 1]
setb r8b
xor r10d, r10d
cmp dl, byte [rcx]
setb r10b
cmove r10d, r8d
mov r8d, 2
test r10b, r10b
je 0x1400e8a40
cmp rax, 2
je 0x1400e8a19
nop word cs:[rax + rax]
mov r10d, edx
mov r11d, r9d
movzx edx, byte [rcx + r8*2]
movzx r9d, byte [rcx + r8*2 + 1]
xor esi, esi
cmp r9b, r11b
setb sil
xor r11d, r11d
cmp dl, r10b
setb r11b
cmove r11d, esi
cmp r11b, 1
jne 0x1400e8a19
inc r8
cmp rax, r8
jne 0x1400e89e0
mov r8, rax
mov rax, r8
add rax, rbx
jb 0x1400e8cbe
cmp rax, r14
ja 0x1400e8cbe
cmp r8, 2
jae 0x1400e8a8e
mov r8d, 1
jmp 0x1400e85b3
cmp rax, 2
je 0x1400e85af
nop word [rax + rax]
mov r10d, edx
mov r11d, r9d
movzx edx, byte [rcx + r8*2]
movzx r9d, byte [rcx + r8*2 + 1]
xor esi, esi
cmp r9b, r11b
setb sil
xor r11d, r11d
cmp dl, r10b
setb r11b
cmove r11d, esi
test r11b, r11b
jne 0x1400e85af
inc r8
cmp rax, r8
jne 0x1400e8a50
jmp 0x1400e85ac
mov r13, rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x40], rbp
mov rax, r8
shr rax, 1
lea rdx, [rcx + r8*2]
mov r9, r8
and r9, 0xfffffffffffffffe
sub rdx, r9
cmp rax, 1
jne 0x1400e8ac4
xor r9d, r9d
jmp 0x1400e8b1d
mov edi, 2
jmp 0x1400e8585
mov r10, rax
and r10, r12
mov r9, qword [rsp + 0x68]
lea r11, [r9 + rbx*2]
mov r9, qword [rsp + 0x60]
lea rsi, [r9 + r13*2]
xor r9d, r9d
nop
movzx edi, word [r11 + r9*2 - 3]
movzx ebp, word [rsi]
mov word [r11 + r9*2 - 3], bp
mov word [rsi], di
mov rdi, r9
xor rdi, r12
add rdi, rax
movzx ebp, word [r11 + r9*2 - 1]
movzx r14d, word [rdx + rdi*2]
mov word [r11 + r9*2 - 1], r14w
mov word [rdx + rdi*2], bp
add r9, 2
add rsi, 0xfffffffffffffffc
cmp r10, r9
jne 0x1400e8ae0
test r8b, 2
je 0x1400e8b40
mov r10, r9
not r10
add rax, r10
movzx r10d, word [rcx + r9*2]
movzx r11d, word [rdx + rax*2]
mov word [rcx + r9*2], r11w
mov word [rdx + rax*2], r10w
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x28]
mov rax, r13
jmp 0x1400e85b3
mov edi, 3
jmp 0x1400e8585
mov rcx, qword [0x141af8068]
xor edx, edx
mov r8, rbp
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x141af8068]
xor edx, edx
mov r8, r15
call sub.KERNEL32.dll_HeapFree
test r14, r14
je 0x1400e8cbe
mov r11, qword [rsp + 0x30]
mov rsi, qword [r11 + 0x10]
xor eax, eax
jmp 0x1400e8bbb
mov byte [rcx + rsi*2], bl
mov byte [rcx + rsi*2 + 1], bpl
inc rsi
mov qword [r11 + 0x10], rsi
mov rax, rdi
cmp r14, rdi
je 0x1400e8c85
lea rdi, [rax + 1]
cmp rsi, r14
jbe 0x1400e8c04
mov rcx, qword [r11 + 8]
movzx r8d, byte [rcx + rsi*2 - 2]
movzx edx, byte [rcx + rsi*2 - 1]
movzx r10d, byte [rcx + rax*2]
movzx r9d, byte [rcx + rdi*2 - 1]
cmp r8b, r10b
mov r11d, r10d
cmova r11d, r8d
cmp dl, r9b
mov ebx, r9d
cmovb ebx, edx
movzx r11d, r11b
movzx ebx, bl
inc ebx
cmp ebx, r11d
mov r11, qword [rsp + 0x30]
jae 0x1400e8c40
cmp rax, rsi
jae 0x1400e8cbe
mov rcx, qword [r11 + 8]
movzx ebx, byte [rcx + rax*2]
movzx ebp, byte [rcx + rdi*2 - 1]
cmp rsi, qword [r11]
jne 0x1400e8ba0
mov rcx, r11
call fcn.140068fc0
mov r11, qword [rsp + 0x30]
mov rcx, qword [r11 + 8]
jmp 0x1400e8ba0
movzx eax, r8b
movzx r11d, r10b
cmp r8b, r10b
cmovb r11d, eax
movzx eax, dl
movzx r8d, r9b
cmp dl, r9b
cmova r8d, eax
cmp r11b, r8b
mov eax, r8d
cmova r8d, r11d
cmovb eax, r11d
mov r11, qword [rsp + 0x30]
mov byte [rcx + rsi*2 - 2], al
mov byte [rcx + rsi*2 - 1], r8b
mov rax, rdi
cmp r14, rdi
jne 0x1400e8bbb
sub rsi, r14
jb 0x1400e8cbe
mov qword [r11 + 0x10], 0
je 0x1400e8caa
lea rdx, [rcx + r14*2]
lea r8, [rsi + rsi]
call sub.msvcrt.dll_memmove
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x10], rsi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2