Function at 0x140315680
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 [0x140430040]
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 0x1403156eb
movzx eax, al
xor ebp, ebp
add eax, 0xffffffd2
cmp eax, 0x38
ja 0x140315797
movabs rcx, 0x1f8000001f80000
bt rcx, rax
jae 0x140315775
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, reloc.WS2_32.dll_recv
call fcn.140315560
test al, al
jne 0x140315795
lea r14, [rsp + 0x28]
lea r15, [rsp + 0x30]
movabs r12, 0x1f8000001f80000
jmp 0x140315737
mov rcx, r14
mov edx, edi
mov r8d, reloc.WS2_32.dll_recv
mov r9, r15
call fcn.140315560
test al, al
jne 0x140315795
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 0x140315720
movzx ecx, al
add ecx, 0xffffffd2
cmp ecx, 0x38
ja 0x14031587e
bt r12, rcx
jb 0x140315720
test rcx, rcx
jne 0x14031587e
mov bpl, 1
jmp 0x14031577a
test rax, rax
jne 0x140315797
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, reloc.WS2_32.dll_recv
call fcn.140315560
test al, al
je 0x1403157bf
xor ebp, ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1403157ae
call fcn.140278ca0
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 0x1403157f9
movzx ecx, al
add ecx, 0xffffffbf
cmp ecx, 0x25
ja 0x140315875
movabs rdx, 0x3f0000003f
bt rdx, rcx
jae 0x140315875
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, reloc.WS2_32.dll_recv
call fcn.140315560
test al, al
jne 0x140315795
lea r14, [rsp + 0x28]
lea r15, [rsp + 0x30]
movabs r12, 0x3f0000003f
xor ebp, ebp
jmp 0x140315847
mov rcx, r14
mov edx, edi
mov r8d, reloc.WS2_32.dll_recv
mov r9, r15
call fcn.140315560
test al, al
jne 0x140315797
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 0x14031582c
movzx ecx, al
add ecx, 0xffffffbf
cmp ecx, 0x25
ja 0x14031587e
bt r12, rcx
jb 0x14031582c
jmp 0x14031587e
test bpl, bpl
je 0x140315795
movzx eax, al
or eax, 0x20
cmp eax, 0x70
jne 0x140315795
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, reloc.WS2_32.dll_recv
call fcn.140315560
test al, al
jne 0x140315795
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
cmp eax, 0x2d
je 0x1403158be
cmp eax, 0x2b
jne 0x1403158e4
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, reloc.WS2_32.dll_recv
call fcn.140315560
test al, al
jne 0x140315795
mov rax, qword [rsp + 0x28]
mov al, byte [rax]
xor ebp, ebp
cmp al, 0x39
jg 0x140315797
movsx eax, al
add eax, 0xffffffd0
cmp eax, 9
ja 0x140315797
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, reloc.WS2_32.dll_recv
call fcn.140315560
mov bpl, 1
test al, al
jne 0x140315797
lea r14, [rsp + 0x28]
lea r15, [rsp + 0x30]
mov rax, qword [rsp + 0x28]
movsx ecx, byte [rax]
cmp ecx, 0x39
jg 0x14031595a
add ecx, 0xffffffd0
cmp ecx, 9
ja 0x14031595a
mov rcx, r14
mov edx, edi
mov r8d, reloc.WS2_32.dll_recv
mov r9, r15
call fcn.140315560
test al, al
je 0x140315929
jmp 0x140315797
cmp rax, rsi
sete cl
or bl, cl
jne 0x140315797
jmp 0x140315976
inc rax
cmp rax, rsi
je 0x140315797
movzx ecx, byte [rax]
lea edx, [rcx - 9]
cmp edx, 5
jb 0x14031596a
cmp ecx, 0x20
je 0x14031596a
jmp 0x140315795