Function at 0x1400d2ff0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov rax, qword [0x14027c048]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rax, qword [rcx + 0x8a8]
cmp byte [rax + 0xa], 0
je 0x1400d32d8
mov rsi, rcx
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x44], 0
mov byte [rsp + 0x3f], 0
mov r12d, dword [rcx + 8]
test r12, r12
je 0x1400d328d
mov bl, 1
xor r10d, r10d
xor r15d, r15d
xor edi, edi
jmp 0x1400d307c
xor r10d, r10d
nop word cs:[rax + rax]
inc rdi
cmp rdi, r12
je 0x1400d328d
mov rax, qword [rsi]
mov rcx, rdi
shl rcx, 7
lea r14, [rcx + rdi*8]
mov ecx, dword [rax + r14 + 0x18]
test ecx, ecx
je 0x1400d3140
mov dword [rsp + 0x40], edi
cmp ecx, 1
jne 0x1400d30b0
xor ecx, ecx
test r15b, r15b
je 0x1400d30c3
xor edx, edx
jmp 0x1400d30dd
mov rcx, qword [rsi + 0x8a8]
cmp byte [rcx + 0xb], 0
sete cl
test r15b, r15b
jne 0x1400d30a7
test bl, 1
jne 0x1400d30cc
xor edx, edx
jmp 0x1400d30da
mov rdx, qword [rsi + 0x8a8]
cmp byte [rdx + 0xc], 0
setne dl
xor dl, 1
or cl, dl
cmp cl, 1
jne 0x1400d3136
lea rax, [0x140242150]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x44]
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x4c]
lea r9, [rsp + 0x48]
call fcn.1400d5840
xor r10d, r10d
mov rax, qword [rsi]
mov byte [rsp + 0x3f], 0
mov bl, 1
xor r15d, r15d
mov rax, qword [rax + r14]
cmp word [rax + 0x10], 4
movzx ebx, bl
cmovne ebx, r10d
cmp dword [rax + 0x5c], 0
je 0x1400d3070
mov rbp, qword [rax + 0xd0]
test rbp, rbp
je 0x1400d3070
movzx eax, word [rbp + 0x10]
mov r13d, 1
cmp ax, 0x16
jne 0x1400d31a1
mov rax, qword [rbp + 0xc8]
test rax, rax
je 0x1400d3070
mov rbp, qword [rax + 0xd0]
test rbp, rbp
je 0x1400d3070
movzx eax, word [rbp + 0x10]
xor r13d, r13d
cmp ax, 5
jne 0x1400d3070
mov rax, qword [rbp + 0xd0]
test rax, rax
je 0x1400d3070
movzx ecx, word [rax + 0x10]
lea edx, [rcx - 7]
cmp dx, 6
jb 0x1400d3070
lea edx, [rcx - 0xd]
cmp edx, 6
jb 0x1400d3070
cmp ecx, 1
je 0x1400d3070
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400d3070
call fcn.14010b0e0
cmp eax, 0xc
jne 0x1400d305f
mov rax, qword [rbp + 0xd8]
cmp dword [rax + 0x5c], r13d
mov r10d, 0
jne 0x1400d3070
mov eax, dword [rsp + 0x44]
test eax, eax
cmove eax, edi
mov byte [rsp + 0x3f], 1
mov dword [rsp + 0x44], eax
mov rdx, qword [rsi]
mov eax, dword [rdx + r14 + 0x14]
xor ecx, ecx
sub ecx, dword [rdx + r14 + 0x64]
mov r8d, edi
mov r8d, r8d
mov r9, r8
shl r9, 7
lea r9, [r9 + r8*8]
cmp dword [rdx + r9 + 0x18], 0
jne 0x1400d325f
add ecx, dword [rdx + r9 + 0x64]
add ecx, dword [rdx + r9 + 0x6c]
inc r8d
cmp r12d, r8d
jne 0x1400d3237
mov rdx, qword [rsi + 0x8a8]
mov edx, dword [rdx + 0x70]
sub edx, ecx
mov ecx, dword [rsp + 0x4c]
cmp ecx, eax
cmova eax, ecx
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x48]
cmp edx, eax
cmovae edx, eax
mov dword [rsp + 0x48], edx
mov r15b, 1
jmp 0x1400d3070
mov dword [rsp + 0x40], r12d
lea rax, [0x140242150]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x44]
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x4c]
lea r9, [rsp + 0x48]
call fcn.1400d5840
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1401a5de0
nop
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret