Function at 0x140074020
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [rcx]
mov rdi, rcx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
cmp byte [rax + 0x89], 0
jne 0x140074059
lea rcx, [rsp + 0x20]
call fcn.140074290
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x58], rbx
mov rbx, qword [rax + 0x70]
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x38], rsi
mov rsi, qword [rax + 0x78]
mov qword [rsp + 0x30], r14
cmp rbx, rsi
je 0x1400740a3
nop word [rax + rax]
mov ecx, dword [rbx + 4]
cmp ecx, 0xffffffff
jne 0x14007408c
xor eax, eax
jmp 0x140074093
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0xf
test al, 1
je 0x1400740d5
add rbx, 0x28
cmp rbx, rsi
jne 0x140074080
mov r14b, 1
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov rcx, qword [rdi]
movsxd rsi, eax
mov qword [rsp + 0x20], rsi
mov byte [rsp + 0x28], r14b
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x1400740da
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdx], xmm0
add qword [rcx + 8], 0x10
jmp 0x1400740e4
xor r14b, r14b
jmp 0x1400740a6
lea r8, [rsp + 0x20]
call fcn.1400b2d20
mov rdx, qword [rdi]
imul eax, dword [rdx + 0x8c], 0x7d
mov rcx, qword [rdx]
movsxd rbp, eax
mov rax, qword [rdx + 8]
sub rax, rcx
sar rax, 4
test rax, rax
je 0x14007414c
mov rbx, rdx
nop word [rax + rax]
mov rax, rsi
mov rdx, rbx
sub rax, qword [rcx]
cmp rax, rbp
jle 0x14007414c
mov r8, qword [rbx + 8]
lea rdx, [rcx + 0x10]
sub r8, rdx
call sub.VCRUNTIME140.dll_memmove
add qword [rbx + 8], 0xfffffffffffffff0
mov rdx, qword [rdi]
mov rbx, rdx
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
sub rax, rcx
sar rax, 4
test rax, rax
jne 0x140074110
mov r11, qword [rdx + 8]
xor r10b, r10b
mov rbp, qword [rsp + 0x60]
xor r9d, r9d
mov rax, rcx
cmp rcx, r11
je 0x140074182
movzx r8d, byte [rax + 8]
cmp r8b, r10b
je 0x140074175
test r8b, r8b
je 0x140074175
inc r9d
add rax, 0x10
movzx r10d, r8b
cmp rax, r11
jne 0x140074163
mov eax, dword [rdx + 0x90]
test eax, eax
jne 0x1400741d4
cmp byte [rdx + 0x68], al
je 0x1400741c1
cmp rcx, r11
je 0x14007419a
mov qword [rdx + 8], rcx
test r14b, r14b
je 0x1400741a3
mov al, 1
jmp 0x1400741ac
mov rax, qword [rdi]
mov byte [rax + 0x68], 0
xor al, al
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x58]
mov r14, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
cmp r9d, dword [rdx + 0x8c]
jl 0x1400741aa
mov byte [rdx + 0x68], 1
movzx eax, r14b
jmp 0x1400741ac
cmp eax, 1
jne 0x1400741aa
cmp r9d, dword [rdx + 0x8c]
jl 0x1400741f8
cmp rcx, r11
je 0x1400741eb
mov qword [rdx + 8], rcx
mov rcx, qword [rdi]
cmp byte [rcx + 0x68], 0
sete al
mov byte [rcx + 0x68], al
mov rax, qword [rsp + 0x50]
mov rbx, qword [rax + 0x70]
mov rsi, qword [rax + 0x78]
cmp rbx, rsi
je 0x140074265
nop word [rax + rax]
mov ecx, dword [rbx + 4]
cmp ecx, 0xffffffff
jne 0x14007421c
xor eax, eax
jmp 0x140074223
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0xf
test al, 1
je 0x140074235
add rbx, 0x28
cmp rbx, rsi
jne 0x140074210
jmp 0x140074265
mov rax, qword [rdi]
cmp byte [rax + 0x95], 0
je 0x140074265
mov rcx, qword [rax]
cmp rcx, qword [rax + 8]
je 0x14007424e
mov qword [rax + 8], rcx
mov rax, qword [rdi]
mov byte [rax + 0x95], 0
mov rcx, qword [rdi]
movzx eax, byte [rcx + 0x68]
mov byte [rcx + 0x96], al
mov rcx, qword [rdi]
movzx eax, byte [rcx + 0x68]
cmp byte [rcx + 0x96], al
je 0x14007427b
mov byte [rcx + 0x95], 1
mov rax, qword [rdi]
movzx eax, byte [rax + 0x68]
jmp 0x1400741ac