Function at 0x140056650
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14006c040]
xor rax, rsp
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
xor ebp, ebp
movups xmmword [0x14006cae0], xmm0
movups xmmword [0x14006caf0], xmm0
movups xmmword [0x14006cb00], xmm0
nop dword [rax]
cmp byte [0x14006ca5e], bpl
jne 0x140056879
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [0x14006cae0]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400566d8
lea rcx, [0x14006cae0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [0x14006cae0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x14006cb28]
jne 0x14005671b
mov edx, 3
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
mov rcx, qword [0x14006cb28]
xor r9d, r9d
mov dword [rsp + 0x30], 3
mov rdx, rax
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov dword [rsp + 0x20], ebp
call qword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140056739
xor ecx, ecx
mov byte [0x14006ca5e], 1
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov rcx, qword [0x14006cb28]
lea rdx, [rsp + 0x50]
xorps xmm0, xmm0
mov qword [rsp + 0x40], rbp
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [0x14006cb28]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov rbx, qword [0x14006ca60]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x54], eax
mov dword [rbx + 0x18], 0x3c888889
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rsp + 0x48]
mov ecx, 1
sub eax, dword [rsp + 0x40]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x110], xmm0
mov eax, dword [rsp + 0x4c]
sub eax, dword [rsp + 0x44]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x114], xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x118], al
mov eax, dword [0x14006d4f0]
mov ecx, dword [rsp + 0x5c]
mov edx, dword [rsp + 0x58]
cmp dword [rsp + 0x50], eax
jne 0x140056807
cmp edx, dword [0x14006d4f8]
jne 0x140056807
mov eax, dword [0x14006d4f4]
cmp dword [rsp + 0x54], eax
jne 0x140056807
cmp ecx, dword [0x14006d4fc]
je 0x14005685f
movups xmm0, xmmword [rsp + 0x50]
mov r9d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov dword [0x14006caa0], edx
xor edx, edx
mov dword [0x14006caa4], ecx
mov rcx, qword [0x14006cb28]
movups xmmword [0x14006d4f0], xmm0
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x14006cb18]
lea rdx, [0x14006caa0]
mov rax, qword [rcx]
call qword [rax + 0x80]
call fcn.140056410
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x14006cae8], 0x12
jne 0x140056690
mov r8, qword [0x14006ca60]
test r8, r8
je 0x14005688e
mov rsi, qword [r8 + 0xa0]
jmp 0x140056891
mov rsi, rbp
lea rdi, [r8 + 8]
test r8, r8
je 0x140056901
mov rbx, qword [r8 + 0xa0]
test rbx, rbx
je 0x140056901
cmp qword [rbx], rbp
je 0x140056901
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400568c5
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r8, qword [0x14006ca60]
mov qword [rbx + 8], rbp
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400568df
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r8, qword [0x14006ca60]
mov qword [rbx + 0x10], rbp
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140056901
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r8, qword [0x14006ca60]
mov qword [rbx + 0x18], rbp
mov rax, qword [r8 + 0x38]
mov qword [rax + 8], rbp
mov rcx, qword [rsi]
test rcx, rcx
je 0x140056916
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r8, qword [0x14006ca60]
and dword [rdi + 4], 0xfffffff7
mov qword [rdi + 0x88], rbp
mov qword [rdi + 0x98], rbp
test r8, r8
je 0x14005698c
movsx rdx, word [r8 + 0x6228]
mov r9d, dword [r8 + 0x3fc0]
lea rcx, [rdx*8 + 0x622c]
add rcx, r8
cmp dword [rcx], r9d
je 0x140056981
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6228], cx
movsx rax, cx
lea rcx, [rax*8 + 0x622c]
add rcx, r8
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x6224]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8, qword [0x14006ca60]
test r8, r8
je 0x1400569aa
mov rdi, qword [r8 + 0x98]
jmp 0x1400569ad
mov rdi, rbp
mov rcx, qword [rdi + 0x38]
lea rbx, [r8 + 8]
test rcx, rcx
je 0x1400569c7
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r8, qword [0x14006ca60]
and dword [rbx + 4], 0xfffffff8
mov qword [rbx + 0x80], rbp
mov qword [rbx + 0x90], rbp
test r8, r8
je 0x140056a3d
movsx rdx, word [r8 + 0x6228]
mov r9d, dword [r8 + 0x3fc0]
lea rcx, [rdx*8 + 0x622c]
add rcx, r8
cmp dword [rcx], r9d
je 0x140056a32
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6228], cx
movsx rax, cx
lea rcx, [rax*8 + 0x622c]
add rcx, r8
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x6224]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x14006ca60]
mov qword [0x14006ca60], rbx
call fcn.140006590
mov qword [0x14006ca60], rbp
test rbx, rbx
je 0x140056ae2
mov rcx, rbx
call fcn.14001f220
mov r8, qword [0x14006ca60]
test r8, r8
je 0x140056ad9
movsx r10, word [r8 + 0x6228]
lea rdx, [r8 + 0x622c]
mov r9d, dword [r8 + 0x3fc0]
lea rdx, [rdx + r10*8]
cmp dword [rdx], r9d
je 0x140056ace
lea ecx, [r10 + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
lea rdx, [r8 + 0x622c]
sub ecx, eax
mov word [r8 + 0x6228], cx
movsx rax, cx
lea rdx, [rdx + rax*8]
mov dword [rdx], r9d
mov dword [rdx + 4], ebp
inc word [rdx + 6]
inc dword [r8 + 0x6224]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x14006cb28]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400596c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret