Function at 0x1400e8740
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
mov r11d, pe_nt_image_headers64
cmp edx, r11d
mov byte [rcx], 0
mov r10, rcx
cmovle r11d, edx
test r9d, r9d
jle 0x1400e8a08
mov eax, 0x400
mov edi, pe_nt_image_headers64
mov ebp, 0xff
cmp r9d, eax
mov ebx, 0x7f
cmovle eax, r9d
lea r9d, [rax + 7]
mov ecx, eax
sar r9d, 3
neg ecx
sub edi, r9d
and ecx, 7
sub ebx, r9d
movsxd rsi, edi
sar ebp, cl
add rsi, r10
test edx, edx
jle 0x1400e8a25
cmp edx, 7
jle 0x1400e8a33
lea rax, [r8 + 1]
mov rcx, r10
sub rcx, rax
xor eax, eax
cmp rcx, 0xe
ja 0x1400e8898
nop dword [rax + rax]
movzx ecx, byte [r8 + rax]
mov byte [r10 + rax], cl
add rax, 1
cmp r11d, eax
jg 0x1400e87c8
movsxd r12, r11d
lea r8, [0x1402ad760]
movzx eax, byte [r10 + r12 - 1]
cmp edx, 0x7f
jg 0x1400e8828
mov ecx, 0x7f
mov rdx, r10
lea r8, [0x1402ad760]
sub ecx, r11d
lea r11, [r10 + rcx + 1]
nop word cs:[rax + rax]
add al, byte [rdx]
add rdx, 1
movzx eax, al
movzx eax, byte [r8 + rax]
mov byte [rdx + r12 - 1], al
cmp rdx, r11
jne 0x1400e8810
and bpl, byte [rsi]
movzx eax, bpl
movzx eax, byte [r8 + rax]
mov byte [rsi], al
test edi, edi
je 0x1400e8868
movsxd rcx, ebx
mov ebx, ebx
movsxd r9, r9d
lea r11, [r10 + rcx - 1]
lea rdx, [r10 + rcx]
sub r11, rbx
nop
xor al, byte [rdx + r9]
sub rdx, 1
movzx eax, al
movzx eax, byte [r8 + rax]
mov byte [rdx + 1], al
cmp r11, rdx
jne 0x1400e8850
mov eax, 0x7f
nop dword [rax]
movzx edx, byte [r10 + rax]
movzx ecx, byte [r10 + rax - 1]
shl edx, 8
or edx, ecx
mov dword [r10 + rax*2 - 2], edx
sub rax, 2
cmp rax, 0xffffffffffffffff
jne 0x1400e8870
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12d, r11d
cmp edx, 0xf
jle 0x1400e8a3a
movdqu xmm1, xmmword [r8]
mov eax, r11d
shr eax, 4
movups xmmword [r10], xmm1
cmp eax, 1
je 0x1400e8928
movdqu xmm2, xmmword [r8 + 0x10]
movups xmmword [r10 + 0x10], xmm2
cmp eax, 2
je 0x1400e8928
movdqu xmm3, xmmword [r8 + 0x20]
movups xmmword [r10 + 0x20], xmm3
cmp eax, 3
je 0x1400e8928
movdqu xmm4, xmmword [r8 + 0x30]
movups xmmword [r10 + 0x30], xmm4
cmp eax, 4
je 0x1400e8928
movdqu xmm5, xmmword [r8 + 0x40]
movups xmmword [r10 + 0x40], xmm5
cmp eax, 5
je 0x1400e8928
movdqu xmm5, xmmword [r8 + 0x50]
movups xmmword [r10 + 0x50], xmm5
cmp eax, 6
je 0x1400e8928
movdqu xmm3, xmmword [r8 + 0x60]
movups xmmword [r10 + 0x60], xmm3
cmp eax, 8
jne 0x1400e8928
movdqu xmm0, xmmword [r8 + 0x70]
movups xmmword [r10 + 0x70], xmm0
jmp 0x1400e87da
mov eax, r11d
and eax, 0xfffffff0
mov ecx, eax
cmp eax, r11d
je 0x1400e87da
mov r12d, r11d
sub r12d, eax
lea r13d, [r12 - 1]
cmp r13d, 6
jbe 0x1400e8968
movq xmm0, qword [r8 + rcx]
movq qword [r10 + rcx], xmm0
mov ecx, r12d
and ecx, 0xfffffff8
add eax, ecx
and r12d, 7
je 0x1400e87da
movsxd rcx, eax
movzx r12d, byte [r8 + rcx]
mov byte [r10 + rcx], r12b
lea ecx, [rax + 1]
cmp r11d, ecx
jle 0x1400e87da
movsxd rcx, ecx
movzx r12d, byte [r8 + rcx]
mov byte [r10 + rcx], r12b
lea ecx, [rax + 2]
cmp r11d, ecx
jle 0x1400e87da
movsxd rcx, ecx
movzx r12d, byte [r8 + rcx]
mov byte [r10 + rcx], r12b
lea ecx, [rax + 3]
cmp r11d, ecx
jle 0x1400e87da
movsxd rcx, ecx
movzx r12d, byte [r8 + rcx]
mov byte [r10 + rcx], r12b
lea ecx, [rax + 4]
cmp r11d, ecx
jle 0x1400e87da
movsxd rcx, ecx
movzx r12d, byte [r8 + rcx]
mov byte [r10 + rcx], r12b
lea ecx, [rax + 5]
cmp r11d, ecx
jle 0x1400e87da
movsxd rcx, ecx
add eax, 6
movzx r12d, byte [r8 + rcx]
mov byte [r10 + rcx], r12b
cmp r11d, eax
jle 0x1400e87da
cdqe
movzx ecx, byte [r8 + rax]
mov byte [r10 + rax], cl
jmp 0x1400e87da
mov rsi, rcx
mov ebx, 0xffffffff
mov ebp, 0xff
xor edi, edi
mov r9d, pe_nt_image_headers64
test edx, edx
jg 0x1400e87a4
movsxd r12, r11d
movzx eax, byte [r10 + r12 - 1]
jmp 0x1400e87ef
xor eax, eax
jmp 0x1400e87c8
xor eax, eax
xor ecx, ecx
jmp 0x1400e894a