Function at 0x1400a4560
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r8, qword [r8]
movsxd rbx, r9d
mov rsi, rcx
test rbx, rbx
je 0x1400a46c0
movzx ecx, byte [r8]
cmp rbx, 1
je 0x1400a4700
test cl, cl
jne 0x1400a4650
xor cl, byte [r8 + 1]
jns 0x1400a48f8
lea rdi, [rbx - 1]
cmp rdi, 8
ja 0x1400a4680
lea rcx, [rsp + 0x28]
mov r9, rbx
call fcn.1400a2690
movzx eax, byte [rsp + 0x28]
cmp rdi, 1
je 0x1400a4637
movzx edx, byte [rsp + 0x29]
shl rax, 8
or rax, rdx
cmp rdi, 2
je 0x1400a4637
movzx edx, byte [rsp + 0x2a]
shl rax, 8
or rax, rdx
cmp rdi, 3
je 0x1400a4637
movzx edx, byte [rsp + 0x2b]
shl rax, 8
or rax, rdx
cmp rdi, 4
je 0x1400a4637
movzx edx, byte [rsp + 0x2c]
shl rax, 8
or rax, rdx
cmp rdi, 5
je 0x1400a4637
movzx edx, byte [rsp + 0x2d]
shl rax, 8
or rax, rdx
cmp rdi, 6
je 0x1400a4637
movzx edx, byte [rsp + 0x2e]
shl rax, 8
or rax, rdx
cmp rdi, 8
jne 0x1400a4637
movzx edx, byte [rsp + 0x2f]
shl rax, 8
or rax, rdx
mov qword [rsi], rax
mov eax, 1
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
cmp cl, 0xff
je 0x1400a4720
cmp rbx, 8
ja 0x1400a4680
lea rcx, [rsp + 0x28]
mov r9, rbx
mov rdi, rbx
call fcn.1400a2690
movzx eax, byte [rsp + 0x28]
jmp 0x1400a45bf
call fcn.140110230
lea r8, str.ossl_c2i_uint64_int
mov edx, 0x272
lea rcx, str.crypto_asn1_a_int.c
call fcn.140110360
xor r8d, r8d
mov edx, 0xdf
mov ecx, 0xd
call fcn.140110450
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call fcn.140110230
lea r8, str.c2i_ibuf
mov edx, 0xa0
lea rcx, str.crypto_asn1_a_int.c
call fcn.140110360
xor r8d, r8d
mov edx, 0xde
mov ecx, 0xd
call fcn.140110450
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsp + 0x28]
mov r9d, 1
call fcn.1400a2690
movzx eax, byte [rsp + 0x28]
jmp 0x1400a4637
lea rax, [rbx - 2]
lea r10, [rbx - 1]
cmp rax, 0xe
jbe 0x1400a492e
mov r9, r10
pxor xmm3, xmm3
pxor xmm4, xmm4
mov rax, r8
and r9, 0xfffffffffffffff0
pxor xmm2, xmm2
add r9, r8
nop dword [rax + rax]
movdqu xmm0, xmmword [rax + 1]
add rax, 0x10
movdqa xmm1, xmm0
punpckhbw xmm0, xmm4
movdqa xmm5, xmm0
punpcklbw xmm1, xmm4
punpckhwd xmm0, xmm2
punpcklwd xmm5, xmm2
por xmm0, xmm5
movdqa xmm5, xmm1
punpckhwd xmm1, xmm2
punpcklwd xmm5, xmm2
por xmm1, xmm5
por xmm0, xmm1
por xmm3, xmm0
cmp rax, r9
jne 0x1400a4750
movdqa xmm0, xmm3
mov r11, r10
psrldq xmm0, 8
and r11, 0xfffffffffffffff0
por xmm3, xmm0
lea r9, [r11 + 1]
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
cmp r11, r10
je 0x1400a48e8
movzx r10d, byte [r8 + r9]
or eax, r10d
lea r10, [r9 + 1]
cmp rbx, r10
jbe 0x1400a48e8
movzx r10d, byte [r8 + r9 + 1]
or eax, r10d
lea r10, [r9 + 2]
cmp rbx, r10
jbe 0x1400a48e8
movzx r10d, byte [r8 + r9 + 2]
or eax, r10d
lea r10, [r9 + 3]
cmp rbx, r10
jbe 0x1400a48e8
movzx r10d, byte [r8 + r9 + 3]
or eax, r10d
lea r10, [r9 + 4]
cmp rbx, r10
jbe 0x1400a48e8
movzx r10d, byte [r8 + r9 + 4]
or eax, r10d
lea r10, [r9 + 5]
cmp rbx, r10
jbe 0x1400a48e8
movzx r10d, byte [r8 + r9 + 5]
or eax, r10d
lea r10, [r9 + 6]
cmp rbx, r10
jbe 0x1400a48e8
movzx r10d, byte [r8 + r9 + 6]
or eax, r10d
lea r10, [r9 + 7]
cmp rbx, r10
jbe 0x1400a48e8
movzx r10d, byte [r8 + r9 + 7]
or eax, r10d
lea r10, [r9 + 8]
cmp rbx, r10
jbe 0x1400a48e8
movzx r10d, byte [r8 + r9 + 8]
or eax, r10d
lea r10, [r9 + 9]
cmp rbx, r10
jbe 0x1400a48e8
movzx r10d, byte [r8 + r9 + 9]
or eax, r10d
lea r10, [r9 + 0xa]
cmp rbx, r10
jbe 0x1400a48e8
movzx r10d, byte [r8 + r9 + 0xa]
or eax, r10d
lea r10, [r9 + 0xb]
cmp rbx, r10
jbe 0x1400a48e8
movzx r10d, byte [r8 + r9 + 0xb]
or eax, r10d
lea r10, [r9 + 0xc]
cmp rbx, r10
jbe 0x1400a48e8
movzx r10d, byte [r8 + r9 + 0xc]
or eax, r10d
lea r10, [r9 + 0xd]
cmp rbx, r10
jbe 0x1400a48e8
movzx r10d, byte [r8 + r9 + 0xd]
or eax, r10d
lea r10, [r9 + 0xe]
cmp rbx, r10
jbe 0x1400a48e8
movzx r9d, byte [r8 + r9 + 0xe]
or eax, r9d
nop dword [rax]
test eax, eax
jne 0x1400a458f
jmp 0x1400a4659
call fcn.140110230
lea r8, str.c2i_ibuf
mov edx, 0xc1
lea rcx, str.crypto_asn1_a_int.c
call fcn.140110360
xor r8d, r8d
mov edx, 0xdd
mov ecx, 0xd
call fcn.140110450
xor eax, eax
jmp 0x1400a46b1
xor eax, eax
mov r9d, 1
jmp 0x1400a47c4