Function at 0x140062600
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14011c480]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov r9, qword [rdx]
mov r10, qword [rdx + 8]
sub r10, r9
je 0x1400629fc
mov r8d, dword [reloc.WLDAP32.dll_Ordinal_50]
lea rax, [r9 + 1]
mov qword [r11 + 8], rbx
not r9
mov ebx, dword [0x140195f90]
mov qword [r11 + 0x10], rdi
mov r11d, dword [0x140195f84]
mov edi, dword [0x14015a484]
nop word [rax + rax]
movzx edx, byte [rax + 1]
sub edx, r11d
mov ecx, edx
neg ecx
cmovs ecx, edx
cmp ecx, r8d
jg 0x140062696
movzx edx, byte [rax]
sub edx, ebx
mov ecx, edx
neg ecx
cmovs ecx, edx
cmp ecx, r8d
jg 0x140062696
movzx edx, byte [rax - 1]
sub edx, edi
mov ecx, edx
neg ecx
cmovs ecx, edx
cmp ecx, r8d
jle 0x1400626a8
add rax, 4
lea rcx, [rax + r9]
cmp rcx, r10
jb 0x140062660
jmp 0x1400629ec
xor edi, edi
cmp byte [0x1401ccfe4], dil
je 0x140062794
cmp qword [0x1401ccfe8], rdi
je 0x1400626c9
lea rdx, str.Mouse_hook_is_already_installed
jmp 0x1400626f3
xor r9d, r9d
lea rdx, [0x1400625d0]
xor r8d, r8d
lea ecx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov qword [0x1401ccfe8], rax
test rax, rax
jne 0x140062737
lea rdx, str.Failed_to_install_mouse_hook
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14006e850
lea rdx, [0x14006ea20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_install_mouse_hook
call fcn.14006e850
lea rdx, [0x14006ea20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x1400629ec
mov ecx, dword [reloc.WLDAP32.dll_Ordinal_50]
mov byte [0x1401ccfc6], 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x1401ccfe8]
mov byte [0x1401ccfc6], dil
test rcx, rcx
je 0x14006276a
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov qword [0x1401ccfe8], rdi
movzx ebx, byte [0x14011c509]
xor r9d, r9d
movzx ecx, bl
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
xor edx, edx
movzx ecx, bl
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
cmp byte [0x1401ccfc5], dil
je 0x140062813
movsx eax, byte [0x14011c509]
lea rdx, [rbp - 9]
mov ebx, dword [reloc.WLDAP32.dll_Ordinal_30]
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov r8d, Ordinal_41
mov dword [rbp - 9], 1
movups xmmword [rbp + 0x17], xmm0
mov dword [rbp + 0x1f], 1
movups xmmword [rbp + 0x27], xmm0
lea ecx, [r8 - 0x27]
mov word [rbp + 0x27], ax
movups xmmword [rbp + 7], xmm0
mov word [rbp - 1], ax
movups xmmword [rbp + 0x37], xmm0
call qword [sym.imp.USER32.dll_SendInput]
lea rcx, [rbp - 0x19]
mov qword [rbp - 0x19], rbx
call fcn.14006e0e0
mov r8d, Ordinal_41
mov dword [rbp + 0x2b], 2
lea rdx, [rbp + 0x1f]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
cmp byte [0x1401ccff4], dil
je 0x140062877
mov eax, reloc.WS2_32.dll_recvfrom
mov dword [rbp - 9], 1
lea rdx, [rbp - 9]
mov word [rbp - 1], ax
mov dword [rbp + 3], edi
mov dword [rbp + 0x1f], 1
lea r8d, [rax + 0x17]
mov word [rbp + 0x27], ax
lea ecx, [rax - 0x10]
mov dword [rbp + 0x2b], 2
call qword [sym.imp.USER32.dll_SendInput]
lea rcx, [rbp - 0x19]
mov qword [rbp - 0x19], reloc.WLDAP32.dll_Ordinal_30
call fcn.14006e0e0
mov r8d, Ordinal_41
lea rdx, [rbp + 0x1f]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
movzx ebx, byte [0x14011c509]
xor r9d, r9d
movzx ecx, bl
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
xor edx, edx
movzx ecx, bl
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
cmp byte [0x1401ccfc7], dil
je 0x1400629c2
mov cl, 0x77
mov dword [rbp - 9], 1
call qword [sym.imp.USER32.dll_VkKeyScanA]
mov r8d, Ordinal_41
mov dword [rbp + 3], edi
lea rdx, [rbp - 9]
mov word [rbp - 1], ax
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
mov r8d, Ordinal_41
mov dword [rbp + 3], 2
lea rdx, [rbp - 9]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
mov cl, reloc.WS2_32.dll_WSAStartup
mov dword [rbp - 9], 1
call qword [sym.imp.USER32.dll_VkKeyScanA]
mov r8d, Ordinal_41
mov dword [rbp + 3], edi
lea rdx, [rbp - 9]
mov word [rbp - 1], ax
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
mov r8d, Ordinal_41
mov dword [rbp + 3], 2
lea rdx, [rbp - 9]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
mov cl, 0x61
mov dword [rbp - 9], 1
call qword [sym.imp.USER32.dll_VkKeyScanA]
mov r8d, Ordinal_41
mov dword [rbp + 3], edi
lea rdx, [rbp - 9]
mov word [rbp - 1], ax
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
mov r8d, Ordinal_41
mov dword [rbp + 3], 2
lea rdx, [rbp - 9]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
mov cl, 0x64
mov dword [rbp - 9], 1
call qword [sym.imp.USER32.dll_VkKeyScanA]
mov r8d, Ordinal_41
mov dword [rbp + 3], edi
lea rdx, [rbp - 9]
mov word [rbp - 1], ax
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
mov r8d, Ordinal_41
mov dword [rbp + 3], 2
lea rdx, [rbp - 9]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
movzx ebx, byte [0x14011c509]
xor r9d, r9d
movzx ecx, bl
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
xor edx, edx
movzx ecx, bl
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xa8]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400e7230
add rsp, 0x90
pop rbp
ret