Function at 0x59cea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
mov byte [rsp + 0x23], r8b
mov r14, rdx
mov rsi, rcx
mov rax, rdx
shld rax, rcx, 0x3f
mov r8, rdx
shr r8, 1
add r8, rax
adc r8, 0
movabs r10, 0xcccccccccccccccd
mov rax, r8
mul r10
mov rcx, qword [rsp + 0x150]
xor r13d, r13d
cmp rsi, 0xa
mov rax, r14
sbb rax, 0
movabs r11, 0xcccccccccccccccc
mov byte [rsp + 0x24], r9b
jb 0x59cfc2
shr rdx, 2
lea rax, [rdx + rdx*4]
sub r8, rax
mov eax, esi
and eax, 1
lea rax, [rax + r8*2]
test rax, rax
jne 0x59cfc2
xor r13d, r13d
nop
mov r9, r14
mov rdi, rsi
mov rsi, r14
shld rsi, rdi, 0x3f
shr r14, 1
mov r8, rsi
add r8, r14
adc r8, 0
mov rax, r8
mul r10
shr rdx, 2
lea rax, [rdx + rdx*4]
sub r8, rax
sub rsi, r8
sbb r14, 0
mov r8, rsi
imul r8, r11
mov rax, rsi
mul r10
add rdx, r8
imul r14, r10
add r14, rdx
inc r13
mov rdx, r14
mov rsi, rax
shld rdx, rax, 0x3f
mov r8, r14
shr r8, 1
add r8, rdx
adc r8, 0
mov rax, r8
mul r10
cmp rdi, 0x64
sbb r9, 0
jb 0x59cfc2
shr rdx, 2
lea rax, [rdx + rdx*4]
sub r8, rax
mov eax, esi
and eax, 1
lea rax, [rax + r8*2]
test rax, rax
je 0x59cf30
cmp qword [rcx + 0x10], 0
je 0x59d04c
mov r15, qword [rcx + 0x18]
cmp rsi, 0xa
mov rax, r14
sbb rax, 0
jb 0x59d053
xor ebx, ebx
mov r12d, 0x63
mov rdi, rsi
mov rcx, r14
mov rbp, r14
nop
mov r8, rcx
shld r8, rdi, 0x3f
shr rbp, 1
mov r9, r8
add r9, rbp
adc r9, 0
mov rax, r9
mul r10
shr rdx, 2
lea rax, [rdx + rdx*4]
sub r9, rax
sub r8, r9
sbb rbp, 0
mov r9, r8
imul r9, r11
mov rax, r8
mul r10
add rdx, r9
imul rbp, r10
add rbp, rdx
inc rbx
cmp r12, rdi
mov edx, 0
sbb rdx, rcx
mov rdi, rax
mov rcx, rbp
jb 0x59cff0
jmp 0x59d055
xor edi, edi
jmp 0x59d17b
xor ebx, ebx
xor eax, eax
mov rdi, r15
sub rdi, rbx
cmovb rdi, rax
mov r9, rbx
sub r9, r15
cmovb r9, rax
cmp r9, 2
jb 0x59d0e9
add r9, r13
cmp rbx, r15
mov r12, r15
cmovb r12, rbx
not r12
add r12, rbx
mov rcx, qword [rsp + 0x150]
nop dword [rax]
shrd rsi, r14, 1
shr r14, 1
mov r8, rsi
add r8, r14
adc r8, 0
mov rax, r8
mul r10
shr rdx, 2
lea rax, [rdx + rdx*4]
sub r8, rax
sub rsi, r8
sbb r14, 0
mov r8, rsi
imul r8, r11
mov rax, rsi
mul r10
add rdx, r8
imul r14, r10
add r14, rdx
mov rsi, rax
dec r12
jne 0x59d090
dec r9
mov r13, r9
cmp rbx, r15
ja 0x59d0fa
jmp 0x59d17b
mov rcx, qword [rsp + 0x150]
cmp rbx, r15
jbe 0x59d17b
mov r8, r14
shld r8, rsi, 0x3f
mov rbx, r14
shr rbx, 1
mov r9, r8
add r9, rbx
adc r9, 0
mov rax, r9
mul r10
shr rdx, 2
lea rax, [rdx + rdx*4]
sub r9, rax
sub r8, r9
sbb rbx, 0
imul r11, r8
mov rax, r8
mul r10
mov r8, rax
mov r9, rdx
add r9, r11
imul rbx, r10
lea rax, [r9 + rbx]
lea r10, [rax + rax*4]
mov edx, 0xa
mov rax, r8
mul rdx
lea rdx, [rdx + r10*2]
sub rsi, rax
sbb r14, rdx
inc r13
xor eax, eax
mov edx, 4
cmp rdx, rsi
sbb rax, r14
adc r8, 0
adc rbx, r9
mov rsi, r8
mov r14, rbx
cmp rsi, 0x64
mov rax, r14
sbb rax, 0
jb 0x59d232
mov qword [rsp + 0x28], rdi
xor ebx, ebx
lea r12, [rsp + 0x30]
lea r15, [0x005ea9fc]
mov edi, 0x270f
nop word cs:[rax + rax]
mov rbp, rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x30], 0x64
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.005aaf60
pshufd xmm1, xmm0, 0xee
movq rsi, xmm0
imul rax, rsi, 0x64
mov rdx, rbp
sub rdx, rax
movzx eax, word [r15 + rdx*2]
mov word [rsp + rbx + 0xe6], ax
add rbx, 0xfffffffffffffffe
cmp rdi, rbp
mov eax, 0
sbb rax, r14
movq r14, xmm1
jb 0x59d1b0
mov rax, r13
sub rax, rbx
add rbx, 0x28
mov rcx, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x28]
cmp rsi, 9
ja 0x59d240
jmp 0x59d268
mov ebx, 0x28
mov rax, r13
cmp rsi, 9
jbe 0x59d268
movzx edx, sil
imul esi, edx, 0xcd
shr esi, 0xb
lea r8d, [rsi + rsi]
lea r8d, [r8 + r8*4]
sub dl, r8b
or dl, 0x30
mov byte [rsp + rbx + 0xbf], dl
dec rbx
inc rax
test rdi, rdi
jne 0x59d272
cmp rax, r13
je 0x59d27d
mov byte [rsp + rbx + 0xbf], 0x2e
dec rbx
movzx r9d, byte [rsp + 0x23]
lea r8, [rsp + 0xc0]
lea rdx, [rbx + r8]
dec rdx
add sil, 0x30
mov byte [rbx + r8 - 1], sil
movzx r8d, byte [rsp + 0x24]
xor r8b, 1
shl r8b, 5
or r8b, 0x45
mov byte [rsp + 0x25], r8b
cmp rax, 0xa
jae 0x59d2c5
add al, 0x30
mov byte [rsp + 0x26], al
mov eax, 2
jmp 0x59d2db
lea r8, [0x005ea9fc]
movzx eax, word [r8 + rax*2]
mov word [rsp + 0x26], ax
mov eax, 3
mov r8d, 0x29
sub r8, rbx
mov word [rsp + 0x78], 2
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x88], r8
mov word [rsp + 0x90], 0
mov qword [rsp + 0x98], rdi
mov word [rsp + 0xa8], 2
lea rdx, [rsp + 0x25]
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0xb8], rax
mov eax, dword [rcx + 0x34]
and eax, 1
lea r8, str.librarycore_src_num_f32.rs
lea rdx, [0x005e9777]
cmove rdx, r8
lea r8, [0x005e9776]
test r9b, r9b
cmovne r8, rdx
mov edx, 1
cmovne rdx, rax
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 3
lea rdx, [rsp + 0x58]
call fcn.0058c020
nop
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret