Function at 0x1400a4570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov rax, qword [0x140104508]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rsi, qword [rcx + 0xdef8]
mov rax, rcx
movsxd rbx, r8d
mov r10, rdx
mov qword [rsp + 0x50], rcx
xor ebp, ebp
mov rcx, qword [rcx + 0x88]
mov rdi, rbx
mov r15, qword [rax + 0x110]
mov r13d, ebp
mov r11, qword [rdx + rbx*8 + 0x1030]
lea rax, [rdx + 0x1000]
mov r9, qword [rax + rbx*8]
lea rax, [rax + rbx*8]
mov qword [rsp + 0x78], rax
lea r8, [rbx + 2]
shl r8, 9
lea rax, [rbx + rbx*2]
add r8, rdx
mov qword [rsp + 0x58], rcx
lea r14, [rbx + 5]
mov qword [rsp + 0x48], rdx
shl r14, 9
add r14, rdx
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x40], r15
lea rdx, [rax + rax]
mov rax, qword [r10 + rdx*8 + 0x1060]
mov qword [rsp + 0x70], r9
mov qword [rsp + 0x68], r11
mov qword [rsp + 0x38], r8
movzx ecx, word [rax]
mov rax, qword [r10 + rdx*8 + 0x1068]
mov word [rsp + 0x30], cx
movzx ecx, word [rax]
mov word [rsp + 0x32], cx
test r11, r11
jle 0x1400a4833
nop dword [rax]
mov rdx, qword [r9 + r13*8]
mov rax, rbp
mov qword [rsp + 0x60], rdx
nop dword [rax]
cmp rax, 0x82
jae 0x1400a48ae
mov word [rsp + rax + 0x80], bp
add rax, 2
cmp rax, 0x80
jl 0x1400a4660
mov ecx, dword [r15 + rdx*4]
mov r11d, ebp
mov eax, ecx
mov r15, rbp
and eax, 0x700
cmp eax, 0x100
lea rax, [rdi + rdi*2]
setne r15b
shr rcx, 2
and ecx, 0x3f
add rcx, rax
lea rax, [r15 + rcx*2]
mov r12, qword [r10 + rax*8 + 0x1060]
nop dword [rax]
nop dword [rax + rax]
movsxd rax, r11d
mov ebp, r11d
lea rcx, [rax*8]
mov rax, qword [rcx + r14]
lea rbx, [rcx + r14]
test rax, rax
jne 0x1400a47b5
lea rdi, [rcx + r8]
movsxd r8, dword [rcx + r8]
lea rax, [0x1400dbde0]
movzx r9d, byte [r8 + rsi]
inc r8d
mov r10d, dword [rax + r9*4]
cmp r9b, 0xf
jae 0x1400a4723
cmp r9b, 0xc
sbb ecx, ecx
and ecx, 0x15
cmp r9b, 2
sbb eax, eax
and eax, 0xfffffff3
add ecx, eax
movsxd rax, r8d
movzx edx, byte [rax + rsi]
shl edx, cl
add r10d, edx
inc r8d
mov eax, r10d
sar rax, 8
and eax, 0xfff
test r9b, r9b
jne 0x1400a4753
movsxd rcx, r8d
inc r8d
movzx edx, byte [rcx + rsi]
movabs rcx, 0x7fffffffffffffff
shl rdx, 8
add rax, rdx
cmove rax, rcx
movsxd rcx, r8d
mov edx, r10d
and edx, 0x100000
mov qword [rbx], rax
mov qword [rdi], rcx
neg edx
sar edx, 0x15
movzx ecx, r10b
add r11d, ecx
sar r10d, 0x15
movsxd r8, r11d
xor dx, r10w
movsx edx, dx
movsx ecx, word [r12 + r8*2]
imul edx, ecx
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [r8 + rcx]
mov r8, qword [rsp + 0x38]
mov word [rsp + rcx*2 + 0x80], dx
xor ecx, ecx
test rax, rax
sete cl
add r11d, ecx
cmp r11d, 0x40
jl 0x1400a46c0
jmp 0x1400a47bc
dec rax
mov qword [rcx + r14], rax
mov rdx, qword [rsp + 0x60]
lea r9, [rsp + 0x80]
mov rax, qword [rsp + 0x40]
movsxd rbx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x50]
mov r8d, ebx
movzx eax, word [rax + rdx*4 + 2]
mov word [rsp + 0x80], ax
movzx eax, word [rsp + r15*2 + 0x30]
mov word [rsp + 0x28], ax
mov dword [rsp + 0x20], ebp
call 0x1400ad240
mov r11, qword [rsp + 0x68]
inc r13
mov r8, qword [rsp + 0x38]
mov rdi, rbx
mov r10, qword [rsp + 0x48]
mov ebp, 0
mov r9, qword [rsp + 0x70]
mov r15, qword [rsp + 0x40]
cmp r13, r11
jl 0x1400a4650
mov rcx, qword [rsp + 0x78]
mov r9, qword [rcx]
jmp 0x1400a483e
lea rcx, [r10 + 0x1000]
lea rcx, [rcx + rbx*8]
mov r8, qword [r10 + rdi*8 + 0x1048]
lea rax, [r9 + r11*8]
mov qword [rcx], rax
mov r9d, 2
mov rcx, qword [rsp + 0x50]
mov rax, r8
neg rax
mov dword [rsp + 0x28], ebx
shl rax, 3
add qword [r10 + rdi*8 + 0x1018], rax
mov rdx, qword [r10 + rdi*8 + 0x1018]
mov dword [rsp + 0x20], 1
call 0x1400ad170
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400bf680
mov rbx, qword [rsp + 0x178]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400bfc54
int3