Function at 0x140037780
Capabilities:
Log keystrokes via application hook
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140034560
cmp byte [rbx + 0x89], 0
jne 0x14002fa64
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140037780
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov esi, 8
cmp byte [rcx + 0x89], 0
je 0x14003784c
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rsi + rcx]
cmp dword [0x1400e35b0], eax
jle 0x140037806
lea rcx, [0x1400e35b0]
call fcn.1400a50d0
cmp dword [0x1400e35b0], 0xffffffff
jne 0x140037806
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1400e3598], xmm0
mov qword [0x1400e35a8], rax
call fcn.1400444b0
lea rcx, [0x1400ad430]
call fcn.1400a4fc4
nop
lea rcx, [0x1400e35b0]
call fcn.1400a5064
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0x28
lea rdx, str.InstallHook___disabled___in_desktop_mode
lea rcx, [rsp + 0x20]
call fcn.14000b750
nop
mov r8d, 1
lea rdx, [rsp + 0x20]
lea rcx, [0x1400e3598]
call fcn.1400322b0
nop
jmp 0x140037a0c
call fcn.140037a30
lea rcx, [0x1400e3200]
call qword [sym.imp.USER32.dll_GetKeyboardState]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x14001d9d0.0]
lea rdi, [0x140038d00]
mov rdx, rdi
lea rbp, [0x140037db0]
cmp eax, 1
cmove rdx, rbp
xor r9d, r9d
xor r8d, r8d
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbx + 0x70], rax
test rax, rax
jne 0x140037941
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rsi + rcx]
cmp dword [0x1400e35b0], eax
jle 0x140037900
lea rcx, [0x1400e35b0]
call fcn.1400a50d0
cmp dword [0x1400e35b0], 0xffffffff
jne 0x140037900
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1400e3598], xmm0
mov qword [0x1400e35a8], rax
call fcn.1400444b0
lea rcx, [0x1400ad430]
call fcn.1400a4fc4
nop
lea rcx, [0x1400e35b0]
call fcn.1400a5064
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, 0x41c
lea rdx, str.wnd_proc_._Ln___i._Keyboard_I_O_Failure__GetLastError:_0x_x
lea rcx, [rsp + 0x20]
call fcn.1400445a0
nop
mov r8d, 1
mov rdx, rax
lea rcx, [0x1400e3598]
call fcn.1400322b0
nop
lea rcx, [rsp + 0x20]
call fcn.14000ad90
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x14001d9d0.0]
cmp eax, 1
cmove rdi, rbp
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
lea ecx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbx + 0x78], rax
test rax, rax
jne 0x140037a16
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rsi + rcx]
cmp dword [0x1400e35b0], eax
jle 0x1400379d5
lea rcx, [0x1400e35b0]
call fcn.1400a50d0
cmp dword [0x1400e35b0], 0xffffffff
jne 0x1400379d5
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1400e3598], xmm0
mov qword [0x1400e35a8], rax
call fcn.1400444b0
lea rcx, [0x1400ad430]
call fcn.1400a4fc4
nop
lea rcx, [0x1400e35b0]
call fcn.1400a5064
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, 0x426
lea rdx, str.wnd_proc_._Ln___i._Mouse_I_O_Failure__GetLastError:_0x_x
lea rcx, [rsp + 0x20]
call fcn.1400445a0
nop
mov r8d, 1
mov rdx, rax
lea rcx, [0x1400e3598]
call fcn.1400322b0
nop
lea rcx, [rsp + 0x20]
call fcn.14000ad90
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret