Function at 0x14001eb00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc08]
sub rsp, 0xcc8
mov rax, qword [0x140025100]
xor rax, rsp
mov qword [rbp + 0xbb0], rax
mov rdi, qword [rbp + 0xc10]
mov r15d, dword [rbp + 0xc18]
mov r14d, dword [rbp + 0xc20]
mov r13d, dword [rdi + 0x8a0]
movsxd rsi, dword [rbp + 0xc28]
movsxd r12, dword [rbp + 0xc30]
lea eax, [r13*8 + 0x100]
mov dword [rsp + 0x20], r13d
cmp eax, 0x320
jb 0x14001eb82
xor eax, eax
jmp 0x14001edf4
movsxd rbx, eax
lea rcx, [rsp + 0x30]
xor edx, edx
add rbx, rbx
mov r8, rbx
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x570]
mov r8, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov r9, qword [rdi + 0x48]
mov r10, r12
mov r11, rsi
mov rsi, qword [rdi + 0x50]
shl r10, 2
mov ebx, 0x400
mov r13d, 1
mov r12d, 0x80000
shl r11, 2
mov ecx, r15d
mov eax, r15d
mov edx, r13d
and ecx, 7
shr rax, 3
mov r8d, r15d
shl edx, cl
test byte [rax + rsi], dl
jne 0x14001ebf3
movzx eax, byte [r9 + r8]
jmp 0x14001ec7f
cmp byte [r9 + r8], 7
mov rax, qword [rdi + 0x40]
movsxd rcx, dword [r11 + rax]
jae 0x14001ec42
cmp ecx, 0x400
jge 0x14001ec13
mov cl, byte [rcx + rdi + 0x47c]
jmp 0x14001ec31
cmp ecx, r12d
jge 0x14001ec2b
mov rax, rcx
sar rax, 9
mov cl, byte [rax + rdi + 0x47c]
add cl, 0x12
jmp 0x14001ec31
sar ecx, 0x11
add cl, 0x22
movzx eax, byte [r9 + r8]
movzx ecx, cl
lea eax, [rax + rcx*8 + 0x100]
jmp 0x14001ec7b
cmp ecx, 0x400
jge 0x14001ec53
mov cl, byte [rcx + rdi + 0x47c]
jmp 0x14001ec71
cmp ecx, r12d
jge 0x14001ec6b
mov rax, rcx
sar rax, 9
mov cl, byte [rax + rdi + 0x47c]
add cl, 0x12
jmp 0x14001ec71
sar ecx, 0x11
add cl, 0x22
movzx eax, cl
lea eax, [rax*8 + 0x107]
add r11, 4
cdqe
mov ecx, r14d
mov edx, r13d
add word [rsp + rax*2 + 0x30], r13w
and ecx, 7
mov eax, r14d
shr rax, 3
shl edx, cl
add r15d, r13d
mov r8d, r14d
test byte [rax + rsi], dl
jne 0x14001ecae
movzx eax, byte [r8 + r9]
jmp 0x14001ed3a
cmp byte [r8 + r9], 7
mov rax, qword [rdi + 0x40]
movsxd rcx, dword [r10 + rax]
jae 0x14001ecfd
cmp ecx, 0x400
jge 0x14001ecce
mov cl, byte [rcx + rdi + 0x47c]
jmp 0x14001ecec
cmp ecx, r12d
jge 0x14001ece6
mov rax, rcx
sar rax, 9
mov cl, byte [rax + rdi + 0x47c]
add cl, 0x12
jmp 0x14001ecec
sar ecx, 0x11
add cl, 0x22
movzx eax, byte [r8 + r9]
movzx ecx, cl
lea eax, [rax + rcx*8 + 0x100]
jmp 0x14001ed36
cmp ecx, 0x400
jge 0x14001ed0e
mov cl, byte [rcx + rdi + 0x47c]
jmp 0x14001ed2c
cmp ecx, r12d
jge 0x14001ed26
mov rax, rcx
sar rax, 9
mov cl, byte [rax + rdi + 0x47c]
add cl, 0x12
jmp 0x14001ed2c
sar ecx, 0x11
add cl, 0x22
movzx eax, cl
lea eax, [rax*8 + 0x107]
add r10, 4
cdqe
add r14d, r13d
add word [rbp + rax*2 + 0x570], r13w
sub rbx, r13
jne 0x14001ebcf
mov r13d, dword [rsp + 0x20]
xor r8d, r8d
lea eax, [r13*8 + 0x100]
test eax, eax
je 0x14001edf1
mov r9d, r8d
mov r10d, eax
mov ebx, 0x100
lea r11, [0x140000000]
movzx eax, word [rsp + r9 + 0x30]
cmp ax, bx
movzx eax, ax
jae 0x14001ed94
movzx edx, byte [rax + r11 + 0x4ec0]
jmp 0x14001eda4
shr rax, 8
movzx edx, byte [rax + r11 + 0x4ec0]
add edx, 8
movzx eax, word [rbp + r9 + 0x570]
cmp ax, bx
movzx eax, ax
jae 0x14001edc0
movzx ecx, byte [rax + r11 + 0x4ec0]
jmp 0x14001edd0
shr rax, 8
movzx ecx, byte [rax + r11 + 0x4ec0]
add ecx, 8
mov eax, dword [r11 + rdx*4 + 0x4e70]
add r9, 2
sub eax, dword [r11 + rcx*4 + 0x4e70]
cdq
xor eax, edx
sub eax, edx
add r8d, eax
dec r10
jne 0x14001ed7b
mov eax, r8d
mov rcx, qword [rbp + 0xbb0]
xor rcx, rsp
call fcn.140021740
add rsp, 0xcc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret