Function at 0x1800253a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x58
mov qword [rsp + 0x50], rsi
mov r13, r8
mov qword [rsp + 0x48], r15
mov r14, rdx
lea r15, [r8 - 1]
mov qword [rsp + 0x30], r9
sar r15, 1
mov rbp, rcx
mov qword [rsp + 0x38], rdx
mov rsi, rdx
cmp rdx, r15
jge 0x1800254f1
nop
add rsi, rsi
imul rdx, rsi, 0xd0
add rdx, rbp
movzx eax, byte [rdx + 0x1a0]
cmp al, byte [rdx + 0xd0]
je 0x180025403
cmp al, 0x64
setne al
jmp 0x180025457
lea rcx, [rdx + 0x180]
add rdx, 0x250
cmp qword [rdx + 0x18], 0x10
mov rdi, qword [rdx + 0x10]
jb 0x18002541f
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 0x10
mov rbx, qword [rcx + 0x10]
jb 0x18002542d
mov rcx, qword [rcx]
cmp rdi, rbx
mov r8, rbx
cmovb r8, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x180025454
cmp rbx, rdi
jae 0x18002544c
mov eax, 0xffffffff
jmp 0x180025454
xor eax, eax
cmp rbx, rdi
seta al
shr eax, 0x1f
movzx ecx, al
xor rcx, 1
inc rcx
add rsi, rcx
imul rdi, rsi, 0xd0
imul rbx, r14, 0xd0
add rdi, rbp
movzx eax, byte [rdi]
lea rdx, [rdi + 8]
add rbx, rbp
lea rcx, [rbx + 8]
mov byte [rbx], al
call fcn.18001d0a0
lea rdx, [rdi + 0x28]
lea rcx, [rbx + 0x28]
call fcn.18001d0a0
lea rdx, [rdi + 0x48]
lea rcx, [rbx + 0x48]
call fcn.18001d0a0
lea rdx, [rdi + 0x68]
lea rcx, [rbx + 0x68]
call fcn.18001d0a0
mov rax, qword [rdi + 0x88]
lea rdx, [rdi + 0x90]
lea rcx, [rbx + 0x90]
mov qword [rbx + 0x88], rax
call fcn.18001d0a0
lea rdx, [rdi + 0xb0]
lea rcx, [rbx + 0xb0]
call fcn.18001d0a0
mov r14, rsi
cmp rsi, r15
jl 0x1800253e0
cmp rsi, r15
mov r15, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
jne 0x18002559a
test r13b, 1
jne 0x18002559a
imul rbx, r13, 0xd0
imul rdi, r14, 0xd0
add rbx, 0xffffffffffffff30
add rbx, rbp
movzx eax, byte [rbx]
lea rdx, [rbx + 8]
add rdi, rbp
lea rcx, [rdi + 8]
mov byte [rdi], al
call fcn.18001d0a0
lea rdx, [rbx + 0x28]
lea rcx, [rdi + 0x28]
call fcn.18001d0a0
lea rdx, [rbx + 0x48]
lea rcx, [rdi + 0x48]
call fcn.18001d0a0
lea rdx, [rbx + 0x68]
lea rcx, [rdi + 0x68]
call fcn.18001d0a0
mov rax, qword [rbx + 0x88]
lea rdx, [rbx + 0x90]
lea rcx, [rdi + 0x90]
mov qword [rdi + 0x88], rax
call fcn.18001d0a0
lea rdx, [rbx + 0xb0]
lea rcx, [rdi + 0xb0]
call fcn.18001d0a0
lea r14, [r13 - 1]
mov r9, qword [rsp + 0x30]
mov rdx, r14
mov r8, qword [rsp + 0x38]
mov rcx, rbp
add rsp, 0x58
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
jmp 0x180025f90
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x20], r8
mov rdi, r9
mov rsi, r8
mov r13, rdx
mov r12, rcx
cmp r8, rdx
jge 0x1800260ed
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
nop dword [rax + rax]
lea rbp, [r13 - 1]
sar rbp, 1
imul r14, rbp, 0xd0
add r14, r12
movzx r15d, byte [r14]
cmp r15b, byte [rdi]
je 0x180025ff3
cmp r15b, 0x64
setne al
jmp 0x180026052
lea rdx, [r14 + 0xb0]
cmp qword [rdx + 0x18], 0x10
lea rcx, [rdi + 0xb0]
mov rsi, qword [rdx + 0x10]
jb 0x18002600f
mov rdx, qword [rdx]
cmp qword [rdi + 0xc8], 0x10
mov rbx, qword [rdi + 0xc0]
jb 0x180026023
mov rcx, qword [rcx]
cmp rsi, rbx
mov r8, rbx
cmovb r8, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18002604a
cmp rbx, rsi
jae 0x180026042
mov eax, 0xffffffff
jmp 0x18002604a
xor eax, eax
cmp rbx, rsi
seta al
mov rsi, qword [rsp + 0x20]
shr eax, 0x1f
test al, al
je 0x1800260db
imul rbx, r13, 0xd0
lea rdx, [r14 + 8]
add rbx, r12
lea rcx, [rbx + 8]
mov byte [rbx], r15b
call fcn.18001d0a0
lea rdx, [r14 + 0x28]
lea rcx, [rbx + 0x28]
call fcn.18001d0a0
lea rdx, [r14 + 0x48]
lea rcx, [rbx + 0x48]
call fcn.18001d0a0
lea rdx, [r14 + 0x68]
lea rcx, [rbx + 0x68]
call fcn.18001d0a0
mov rax, qword [r14 + 0x88]
lea rdx, [r14 + 0x90]
lea rcx, [rbx + 0x90]
mov qword [rbx + 0x88], rax
call fcn.18001d0a0
lea rdx, [r14 + 0xb0]
lea rcx, [rbx + 0xb0]
call fcn.18001d0a0
mov r13, rbp
cmp rsi, rbp
jl 0x180025fd0
mov r14, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x80]
mov r15, qword [rsp + 0x30]
movzx eax, byte [rdi]
lea rdx, [rdi + 8]
imul rbx, r13, 0xd0
add rbx, r12
lea rcx, [rbx + 8]
mov byte [rbx], al
call fcn.18001d0a0
lea rdx, [rdi + 0x28]
lea rcx, [rbx + 0x28]
call fcn.18001d0a0
lea rdx, [rdi + 0x48]
lea rcx, [rbx + 0x48]
call fcn.18001d0a0
lea rdx, [rdi + 0x68]
lea rcx, [rbx + 0x68]
call fcn.18001d0a0
mov rax, qword [rdi + 0x88]
lea rdx, [rdi + 0x90]
lea rcx, [rbx + 0x90]
mov qword [rbx + 0x88], rax
call fcn.18001d0a0
lea rdx, [rdi + 0xb0]
lea rcx, [rbx + 0xb0]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbx
jmp fcn.18001d0a0