Function at 0x1400ce840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rax, qword [rcx + 0x58]
mov rbx, qword [rcx + 0x28]
mov qword [rsp + 0xa0], rcx
mov rbp, rdx
mov qword [rsp + 0x38], rax
cmp rbx, rdx
jae 0x1400ceb74
mov rax, qword [rcx + 0x30]
cmp rdx, rax
jae 0x1400ceb24
add rbx, 1
lea rax, [rbp + 1]
mov qword [rsp + 0xa8], rbp
mov rcx, rbx
shl rax, 4
shl rcx, 4
mov qword [rsp + 0x48], rax
mov rax, rcx
mov rcx, qword [rsp + 0x38]
jmp 0x1400ce8c4
mov rcx, qword [rsp + 0xa0]
mov rsi, qword [rcx + 0x58]
mov qword [rsp + 0x38], rsi
mov rcx, rsi
lea r13, [rcx + rax - 0x10]
movzx ecx, byte [r13 + 0xf]
movzx r12d, byte [r13 + 0xe]
movzx edi, byte [r13 + 0xd]
movzx r14d, byte [r13]
movzx edx, byte [r13 + 0xc]
movzx r8d, byte [r13 + 0xa]
mov byte [rsp + 0x42], cl
movzx r9d, byte [r13 + 9]
movzx ecx, byte [r13 + 0xb]
mov byte [rsp + 0x43], r12b
movzx r10d, byte [r13 + 8]
movzx r11d, byte [r13 + 7]
mov byte [rsp + 0x44], dil
movzx ebx, byte [r13 + 6]
movzx esi, byte [r13 + 5]
mov byte [rsp + 0x20], r14b
add r14d, r14d
movzx edi, byte [r13 + 4]
movzx ebp, byte [r13 + 3]
movzx r12d, byte [r13 + 2]
movzx r13d, byte [r13 + 1]
mov r15d, r13d
add r13d, r13d
shr r15b, 7
or r15d, r14d
mov r14d, r12d
add r12d, r12d
shr r14b, 7
or r14d, r13d
mov r13d, ebp
add ebp, ebp
shr r13b, 7
mov byte [rsp + 0x45], r14b
movzx r14d, byte [rsp + 0x42]
or r13d, r12d
mov r12d, edi
add edi, edi
shr r12b, 7
or r12d, ebp
mov ebp, esi
add esi, esi
shr bpl, 7
mov byte [rsp + 0x46], r12b
movzx r12d, byte [rsp + 0x43]
or ebp, edi
mov edi, ebx
add ebx, ebx
shr dil, 7
or esi, edi
mov edi, r11d
add r11d, r11d
shr dil, 7
movzx esi, sil
or ebx, edi
mov edi, r10d
add r10d, r10d
shr dil, 7
movzx ebx, bl
or r11d, edi
mov edi, r9d
add r9d, r9d
shr dil, 7
movzx r11d, r11b
or edi, r10d
mov r10d, r8d
add r8d, r8d
shr r10b, 7
mov byte [rsp + 0x47], dil
movzx edi, byte [rsp + 0x44]
or r9d, r10d
mov r10d, ecx
shr r10b, 7
movzx r9d, r9b
or r8d, r10d
mov r10d, edx
add ecx, ecx
add edx, edx
shr r10b, 7
shl r11, 8
movzx r8d, r8b
or ecx, r10d
mov r10d, edi
or r11, rbx
add edi, edi
shr r10b, 7
shl r11, 8
movzx ebx, bpl
movzx ecx, cl
or edx, r10d
mov r10d, r12d
or r11, rsi
add r12d, r12d
shr r10b, 7
shl r11, 8
or r10d, edi
mov edi, r14d
or r11, rbx
movzx ebx, byte [rsp + 0x46]
shr dil, 7
shl r11, 8
add r14d, r14d
movzx esi, r10b
or r12d, edi
movzx edi, byte [rsp + 0x20]
or r11, rbx
movzx ebx, r13b
shl r11, 8
movzx r12d, r12b
movzx r13d, byte [rsp + 0x47]
sar dil, 7
or r11, rbx
movzx ebx, byte [rsp + 0x45]
and edi, 0xffffff87
shl r11, 8
xor r14d, edi
or r11, rbx
movzx ebx, r15b
movzx r14d, r14b
shl r11, 8
shl r14, 8
or r14, r12
shl r14, 8
or r11, rbx
mov r10, r14
mov qword [rsp + 0x20], r11
or r10, rsi
movzx esi, dl
mov rdx, r10
shl rdx, 8
or rdx, rsi
shl rdx, 8
or rdx, rcx
shl rdx, 8
or rdx, r8
shl rdx, 8
or rdx, r9
shl rdx, 8
or rdx, r13
mov qword [rsp + 0x28], rdx
mov rcx, qword [rsp + 0x38]
movdqu xmm0, xmmword [rsp + 0x20]
mov rsi, qword [rsp + 0x48]
movups xmmword [rcx + rax], xmm0
add rax, 0x10
cmp rax, rsi
jne 0x1400ce8b0
mov rcx, qword [rsp + 0xa0]
mov rsi, rax
mov rbp, qword [rsp + 0xa8]
mov rax, qword [rcx + 0x58]
mov qword [rcx + 0x28], rbp
lea rax, [rax + rsi - 0x10]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rdx + 4]
mov rcx, qword [rsp + 0x38]
mov r9d, 0x71
lea r8, str.crypto_modes_ocb128.c
sub rdx, rax
and rdx, 0xfffffffffffffffc
add rdx, rax
mov rax, qword [rsp + 0xa0]
mov qword [rax + 0x30], rdx
shl rdx, 4
call fcn.1400c4860
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400ceb0e
mov rcx, qword [rsp + 0xa0]
mov qword [rcx + 0x58], rax
jmp 0x1400ce87e
mov rax, rdx
shl rax, 4
add qword [rsp + 0x38], rax
jmp 0x1400ceb0e