Function at 0x140001398
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov r15, 4
mov rdi, 5
movabs r10, 0x567e
mov qword [rbp - 0x98], r10
mov dword [rbp - 0x68], 0x1cbb5b6e
mov dword [rbp - 0x44], 0x3196
mov r10, qword [rbp - 0x98]
movabs r9, 0xbd72
mov rsi, r10
imul rsi, r9
mov r10d, dword [rbp - 0x44]
movabs r9, 0x1343
add r10, r9
mov dword [rbp - 0x44], r10d
movabs r10, 0x100000000
mov qword [rbp - 0x40], r10
add rsi, qword [rbp - 0x40]
mov r10d, dword [rbp - 0x68]
sub r10d, 1
mov dword [rbp - 0x68], r10d
mov r10, rdi
sub r10, 5
mov dword [rbp - 0x58], r10d
mov dword [rbp - 0x6c], 0x1c89
movabs r10, 0x3a61
add rsi, r10
mov r10d, dword [rbp - 0x44]
movabs r9, 0x4df27
add r10, r9
mov dword [rbp - 0x44], r10d
mov r10d, dword [rbp - 0x6c]
sub rsi, r10
mov qword [rbp - 0x78], 0x4001c87d
mov r10, r15
sub r10, 1
mov r9d, dword [rbp - 0x6c]
add r10, r9
mov dword [rbp - 0x48], r10d
mov r10d, dword [rbp - 0x48]
mov r10b, byte [rsi + r10]
mov byte [rbp - 0x31], r10b
movzx r10d, byte [rbp - 0x31]
mov dword [rbp - 0xdc], r10d
mov r9d, dword [rbp - 0x68]
mov eax, dword [rbp - 0x58]
mov qword [rbp - 0xd8], rax
mov rax, 0x1e
cqo
idiv rdi
mov r10, rax
mov rax, qword [rbp - 0xd8]
cqo
idiv r10
mov r10, r9
add r10, rax
movzx r10d, r10b
movsxd r9, dword [rbp - 0xdc]
xor r9d, r10d
mov byte [rbp - 0x31], r9b
mov r10d, dword [rbp - 0x48]
lea r10, [r10 + 1]
mov dword [rbp - 0x48], r10d
mov rax, 4
cqo
idiv r15
sub r10, rax
mov r9b, byte [rbp - 0x31]
mov byte [r10 + rsi], r9b
mov r10d, dword [rbp - 0x6c]
mov r9d, dword [rbp - 0x44]
add r10d, r9d
cmp dword [rbp - 0x48], r10d
jb 0x140001432
mov r10d, dword [rbp - 0x58]
lea r10, [r10 + 1]
mov dword [rbp - 0x58], r10d
mov qword [rbp - 0x60], 0x400a8000
mov r10, qword [rbp - 0x40]
add qword [rbp - 0x60], r10
mov r10, qword [rbp - 0x40]
add qword [rbp - 0x78], r10
mov r10, rdi
add r10, r15
sub r10, 3
mov r9d, dword [rbp - 0x58]
cmp r10, r9
jge 0x140001418
mov r14, 0x4005ec7d
mov r10, r15
sub r10, 4
mov dword [rbp - 0x4c], r10d
mov r10d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x60]
mov r8, qword [rbp - 0x78]
mov r8b, byte [r8 + r10]
mov byte [r9 + r10], r8b
mov r10d, r10d
lea r10, [r10 + 1]
mov dword [rbp - 0x4c], r10d
movabs r9, 0x40ae0
cmp r10, r9
jl 0x140001510
mov r13, 0x401e5000
add r13, qword [rbp - 0x40]
add r14, qword [rbp - 0x40]
mov r12, 0x4006e27d
movabs r10, 0x8000000
mov qword [rbp - 0xa0], r10
movabs r10, 0x4006f0bd
mov qword [rbp - 0x80], r10
mov r11, r15
sub r11, 4
mov r10d, r11d
movabs r9, 0xe190
cmp r10, r9
je 0x1400015a9
mov r10d, r11d
mov r10b, byte [r14 + r10]
mov byte [rbp - 0x31], r10b
mov r10d, r11d
mov r9b, byte [rbp - 0x31]
mov byte [r13 + r10], r9b
lea r11, [r11 + 1]
jmp 0x14000157a
add r12, qword [rbp - 0x40]
mov r10, qword [rbp - 0x80]
add r10, qword [rbp - 0x40]
mov qword [rbp - 0x80], r10
mov dword [rbp - 0x50], 0x428
mov r10d, dword [r12]
mov dword [rbp - 0xbc], r10d
mov dword [rbp - 0xcc], 0x13e000
mov r10, r15
sub r10, 4
mov dword [rbp - 0x54], r10d
mov r10d, dword [rbp - 0x50]
movabs r9, 3
imul r10, r9
mov dword [rbp - 0x50], r10d
movabs r9, 0x388
add r10, r9
mov dword [rbp - 0x50], r10d
mov r10, qword [rbp - 0x60]
mov r9d, dword [rbp - 0x50]
sub r10, r9
mov qword [rbp - 0x90], r10
mov r10, r15
shl r10, 1
add r10, r12
mov r9d, dword [rbp - 0x54]
add r10, r9
mov qword [rbp - 0xa8], r10
mov r10w, word [r10]
mov word [rbp - 0x82], r10w
movzx r10d, word [rbp - 0x82]
mov rax, 0x30
cqo
idiv r15
mov rcx, rax
sar r10d, cl
mov word [rbp - 0xaa], r10w
movzx r10d, word [rbp - 0x82]
mov rax, 0x10
cqo
idiv r15
mov rcx, rax
shl r10d, cl
mov word [rbp - 0x62], r10w
movzx r10d, word [rbp - 0x62]
mov rcx, r15
sub rcx, 0
sar r10d, cl
mov word [rbp - 0x62], r10w
mov r10, r15
sub r10, 4
movzx r9d, word [rbp - 0x82]
mov r9d, r9d
cmp r10, r9
je 0x14000176d
mov r10, r15
sub r10, 4
movzx r9d, word [rbp - 0x62]
mov r9d, r9d
cmp r10, r9
jne 0x1400016d7
mov r10d, dword [rbp - 0x54]
mov r9, r15
add r9, rdi
sub r9, 9
cmp r10, r9
jne 0x14000176d
mov r10, qword [rbp - 0x90]
sub r10, qword [rbp - 0xa0]
mov qword [rbp - 0xc8], r10
mov r10d, dword [rbp - 0x54]
mov rax, 0xa
cqo
idiv rdi
add r10, rax
mov dword [rbp - 0x54], r10d
movzx r10d, word [rbp - 0xaa]
mov r10d, r10d
mov r9, r15
add r9, 6
cmp r10, r9
jne 0x140001753
movzx r10d, word [rbp - 0x62]
mov r9d, dword [rbp - 0xbc]
add r10d, r9d
mov r10d, r10d
add r10, qword [rbp - 0x90]
mov qword [rbp - 0xb8], r10
mov r9, rdi
sub r9, 5
shl r9, 3
mov r8, qword [rbp - 0xc8]
add r8, qword [r10]
mov qword [r9 + r10], r8
mov r10, r15
sub r10, 3
shl r10, 2
mov r9d, dword [rbp - 0x54]
cmp dword [r10 + r12], r9d
jbe 0x14000176d
jmp 0x140001607
mov r10, rdi
sub r10, 4
shl r10, 2
mov r10d, dword [r10 + r12]
add r10, r12
mov r12, r10
mov r10, qword [rbp - 0x80]
cmp r12, r10
jae 0x1400017ad
mov r10, rdi
add r10, r15
mov r9, r10
sub r9, 9
sub r10, 8
shl r10, 2
mov r10d, dword [r10 + r12]
cmp r9, r10
jne 0x1400015b9
add rsp, 0xb0