Function at 0x180145b30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov r14, r9
mov rax, r8
mov rdi, rdx
mov r12, rcx
mov r15, rdx
mov qword [rsp + 0x30], rdx
mov rsi, rdx
lea rbx, [r8 - 1]
mov qword [rbp + 0x88], rbx
mov r13, rbx
sar r13, 1
cmp rdx, r13
jge 0x180145d2c
lea rax, [rbp - 0x10]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
xor r15d, r15d
nop dword [rax]
lea r14, [rsi + rsi]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x48], rax
imul rsi, r14, 0x70
add rsi, r12
lea rdx, [rsi + 0x70]
lea rcx, [rbp - 0x38]
call fcn.1800a6880
nop
movzx eax, byte [rsi + 0x90]
mov byte [rbp - 0x18], al
mov qword [rbp + 0x28], r15
mov rcx, qword [rsi + 0xd0]
test rcx, rcx
je 0x180145be9
mov rax, qword [rcx]
lea rdx, [rbp - 0x10]
call qword [rax]
mov qword [rbp + 0x28], rax
mov rax, qword [rsi + 0xd8]
mov qword [rbp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
lea rdx, [rsi + 0xe0]
lea rcx, [rsp + 0x58]
call fcn.1800a6880
nop
movzx edx, byte [rsi + 0x100]
mov byte [rsp + 0x78], dl
mov qword [rbp - 0x48], r15
mov rcx, qword [rsi + 0x140]
test rcx, rcx
je 0x180145c3d
mov rax, qword [rcx]
lea rdx, [rbp - 0x80]
call qword [rax]
mov qword [rbp - 0x48], rax
movzx edx, byte [rsp + 0x78]
mov rax, qword [rsi + 0x148]
mov qword [rbp - 0x40], rax
cmp dl, byte [rbp - 0x18]
setb bl
lea rcx, [rsp + 0x58]
call fcn.18012c280
lea rcx, [rbp - 0x38]
call fcn.18012c280
movzx esi, bl
xor rsi, 1
inc r14
add rsi, r14
imul r14, rsi, 0x70
add r14, r12
imul r15, rdi, 0x70
add r15, r12
mov rdx, r14
mov rcx, r15
call fcn.1800b4720
movzx eax, byte [r14 + 0x20]
mov byte [r15 + 0x20], al
lea rbx, [r14 + 0x28]
lea rdi, [r15 + 0x28]
cmp rdi, rbx
je 0x180145cf8
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x180145cba
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], 0
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x180145cf8
cmp rcx, rbx
jne 0x180145cec
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
mov qword [rdi + 0x38], rax
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x180145cf8
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
jmp 0x180145cf0
mov qword [rdi + 0x38], rcx
mov qword [rbx + 0x38], 0
mov rax, qword [r14 + 0x68]
mov qword [r15 + 0x68], rax
mov rdi, rsi
cmp rsi, r13
mov r15d, 0
jl 0x180145ba0
mov rax, qword [rbp + 0x90]
mov rbx, qword [rbp + 0x88]
mov r14, qword [rbp + 0x98]
mov r15, qword [rsp + 0x30]
cmp rsi, r13
jne 0x180145d4f
test al, 1
jne 0x180145d4f
imul rdx, rax, 0x70
add rdx, 0xffffffffffffff90
add rdx, r12
imul rcx, rdi, 0x70
add rcx, r12
call fcn.180147b50
mov rdi, rbx
movzx eax, byte [rbp + 0xa0]
mov byte [rbp + 0xa0], al
mov r9, r14
mov r8, r15
mov rdx, rdi
mov rcx, r12
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp 0x180145d90
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov r13, r9
mov rdi, rdx
mov r12, rcx
lea rsi, [rdx - 1]
sar rsi, 1
cmp r8, rdx
jge 0x180145f34
lea rax, [rbp - 0x38]
mov qword [rbp + 0x50], rax
lea rax, [rsp + 0x58]
mov qword [rbp + 0x58], rax
xor ebx, ebx
nop dword [rax]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov rdx, r13
lea rcx, [rbp - 0x60]
call fcn.1800a6880
nop
movzx eax, byte [r13 + 0x20]
mov byte [rbp - 0x40], al
mov qword [rbp], rbx
mov rcx, qword [r13 + 0x60]
test rcx, rcx
je 0x180145e18
mov rax, qword [rcx]
lea rdx, [rbp - 0x38]
call qword [rax]
mov qword [rbp], rax
mov rax, qword [r13 + 0x68]
mov qword [rbp + 8], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
imul r14, rsi, 0x70
add r14, r12
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.1800a6880
nop
movzx edx, byte [r14 + 0x20]
mov byte [rsp + 0x50], dl
mov qword [rbp - 0x70], rbx
mov rcx, qword [r14 + 0x60]
test rcx, rcx
je 0x180145e68
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [rax]
mov qword [rbp - 0x70], rax
movzx edx, byte [rsp + 0x50]
mov rax, qword [r14 + 0x68]
mov qword [rbp - 0x68], rax
cmp dl, byte [rbp - 0x40]
setb bl
lea rcx, [rsp + 0x30]
call fcn.18012c280
lea rcx, [rbp - 0x60]
call fcn.18012c280
test bl, bl
je 0x180145f34
imul r15, rdi, 0x70
add r15, r12
mov rdx, r14
mov rcx, r15
call fcn.1800b4720
movzx eax, byte [r14 + 0x20]
mov byte [r15 + 0x20], al
lea rbx, [r14 + 0x28]
lea rdi, [r15 + 0x28]
cmp rdi, rbx
je 0x180145f14
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x180145ed6
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], 0
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x180145f14
cmp rcx, rbx
jne 0x180145f08
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
mov qword [rdi + 0x38], rax
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x180145f14
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
jmp 0x180145f0c
mov qword [rdi + 0x38], rcx
mov qword [rbx + 0x38], 0
mov rax, qword [r14 + 0x68]
mov qword [r15 + 0x68], rax
mov rdi, rsi
dec rsi
sar rsi, 1
cmp qword [rbp + 0x60], rdi
mov ebx, 0
jl 0x180145de0
imul rcx, rdi, 0x70
add rcx, r12
mov rdx, r13
mov rbx, qword [rsp + 0x168]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.180147b50