Function at 0x1800764e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x1c0], 0
jne 0x18007650e
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x1c8], 0
je 0x1800767cb
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x1c0], 0
je 0x180076739
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xc0
jb 0x180076737
mov eax, dword [rsp + 0x20]
and eax, 0x20
test eax, eax
jne 0x18007656f
mov eax, dword [rsp + 0x20]
and eax, 0x1f
shl eax, 6
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
and ecx, 0x3f
or eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x180076737
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
jne 0x1800765be
mov eax, dword [rsp + 0x20]
and eax, 0xf
shl eax, 0xc
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
and ecx, 0x3f
shl ecx, 6
or eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
and ecx, 0x3f
or eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x180076737
mov eax, dword [rsp + 0x20]
and eax, 8
test eax, eax
jne 0x180076627
mov eax, dword [rsp + 0x20]
and eax, 7
shl eax, 0x12
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
and ecx, 0x3f
shl ecx, 0xc
or eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
and ecx, 0x3f
shl ecx, 6
or eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
and ecx, 0x3f
or eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x180076737
mov eax, dword [rsp + 0x20]
and eax, 4
test eax, eax
jne 0x1800766aa
mov eax, dword [rsp + 0x20]
and eax, 3
shl eax, 0x18
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
and ecx, 0x3f
shl ecx, 0x12
or eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
and ecx, 0x3f
shl ecx, 0xc
or eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
and ecx, 0x3f
shl ecx, 6
or eax, ecx
mov ecx, 1
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
and ecx, 0x3f
or eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x180076737
mov eax, dword [rsp + 0x20]
and eax, 1
shl eax, 0x1e
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
and ecx, 0x3f
shl ecx, 0x18
or eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
and ecx, 0x3f
shl ecx, 0x12
or eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
and ecx, 0x3f
shl ecx, 0xc
or eax, ecx
mov ecx, 1
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
and ecx, 0x3f
shl ecx, 6
or eax, ecx
mov ecx, 1
imul rcx, rcx, 5
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
and ecx, 0x3f
or eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x180076745
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x7f
ja 0x180076766
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x80]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x28], eax
jmp 0x1800767c9
mov eax, dword [rsp + 0x20]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
cdqe
lea rcx, [0x1800cb070]
movzx eax, word [rcx + rax*2]
imul eax, eax, 0x80
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x20]
cdq
and edx, 0x7f
add eax, edx
and eax, 0x7f
sub eax, edx
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
cdqe
lea rcx, [0x1800d23f0]
movzx eax, word [rcx + rax*2]
imul rax, rax, 0xc
lea rcx, [0x1800cf470]
mov eax, dword [rcx + rax + 4]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
jmp 0x1800767ef
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x80]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x28], eax
xor eax, eax
test eax, eax
jne 0x1800767ef
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x20], 0x7f
ja 0x18007681a
cmp dword [rsp + 0x24], 0x20
jne 0x18007681a
mov eax, 0x20
jmp 0x18007688f
mov ecx, dword [rsp + 0x24]
call fcn.180078870
test eax, eax
jne 0x18007682b
xor eax, eax
jmp 0x18007688f
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x1c0], 0
je 0x18007688b
cmp dword [rsp + 0x20], 0x7f
jbe 0x18007688b
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
and eax, 0x3f
mov eax, eax
lea rcx, [0x1800ca120]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x24]
and eax, 0x3f
test eax, eax
jne 0x18007687e
mov eax, dword [rsp + 0x2c]
dec eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x24]
shr eax, 6
mov dword [rsp + 0x24], eax
jmp 0x18007685c
mov eax, dword [rsp + 0x2c]
shl eax, 8
or eax, dword [rsp + 0x24]
jmp 0x18007688f
mov eax, dword [rsp + 0x24]
add rsp, 0x48
ret