Function at 0x140008c60
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 [0x140271510]
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 0x140008cae
xor eax, eax
jmp 0x1400092fe
mov r8, r13
mov rdx, r12
xor ecx, ecx
call fcn.1400089dc
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 0x140008ca7
movzx ecx, r15w
cmp ecx, 0xb
ja 0x1400090e0
je 0x1400090d0
sub ecx, 1
je 0x1400090af
sub ecx, 1
je 0x140008f10
sub ecx, 3
je 0x140008e40
cmp ecx, 1
jne 0x1400092fb
lea ebx, [rcx + 3]
cmp di, bx
jne 0x1400092fb
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 [0x140274d50]
mov word [rbp - 7], ax
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [0x140274d94]
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.14000882c
mov rcx, qword [0x140274d70]
lea r15d, [rbx - 3]
xor ebx, ebx
test rcx, rcx
jne 0x140008df7
movsxd rcx, dword [0x140274d88]
shl rcx, 3
call fcn.140176110
mov qword [0x140274d70], rax
mov rcx, rax
test rax, rax
je 0x14000932f
mov eax, dword [0x140274d88]
mov r14d, ebx
test eax, eax
jle 0x1400092fb
mov edi, ebx
movsxd rcx, dword [0x140274d90]
shl rcx, 3
call fcn.140176110
mov rcx, qword [0x140274d70]
mov qword [rcx + rdi], rax
test rax, rax
je 0x140009375
mov eax, dword [0x140274d88]
add r14d, r15d
add rdi, rsi
cmp r14d, eax
jl 0x140008dc0
jmp 0x140008dfd
mov eax, dword [0x140274d88]
test eax, eax
jle 0x1400092fb
mov r9d, dword [0x140274d90]
mov r8d, eax
test r9d, r9d
jle 0x140008e33
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 0x140008e1a
add rcx, rsi
sub r8, r15
jne 0x140008e0f
jmp 0x1400092fb
cmp di, 0xa
jb 0x140008e6b
movzx ecx, word [r14 + 8]
call qword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [0x140274d6c]
movzx edx, ax
lea eax, [rdx - 0x14]
cmp eax, 0x1374
cmovbe ecx, edx
mov dword [0x140274d6c], ecx
mov esi, 8
cmp di, si
jb 0x140008e9a
movzx ecx, word [r14 + 6]
call qword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [0x140272130]
movzx edx, ax
lea eax, [rdx - 0x40]
cmp eax, 0xfc0
cmovbe ecx, edx
mov dword [0x140272130], ecx
mov esi, 6
cmp di, si
jb 0x1400092fb
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 [0x140274da8], rbx
mov dword [0x14027213c], eax
je 0x1400092fb
sub ecx, r15d
je 0x140008eff
sub ecx, r15d
je 0x140008ef6
cmp ecx, r15d
jne 0x1400092fb
lea rcx, str.image_tiff
jmp 0x140008f06
lea rcx, str.image_png
jmp 0x140008f06
lea rcx, str.image_jpeg
call fcn.14000a048
jmp 0x1400092fb
xor ebx, ebx
lea eax, [rdi - 0xa]
mov ecx, 0xfffd
movzx esi, bx
test cx, ax
jne 0x1400092fb
movzx ecx, word [r14 + 6]
call qword [sym.imp.WS2_32.dll_ntohs]
movd xmm0, dword [0x140272134]
movzx ecx, word [r14 + 8]
movzx eax, ax
cvtdq2pd xmm0, xmm0
movd xmm7, eax
cvtdq2pd xmm7, xmm7
mulsd xmm7, qword [0x140255268]
divsd xmm7, xmm0
call qword [sym.imp.WS2_32.dll_ntohs]
movd xmm0, dword [0x140272134]
mov ecx, dword [0x140274d80]
mov r8d, dword [0x140274d5c]
movzx eax, ax
cvtdq2pd xmm0, xmm0
movd xmm4, eax
mov eax, dword [0x140274d7c]
sub eax, dword [0x140274d2c]
cvtdq2pd xmm4, xmm4
movd xmm6, eax
mulsd xmm4, qword [0x140255268]
mov eax, dword [0x140274d68]
sub eax, dword [0x140274d98]
cvtdq2pd xmm6, xmm6
divsd xmm4, xmm0
movd xmm0, dword [0x140274d64]
andps xmm6, xmmword [0x1402553b0]
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 [0x140274d54]
mulsd xmm6, xmm1
movd xmm1, r8d
cvtdq2pd xmm7, xmm7
mulsd xmm6, qword [0x140255288]
andps xmm7, xmmword [0x1402553b0]
addsd xmm7, xmm4
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
mulsd xmm7, xmm1
mulsd xmm7, qword [0x140255288]
cmp di, ax
jne 0x140009039
movzx ecx, word [r14 + 0xa]
call qword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [0x140274d80]
movzx esi, ax
mov r8d, dword [0x140274d5c]
movzx edx, byte [r14 + 5]
cmp edx, 0x88
je 0x1400092fb
movd xmm0, ecx
or edx, 0xc001
mov dword [rbp - 0x31], ebx
mov dword [rbp - 0x1d], edx
cvtdq2pd xmm0, xmm0
divsd xmm6, xmm0
movd xmm0, r8d
cvtdq2pd xmm0, xmm0
cvttsd2si ecx, xmm6
divsd xmm7, xmm0
mov dword [rbp - 0x29], ecx
cvttsd2si eax, xmm7
mov dword [rbp - 0x25], eax
movsx eax, si
mov dword [rbp - 0x21], eax
test si, si
je 0x14000908f
bts edx, 0xb
mov dword [rbp - 0x1d], edx
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 0x1400092fb
mov esi, 6
cmp di, si
jne 0x1400092fb
movsx edx, byte [r14 + 4]
mov cl, byte [r14 + 5]
call fcn.1400080fc
jmp 0x1400092fb
mov rdx, r13
mov rcx, r12
call fcn.14000882c
jmp 0x1400092fb
sub ecx, 0xc
je 0x1400092d2
sub ecx, 1
je 0x1400092b2
sub ecx, 1
je 0x140009270
cmp ecx, 1
jne 0x1400092fb
mov r15d, ecx
cmp byte [r14 + 4], r15b
jne 0x140009221
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 [0x140272134]
movzx edi, ax
shl edi, 0xa
call qword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [0x140274d7c]
xor edx, edx
sub ecx, dword [0x140274d2c]
movd xmm1, dword [0x140274d80]
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 [0x1402553b0]
cvttsd2si rcx, xmm0
movd xmm0, dword [0x140274d64]
add cx, ax
cvtdq2pd xmm0, xmm0
movzx eax, cx
mov ecx, dword [0x140274d68]
sub ecx, dword [0x140274d98]
movd xmm2, eax
mov eax, r10d
divsd xmm1, xmm0
cvtdq2pd xmm2, xmm2
movd xmm0, ecx
movzx ecx, word [0x140272134]
mulsd xmm2, xmm1
movd xmm1, dword [0x140274d5c]
div ecx
mov cl, byte [r14 + 5]
mov edx, esi
mulsd xmm2, qword [0x140255288]
cvtdq2pd xmm0, xmm0
cvttsd2si r8, xmm2
andps xmm0, xmmword [0x1402553b0]
cvttsd2si r9, xmm0
movd xmm0, dword [0x140274d54]
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 [0x140255288]
cvttsd2si r9, xmm2
call fcn.140008240
jmp 0x14000923f
cmp byte [r14 + 4], 2
jne 0x1400092fb
mov r8d, dword [0x140272134]
lea edx, [rsi - 5]
lea rcx, [r14 + 5]
call fcn.14000833c
cmp eax, r15d
jne 0x1400092fb
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 0x1400092aa
call fcn.14000819c
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 0x1400092fb
movzx ecx, word [r14 + 4]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
lea eax, [rcx - 0x14]
cmp eax, 0x1374
ja 0x1400092fb
mov dword [0x140274d6c], ecx
jmp 0x1400092fb
mov esi, 6
cmp di, si
jb 0x1400092fb
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 [0x140274d40], ecx
mov eax, dword [rbp - 0x39]
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14016d990
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, 0x21b
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14007ddcc
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.140170088
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...meshcoreKVMWindowskvm.c
mov edi, 0x21c
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14007ddcc
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.140170088
int3