Function at 0x140320ba0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov ebx, r9d
mov edi, r8d
mov rsi, rdx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
movsx eax, byte [rcx]
cmp eax, 0x40
setl cl
lea edx, [rax - 0x30]
cmp edx, 0xa
setb dl
test dl, cl
je 0x140320c25
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, 0x10
call fcn.140214130
test al, al
je 0x140320d09
xor ebp, ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140253b80
mov eax, ebp
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movzx eax, al
xor ebp, ebp
add eax, 0xffffffd2
cmp eax, 0x38
ja 0x140320c07
movabs rcx, 0x1f8000001f80000
bt rcx, rax
jb 0x140320be6
mov r14b, 1
test rax, rax
jne 0x140320c07
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, 0x10
call fcn.140214130
test al, al
jne 0x140320c05
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x40
setl cl
lea edx, [rax - 0x30]
cmp edx, 0xa
setb dl
test dl, cl
je 0x140320d72
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, 0x10
call fcn.140214130
test al, al
jne 0x140320c05
lea r14, [rsp + 0x28]
lea r15, [rsp + 0x30]
movabs r12, 0x3f0000003f
xor ebp, ebp
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x40
setl cl
lea edx, [rax - 0x30]
cmp edx, 0xa
setb dl
test dl, cl
jne 0x140320ced
movzx ecx, al
add ecx, 0xffffffbf
cmp ecx, 0x25
ja 0x140320d9a
bt r12, rcx
jae 0x140320d9a
mov rcx, r14
mov edx, edi
mov r8d, 0x10
mov r9, r15
call fcn.140214130
test al, al
je 0x140320cb9
jmp 0x140320c07
lea r14, [rsp + 0x28]
lea r15, [rsp + 0x30]
movabs r12, 0x1f8000001f80000
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x40
setl cl
lea edx, [rax - 0x30]
cmp edx, 0xa
setb dl
test dl, cl
jne 0x140320d49
movzx ecx, al
add ecx, 0xffffffd2
cmp ecx, 0x38
ja 0x140320d9a
bt r12, rcx
jae 0x140320d65
mov rcx, r14
mov edx, edi
mov r8d, 0x10
mov r9, r15
call fcn.140214130
test al, al
je 0x140320d1d
jmp 0x140320c05
test rcx, rcx
jne 0x140320d9a
xor r14d, r14d
jmp 0x140320c4a
movzx ecx, al
add ecx, 0xffffffbf
cmp ecx, 0x25
ja 0x140320d91
movabs rdx, 0x3f0000003f
bt rdx, rcx
jb 0x140320c84
test r14b, r14b
jne 0x140320c05
movzx eax, al
or eax, 0x20
cmp eax, 0x70
jne 0x140320c05
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, 0x10
call fcn.140214130
test al, al
jne 0x140320c05
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
cmp eax, 0x2d
je 0x140320dda
cmp eax, 0x2b
jne 0x140320e00
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, 0x10
call fcn.140214130
test al, al
jne 0x140320c05
mov rax, qword [rsp + 0x28]
mov al, byte [rax]
movsx ecx, al
add ecx, 0xffffffd0
xor ebp, ebp
cmp ecx, 9
ja 0x140320c07
cmp al, 0x39
jg 0x140320c07
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, 0x10
call fcn.140214130
mov bpl, 1
test al, al
jne 0x140320c07
lea r14, [rsp + 0x28]
lea r15, [rsp + 0x30]
mov rax, qword [rsp + 0x28]
movsx ecx, byte [rax]
lea edx, [rcx - 0x30]
cmp edx, 9
ja 0x140320e76
cmp cl, 0x39
jg 0x140320e76
mov rcx, r14
mov edx, edi
mov r8d, 0x10
mov r9, r15
call fcn.140214130
test al, al
je 0x140320e45
jmp 0x140320c07
cmp rax, rsi
je 0x140320c07
test bl, bl
jne 0x140320c07
movzx ecx, byte [rax]
lea edx, [rcx - 9]
cmp edx, 5
jae 0x140320e9f
inc rax
cmp rax, rsi
jne 0x140320e87
jmp 0x140320c07
cmp ecx, 0x20
je 0x140320e92
jmp 0x140320c05