Function at 0x14003a3d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov r11d, dword [rcx + 0x24]
mov rbx, rcx
mov r8d, dword [rcx + 0x2c]
mov r14d, r11d
mov r10d, dword [rcx + 0x54]
and r14d, 0x7fff
mov esi, dword [rcx + 0x50]
mov r13d, dword [rcx + 0x28]
mov r12, qword [rcx + 0x30]
mov r15, qword [rcx + 0x38]
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x90], r11d
mov dword [rsp + 0x80], r8d
mov dword [rsp + 0x88], r10d
mov dword [rsp + 0x98], esi
nop dword [rax]
mov rdx, qword [rbx + 0xb8]
test rdx, rdx
jne 0x14003a451
cmp dword [rbx + 0xa8], edx
je 0x14003a534
test r13d, r13d
je 0x14003a534
lea edi, [r11 + r13]
mov ecx, 0x1000
sub ecx, r13d
and edi, 0x7fff
cmp rdx, rcx
mov eax, edx
cmovae eax, ecx
mov ebp, eax
add r13d, eax
sub rdx, rbp
mov qword [rbx + 0xb8], rdx
test eax, eax
je 0x14003a510
mov rdx, qword [rbx + 0xb0]
lea rcx, [rbx + 0xc8]
mov eax, 0x8000
mov r14d, edi
sub eax, edi
cmp eax, ebp
cmovae eax, ebp
add rcx, r14
mov r8d, eax
mov esi, eax
call sub.VCRUNTIME140.dll_memcpy
cmp edi, 0x101
jae 0x14003a4d9
mov rdx, qword [rbx + 0xb0]
lea rcx, [rbx + 0x80c8]
mov eax, 0x101
sub eax, edi
cmp esi, eax
cmovb eax, esi
add rcx, rdi
mov r8d, eax
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0xb0], rsi
add edi, esi
and edi, 0x7fff
sub ebp, esi
jne 0x14003a482
mov esi, dword [rsp + 0x98]
mov r8d, dword [rsp + 0x80]
mov r10d, dword [rsp + 0x88]
mov r11d, dword [rsp + 0x90]
mov r14d, dword [rsp + 0x20]
mov eax, 0x8000
sub eax, r13d
cmp eax, r8d
cmovae eax, r8d
cmp dword [rbx + 0xa8], 0
mov r8d, eax
jne 0x14003a559
cmp r13d, 0x1000
jae 0x14003a56a
mov dword [rbx + 0x24], r11d
mov eax, 1
mov dword [rbx + 0x28], r13d
mov dword [rbx + 0x2c], r8d
mov dword [rbx + 0x54], r10d
mov qword [rbx + 0x30], r12
mov qword [rbx + 0x38], r15
mov dword [rbx + 0x50], esi
jmp 0x14003a97b
mov dword [rsp + 0x80], eax
cmp r13d, 4
jb 0x14003a862
mov r8d, eax
mov dword [rsp + 0x80], eax
nop dword [rax]
nop dword [rax + rax]
add r14, 0xc8
mov r9d, 1
add r14, rbx
mov edi, dword [r14]
and edi, 0xffffff
mov eax, edi
mov ecx, edi
shr rcx, 0x11
xor rcx, rax
movzx eax, r11w
and ecx, 0xfff
movzx edx, word [rbx + rcx*2 + 0x292aa]
sub ax, dx
mov word [rbx + rcx*2 + 0x292aa], r11w
movzx ebp, ax
cmp ebp, r8d
ja 0x14003a75a
and edx, 0x7fff
lea r8, [rbx + 0xc8]
add r8, rdx
mov eax, dword [r8]
and eax, 0xffffff
cmp eax, edi
jne 0x14003a75a
mov rax, r14
lea r11d, [r9 + 0x1f]
nop word [rax + rax]
movzx r9d, word [rax + 2]
add rax, 2
movzx r10d, word [r8 + 2]
cmp r9w, r10w
jne 0x14003a66c
movzx edx, word [rax + 2]
add rax, 2
movzx ecx, word [r8 + 4]
movzx r9d, dl
movzx r10d, cl
cmp dx, cx
jne 0x14003a66c
movzx edx, word [rax + 2]
add rax, 2
movzx ecx, word [r8 + 6]
movzx r9d, dl
movzx r10d, cl
cmp dx, cx
jne 0x14003a66c
movzx ecx, word [rax + 2]
add rax, 2
movzx edx, word [r8 + 8]
add r8, 8
movzx r9d, cl
movzx r10d, dl
cmp cx, dx
jne 0x14003a66c
add r11d, 0xffffffff
jne 0x14003a600
xor ecx, ecx
sub rax, r14
sar rax, 1
cmp r9b, r10b
sete cl
lea edx, [rcx + rax*2]
test r11d, r11d
jne 0x14003a68e
mov eax, ebp
neg eax
sbb edx, edx
and edx, 0x102
cmp edx, 3
jb 0x14003a72c
jne 0x14003a6a5
cmp ebp, 0x2000
jae 0x14003a72c
mov r10d, dword [rsp + 0x88]
lea r8, [0x140000000]
mov r11d, dword [rsp + 0x90]
cmp edx, r13d
mov r9d, r13d
cmovb r9d, edx
dec ebp
mov dword [r12 + 1], ebp
mov edx, ebp
shr rdx, 8
lea eax, [r9 - 3]
mov byte [r12], al
movzx eax, byte [r15]
shr al, 1
or al, 0x80
mov byte [r15], al
mov eax, ebp
and eax, 0x1ff
cmp ebp, 0x200
movzx ecx, byte [rax + r8 + 0x75800]
movzx eax, byte [rdx + r8 + 0x75c00]
cmovb eax, ecx
inc word [rbx + rax*2 + 0x840a]
lea eax, [r9 - 3]
movzx eax, word [r8 + rax*2 + 0x75500]
inc word [rbx + rax*2 + 0x81ca]
mov eax, 3
jmp 0x14003a770
mov r10d, dword [rsp + 0x88]
mov r9d, 1
mov r11d, dword [rsp + 0x90]
movzx eax, dil
mov byte [r12], al
shr byte [r15], 1
inc word [rbx + rax*2 + 0x81ca]
mov eax, r9d
jmp 0x14003a770
movzx eax, dil
mov byte [r12], al
shr byte [r15], 1
inc word [rbx + rax*2 + 0x81ca]
mov rax, r9
mov r14d, dword [rsp + 0x20]
lea rdx, [rax + r12]
add esi, 0xffffffff
lea r12, [rdx + 1]
mov ecx, esi
mov r8d, 0x8000
mov edi, 8
mov rax, rdx
cmove esi, edi
test ecx, ecx
mov dword [rsp + 0x98], esi
cmovne rax, r15
cmovne r12, rdx
add r10d, r9d
add r11d, r9d
mov r15, rax
mov dword [rsp + 0x88], r10d
mov eax, dword [rsp + 0x80]
add eax, r9d
mov dword [rsp + 0x90], r11d
cmp eax, r8d
cmovb r8d, eax
add r14d, r9d
sub r13d, r9d
mov dword [rsp + 0x80], r8d
and r14d, 0x7fff
lea r9, [rbx + 0x192a2]
mov dword [rsp + 0x20], r14d
cmp r12, r9
jbe 0x14003a856
xor edx, edx
mov dword [rbx + 0x24], r11d
mov rcx, rbx
mov dword [rbx + 0x28], r13d
mov dword [rbx + 0x2c], r8d
mov dword [rbx + 0x54], r10d
mov qword [rbx + 0x30], r12
mov qword [rbx + 0x38], r15
mov dword [rbx + 0x50], esi
call fcn.14003b640
test eax, eax
jne 0x14003a973
mov r10d, dword [rbx + 0x54]
lea r9, [rbx + 0x192a2]
mov esi, dword [rbx + 0x50]
mov r12, qword [rbx + 0x30]
mov r15, qword [rbx + 0x38]
mov r8d, dword [rsp + 0x80]
mov r11d, dword [rsp + 0x90]
mov dword [rsp + 0x88], r10d
mov dword [rsp + 0x98], esi
cmp r13d, 4
jae 0x14003a580
jmp 0x14003a86e
lea r9, [rbx + 0x192a2]
mov edi, 8
test r13d, r13d
je 0x14003a430
nop word [rax + rax]
movzx edx, byte [r14 + rbx + 0xc8]
lea rcx, [r12 + 1]
inc r10d
mov byte [r12], dl
shr byte [r15], 1
add esi, 0xffffffff
mov dword [rsp + 0x88], r10d
mov eax, esi
cmove esi, edi
test eax, eax
mov dword [rsp + 0x98], esi
cmovne rcx, r15
neg eax
mov r15, rcx
sbb rax, rax
inc word [rbx + rdx*2 + 0x81ca]
add rax, 2
inc r11d
add r12, rax
mov dword [rsp + 0x90], r11d
lea eax, [r8 + 1]
mov r8d, 0x8000
cmp eax, r8d
inc r14d
cmovb r8d, eax
and r14d, 0x7fff
dec r13d
mov dword [rsp + 0x80], r8d
mov dword [rsp + 0x20], r14d
cmp r12, r9
jbe 0x14003a965
mov qword [rbx + 0x38], rcx
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x24], r11d
mov dword [rbx + 0x28], r13d
mov dword [rbx + 0x2c], r8d
mov dword [rbx + 0x54], r10d
mov qword [rbx + 0x30], r12
mov dword [rbx + 0x50], esi
call fcn.14003b640
test eax, eax
jne 0x14003a973
mov r10d, dword [rbx + 0x54]
lea r9, [rbx + 0x192a2]
mov esi, dword [rbx + 0x50]
mov r12, qword [rbx + 0x30]
mov r15, qword [rbx + 0x38]
mov r8d, dword [rsp + 0x80]
mov r11d, dword [rsp + 0x90]
mov dword [rsp + 0x88], r10d
mov dword [rsp + 0x98], esi
test r13d, r13d
jne 0x14003a880
jmp 0x14003a430
mov eax, 0
setns al
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret