Function at 0x140006fd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x1401ff510]
xor rax, rsp
mov qword [rbp - 1], rax
mov eax, 4
mov r13, r9
mov r12, r8
mov ebx, edx
mov r14, rcx
cmp edx, eax
jge 0x14000701e
xor eax, eax
jmp 0x14000765b
mov r8, r13
mov rdx, r12
xor ecx, ecx
call fcn.140006d4c
movzx ecx, word [r14]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, word [r14 + 2]
movzx r15d, ax
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
mov dword [rbp - 0x39], edi
mov esi, edi
cmp edi, ebx
jg 0x140007017
movzx ecx, r15w
cmp ecx, 0xb
ja 0x14000743d
je 0x14000742d
sub ecx, 1
je 0x14000740c
sub ecx, 1
je 0x14000727e
sub ecx, 3
je 0x1400071b0
cmp ecx, 1
jne 0x140007658
lea ebx, [rcx + 3]
cmp di, bx
jne 0x140007658
lea ecx, [rbx + 3]
call qword [sym.imp.WS2_32.dll_htons]
lea esi, [rbx + 4]
mov word [rbp - 9], ax
mov ecx, esi
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [0x140202cb0]
mov word [rbp - 7], ax
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [0x140202cf8]
mov word [rbp - 5], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r8, r13
lea rcx, [rbp - 9]
mov edx, esi
mov word [rbp - 3], ax
call r12
mov rdx, r13
mov rcx, r12
call fcn.140006b9c
mov rcx, qword [0x140202cd0]
lea r15d, [rbx - 3]
xor ebx, ebx
test rcx, rcx
jne 0x140007167
movsxd rcx, dword [0x140202cec]
shl rcx, 3
call fcn.140164d80
mov qword [0x140202cd0], rax
mov rcx, rax
test rax, rax
je 0x14000768c
mov eax, dword [0x140202cec]
mov r14d, ebx
test eax, eax
jle 0x140007658
mov edi, ebx
movsxd rcx, dword [0x140202cf4]
shl rcx, 3
call fcn.140164d80
mov rcx, qword [0x140202cd0]
mov qword [rcx + rdi], rax
test rax, rax
je 0x1400076d2
mov eax, dword [0x140202cec]
add r14d, r15d
add rdi, rsi
cmp r14d, eax
jl 0x140007130
jmp 0x14000716d
mov eax, dword [0x140202cec]
test eax, eax
jle 0x140007658
mov r9d, dword [0x140202cf4]
mov r8d, eax
test r9d, r9d
jle 0x1400071a3
mov rdx, rbx
mov r10, r9
mov rax, qword [rcx]
mov dword [rdx + rax], 0xff
mov rax, qword [rcx]
mov byte [rax + rdx + 4], bl
add rdx, rsi
sub r10, r15
jne 0x14000718a
add rcx, rsi
sub r8, r15
jne 0x14000717f
jmp 0x140007658
cmp di, 0xa
jb 0x1400071db
movzx ecx, word [r14 + 8]
call qword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [0x140202cd8]
movzx edx, ax
lea eax, [rdx - 0x14]
cmp eax, 0x1374
cmovbe ecx, edx
mov dword [0x140202cd8], ecx
mov esi, 8
cmp di, si
jb 0x14000720a
movzx ecx, word [r14 + 6]
call qword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [0x140200130]
movzx edx, ax
lea eax, [rdx - 0x40]
cmp eax, 0xfc0
cmovbe ecx, edx
mov dword [0x140200130], ecx
mov esi, 6
cmp di, si
jb 0x14000726f
movsx eax, byte [r14 + 5]
lea r15d, [rsi - 5]
movsx ecx, byte [r14 + 4]
lea edx, [rsi + 0x54]
cmp eax, r15d
cmovb eax, r15d
cmp eax, edx
cmova eax, edx
xor ebx, ebx
cmp qword [0x140202d08], rbx
mov dword [0x14020013c], eax
je 0x14000726f
sub ecx, r15d
je 0x140007263
sub ecx, r15d
je 0x14000725a
cmp ecx, r15d
jne 0x14000726f
lea rcx, str.image_tiff
jmp 0x14000726a
lea rcx, str.image_png
jmp 0x14000726a
lea rcx, str.image_jpeg
call fcn.140008324
mov dword [0x140202cb8], 0x64
jmp 0x140007658
xor ebx, ebx
lea eax, [rdi - 0xa]
mov ecx, 0xfffd
movzx esi, bx
test cx, ax
jne 0x140007658
movzx ecx, word [r14 + 6]
call qword [sym.imp.WS2_32.dll_ntohs]
movd xmm0, dword [0x140200134]
movzx ecx, word [r14 + 8]
movzx eax, ax
cvtdq2pd xmm0, xmm0
movd xmm7, eax
cvtdq2pd xmm7, xmm7
mulsd xmm7, qword [0x1401e4490]
divsd xmm7, xmm0
call qword [sym.imp.WS2_32.dll_ntohs]
movd xmm0, dword [0x140200134]
mov ecx, dword [0x140202ce4]
mov edx, dword [0x140202cc0]
movzx eax, ax
cvtdq2pd xmm0, xmm0
movd xmm4, eax
mov eax, dword [0x140202ce0]
sub eax, dword [0x140202c8c]
cvtdq2pd xmm4, xmm4
movd xmm6, eax
mulsd xmm4, qword [0x1401e4490]
mov eax, dword [0x140202ccc]
sub eax, dword [0x140202cfc]
cvtdq2pd xmm6, xmm6
divsd xmm4, xmm0
movd xmm0, dword [0x140202cc8]
andps xmm6, xmmword [0x1401e45b0]
addsd xmm6, xmm7
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
movd xmm7, eax
lea eax, [rbx + 0xc]
divsd xmm1, xmm0
movd xmm0, dword [0x140202cb4]
mulsd xmm6, xmm1
movd xmm1, edx
cvtdq2pd xmm7, xmm7
mulsd xmm6, qword [0x1401e44b0]
andps xmm7, xmmword [0x1401e45b0]
addsd xmm7, xmm4
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
mulsd xmm7, xmm1
mulsd xmm7, qword [0x1401e44b0]
cmp di, ax
jne 0x1400073a4
movzx ecx, word [r14 + 0xa]
call qword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [0x140202ce4]
movzx esi, ax
mov edx, dword [0x140202cc0]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movsx eax, si
mov dword [rbp - 0x21], eax
movsx eax, byte [r14 + 5]
or eax, 0xc001
mov dword [rbp - 0x31], ebx
mov dword [rbp - 0x1d], eax
divsd xmm6, xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
cvttsd2si ecx, xmm6
divsd xmm7, xmm0
mov dword [rbp - 0x29], ecx
cvttsd2si ecx, xmm7
mov dword [rbp - 0x25], ecx
test si, si
je 0x1400073ec
bts eax, 0xb
mov dword [rbp - 0x1d], eax
mov r8d, 0x28
mov dword [rbp - 0x19], ebx
lea rdx, [rbp - 0x31]
mov qword [rbp - 0x11], rbx
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
jmp 0x140007658
mov esi, 6
cmp di, si
jne 0x140007658
movsx edx, byte [r14 + 4]
mov cl, byte [r14 + 5]
call fcn.14000646c
jmp 0x140007658
mov rdx, r13
mov rcx, r12
call fcn.140006b9c
jmp 0x140007658
sub ecx, 0xc
je 0x14000762f
sub ecx, 1
je 0x14000760f
sub ecx, 1
je 0x1400075cd
cmp ecx, 1
jne 0x140007658
mov r15d, ecx
cmp byte [r14 + 4], r15b
jne 0x14000757e
mov ecx, dword [r14 + 6]
call qword [sym.imp.WS2_32.dll_ntohl]
movzx ecx, word [r14 + 0xa]
mov esi, eax
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, word [r14 + 0xc]
movzx ebx, word [0x140200134]
movzx edi, ax
shl edi, 0xa
call qword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [0x140202ce0]
xor edx, edx
sub ecx, dword [0x140202c8c]
movd xmm1, dword [0x140202ce4]
movzx r10d, ax
mov eax, edi
div ebx
movd xmm0, ecx
xor edx, edx
cvtdq2pd xmm0, xmm0
shl r10d, 0xa
cvtdq2pd xmm1, xmm1
andps xmm0, xmmword [0x1401e45b0]
cvttsd2si rcx, xmm0
movd xmm0, dword [0x140202cc8]
add cx, ax
cvtdq2pd xmm0, xmm0
movzx eax, cx
mov ecx, dword [0x140202ccc]
sub ecx, dword [0x140202cfc]
movd xmm2, eax
mov eax, r10d
divsd xmm1, xmm0
cvtdq2pd xmm2, xmm2
movd xmm0, ecx
movzx ecx, word [0x140200134]
mulsd xmm2, xmm1
movd xmm1, dword [0x140202cc0]
div ecx
mov cl, byte [r14 + 5]
mov edx, esi
mulsd xmm2, qword [0x1401e44b0]
cvtdq2pd xmm0, xmm0
cvttsd2si r8, xmm2
andps xmm0, xmmword [0x1401e45b0]
cvttsd2si r9, xmm0
movd xmm0, dword [0x140202cb4]
cvtdq2pd xmm1, xmm1
add r9w, ax
movzx eax, r9w
cvtdq2pd xmm0, xmm0
movd xmm2, eax
divsd xmm1, xmm0
cvtdq2pd xmm2, xmm2
mulsd xmm2, xmm1
mulsd xmm2, qword [0x1401e44b0]
cvttsd2si r9, xmm2
call fcn.1400065b0
jmp 0x14000759c
cmp byte [r14 + 4], 2
jne 0x140007658
mov r8d, dword [0x140200134]
lea edx, [rsi - 5]
lea rcx, [r14 + 5]
call fcn.1400066ac
cmp eax, r15d
jne 0x140007658
mov ecx, reloc.WS2_32.dll_ntohs
call qword [sym.imp.WS2_32.dll_htons]
mov ebx, 4
mov word [rbp - 9], ax
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 7], ax
mov edx, ebx
lea rcx, [rbp - 9]
jmp 0x140007607
call fcn.14000650c
mov ecx, reloc.WS2_32.dll_ntohl
mov ebx, eax
call qword [sym.imp.WS2_32.dll_htons]
mov esi, 6
mov word [rbp - 9], ax
mov ecx, esi
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, bx
mov word [rbp - 7], ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 5], ax
mov edx, esi
lea rcx, [rbp - 9]
mov r8, r13
call r12
jmp 0x140007658
movzx ecx, word [r14 + 4]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
lea eax, [rcx - 0x14]
cmp eax, 0x1374
ja 0x140007658
mov dword [0x140202cd8], ecx
jmp 0x140007658
mov esi, 6
cmp di, si
jb 0x140007658
movzx ecx, word [r14 + 4]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
xor ebx, ebx
cmp ecx, 0xffff
cmove ecx, ebx
mov dword [0x140202ca0], ecx
mov eax, dword [rbp - 0x39]
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14015c600
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [rsp + 0x70]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...meshcoreKVMWindowskvm.c
mov edi, 0x21a
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14006e59c
mov r8d, edi
lea rdx, str...meshcoreKVMWindowskvm.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.14015ecf8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...meshcoreKVMWindowskvm.c
mov edi, 0x21b
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14006e59c
mov r8d, edi
lea rdx, str...meshcoreKVMWindowskvm.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.14015ecf8
int3