Function at 0x14003f750
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x54], r8d
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x48], rdi
mov eax, dword [rdx]
shr eax, 5
mov rcx, qword [r14 + rax*8 + 0xb8]
mov rbx, rdx
mov esi, r8d
mov dword [rsp + 0x1c], eax
mov rax, rcx
call rax
nop
mov qword [rsp + 0x10], rax
nop word [rax + rax]
cmp dword [rsp + 0x54], 1
jl 0x14003fbaf
mov edx, dword [rsp + 0x1c]
mov rcx, qword [r14 + rdx*8 + 0xa8]
mov qword [rsp + 0x40], rcx
mov rbx, qword [r14 + rdx*8 + 0xb0]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x34], 0
jmp 0x14003f912
mov ebx, dword [rsp + 0x34]
cmp ebx, dword [rcx + 4]
jae 0x14003fbcf
mov edx, ebx
mov r8, rax
sub r8, r14
shr r8, 3
mov dword [rcx + rdx*4 + 8], r8d
mov edx, dword [rcx]
test rdx, 2
jne 0x14003f995
mov r9, qword [rsp + 0x20]
mov rdx, qword [r9 + 8]
mov r8, qword [r9 + 0x10]
mov esi, r8d
movsxd rsi, esi
movsx esi, byte [rdx + rsi + 8]
mov rdi, r8
inc rdi
mov qword [r9 + 0x10], rdi
movzx r10d, sil
movsx esi, sil
mov r11d, esi
and r11d, 7
nop
cmp r11d, 7
jae 0x14003fbb9
mov r11d, r11d
mov r11d, dword [r14 + r11*4 + 0x2c8b70]
cmp rax, r14
je 0x14003fa26
mov dword [rax + 4], r11d
mov r12d, dword [rax]
test r12, 2
jne 0x14003f963
and esi, 0x78
shr esi, 3
mov ecx, esi
mov ecx, dword [r14 + rcx*4 + 0x2ba1b8]
mov dword [rax + 8], ecx
test r10d, 0x80
mov ecx, 0
mov esi, 1
cmove esi, ecx
mov byte [rax + 0x18], sil
nop
test r11d, r11d
je 0x14003fbc4
cmp byte [r14 + r11*8 + 0xc], 0
je 0x14003f8e0
mov ecx, edi
movsxd rcx, ecx
movsx ecx, byte [rdx + rcx + 8]
lea rsi, [r8 + 2]
mov qword [r9 + 0x10], rsi
movzx edi, cl
cmp cl, 0xc0
jae 0x14003f935
cmp rax, r14
je 0x14003f8e0
mov rdx, rdi
shr rdx, 1
and rdi, 1
neg rdi
xor rdx, rdi
mov qword [rax + 0x10], rdx
mov rdx, qword [rsp + 0x28]
mov r8, rax
mov r9, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
call rax
nop
mov ebx, dword [rsp + 0x34]
inc ebx
mov r8d, dword [rsp + 0x54]
cmp r8d, ebx
jle 0x14003fbaf
mov dword [rsp + 0x34], ebx
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
mov rdx, rcx
mov rax, rbx
call rax
nop
mov rcx, qword [rsp + 0x10]
cmp rcx, r14
jne 0x14003f7d0
nop
jmp 0x14003f9f0
mov ecx, esi
movsxd rcx, ecx
movsx ecx, byte [rdx + rcx + 8]
lea rsi, [r8 + 3]
mov qword [r9 + 0x10], rsi
movzx r10d, cl
shl r10, 6
add r10, rdi
cmp cl, 0xc0
jae 0x14003f9f9
mov rdi, r10
jmp 0x14003f8c3
mov r12, rax
mov r13, r12
and r13, 0xfffffffffff00000
lea rcx, [r13 + 0x1030]
sub r12, rcx
shr r12, 9
cmp byte [r13 + r12 + 0x30], 0
je 0x14003f862
mov byte [r13 + r12 + 0x30], 0
jmp 0x14003f862
mov r8, rcx
test rdx, 1
jne 0x14003fa35
mov rdx, r8
and rdx, 0xfffffffffff00000
lea r9, [rdx + 0x1030]
sub r8, r9
shr r8, 9
cmp byte [rdx + r8 + 0x30], 0
je 0x14003f7fd
mov byte [rdx + r8 + 0x30], 0
nop
jmp 0x14003f7fd
mov ebx, dword [rsp + 0x34]
jmp 0x14003f7fd
mov ecx, esi
movsxd rcx, ecx
movsx ecx, byte [rdx + rcx + 8]
lea rsi, [r8 + 4]
mov qword [r9 + 0x10], rsi
movzx edi, cl
shl rdi, 0xc
add r10, rdi
cmp cl, 0xc0
jae 0x14003fa4a
mov rdi, r10
jmp 0x14003f8c3
test r11d, r11d
jne 0x14003f899
nop
jmp 0x14003fbc4
cmp byte [r8 - 8], 0
je 0x14003f7fd
mov byte [r8 - 8], 0
jmp 0x14003f7fd
mov ecx, esi
movsxd rcx, ecx
movsx ecx, byte [rdx + rcx + 8]
lea rsi, [r8 + 5]
mov qword [r9 + 0x10], rsi
movzx edi, cl
shl rdi, 0x12
add r10, rdi
cmp cl, 0xc0
jae 0x14003fa77
mov rdi, r10
jmp 0x14003f8c3
mov ecx, esi
movsxd rcx, ecx
movsx ecx, byte [rdx + rcx + 8]
lea rsi, [r8 + 6]
mov qword [r9 + 0x10], rsi
movzx edi, cl
shl rdi, 0x18
add r10, rdi
cmp cl, 0xc0
jae 0x14003faa4
mov rdi, r10
jmp 0x14003f8c3
mov ecx, esi
movsxd rcx, ecx
movsx ecx, byte [rdx + rcx + 8]
lea rsi, [r8 + 7]
mov qword [r9 + 0x10], rsi
movzx edi, cl
shl rdi, 0x1e
add r10, rdi
cmp cl, 0xc0
jae 0x14003fad5
mov rdi, r10
nop dword [rax]
jmp 0x14003f8c3
mov ecx, esi
movsxd rcx, ecx
movsx ecx, byte [rdx + rcx + 8]
lea rsi, [r8 + 8]
mov qword [r9 + 0x10], rsi
movzx edi, cl
shl rdi, 0x24
add r10, rdi
cmp cl, 0xc0
jae 0x14003fb02
mov rdi, r10
jmp 0x14003f8c3
mov ecx, esi
movsxd rcx, ecx
movsx ecx, byte [rdx + rcx + 8]
lea rsi, [r8 + 9]
mov qword [r9 + 0x10], rsi
movzx edi, cl
shl rdi, 0x2a
add r10, rdi
cmp cl, 0xc0
jae 0x14003fb2f
mov rdi, r10
jmp 0x14003f8c3
mov ecx, esi
movsxd rcx, ecx
movsx ecx, byte [rdx + rcx + 8]
lea rsi, [r8 + 0xa]
mov qword [r9 + 0x10], rsi
movzx edi, cl
shl rdi, 0x30
add r10, rdi
nop dword [rax + rax]
cmp cl, 0xc0
jae 0x14003fb61
mov rdi, r10
jmp 0x14003f8c3
mov ecx, esi
movsxd rcx, ecx
movsx ecx, byte [rdx + rcx + 8]
lea rsi, [r8 + 0xb]
mov qword [r9 + 0x10], rsi
movzx edi, cl
shl rdi, 0x36
add r10, rdi
cmp cl, 0xc0
jae 0x14003fb8e
mov rdi, r10
jmp 0x14003f8c3
mov ecx, esi
movsxd rcx, ecx
movzx edx, byte [rdx + rcx + 8]
lea r8, [r8 + 0xc]
mov qword [r9 + 0x10], r8
shl rdx, 0x3c
add r10, rdx
mov rdi, r10
jmp 0x14003f8c3
mov rax, qword [rsp + 0x10]
add rsp, 0x58
ret
mov r8d, dword [rsp + 0x54]
call fcn.140107b20
nop
mov r8d, dword [rsp + 0x54]
call fcn.1401079b0
nop
mov r8d, dword [rsp + 0x54]
call fcn.140107b20
nop
int3