Function at 0x14007f900
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rdi
sub rsp, 0x20
mov r8, qword [rcx + 0x38]
mov rdi, rcx
mov eax, dword [rcx + 0x60]
mov qword [rsp + 0x30], rbx
add rax, r8
mov rbx, qword [rcx + 8]
mov qword [rsp + 0x40], rsi
mov rsi, rdx
mov qword [rcx + 0x50], rax
cmp rbx, rdx
je 0x14007f5e8
mov qword [rsp + 0x38], rbp
mov ebp, 8
nop dword [rax + rax]
movzx eax, byte [rbx]
sub al, 1
mov byte [rbx], al
jne 0x14007f5b7
movzx eax, byte [rbx + 1]
xor ecx, ecx
mov edx, dword [rbx + 4]
add rdx, qword [rdi + 0x38]
cmp byte [rdx], 0x40
cmovae ecx, ebp
and al, 0x10
add cl, al
mov byte [rbx + 1], cl
mov eax, dword [rdx]
mov dword [rbx + 2], eax
movzx eax, word [rdx + 4]
mov word [rbx + 6], ax
mov rax, qword [rdi + 0x58]
cmp rdx, rax
je 0x14007f5a0
mov dword [rdx], 0xffffffff
mov eax, dword [rdi + 0x128]
mov dword [rdx + 4], eax
movzx eax, byte [rdi + 0x80]
mov dword [rdx + 8], eax
sub edx, dword [rdi + 0x38]
inc dword [rdi + 0x1c0]
mov dword [rdi + 0x128], edx
movzx eax, byte [rbx + 3]
add eax, 0xb
shr eax, 3
mov byte [rbx + 3], al
jmp 0x14007f5d0
add rax, 0xc
mov qword [rdi + 0x58], rax
movzx eax, byte [rbx + 3]
add eax, 0xb
shr eax, 3
mov byte [rbx + 3], al
jmp 0x14007f5d0
movzx r8d, al
xor r9d, r9d
add r8d, 3
mov rdx, rbx
shr r8d, 1
mov rcx, rdi
call fcn.14007ed80
mov r8, qword [rdi + 0x38]
mov ebx, dword [rbx + 8]
add rbx, r8
cmp rbx, rsi
jne 0x14007f530
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
cmp rbx, qword [rdi]
je 0x14007f647
movzx eax, byte [rbx]
test al, al
jne 0x14007f609
movzx ecx, byte [rbx + 3]
movzx eax, cl
shr al, 1
sub cl, al
mov byte [rbx + 3], cl
jmp 0x14007f638
add word [rbx + 2], 4
mov r8d, eax
movzx ecx, word [rbx + 2]
lea eax, [rax*4 + 0x80]
cmp ecx, eax
jbe 0x14007f638
add r8d, 2
mov r9d, 1
shr r8d, 1
mov rdx, rbx
mov rcx, rdi
call fcn.14007ed80
mov r8, qword [rdi + 0x38]
mov ebx, dword [rbx + 8]
add rbx, r8
cmp rbx, qword [rdi]
jne 0x14007f5f2
cmp dword [rdi + 0x64], 0
mov rbx, qword [rsp + 0x30]
je 0x14007f6bf
mov rcx, rdi
call fcn.14007e1c0
mov ecx, dword [rdi + 0x30]
shr ecx, 1
cmp eax, ecx
jb 0x14007f6bf
mov rax, qword [rdi + 8]
cmp dword [rax + 8], 0
je 0x14007f680
nop dword [rax]
mov eax, dword [rax + 8]
add rax, r8
mov qword [rdi + 8], rax
cmp dword [rax + 8], 0
jne 0x14007f670
mov rdx, qword [rdi + 8]
xor r8d, r8d
mov rcx, rdi
call fcn.14007dc30
mov rcx, rdi
call fcn.14007dfc0
mov rcx, rdi
call fcn.14007e1c0
mov ecx, dword [rdi + 0x30]
shr ecx, 2
lea ecx, [rcx + rcx*2]
cmp eax, ecx
ja 0x14007f680
mov eax, dword [rdi + 0x24]
mov dword [rdi + 0x18], eax
mov dword [rdi + 0x34], 0
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
add rsp, 0x20
pop rdi
jmp fcn.14007f140
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x38
xor edi, edi
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov r10d, edi
movzx r14d, byte [rcx + 1]
movzx r15d, word [rcx + 4]
movzx eax, word [rcx + 2]
movzx r12d, byte [rcx]
shl r15d, 0x10
or r15d, eax
mov dword [rsp + 0x88], r14d
cmp r14b, 0x1f
jae 0x14007f9e2
mov rax, qword [rbx]
mov ecx, dword [rax + 8]
test ecx, ecx
je 0x14007f9e2
mov rax, qword [rbx + 0x38]
cmp byte [rax + rcx], dil
lea r8, [rax + rcx]
jne 0x14007f976
movzx eax, byte [r8 + 3]
lea r10, [r8 + 2]
cmp al, 0x20
jae 0x14007f9e2
inc al
mov byte [r10 + 1], al
jmp 0x14007f9e2
mov r10d, dword [r8 + 4]
add r10, rax
cmp byte [r10], r12b
je 0x14007f9cd
nop dword [rax]
nop word [rax + rax]
mov r9, r10
mov r11, r10
add r10, 6
cmp byte [r10], r12b
jne 0x14007f990
movzx eax, byte [r10 - 5]
cmp byte [r10 + 1], al
jb 0x14007f9cd
mov ecx, dword [r10]
movzx edx, word [r10 + 4]
mov eax, dword [r11]
mov dword [r10], eax
movzx eax, word [r11 + 4]
mov word [r10 + 4], ax
mov r10, r11
mov dword [r11], ecx
mov word [r11 + 4], dx
movzx eax, byte [r10 + 1]
cmp al, 0x73
jae 0x14007f9e2
add al, 2
mov byte [r10 + 1], al
add word [r8 + 2], 2
mov rsi, qword [rbx + 8]
cmp dword [rbx + 0x18], edi
jne 0x14007fa4a
test r15d, r15d
je 0x14007fa4a
mov r9, qword [rbx]
mov r8, r10
mov edx, 1
mov rcx, rbx
call fcn.14007d9b0
mov rcx, qword [rbx + 0x10]
mov rdx, rax
test rax, rax
jne 0x14007fa2a
mov dword [rcx + 2], edi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x38
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
jmp 0x14007f4f0
sub eax, dword [rbx + 0x38]
mov word [rcx + 2], ax
shr eax, 0x10
mov word [rcx + 4], ax
mov qword [rbx + 8], rdx
add rsp, 0x38
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x50]
movzx eax, byte [rax]
mov byte [rcx], al
inc qword [rbx + 0x50]
mov rax, qword [rbx + 0x50]
mov rcx, qword [rbx + 0x58]
mov r11d, eax
sub r11d, dword [rbx + 0x38]
mov dword [rsp + 0x70], r11d
cmp rax, rcx
jae 0x14007fa12
test r15d, r15d
jne 0x14007fa95
mov r8, qword [rbx]
mov rdx, r10
mov rcx, rbx
call fcn.14007ebf0
mov r15, rax
test rax, rax
je 0x14007fa12
sub r15d, dword [rbx + 0x38]
jmp 0x14007fac0
mov eax, r15d
add rax, qword [rbx + 0x38]
cmp rax, rcx
jae 0x14007fac5
mov r9, qword [rbx]
mov r8, r10
xor edx, edx
mov rcx, rbx
call fcn.14007d9b0
test rax, rax
je 0x14007fa12
sub eax, dword [rbx + 0x38]
mov r15d, eax
mov r11d, dword [rsp + 0x70]
add dword [rbx + 0x18], 0xffffffff
mov qword [rsp + 0x28], r13
jne 0x14007fae9
mov rax, qword [rbx]
mov rcx, rdi
cmp qword [rbx + 8], rax
mov r11d, r15d
mov dword [rsp + 0x70], r15d
setne cl
sub qword [rbx + 0x50], rcx
mov rax, qword [rbx]
mov ecx, 8
mov qword [rsp + 0x30], rbp
movzx r13d, byte [rax]
movzx r9d, word [rax + 2]
sub r9d, r13d
sub r9d, r14d
cmp r12b, 0x40
mov dword [rsp + 0x78], r9d
cmovae edi, ecx
mov dword [rsp + 0x80], edi
cmp rsi, rax
je 0x14007fdd2
movzx ebp, byte [rsi]
test ebp, ebp
je 0x14007fc69
test bpl, 1
je 0x14007fc4e
lea edi, [rbp + 1]
shr edi, 1
movzx ecx, byte [rdi + rbx + 0xa6]
lea eax, [rdi - 1]
movzx r14d, byte [rax + rbx + 0xa6]
cmp r14d, ecx
je 0x14007fc3f
lea edx, [r14 + 1]
mov eax, dword [rbx + rdx*4 + 0x128]
test eax, eax
je 0x14007fb82
mov r8d, eax
add r8, qword [rbx + 0x38]
mov eax, dword [r8 + 4]
dec dword [rbx + rdx*4 + 0x1c0]
mov dword [rbx + rdx*4 + 0x128], eax
jmp 0x14007fbb9
movzx eax, byte [rdx + rbx + 0x80]
lea ecx, [rax + rax*2]
mov eax, dword [rbx + 0x48]
sub eax, dword [rbx + 0x40]
shl ecx, 2
cmp ecx, eax
ja 0x14007fba9
mov r8, qword [rbx + 0x40]
mov eax, ecx
add rax, r8
mov qword [rbx + 0x40], rax
jmp 0x14007fbb9
mov rcx, rbx
call fcn.14007d8c0
mov r11d, dword [rsp + 0x70]
mov r8, rax
test r8, r8
je 0x14007fdf8
mov r9d, dword [rsi + 4]
lea rdx, [r8 + 8]
add r9, qword [rbx + 0x38]
mov rcx, r9
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rcx]
lea rcx, [rcx + 0xc]
mov dword [rdx - 8], eax
lea rdx, [rdx + 0xc]
mov eax, dword [rcx - 8]
mov dword [rdx - 0x10], eax
mov eax, dword [rcx - 4]
mov dword [rdx - 0xc], eax
add edi, 0xffffffff
jne 0x14007fbe0
mov dword [r9], 0xffffffff
mov eax, dword [rbx + r14*4 + 0x128]
mov dword [r9 + 4], eax
movzx eax, byte [r14 + rbx + 0x80]
mov dword [r9 + 8], eax
sub r9d, dword [rbx + 0x38]
inc dword [rbx + r14*4 + 0x1c0]
mov dword [rbx + r14*4 + 0x128], r9d
sub r8d, dword [rbx + 0x38]
mov r9d, dword [rsp + 0x78]
mov dword [rsi + 4], r8d
mov r14d, dword [rsp + 0x88]
mov edi, dword [rsp + 0x80]
movzx edx, word [rsi + 2]
lea eax, [rbp*2 + 1]
add eax, ebp
cmp eax, r13d
adc dx, 0
xor ecx, ecx
jmp 0x14007fd0b
mov eax, dword [rbx + 0x128]
test eax, eax
je 0x14007fc8a
mov edx, eax
add rdx, qword [rbx + 0x38]
mov eax, dword [rdx + 4]
dec dword [rbx + 0x1c0]
mov dword [rbx + 0x128], eax
jmp 0x14007fcc7
movzx eax, byte [rbx + 0x80]
lea ecx, [rax + rax*2]
mov eax, dword [rbx + 0x48]
sub eax, dword [rbx + 0x40]
shl ecx, 2
cmp ecx, eax
ja 0x14007fcb0
mov rdx, qword [rbx + 0x40]
mov eax, ecx
add rax, rdx
mov qword [rbx + 0x40], rax
jmp 0x14007fcc7
xor edx, edx
mov rcx, rbx
call fcn.14007d8c0
mov r9d, dword [rsp + 0x78]
mov rdx, rax
mov r11d, dword [rsp + 0x70]
test rdx, rdx
je 0x14007fdf8
mov ecx, dword [rsi + 2]
mov eax, edx
mov dword [rdx], ecx
movzx ecx, word [rsi + 6]
mov word [rdx + 4], cx
sub eax, dword [rbx + 0x38]
mov dword [rsi + 4], eax
movzx eax, byte [rdx + 1]
cmp al, 0x1e
jae 0x14007fcf1
add al, al
jmp 0x14007fcf3
mov al, 0x78
mov byte [rdx + 1], al
xor ecx, ecx
cmp r13d, 2
movzx eax, al
mov edx, ecx
seta dl
add dx, word [rbx + 0x1c]
add dx, ax
movzx eax, dx
mov word [rsi + 2], dx
lea r8d, [rax + 6]
lea r10d, [rax + r9]
imul r8d, r14d
lea eax, [r10 + r10*2]
mov r9d, ecx
add eax, eax
add r8d, r8d
cmp r8d, eax
jae 0x14007fd52
lea eax, [r10*4]
cmp r8d, eax
mov eax, ecx
setae r9b
cmp r8d, r10d
seta al
inc eax
add r9d, eax
mov eax, 4
jmp 0x14007fd83
imul eax, r10d, 0xf
cmp r8d, eax
lea eax, [r10 + r10*8]
seta r9b
cmp r8d, eax
lea eax, [r10 + r10*2]
seta cl
shl eax, 2
add ecx, 4
add r9d, ecx
xor ecx, ecx
cmp r8d, eax
seta cl
add r9d, ecx
movzx eax, r9w
add ax, dx
mov word [rsi + 2], ax
lea rax, [rbp + 1]
lea rcx, [rax + rax*2]
inc bpl
mov eax, dword [rsi + 4]
lea rdx, [rax + rcx*2]
mov eax, r11d
add rdx, qword [rbx + 0x38]
shr eax, 0x10
mov byte [rdx + 1], r9b
mov r9d, dword [rsp + 0x78]
mov word [rdx + 2], r11w
mov word [rdx + 4], ax
mov byte [rdx], r12b
or byte [rsi + 1], dil
mov byte [rsi], bpl
mov esi, dword [rsi + 8]
add rsi, qword [rbx + 0x38]
cmp rsi, qword [rbx]
jne 0x14007fb21
mov edx, r15d
add rdx, qword [rbx + 0x38]
mov qword [rbx], rdx
mov qword [rbx + 8], rdx
mov rbp, qword [rsp + 0x30]
mov r13, qword [rsp + 0x28]
add rsp, 0x38
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rdx, rsi
mov rcx, rbx
call 0x14007f4f0
jmp 0x14007fde0