Function at 0x140026bc0
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 r15d, r11d
mov r10d, dword [rcx + 0x54]
and r15d, 0x7fff
mov esi, dword [rcx + 0x50]
mov r13d, dword [rcx + 0x28]
mov r12, qword [rcx + 0x30]
mov r14, qword [rcx + 0x38]
mov dword [rsp + 0x20], r15d
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 0x140026c41
cmp dword [rbx + 0xa8], edx
je 0x14002712e
test r13d, r13d
je 0x14002712e
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 0x140026d0e
mov rdx, qword [rbx + 0xb0]
nop dword [rax]
mov eax, 0x8000
mov r15d, edi
sub eax, edi
lea rcx, [rbx + 0xc8]
cmp eax, ebp
cmovae eax, ebp
add rcx, r15
mov r8d, eax
mov esi, eax
call fcn.140055ab0
cmp edi, 0x101
jae 0x140026cd0
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 fcn.140055ab0
add qword [rbx + 0xb0], rsi
add edi, esi
mov rdx, qword [rbx + 0xb0]
and edi, 0x7fff
sub ebp, esi
jne 0x140026c80
mov esi, dword [rsp + 0x98]
mov r8d, dword [rsp + 0x80]
mov r10d, dword [rsp + 0x88]
mov r11d, dword [rsp + 0x90]
mov r15d, dword [rsp + 0x20]
mov eax, 0x8000
sub eax, r13d
cmp eax, r8d
cmovae eax, r8d
cmp dword [rbx + 0xa8], 0
mov r8d, eax
jne 0x140026d36
cmp r13d, 0x1000
jb 0x14002712e
mov dword [rsp + 0x80], eax
cmp r13d, 4
jb 0x14002702b
mov dword [rsp + 0x80], r8d
nop
mov eax, r15d
mov r9d, 1
lea r15, [rbx + 0xc8]
add r15, rax
mov edi, dword [r15]
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 0x140026f2a
and edx, 0x7fff
lea r8, [rbx + 0xc8]
add r8, rdx
mov eax, dword [r8]
and eax, 0xffffff
cmp eax, edi
jne 0x140026f2a
mov rax, r15
lea r11d, [r9 + 0x1f]
nop dword [rax + rax]
movzx r9d, word [rax + 2]
add rax, 2
movzx r10d, word [r8 + 2]
cmp r9w, r10w
jne 0x140026e3c
movzx edx, word [rax + 2]
add rax, 2
movzx ecx, word [r8 + 4]
movzx r9d, dl
movzx r10d, cl
cmp dx, cx
jne 0x140026e3c
movzx edx, word [rax + 2]
add rax, 2
movzx ecx, word [r8 + 6]
movzx r9d, dl
movzx r10d, cl
cmp dx, cx
jne 0x140026e3c
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 0x140026e3c
add r11d, 0xffffffff
jne 0x140026dd0
xor ecx, ecx
sub rax, r15
sar rax, 1
cmp r9b, r10b
sete cl
lea edx, [rcx + rax*2]
test r11d, r11d
jne 0x140026e5e
mov eax, ebp
neg eax
sbb edx, edx
and edx, 0x102
cmp edx, 3
jb 0x140026efc
jne 0x140026e75
cmp ebp, 0x2000
jae 0x140026efc
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 [r14]
shr al, 1
or al, 0x80
mov byte [r14], al
mov eax, ebp
and eax, 0x1ff
cmp ebp, 0x200
movzx ecx, byte [rax + r8 + 0x8ff40]
movzx eax, byte [rdx + r8 + 0x8f920]
cmovb eax, ecx
inc word [rbx + rax*2 + 0x840a]
lea eax, [r9 - 3]
movzx eax, word [r8 + rax*2 + 0x8fd40]
inc word [rbx + rax*2 + 0x81ca]
mov eax, 3
jmp 0x140026f40
mov r10d, dword [rsp + 0x88]
mov r9d, 1
mov r11d, dword [rsp + 0x90]
movzx eax, dil
mov byte [r12], al
shr byte [r14], 1
inc word [rbx + rax*2 + 0x81ca]
mov eax, r9d
jmp 0x140026f40
movzx eax, dil
mov byte [r12], al
shr byte [r14], 1
inc word [rbx + rax*2 + 0x81ca]
mov rax, r9
mov r15d, dword [rsp + 0x20]
lea rdx, [rax + r12]
add esi, 0xffffffff
lea r12, [rdx + 1]
mov ecx, esi
mov r8d, 0x8000
mov ebp, 8
mov rax, rdx
cmove esi, ebp
test ecx, ecx
mov dword [rsp + 0x98], esi
cmovne rax, r14
cmovne r12, rdx
mov r14, rax
add r10d, r9d
mov eax, dword [rsp + 0x80]
add r11d, r9d
add eax, r9d
mov dword [rsp + 0x88], r10d
cmp eax, r8d
mov dword [rsp + 0x90], r11d
cmovb r8d, eax
add r15d, r9d
and r15d, 0x7fff
mov dword [rsp + 0x80], r8d
sub r13d, r9d
mov dword [rsp + 0x20], r15d
lea rax, [rbx + 0x192a2]
cmp r12, rax
jbe 0x14002701f
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], r14
mov dword [rbx + 0x50], esi
call fcn.140026490
test eax, eax
jne 0x140027150
mov r10d, dword [rbx + 0x54]
mov esi, dword [rbx + 0x50]
mov r12, qword [rbx + 0x30]
mov r14, 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 0x140026d50
jmp 0x140027030
mov ebp, 8
test r13d, r13d
je 0x140026c20
lea rdi, [rbx + 0x192a2]
inc r10d
mov eax, r15d
lea rcx, [r12 + 1]
mov dword [rsp + 0x88], r10d
movzx edx, byte [rax + rbx + 0xc8]
mov byte [r12], dl
shr byte [r14], 1
add esi, 0xffffffff
mov eax, esi
cmove esi, ebp
test eax, eax
mov dword [rsp + 0x98], esi
cmovne rcx, r14
neg eax
mov r14, 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 r15d
cmovb r8d, eax
and r15d, 0x7fff
dec r13d
mov dword [rsp + 0x80], r8d
mov dword [rsp + 0x20], r15d
cmp r12, rdi
jbe 0x140027120
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.140026490
test eax, eax
jne 0x140027150
mov r10d, dword [rbx + 0x54]
mov esi, dword [rbx + 0x50]
mov r12, qword [rbx + 0x30]
mov r14, 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 0x140027040
jmp 0x140026c20
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], r14
mov dword [rbx + 0x50], esi
jmp 0x140027158
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