Function at 0x1800adfcb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1801d6b80
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x180269140]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x88], 0
jne 0x1801d6bcb
lea rax, [0x18026d180]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x78], 0
jne 0x1801d6bf4
lea rax, [0x180221934]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x80], 0
jne 0x1801d6c0b
mov rax, 0xfffffffffffffffe
jmp 0x1801d6f3e
mov byte [rsp + 0x20], 0
mov byte [rsp + 0x21], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + 6]
test eax, eax
jne 0x1801d6c34
mov byte [rsp + 0x22], 1
jmp 0x1801d6c39
mov byte [rsp + 0x22], 0
movzx eax, byte [rsp + 0x22]
mov byte [rsp + 0x2c], al
movzx eax, byte [rsp + 0x2c]
test eax, eax
je 0x1801d6d0d
mov rcx, qword [rsp + 0x78]
call fcn.1800b20f8
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax]
mov byte [rsp + 0x2d], al
mov rax, qword [rsp + 0x78]
inc rax
mov qword [rsp + 0x78], rax
movzx eax, byte [rsp + 0x2d]
mov byte [rsp + 0x23], al
cmp dword [rsp + 0x30], 0
je 0x1801d6c8d
cmp dword [rsp + 0x30], 1
jne 0x1801d6cab
cmp qword [rsp + 0x70], 0
je 0x1801d6ca1
movzx eax, byte [rsp + 0x23]
mov rcx, qword [rsp + 0x70]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x30]
jmp 0x1801d6f3e
cmp dword [rsp + 0x30], 2
jl 0x1801d6cc4
cmp dword [rsp + 0x30], 4
jg 0x1801d6cc4
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x20], al
jmp 0x1801d6cde
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call fcn.1800b35bb
jmp 0x1801d6f3e
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x23]
movzx ecx, byte [rsp + 0x20]
mov edx, 7
sub edx, ecx
mov ecx, edx
mov edx, 1
shl edx, cl
mov ecx, edx
dec ecx
and eax, ecx
mov dword [rsp + 0x28], eax
jmp 0x1801d6d81
mov rax, qword [rsp + 0x88]
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax + 4]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax + 6]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x20]
cmp eax, 2
jl 0x1801d6d67
movzx eax, byte [rsp + 0x20]
cmp eax, 4
jg 0x1801d6d67
movzx eax, byte [rsp + 0x21]
cmp eax, 1
jl 0x1801d6d67
movzx eax, byte [rsp + 0x21]
movzx ecx, byte [rsp + 0x20]
cmp eax, ecx
jl 0x1801d6d81
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call fcn.1800b35bb
jmp 0x1801d6f3e
movzx eax, byte [rsp + 0x21]
cmp rax, qword [rsp + 0x80]
jae 0x1801d6d9d
movzx eax, byte [rsp + 0x21]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
cmp rax, qword [rsp + 0x80]
jae 0x1801d6e1b
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax]
mov byte [rsp + 0x2e], al
mov rax, qword [rsp + 0x78]
inc rax
mov qword [rsp + 0x78], rax
movzx eax, byte [rsp + 0x2e]
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x24]
and eax, 0xc0
cmp eax, 0x80
je 0x1801d6e04
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call fcn.1800b35bb
jmp 0x1801d6f3e
mov eax, dword [rsp + 0x28]
shl eax, 6
movzx ecx, byte [rsp + 0x24]
and ecx, 0x3f
or eax, ecx
mov dword [rsp + 0x28], eax
jmp 0x1801d6d9d
movzx eax, byte [rsp + 0x21]
cmp qword [rsp + 0x80], rax
jae 0x1801d6e77
movzx eax, byte [rsp + 0x21]
sub rax, qword [rsp + 0x80]
mov byte [rsp + 0x2f], al
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
mov word [rcx + 4], ax
movzx eax, byte [rsp + 0x2f]
mov rcx, qword [rsp + 0x88]
mov word [rcx + 6], ax
mov rax, 0xfffffffffffffffe
jmp 0x1801d6f3e
cmp dword [rsp + 0x28], 0xd800
jb 0x1801d6e8b
cmp dword [rsp + 0x28], 0xdfff
jbe 0x1801d6e95
cmp dword [rsp + 0x28], 0x10ffff
jbe 0x1801d6eaf
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call fcn.1800b35bb
jmp 0x1801d6f3e
mov dword [rsp + 0x48], 0x80
mov dword [rsp + 0x4c], 0x800
mov dword [rsp + 0x50], 0x10000
movzx eax, byte [rsp + 0x20]
sub eax, 2
cdqe
mov eax, dword [rsp + rax*4 + 0x48]
cmp dword [rsp + 0x28], eax
jae 0x1801d6ef2
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call fcn.1800b35bb
jmp 0x1801d6f3e
cmp qword [rsp + 0x70], 0
je 0x1801d6f05
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x28], 0
jne 0x1801d6f23
mov dword [rsp + 0x34], 0
jmp 0x1801d6f2c
movzx eax, byte [rsp + 0x21]
mov dword [rsp + 0x34], eax
movsxd rax, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call fcn.1800b235f
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800aec8c
add rsp, 0x68
ret