Function at 0x14002b36e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r14d, r8d
mov r12, rdx
mov rdi, rcx
xor r15d, r15d
mov eax, dword [rdi + 0xa4]
cmp eax, 0x103
jae 0x14002b3d8
mov rcx, rdi
mov rdx, r12
call fcn.140029f72
mov eax, dword [rdi + 0xa4]
cmp eax, 0x102
ja 0x14002b3b6
test r14d, r14d
je 0x14002b62a
test eax, eax
je 0x14002b62e
mov dword [rdi + 0x90], 0
cmp eax, 2
ja 0x14002b3e2
mov ecx, dword [rdi + 0x9c]
jmp 0x14002b487
mov dword [rdi + 0x90], 0
mov ecx, dword [rdi + 0x9c]
test rcx, rcx
je 0x14002b485
mov rbp, qword [rdi + 0x58]
mov dl, byte [rbp + rcx - 1]
cmp dl, byte [rbp + rcx]
jne 0x14002b487
add rbp, rcx
cmp dl, byte [rbp + 1]
jne 0x14002b487
cmp dl, byte [rbp + 2]
jne 0x14002b487
lea r8, [rbp + 0x102]
xor ebx, ebx
cmp dl, byte [rbp + rbx + 3]
jne 0x14002b525
cmp dl, byte [rbp + rbx + 4]
jne 0x14002b52e
cmp dl, byte [rbp + rbx + 5]
jne 0x14002b537
cmp dl, byte [rbp + rbx + 6]
jne 0x14002b540
cmp dl, byte [rbp + rbx + 7]
jne 0x14002b549
cmp dl, byte [rbp + rbx + 8]
jne 0x14002b552
cmp dl, byte [rbp + rbx + 9]
jne 0x14002b55b
lea rsi, [rbx + 8]
cmp dl, byte [rbp + rbx + 0xa]
jne 0x14002b479
add rbx, 2
cmp rbx, 0xfa
mov rbx, rsi
jb 0x14002b419
add rbp, rsi
add rbp, 2
jmp 0x14002b562
xor ecx, ecx
mov rax, qword [rdi + 0x58]
mov ecx, ecx
movzx eax, byte [rax + rcx]
mov rcx, qword [rdi + 0x16f0]
mov edx, dword [rdi + 0x16fc]
lea ebp, [rdx + 1]
mov dword [rdi + 0x16fc], ebp
mov byte [rcx + rdx], r15b
mov rcx, qword [rdi + 0x16f0]
mov edx, dword [rdi + 0x16fc]
lea ebp, [rdx + 1]
mov dword [rdi + 0x16fc], ebp
mov byte [rcx + rdx], r15b
mov rcx, qword [rdi + 0x16f0]
mov edx, dword [rdi + 0x16fc]
lea ebp, [rdx + 1]
mov dword [rdi + 0x16fc], ebp
mov byte [rcx + rdx], al
inc word [rdi + rax*4 + 0xc4]
mov eax, dword [rdi + 0x16fc]
dec dword [rdi + 0xa4]
inc dword [rdi + 0x9c]
cmp eax, dword [rdi + 0x1700]
jne 0x14002b388
xor ebp, ebp
mov rcx, rdi
mov rdx, r12
xor r8d, r8d
call fcn.14002a270
cmp qword [r12 + 0x20], 0
jne 0x14002b388
jmp 0x14002b683
add rbp, rbx
add rbp, 3
jmp 0x14002b562
add rbp, rbx
add rbp, 4
jmp 0x14002b562
add rbp, rbx
add rbp, 5
jmp 0x14002b562
add rbp, rbx
add rbp, 6
jmp 0x14002b562
add rbp, rbx
add rbp, 7
jmp 0x14002b562
add rbp, rbx
add rbp, 8
jmp 0x14002b562
add rbp, rbx
add rbp, 9
sub ebp, r8d
add ebp, 0x102
cmp ebp, eax
cmovae ebp, eax
mov dword [rdi + 0x90], ebp
cmp ebp, 3
jb 0x14002b487
add bpl, 0xfd
mov rax, qword [rdi + 0x16f0]
mov ecx, dword [rdi + 0x16fc]
lea edx, [rcx + 1]
mov dword [rdi + 0x16fc], edx
mov byte [rax + rcx], 1
mov rax, qword [rdi + 0x16f0]
mov ecx, dword [rdi + 0x16fc]
lea edx, [rcx + 1]
mov dword [rdi + 0x16fc], edx
mov byte [rax + rcx], 0
mov rax, qword [rdi + 0x16f0]
mov ecx, dword [rdi + 0x16fc]
lea edx, [rcx + 1]
mov dword [rdi + 0x16fc], edx
mov byte [rax + rcx], bpl
mov rax, qword [rdi]
movzx ecx, bpl
movzx ecx, byte [rax + rcx + 0x75a]
inc word [rdi + rcx*4 + 0x4c8]
movzx eax, byte [rax + 0x55a]
inc word [rdi + rax*4 + 0x9b8]
mov eax, dword [rdi + 0x16fc]
mov ecx, dword [rdi + 0x90]
sub dword [rdi + 0xa4], ecx
add dword [rdi + 0x9c], ecx
cmp eax, dword [rdi + 0x1700]
mov dword [rdi + 0x90], 0
jne 0x14002b388
jmp 0x14002b504
xor ebp, ebp
jmp 0x14002b683
mov dword [rdi + 0x1710], 0
cmp r14d, 5
jne 0x14002b65d
mov rcx, rdi
mov rdx, r12
mov r8b, 1
call fcn.14002a270
xor ebp, ebp
cmp qword [r12 + 0x20], 0
sete bpl
xor ebp, 3
jmp 0x14002b683
cmp dword [rdi + 0x16fc], 0
je 0x14002b67e
xor ebp, ebp
mov rcx, rdi
mov rdx, r12
xor r8d, r8d
call fcn.14002a270
cmp qword [r12 + 0x20], 0
je 0x14002b683
mov ebp, 1
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret