Function at 0x140011302
Capabilities:
Check for foreground window switch
Execute command
Log keystrokes via polling

Disassembly:
jmp 0x140012380
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x180], rax
lea rcx, [0x1400250f4]
call fcn.14001141f
nop
lea rdx, str.CPS:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001108c
nop
lea rdx, [rbp + 4]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
nop
lea rcx, [0x14001bcac]
call qword [sym.imp.ucrtbased.dll_system]
nop
mov byte [rbp + 0x24], 0
lea rdx, str.Bind:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001108c
nop
lea rdx, str.V
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001108c
lea rdx, [0x14001103c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rdx, str.CPS:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001108c
nop
mov edx, dword [rbp + 4]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
nop
mov byte [rbp + 0x44], 1
xor eax, eax
cmp eax, 1
je 0x1400125f7
mov eax, 0x7d0
cdq
idiv dword [rbp + 4]
mov dword [rbp + 0x64], eax
movzx eax, byte [rbp + 0x24]
test eax, eax
je 0x140012521
movzx eax, byte [rbp + 0x44]
cmp eax, 1
jne 0x140012521
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x140012521
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rbp + 0x88], rax
xor edx, edx
lea rcx, str.LWJGL
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rbp + 0x178], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [rbp + 0x178]
cmp rcx, rax
jne 0x140012521
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor r9d, r9d
mov r8d, 1
mov edx, 0x201
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
nop
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor r9d, r9d
mov r8d, 1
mov edx, 0x202
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
nop
call qword [sym.imp.ucrtbased.dll_rand]
cdq
idiv dword [rbp + 0x64]
mov eax, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
movzx eax, byte [rbp + 0x44]
test eax, eax
jne 0x1400125a1
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x1400125a1
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rbp + 0xa8], rax
xor edx, edx
lea rcx, str.LWJGL
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rbp + 0x178], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [rbp + 0x178]
cmp rcx, rax
jne 0x1400125a1
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor r9d, r9d
mov r8d, 1
mov edx, 0x201
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
nop
call qword [sym.imp.ucrtbased.dll_rand]
cdq
idiv dword [rbp + 0x64]
mov eax, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
movzx eax, byte [rbp + 0x44]
cmp eax, 1
jne 0x1400125ca
mov ecx, 0x56
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x1400125ca
mov byte [rbp + 0x44], 0
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
movzx eax, byte [rbp + 0x44]
test eax, eax
jne 0x1400125f2
mov ecx, 0x56
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x1400125f2
mov byte [rbp + 0x44], 1
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x140012457
lea rcx, [rbp - 0x20]
lea rdx, [0x14001bc00]
call fcn.1400113ac
mov rcx, qword [rbp + 0x180]
xor rcx, rbp
call fcn.140011221
lea rsp, [rbp + 0x198]
pop rdi
pop rbp
ret