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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
lea rax, [0x14057eda0]
mov edi, 0x40
mov r15d, pe_nt_image_headers64
mov r12, rcx
mov rbp, r9
mov qword [rsp + 0x168], rdx
mov edx, dword [rsp + 0x1a8]
movzx ecx, byte [rsp + 0x1a8]
mov r13, qword [rsp + 0x190]
mov qword [rsp + 0x170], r8
mov rbx, qword [rsp + 0x180]
test edx, edx
lea rdx, [0x1403b7620]
mov r14, qword [rsp + 0x1a0]
cmove rax, rdx
sar edi, cl
sar r15d, cl
mov rsi, rax
mov qword [rsp + 0x38], rax
movsxd rax, edi
shl rax, 2
mov dword [rsp + 0xf8], r15d
mov rcx, rax
mov qword [rsp + 0x40], rax
mov rax, rsi
add rax, rcx
movzx ecx, byte [rsp + 0x1a8]
mov qword [rsp + 0x48], rax
mov eax, 0xc0
sar eax, cl
cdqe
shl rax, 2
mov rdx, rax
mov qword [rsp + 0x58], rax
movsxd rax, r15d
lea rax, [rsi + rax*4]
mov qword [rsp + 0x50], rax
mov eax, 0x100
sar eax, cl
movzx ecx, byte [rsp + 0x1a8]
cdqe
shl rax, 2
mov r10, rax
mov qword [rsp + 0x60], rax
mov rax, rsi
add rax, rdx
mov qword [rsp + 0x68], rax
mov eax, 0x1c0
sar eax, cl
movzx ecx, byte [rsp + 0x1a8]
cdqe
shl rax, 2
mov rdx, rax
mov qword [rsp + 0x70], rax
mov rax, rsi
add rax, r10
mov qword [rsp + 0x78], rax
mov eax, 0x200
sar eax, cl
cdqe
shl rax, 2
mov r11, rax
mov qword [rsp + 0x80], rax
mov eax, 0x140
sar eax, cl
cdqe
lea rax, [rsi + rax*4]
mov qword [rsp + 0x88], rax
mov eax, 0x2c0
sar eax, cl
cdqe
shl rax, 2
mov qword [rsp + 0x90], rax
mov eax, 0x180
sar eax, cl
cdqe
lea rax, [rsi + rax*4]
mov qword [rsp + 0x98], rax
mov eax, 0x300
sar eax, cl
movzx ecx, byte [rsp + 0x1a8]
cdqe
shl rax, 2
mov qword [rsp + 0xa0], rax
mov rax, rsi
add rax, rdx
mov rdx, rsi
add rsi, r11
mov qword [rsp + 0xa8], rax
mov eax, 0x3c0
mov qword [rsp + 0xb8], rsi
sar eax, cl
cdqe
shl rax, 2
mov qword [rsp + 0xb0], rax
mov eax, 0x400
sar eax, cl
cdqe
shl rax, 2
mov qword [rsp + 0xc0], rax
mov eax, 0x240
sar eax, cl
cdqe
lea rax, [rdx + rax*4]
mov edx, 0x480
sar edx, cl
mov qword [rsp + 0xc8], rax
mov eax, 0x4c0
sar eax, cl
cdqe
shl rax, 2
mov qword [rsp + 0xd0], rax
movsxd rax, edx
shl rax, 2
mov qword [rsp + 0xe8], rax
mov eax, 0x900
mov rsi, qword [rsp + 0x198]
sub eax, edx
movss xmm6, dword [0x14040c980]
movsxd rdx, eax
sub eax, r15d
mov r15, qword [rsp + 0x188]
mov dword [rsp + 0xfc], eax
lea rsi, [rsi + rdx*4]
lea rax, [r15 + 0x2000]
mov qword [rsp + 0xf0], rsi
mov qword [rsp + 0x30], rax
lea rax, [r13 + 0x100]
mov qword [rsp + 0xd8], rax
nop dword [rax]
mov eax, dword [r14]
cmp dword [rsp + 0xf8], eax
jg 0x14013e9a5
sub eax, dword [rsp + 0xf8]
mov dword [r14], eax
mov rsi, qword [rsp + 0x198]
cdqe
lea rsi, [rsi + rax*4]
mov eax, dword [rsp + 0x1a8]
test eax, eax
je 0x14013e941
lea rdx, [r15 + 0x267c]
lea rcx, [r15 + 0x80]
mov rax, r15
nop dword [rax + rax]
movss xmm0, dword [rax]
add rax, 4
xorps xmm0, xmm6
sub rdx, 4
movss dword [rax - 4], xmm0
movss xmm0, dword [rdx + 4]
movss dword [rax + 0x7c], xmm0
cmp rcx, rax
jne 0x14013e7a0
mov rdx, r13
mov rcx, r12
mov r8, r15
call qword [r12 + 0x48]
mov rax, qword [rsp + 0x168]
mov rdx, r13
mov rcx, rsi
call qword [rax + 0x28]
mov rax, qword [rsp + 0x170]
mov rcx, rbx
mov r9d, edi
mov r8, qword [rsp + 0x38]
mov rdx, rsi
add r15, 0x100
call qword [rax]
mov rax, qword [rsp + 0x58]
mov r9, rbx
mov rcx, rbx
mov r8, qword [rsp + 0x48]
mov dword [rsp + 0x20], edi
lea rdx, [rsi + rax]
call qword [rbp]
mov rax, qword [rsp + 0x60]
mov r9, rbx
mov rcx, rbx
mov r8, qword [rsp + 0x50]
mov dword [rsp + 0x20], edi
lea rdx, [rsi + rax]
call qword [rbp]
mov rax, qword [rsp + 0x70]
mov r9, rbx
mov rcx, rbx
mov r8, qword [rsp + 0x68]
mov dword [rsp + 0x20], edi
lea rdx, [rsi + rax]
call qword [rbp]
mov rax, qword [rsp + 0x80]
mov r9, rbx
mov rcx, rbx
mov r8, qword [rsp + 0x78]
mov dword [rsp + 0x20], edi
lea rdx, [rsi + rax]
call qword [rbp]
mov rax, qword [rsp + 0x90]
mov r9, rbx
mov rcx, rbx
mov r8, qword [rsp + 0x88]
mov dword [rsp + 0x20], edi
lea rdx, [rsi + rax]
call qword [rbp]
mov rax, qword [rsp + 0xa0]
mov r9, rbx
mov rcx, rbx
mov r8, qword [rsp + 0x98]
mov dword [rsp + 0x20], edi
lea rdx, [rsi + rax]
call qword [rbp]
mov rax, qword [rsp + 0xb0]
mov r9, rbx
mov rcx, rbx
mov r8, qword [rsp + 0xa8]
mov dword [rsp + 0x20], edi
lea rdx, [rsi + rax]
call qword [rbp]
mov rax, qword [rsp + 0xc0]
mov r9, rbx
mov rcx, rbx
mov r8, qword [rsp + 0xb8]
mov dword [rsp + 0x20], edi
lea rdx, [rsi + rax]
call qword [rbp]
mov rax, qword [rsp + 0xd0]
mov r9, rbx
mov rcx, rbx
mov dword [rsp + 0x20], edi
mov r8, qword [rsp + 0xc8]
lea rdx, [rsi + rax]
call qword [rbp]
add rbx, qword [rsp + 0x40]
cmp qword [rsp + 0x30], r15
jne 0x14013e750
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [r15 + 0x2600]
mov rcx, rax
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x168]
call qword [rax + 0x10]
mov r8, r15
mov rdx, r13
mov rcx, r12
call qword [r12 + 0x48]
mov rax, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xd8]
mov rcx, r12
mov r8, rax
call qword [r12 + 0x48]
mov rax, qword [rsp + 0x168]
mov r8, r13
mov rdx, qword [rsp + 0xd8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x14013e7e2
mov r8, qword [rsp + 0xe8]
mov rdx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0xf0]
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0xfc]
mov dword [r14], eax
jmp 0x14013e76a