Function at 0x1403a6ba0
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 [0x140516040]
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 cl, dl
jne 0x1403a6c0b
movzx eax, al
xor ebp, ebp
add eax, 0xffffffd2
cmp eax, 0x38
ja 0x1403a6cb7
movabs rcx, 0x1f8000001f80000
bt rcx, rax
jae 0x1403a6c95
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, 0x10
call fcn.1403a6a80
test al, al
jne 0x1403a6cb5
lea r14, [rsp + 0x28]
lea r15, [rsp + 0x30]
movabs r12, 0x1f8000001f80000
jmp 0x1403a6c57
mov rcx, r14
mov edx, edi
mov r8d, 0x10
mov r9, r15
call fcn.1403a6a80
test al, al
jne 0x1403a6cb5
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x40
setl cl
lea edx, [rax - 0x30]
cmp edx, 0xa
setb dl
test cl, dl
jne 0x1403a6c40
movzx ecx, al
add ecx, 0xffffffd2
cmp ecx, 0x38
ja 0x1403a6d9e
bt r12, rcx
jb 0x1403a6c40
test rcx, rcx
jne 0x1403a6d9e
mov bpl, 1
jmp 0x1403a6c9a
test rax, rax
jne 0x1403a6cb7
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, 0x10
call fcn.1403a6a80
test al, al
je 0x1403a6cdf
xor ebp, ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x1403a6cce
call fcn.14029bbb0
int3
mov eax, ebp
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x40
setl cl
lea edx, [rax - 0x30]
cmp edx, 0xa
setb dl
test cl, dl
jne 0x1403a6d19
movzx ecx, al
add ecx, 0xffffffbf
cmp ecx, 0x25
ja 0x1403a6d95
movabs rdx, 0x3f0000003f
bt rdx, rcx
jae 0x1403a6d95
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, 0x10
call fcn.1403a6a80
test al, al
jne 0x1403a6cb5
lea r14, [rsp + 0x28]
lea r15, [rsp + 0x30]
movabs r12, 0x3f0000003f
xor ebp, ebp
jmp 0x1403a6d67
mov rcx, r14
mov edx, edi
mov r8d, 0x10
mov r9, r15
call fcn.1403a6a80
test al, al
jne 0x1403a6cb7
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x40
setl cl
lea edx, [rax - 0x30]
cmp edx, 0xa
setb dl
test cl, dl
jne 0x1403a6d4c
movzx ecx, al
add ecx, 0xffffffbf
cmp ecx, 0x25
ja 0x1403a6d9e
bt r12, rcx
jb 0x1403a6d4c
jmp 0x1403a6d9e
test bpl, bpl
je 0x1403a6cb5
movzx eax, al
or eax, 0x20
cmp eax, 0x70
jne 0x1403a6cb5
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, 0x10
call fcn.1403a6a80
test al, al
jne 0x1403a6cb5
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
cmp eax, 0x2d
je 0x1403a6dde
cmp eax, 0x2b
jne 0x1403a6e04
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, 0x10
call fcn.1403a6a80
test al, al
jne 0x1403a6cb5
mov rax, qword [rsp + 0x28]
mov al, byte [rax]
xor ebp, ebp
cmp al, 0x39
jg 0x1403a6cb7
movsx eax, al
add eax, 0xffffffd0
cmp eax, 9
ja 0x1403a6cb7
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, 0x10
call fcn.1403a6a80
mov bpl, 1
test al, al
jne 0x1403a6cb7
lea r14, [rsp + 0x28]
lea r15, [rsp + 0x30]
mov rax, qword [rsp + 0x28]
movsx ecx, byte [rax]
cmp ecx, 0x39
jg 0x1403a6e7a
add ecx, 0xffffffd0
cmp ecx, 9
ja 0x1403a6e7a
mov rcx, r14
mov edx, edi
mov r8d, 0x10
mov r9, r15
call fcn.1403a6a80
test al, al
je 0x1403a6e49
jmp 0x1403a6cb7
cmp rax, rsi
sete cl
or cl, bl
jne 0x1403a6cb7
jmp 0x1403a6e96
inc rax
cmp rax, rsi
je 0x1403a6cb7
movzx ecx, byte [rax]
lea edx, [rcx - 9]
cmp edx, 5
jb 0x1403a6e8a
cmp ecx, 0x20
je 0x1403a6e8a
jmp 0x1403a6cb5