Function at 0x180055520
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1800e95b8]
mov r15, rcx
movabs rcx, 0x8440c18586f99bc7
mov r14, r8
xor rax, rcx
mov rbp, rdx
mov qword [rsp + 0x20], rax
cmp qword [r15 + 8], 0
je 0x180055816
mov rcx, rdx
call fcn.18008631c
test eax, eax
je 0x180055816
mov rdx, qword [r15 + 8]
mov eax, dword [r14]
mov qword [rsp + 0x78], rbx
xor bl, bl
mov byte [rsp + 0x70], bl
cmp dword [rax + rdx + 0x14], 0
jle 0x180055804
movsxd rcx, dword [rax + rdx + 0x1c]
mov r8d, dword [r15]
lea eax, [r8 + rcx]
cmp eax, dword [r15 + 4]
jae 0x180055804
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x30], r13
lea r13, [rdx + r8]
add r13, rcx
movsx ecx, word [r13]
sub ecx, 0x666c
je 0x180055799
sub ecx, 0x200
je 0x180055799
sub ecx, 0x100
je 0x18005573e
cmp ecx, 6
jne 0x1800557f5
xor esi, esi
movzx eax, si
mov word [rsp + 0x88], ax
cmp si, word [r13 + 2]
jge 0x1800557f5
mov qword [rsp + 0x38], r12
mov r8d, 0x696c
nop dword [rax]
mov edx, dword [r15]
movzx ebx, si
mov rcx, qword [r15 + 8]
movsx rax, ax
movsxd rdi, dword [r13 + rax*4 + 4]
add rdi, rdx
add rdi, rcx
cmp r8w, word [rdi]
je 0x1800556b3
movsxd rdi, dword [rdi + rax*4 + 4]
add rdi, rdx
add rdi, rcx
cmp si, word [rdi + 2]
jge 0x180055711
nop dword [rax + rax]
movsx rax, bx
mov rcx, rbp
mov edx, dword [rdi + rax*8 + 4]
add edx, dword [r15]
mov dword [r14], edx
mov r14d, edx
add r14, qword [r15 + 8]
movsx r12, word [r14 + 0x48]
call fcn.18008631c
cmp r12d, eax
jne 0x18005568a
mov r8, r12
lea rcx, [r14 + 0x4c]
mov rdx, rbp
call fcn.1800a02e4
test eax, eax
je 0x18005569d
mov r14, qword [rsp + 0x80]
inc bx
cmp bx, word [rdi + 2]
jge 0x18005570b
jmp 0x180055650
mov r14, qword [rsp + 0x80]
mov bl, 1
mov byte [rsp + 0x70], bl
mov r8d, 0x696c
jmp 0x180055716
cmp si, word [rdi + 2]
jge 0x180055711
nop dword [rax]
movsx rax, bx
mov rcx, rbp
mov edx, dword [rdi + rax*4 + 4]
add edx, dword [r15]
mov dword [r14], edx
mov r14d, edx
add r14, qword [r15 + 8]
movsx r12, word [r14 + 0x48]
call fcn.18008631c
cmp r12d, eax
jne 0x1800556fa
mov r8, r12
lea rcx, [r14 + 0x4c]
mov rdx, rbp
call fcn.1800a02e4
test eax, eax
je 0x18005569d
mov r14, qword [rsp + 0x80]
inc bx
cmp bx, word [rdi + 2]
jl 0x1800556c0
mov r8d, 0x696c
movzx ebx, byte [rsp + 0x70]
movzx eax, word [rsp + 0x88]
inc ax
mov word [rsp + 0x88], ax
cmp ax, word [r13 + 2]
jl 0x180055610
mov r12, qword [rsp + 0x38]
jmp 0x1800557f5
xor esi, esi
cmp si, word [r13 + 2]
jge 0x1800557f5
nop dword [rax + rax]
movsx rax, si
mov rcx, rbp
mov edx, dword [r13 + rax*4 + 4]
add edx, dword [r15]
mov ebx, edx
add rbx, qword [r15 + 8]
mov dword [r14], edx
movsx rdi, word [rbx + 0x48]
call fcn.18008631c
cmp edi, eax
jne 0x180055789
mov r8, rdi
lea rcx, [rbx + 0x4c]
mov rdx, rbp
call fcn.1800a02e4
test eax, eax
je 0x180055795
inc si
cmp si, word [r13 + 2]
jl 0x180055750
jmp 0x1800557f3
mov bl, 1
jmp 0x1800557f5
xor esi, esi
cmp si, word [r13 + 2]
jge 0x1800557f5
nop dword [rax]
nop word [rax + rax]
movsx rax, si
mov rcx, rbp
mov edx, dword [r13 + rax*8 + 4]
add edx, dword [r15]
mov ebx, edx
add rbx, qword [r15 + 8]
mov dword [r14], edx
movsx rdi, word [rbx + 0x48]
call fcn.18008631c
cmp edi, eax
jne 0x1800557e9
mov r8, rdi
lea rcx, [rbx + 0x4c]
mov rdx, rbp
call fcn.1800a02e4
test eax, eax
je 0x180055795
inc si
cmp si, word [r13 + 2]
jl 0x1800557b0
xor bl, bl
mov r13, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
movzx eax, bl
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
xor al, al
add rsp, 0x50
pop r15
pop r14
pop rbp
ret