Function at 0x100d5a90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov edi, edx
mov rbx, rcx
xor esi, esi
nop
nop
mov r10d, dword [rbx + 0x14]
cmp r10d, 3
jae 0x100d5b92
inc dword [rbx + 8]
mov eax, dword [rbx + 8]
inc dword [rbx + 0x18]
inc qword [rbx]
cmp eax, dword [rbx + 0xc]
jne 0x100d5cbd
cmp eax, 0xffffffff
jne 0x100d5b20
mov eax, dword [rbx + 0x84]
mov rcx, qword [rbx + 0x28]
mov edx, 0xfffffffe
sub edx, dword [rbx + 0x78]
and edx, 0xfffffc00
add eax, dword [rbx + 0x80]
je 0x100d5b17
mov r8d, eax
nop
nop
mov eax, dword [rcx]
cmp eax, edx
ja 0x100d5b0a
mov eax, esi
jmp 0x100d5b0c
sub eax, edx
mov dword [rcx], eax
add rcx, 4
dec r8
jne 0x100d5b00
sub dword [rbx + 0xc], edx
sub dword [rbx + 8], edx
sub dword [rbx + 0x10], edx
cmp dword [rbx + 0x50], esi
jne 0x100d5b38
mov eax, dword [rbx + 0x10]
sub eax, dword [rbx + 8]
cmp dword [rbx + 0x5c], eax
jne 0x100d5b38
mov rcx, rbx
call fcn.100d4370
mov eax, dword [rbx + 0x1c]
cmp dword [rbx + 0x18], eax
jne 0x100d5b43
mov dword [rbx + 0x18], esi
sub eax, dword [rbx + 0x18]
mov r9d, dword [rbx + 8]
mov edx, dword [rbx + 0x10]
mov r8d, dword [rbx + 0x5c]
mov ecx, 0xffffffff
sub ecx, r9d
cmp eax, ecx
cmovb ecx, eax
sub edx, r9d
cmp edx, r8d
mov eax, edx
ja 0x100d5b73
test edx, edx
je 0x100d5b76
mov eax, 1
jmp 0x100d5b76
sub eax, r8d
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [rbx + 0x20]
cmp edx, eax
cmova edx, eax
lea eax, [r9 + rcx]
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x14], edx
jmp 0x100d5cbd
mov rcx, qword [rbx]
mov r8, qword [rbx + 0x28]
movzx eax, byte [rcx + 2]
movzx edx, byte [rcx]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 1]
mov ecx, r10d
xor edx, dword [rbx + rax*4 + 0x8c]
movzx eax, dx
mov r9, rax
mov edx, dword [r8 + rax*4]
mov eax, dword [rbx + 8]
mov dword [r8 + r9*4], eax
mov eax, dword [rbx + 0x3c]
mov r9, qword [rbx]
mov r8d, dword [rbx + 8]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 0x1c]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x18]
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + 0x30]
mov qword [rsp + 0x20], rax
call fcn.100d4d90
inc dword [rbx + 8]
mov eax, dword [rbx + 8]
inc dword [rbx + 0x18]
inc qword [rbx]
cmp eax, dword [rbx + 0xc]
jne 0x100d5cbd
cmp eax, 0xffffffff
jne 0x100d5c50
mov eax, dword [rbx + 0x84]
mov rcx, qword [rbx + 0x28]
mov edx, 0xfffffffe
sub edx, dword [rbx + 0x78]
and edx, 0xfffffc00
add eax, dword [rbx + 0x80]
je 0x100d5c47
mov r8d, eax
nop
nop
mov eax, dword [rcx]
cmp eax, edx
ja 0x100d5c3a
mov eax, esi
jmp 0x100d5c3c
sub eax, edx
mov dword [rcx], eax
add rcx, 4
dec r8
jne 0x100d5c30
sub dword [rbx + 0xc], edx
sub dword [rbx + 8], edx
sub dword [rbx + 0x10], edx
cmp dword [rbx + 0x50], esi
jne 0x100d5c68
mov eax, dword [rbx + 0x10]
sub eax, dword [rbx + 8]
cmp dword [rbx + 0x5c], eax
jne 0x100d5c68
mov rcx, rbx
call fcn.100d4370
mov eax, dword [rbx + 0x1c]
cmp dword [rbx + 0x18], eax
jne 0x100d5c73
mov dword [rbx + 0x18], esi
sub eax, dword [rbx + 0x18]
mov r9d, dword [rbx + 8]
mov edx, dword [rbx + 0x10]
mov r8d, dword [rbx + 0x5c]
mov ecx, 0xffffffff
sub ecx, r9d
cmp eax, ecx
cmovb ecx, eax
sub edx, r9d
cmp edx, r8d
mov eax, edx
ja 0x100d5ca3
test edx, edx
je 0x100d5ca6
mov eax, 1
jmp 0x100d5ca6
sub eax, r8d
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [rbx + 0x20]
cmp edx, eax
cmova edx, eax
lea eax, [r9 + rcx]
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x14], edx
add edi, 0xffffffff
jne 0x100d5ab0
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
add rsp, 0x48
ret