Function at 0x140041500
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1400c4010]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rax, qword [0x1400e4450]
xor edi, edi
movaps xmmword [rsp + 0x90], xmm6
cmp byte [rax + 8], dil
je 0x14004156a
mov rax, qword [0x1400e4470]
lea r9d, [rdi + 1]
mov rcx, qword [0x1400e4488]
lea r8, [rbp + 0x2f]
mov byte [rbp + 0x2f], 1
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0x30]
mov rcx, qword [rcx]
add rdx, 0x189
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [0x1400e4450]
cmp byte [rax + 9], dil
je 0x1400415b5
mov rax, qword [0x1400e4470]
lea r8, [rbp + 7]
movss xmm0, dword [0x1400bb18c]
mov r9d, 4
mov rcx, qword [0x1400e4488]
movss dword [rbp + 7], xmm0
mov rdx, qword [rax + 0x30]
add rdx, 0x280
mov qword [rsp + 0x20], rdi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [0x1400e4450]
mov qword [rsp + 0xb0], rbx
cmp byte [rax + 0xa], dil
je 0x1400416ed
mov rax, qword [0x1400e4470]
lea r8, [rbp + 7]
mov rcx, qword [0x1400e4488]
mov r9d, 8
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0x30]
mov rcx, qword [rcx]
add rdx, 0x30
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rbp + 7]
test rdx, rdx
je 0x1400416ed
mov rcx, qword [0x1400e4488]
lea r8, [rbp + 0x17]
add rdx, 0x10
mov qword [rsp + 0x20], rdi
mov r9d, 8
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rbp + 0x17]
test rdx, rdx
je 0x1400416ed
mov rcx, qword [0x1400e4488]
lea r8, [rbp + 7]
add rdx, 0x20
mov qword [rsp + 0x20], rdi
mov r9d, 8
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rbp + 7]
test rdx, rdx
je 0x1400416ed
mov rcx, qword [0x1400e4488]
lea r8, [rbp + 0x17]
add rdx, 0x70
mov qword [rsp + 0x20], rdi
mov r9d, 8
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp + 0x17]
test rbx, rbx
je 0x1400416ed
mov rcx, qword [0x1400e4488]
lea r8, [rbp + 7]
mov r9d, 8
mov qword [rsp + 0x20], rdi
mov rdx, rbx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp qword [rbp + 7], rdi
je 0x1400416ed
mov rcx, qword [0x1400e4488]
lea rdx, [rbx + 0x2c]
movss xmm0, dword [0x1400bb1e4]
lea r8, [rbp + 7]
movss dword [rbp + 7], xmm0
mov r9d, 4
mov qword [rsp + 0x20], rdi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [0x1400e4450]
cmp byte [rax + 0xc], dil
je 0x140041768
mov rax, qword [0x1400e4470]
lea r8, [rbp + 0x17]
mov rcx, qword [0x1400e4488]
mov r9d, 8
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0x98]
add rdx, qword [rax + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rbp + 0x17]
test rdx, rdx
je 0x140041768
mov rax, qword [0x1400e4470]
lea r8, [rbp + 7]
mov rcx, qword [0x1400e4488]
mov r9d, 4
mov dword [rbp + 7], 0x4000
mov qword [rsp + 0x20], rdi
add rdx, qword [rax + 0x90]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [0x1400e4450]
cmp byte [rax + 0xd], dil
je 0x1400417e3
mov rax, qword [0x1400e4470]
lea r8, [rbp + 0x17]
mov rcx, qword [0x1400e4488]
mov r9d, 8
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0x98]
add rdx, qword [rax + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rbp + 0x17]
test rdx, rdx
je 0x1400417e3
mov rax, qword [0x1400e4470]
lea r8, [rbp + 7]
mov rcx, qword [0x1400e4488]
mov r9d, 4
mov dword [rbp + 7], 0x2000
mov qword [rsp + 0x20], rdi
add rdx, qword [rax + 0x90]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [0x1400e4450]
cmp byte [rax + 0xb], dil
je 0x140041861
mov rax, qword [0x1400e4470]
lea r8, [rbp + 0x17]
mov rcx, qword [0x1400e4488]
mov r9d, 8
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0x98]
add rdx, qword [rax + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rbp + 0x17]
test rdx, rdx
je 0x140041861
mov rax, qword [0x1400e4470]
lea r8, [rbp + 7]
mov rcx, qword [0x1400e4488]
mov r9d, 4
movss xmm0, dword [0x1400bb124]
movss dword [rbp + 7], xmm0
add rdx, qword [rax + 0x68]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [0x1400e4450]
xorps xmm6, xmm6
cmp byte [rax + 0xe], dil
je 0x140041a0f
mov rax, qword [0x1400e4470]
lea r8, [rbp + 0x1f]
mov rcx, qword [0x1400e4488]
mov r9d, 0xc
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0x30]
mov rcx, qword [rcx]
add rdx, 0x90
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [0x1400e4470]
lea r8, [rbp + 7]
mov rcx, qword [0x1400e4488]
mov r9d, 0xc
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0x28]
mov rcx, qword [rcx]
add rdx, 0x3d0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [0x1400e4470]
lea r8, [rbp + 0x17]
mov rcx, qword [0x1400e4488]
mov r9d, 8
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0x30]
mov rcx, qword [rcx]
add rdx, 0x30
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1400e4488]
lea r8, [rbp - 0x19]
mov rbx, qword [rbp + 0x17]
xorps xmm0, xmm0
unpcklps xmm0, xmm6
mov r9d, 0xc
movsd qword [rbp - 0x19], xmm0
movss dword [rbp - 0x11], xmm6
mov rcx, qword [rcx]
lea rdx, [rbx + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, 6
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14004199b
movss xmm2, dword [0x1400bb044]
movss xmm0, dword [rbp + 0x1f]
movss xmm1, dword [rbp + 7]
mulss xmm1, xmm2
addss xmm0, xmm1
movss xmm1, dword [rbp + 0xb]
mulss xmm1, xmm2
movss dword [rbp + 0x1f], xmm0
movss xmm0, dword [rbp + 0x23]
addss xmm0, xmm1
movss xmm1, dword [rbp + 0xf]
mulss xmm1, xmm2
movss dword [rbp + 0x23], xmm0
movss xmm0, dword [rbp + 0x27]
addss xmm0, xmm1
movss dword [rbp + 0x27], xmm0
mov eax, dword [rbp + 0x27]
lea r8, [rbp - 0x19]
movsd xmm0, qword [rbp + 0x1f]
mov r9d, 0xc
mov rcx, qword [0x1400e4488]
mov dword [rbp - 0x11], eax
mov rax, qword [0x1400e4470]
movsd qword [rbp - 0x19], xmm0
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0x30]
add rdx, 0x90
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [0x1400e4488]
lea rdx, [rbx + 0x50]
movsd xmm0, qword [rbp + 0x1f]
lea r8, [rbp - 9]
mov eax, dword [rbp + 0x27]
mov r9d, 0xc
movsd qword [rbp - 9], xmm0
mov dword [rbp - 1], eax
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [0x1400e4450]
movaps xmm6, xmmword [rsp + 0x90]
mov rbx, qword [rsp + 0xb0]
cmp byte [rax + 0xf], dil
je 0x140041a95
mov rax, qword [0x1400e4470]
lea r8, [rbp + 0x17]
mov rcx, qword [0x1400e4488]
mov r9d, 8
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0x28]
mov rcx, qword [rcx]
add rdx, 0x10
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [0x1400e4450]
lea r8, [rbp + 7]
mov rcx, qword [0x1400e4488]
mov r9d, 4
mov rdx, qword [rbp + 0x17]
add rdx, 0x30
mov qword [rsp + 0x20], rdi
movd xmm0, dword [rax + 0x20]
cvtdq2ps xmm0, xmm0
movss dword [rbp + 7], xmm0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [0x1400e4450]
cmp byte [rax + 0x28], dil
je 0x140041b43
cmp byte [0x1400e4320], dil
jne 0x140041b43
mov rax, qword [0x1400e4470]
lea r8, [rbp + 0x17]
mov rcx, qword [0x1400e4488]
mov r9d, 8
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0xa8]
add rdx, qword [rax + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1400e4488]
lea r8, [rbp + 0x1f]
mov rdx, qword [rbp + 0x17]
mov r9d, 8
add rdx, 0x20
mov qword [rsp + 0x20], rdi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1400e4488]
lea r8, [rbp + 7]
mov rdx, qword [rbp + 0x1f]
mov r9d, 4
mov dword [rbp + 7], 0x14
add rdx, 0x120
mov qword [rsp + 0x20], rdi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov byte [0x1400e4320], 1
mov rax, qword [0x1400e4450]
cmp byte [rax + 0x2a], dil
je 0x140041bea
mov rax, qword [0x1400e4470]
lea r8, [rbp + 0x1f]
mov rcx, qword [0x1400e4488]
mov r9d, 8
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0xa8]
add rdx, qword [rax + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1400e4488]
lea r8, [rbp + 0x17]
mov rdx, qword [rbp + 0x1f]
mov r9d, 8
add rdx, 0x20
mov qword [rsp + 0x20], rdi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [0x1400e4450]
lea r8, [rbp + 7]
mov rcx, qword [0x1400e4488]
mov r9d, 4
mov rdx, qword [rbp + 0x17]
add rdx, 0x2fc
mov qword [rsp + 0x20], rdi
movd xmm0, dword [rax + 0x2c]
cvtdq2ps xmm0, xmm0
movss dword [rbp + 7], xmm0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [0x1400e4450]
cmp byte [rax + 0x24], dil
je 0x140041c84
mov rax, qword [0x1400e4470]
lea r8, [rbp + 0x1f]
mov rcx, qword [0x1400e4488]
mov r9d, 8
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0xa8]
add rdx, qword [rax + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1400e4488]
lea r8, [rbp + 0x17]
mov rdx, qword [rbp + 0x1f]
mov r9d, 8
add rdx, 0x20
mov qword [rsp + 0x20], rdi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [0x1400e4470]
lea r8, [rbp + 7]
mov rcx, qword [0x1400e4488]
mov r9d, 4
mov rdx, qword [rbp + 0x17]
mov dword [rbp + 7], edi
add rdx, qword [rax + 0x38]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [0x1400e4450]
cmp byte [rax + 0x25], dil
je 0x140041d21
mov rax, qword [0x1400e4470]
lea r8, [rbp + 0x1f]
mov rcx, qword [0x1400e4488]
mov r9d, 8
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0xa8]
add rdx, qword [rax + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1400e4488]
lea r8, [rbp + 0x17]
mov rdx, qword [rbp + 0x1f]
mov r9d, 8
add rdx, 0x20
mov qword [rsp + 0x20], rdi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [0x1400e4470]
lea r8, [rbp + 7]
mov rcx, qword [0x1400e4488]
mov r9d, 4
mov rdx, qword [rbp + 0x17]
mov dword [rbp + 7], edi
add rdx, qword [rax + 0xc0]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [0x1400e4450]
cmp byte [rax + 0x27], dil
je 0x140041dc8
mov rax, qword [0x1400e4470]
lea r8, [rbp + 0x1f]
mov rcx, qword [0x1400e4488]
mov r9d, 8
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0xa8]
add rdx, qword [rax + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1400e4488]
lea r8, [rbp + 0x17]
mov rdx, qword [rbp + 0x1f]
mov r9d, 8
add rdx, 0x20
mov qword [rsp + 0x20], rdi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [0x1400e4470]
lea r8, [rbp + 7]
mov rcx, qword [0x1400e4488]
mov r9d, 4
movss xmm0, dword [0x1400bb120]
mov rdx, qword [rbp + 0x17]
movss dword [rbp + 7], xmm0
add rdx, qword [rax + 0xb8]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [0x1400e4450]
cmp byte [rax + 0x29], dil
je 0x140041e68
mov rax, qword [0x1400e4470]
lea r8, [rbp + 0x1f]
mov rcx, qword [0x1400e4488]
mov r9d, 8
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0xa8]
add rdx, qword [rax + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1400e4488]
lea r8, [rbp + 0x17]
mov rdx, qword [rbp + 0x1f]
mov r9d, 8
add rdx, 0x20
mov qword [rsp + 0x20], rdi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1400e4488]
lea r8, [rbp + 7]
movss xmm0, dword [0x1400bb19c]
mov r9d, 4
mov rdx, qword [rbp + 0x17]
movss dword [rbp + 7], xmm0
add rdx, 0xb0
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [0x1400e4450]
cmp byte [rax + 0x26], dil
je 0x140041ee3
mov rax, qword [0x1400e4470]
lea r8, [rbp + 0x1f]
mov rcx, qword [0x1400e4488]
mov r9d, 8
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0x98]
add rdx, qword [rax + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rbp + 0x1f]
test rdx, rdx
je 0x140041ee3
mov rax, qword [0x1400e4470]
lea r8, [rbp + 7]
mov rcx, qword [0x1400e4488]
mov r9d, 4
mov dword [rbp + 7], 0x1000
mov qword [rsp + 0x20], rdi
add rdx, qword [rax + 0x90]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [0x1400e4450]
cmp byte [rax + 0x118], dil
je 0x140041f5a
mov rax, qword [0x1400e4470]
lea r8, [rbp + 0x1f]
mov rcx, qword [0x1400e4488]
mov r9d, 8
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0xc8]
add rdx, qword [rax + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rbp + 0x1f]
test rdx, rdx
je 0x140041f5a
mov rcx, qword [0x1400e4488]
lea r8, [rbp + 7]
mov dword [rbp + 7], 1
add rdx, 0x92a
mov r9d, 4
mov qword [rsp + 0x20], rdi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [0x1400e4450]
cmp byte [rax + 0x118], dil
je 0x140041fd1
mov rax, qword [0x1400e4470]
lea r8, [rbp + 0x1f]
mov rcx, qword [0x1400e4488]
mov r9d, 8
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax + 0xc8]
add rdx, qword [rax + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rbp + 0x1f]
test rdx, rdx
je 0x140041fd1
mov rcx, qword [0x1400e4488]
lea r8, [rbp + 7]
mov dword [rbp + 7], 1
add rdx, 0x92a
mov r9d, 4
mov qword [rsp + 0x20], rdi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140051cb0
mov rdi, qword [rsp + 0xb8]
add rsp, 0xa0
pop rbp
ret