Function at 0x18008d7d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x1800e0020]
xor rax, rsp
mov qword [rsp + 0x90], rax
call fcn.180053030
test rax, rax
jne 0x18008d80d
xor eax, eax
jmp 0x18008df6c
call fcn.1800531e0
mov qword [rsp + 0x20], rax
call fcn.18008c850
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0x200
ja 0x18008d878
cmp dword [rsp + 0x2c], 0x200
je 0x18008d8b2
mov eax, dword [rsp + 0x2c]
sub eax, 7
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0xfe
ja case.0x18008d8b0.527
mov eax, dword [rsp + 0x2c]
lea rcx, [0x180000000]
movzx eax, byte [rcx + rax + 0x8dfa8]
mov eax, dword [rcx + rax*4 + 0x8df84]
add rax, rcx
jmp rax
mov eax, dword [rsp + 0x2c]
sub eax, 0x201
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0xa2
ja case.0x18008d8b0.527
mov eax, dword [rsp + 0x2c]
lea rcx, [0x180000000]
movzx eax, byte [rcx + rax + 0x8e0ec]
mov eax, dword [rcx + rax*4 + 0x8e0a8]
add rax, rcx
jmp rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x10]
test eax, eax
jne 0x18008d90f
mov dword [rsp + 0x78], 0x18
mov dword [rsp + 0x7c], 2
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], 0
lea rcx, [rsp + 0x78]
call qword [sym.imp.USER32.dll_TrackMouseEvent]
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x10], 1
jmp case.0x18008d8b0.527
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xb0]
cmp qword [rax + 8], rcx
jne 0x18008d934
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x10], 0
jmp case.0x18008d8b0.527
mov dword [rsp + 0x34], 0
cmp dword [rsp + 0xb8], 0x201
je 0x18008d964
cmp dword [rsp + 0xb8], 0x203
jne 0x18008d96c
mov dword [rsp + 0x34], 0
cmp dword [rsp + 0xb8], 0x204
je 0x18008d986
cmp dword [rsp + 0xb8], 0x206
jne 0x18008d98e
mov dword [rsp + 0x34], 1
cmp dword [rsp + 0xb8], 0x207
je 0x18008d9a8
cmp dword [rsp + 0xb8], 0x209
jne 0x18008d9b0
mov dword [rsp + 0x34], 2
cmp dword [rsp + 0xb8], 0x20b
je 0x18008d9ca
cmp dword [rsp + 0xb8], 0x20d
jne 0x18008d9fe
mov rax, qword [rsp + 0xc0]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
cmp eax, 1
jne 0x18008d9ee
mov dword [rsp + 0x48], 3
jmp 0x18008d9f6
mov dword [rsp + 0x48], 4
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x34], eax
call fcn.180058000
movzx eax, al
test eax, eax
jne 0x18008da23
call qword [sym.imp.USER32.dll_GetCapture]
test rax, rax
jne 0x18008da23
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.USER32.dll_SetCapture]
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax + 0x128], 1
xor eax, eax
jmp 0x18008df6c
mov dword [rsp + 0x38], 0
cmp dword [rsp + 0xb8], 0x202
jne 0x18008da59
mov dword [rsp + 0x38], 0
cmp dword [rsp + 0xb8], 0x205
jne 0x18008da6e
mov dword [rsp + 0x38], 1
cmp dword [rsp + 0xb8], 0x208
jne 0x18008da83
mov dword [rsp + 0x38], 2
cmp dword [rsp + 0xb8], 0x20c
jne 0x18008dac4
mov rax, qword [rsp + 0xc0]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
cmp eax, 1
jne 0x18008dab4
mov dword [rsp + 0x4c], 3
jmp 0x18008dabc
mov dword [rsp + 0x4c], 4
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax + 0x128], 0
call fcn.180058000
movzx eax, al
test eax, eax
jne 0x18008daf8
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, qword [rsp + 0xb0]
jne 0x18008daf8
call qword [sym.imp.USER32.dll_ReleaseCapture]
xor eax, eax
jmp 0x18008df6c
mov rax, qword [rsp + 0xc0]
shr rax, 0x10
and rax, 0xffff
cwde
cvtsi2ss xmm0, eax
divss xmm0, dword [0x1800d92b0]
mov rax, qword [rsp + 0x20]
movss xmm1, dword [rax + 0x130]
addss xmm1, xmm0
movaps xmm0, xmm1
mov rax, qword [rsp + 0x20]
movss dword [rax + 0x130], xmm0
xor eax, eax
jmp 0x18008df6c
mov rax, qword [rsp + 0xc0]
shr rax, 0x10
and rax, 0xffff
cwde
cvtsi2ss xmm0, eax
divss xmm0, dword [0x1800d92b0]
mov rax, qword [rsp + 0x20]
movss xmm1, dword [rax + 0x134]
addss xmm1, xmm0
movaps xmm0, xmm1
mov rax, qword [rsp + 0x20]
movss dword [rax + 0x134], xmm0
xor eax, eax
jmp 0x18008df6c
cmp dword [rsp + 0xb8], 0x100
je 0x18008dbb1
cmp dword [rsp + 0xb8], 0x104
je 0x18008dbb1
mov dword [rsp + 0x50], 0
jmp 0x18008dbb9
mov dword [rsp + 0x50], 1
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x30], al
cmp qword [rsp + 0xc0], 0x100
jae 0x18008dbee
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
movzx ecx, byte [rsp + 0x30]
mov byte [rax + 0x13c], cl
cmp qword [rsp + 0xc0], 0x11
jne 0x18008dce1
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x18008dc1c
mov dword [rsp + 0x54], 1
jmp 0x18008dc24
mov dword [rsp + 0x54], 0
mov eax, 1
imul rax, rax, 0xa2
mov rcx, qword [rsp + 0x20]
movzx edx, byte [rsp + 0x54]
mov byte [rcx + rax + 0x13c], dl
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x18008dc60
mov dword [rsp + 0x58], 1
jmp 0x18008dc68
mov dword [rsp + 0x58], 0
mov eax, 1
imul rax, rax, 0xa3
mov rcx, qword [rsp + 0x20]
movzx edx, byte [rsp + 0x58]
mov byte [rcx + rax + 0x13c], dl
mov eax, 1
imul rax, rax, 0xa2
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax + 0x13c]
test eax, eax
jne 0x18008dcc9
mov eax, 1
imul rax, rax, 0xa3
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax + 0x13c]
test eax, eax
jne 0x18008dcc9
mov dword [rsp + 0x5c], 0
jmp 0x18008dcd1
mov dword [rsp + 0x5c], 1
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x5c]
mov byte [rax + 0x138], cl
cmp qword [rsp + 0xc0], 0x10
jne 0x18008ddd4
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x18008dd0f
mov dword [rsp + 0x60], 1
jmp 0x18008dd17
mov dword [rsp + 0x60], 0
mov eax, 1
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x20]
movzx edx, byte [rsp + 0x60]
mov byte [rcx + rax + 0x13c], dl
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x18008dd53
mov dword [rsp + 0x64], 1
jmp 0x18008dd5b
mov dword [rsp + 0x64], 0
mov eax, 1
imul rax, rax, 0xa1
mov rcx, qword [rsp + 0x20]
movzx edx, byte [rsp + 0x64]
mov byte [rcx + rax + 0x13c], dl
mov eax, 1
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax + 0x13c]
test eax, eax
jne 0x18008ddbc
mov eax, 1
imul rax, rax, 0xa1
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax + 0x13c]
test eax, eax
jne 0x18008ddbc
mov dword [rsp + 0x68], 0
jmp 0x18008ddc4
mov dword [rsp + 0x68], 1
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x68]
mov byte [rax + 0x139], cl
cmp qword [rsp + 0xc0], 0x12
jne 0x18008dec7
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x18008de02
mov dword [rsp + 0x6c], 1
jmp 0x18008de0a
mov dword [rsp + 0x6c], 0
mov eax, 1
imul rax, rax, 0xa4
mov rcx, qword [rsp + 0x20]
movzx edx, byte [rsp + 0x6c]
mov byte [rcx + rax + 0x13c], dl
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x18008de46
mov dword [rsp + 0x70], 1
jmp 0x18008de4e
mov dword [rsp + 0x70], 0
mov eax, 1
imul rax, rax, 0xa5
mov rcx, qword [rsp + 0x20]
movzx edx, byte [rsp + 0x70]
mov byte [rcx + rax + 0x13c], dl
mov eax, 1
imul rax, rax, 0xa4
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax + 0x13c]
test eax, eax
jne 0x18008deaf
mov eax, 1
imul rax, rax, 0xa5
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax + 0x13c]
test eax, eax
jne 0x18008deaf
mov dword [rsp + 0x74], 0
jmp 0x18008deb7
mov dword [rsp + 0x74], 1
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x74]
mov byte [rax + 0x13a], cl
xor eax, eax
jmp 0x18008df6c
cmp dword [rsp + 0xb8], 7
jne 0x18008dedf
mov byte [rsp + 0x28], 1
jmp 0x18008dee4
mov byte [rsp + 0x28], 0
movzx edx, byte [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call fcn.18004dc40
xor eax, eax
jmp 0x18008df6c
cmp qword [rsp + 0xc0], 0
jbe 0x18008df22
cmp qword [rsp + 0xc0], 0x10000
jae 0x18008df22
movzx edx, word [rsp + 0xc0]
mov rcx, qword [rsp + 0x20]
call fcn.18004d9e0
xor eax, eax
jmp 0x18008df6c
mov rax, qword [rsp + 0xc8]
and rax, 0xffff
movzx eax, ax
cmp eax, 1
jne 0x18008df4f
call fcn.18008ccc0
movzx eax, al
test eax, eax
je 0x18008df4f
mov eax, 1
jmp 0x18008df6c
xor eax, eax
jmp 0x18008df6c
cmp dword [rsp + 0xc0], 7
jne 0x18008df66
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x2d], 1
xor eax, eax
jmp 0x18008df6c
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1800c95f0
add rsp, 0xa8
ret