Function at 0x140001790
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x670]
sub rsp, 0x770
mov rax, qword [0x140009008]
xor rax, rsp
mov qword [rbp + 0x660], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xor r14d, r14d
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], 0xf
mov byte [rbp - 0x48], r14b
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
lea rdx, str.C:_Windows_DM_Sclickms.txt
lea rcx, [rbp]
call fcn.140002b50
nop
mov qword [rbp - 0x28], r14
movdqa xmm0, xmmword [0x1400057a0]
movdqu xmmword [rbp - 0x18], xmm0
mov byte [rbp - 0x28], r14b
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x28]
lea rcx, [rbp]
call fcn.140003670
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rbx, qword [rbp - 0x28]
mov dword [rax], r14d
lea r8d, [r14 + 0xa]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
mov esi, eax
cmp rbx, qword [rsp + 0x30]
jne 0x14000188f
lea rcx, str.invalid_stoi_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
cmp dword [rdi], 0x22
je 0x140001e6a
lea rcx, [rbp + 0x10]
call fcn.140002fa0
test rax, rax
jne 0x1400018c2
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x110]
call sub.VCRUNTIME140.dll_memset
lea rdx, str.C:_Windows_DM_Sclickrrc.txt
lea rcx, [rbp + 0x110]
call fcn.140002b50
nop
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x110]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x110]
call fcn.140003670
lea rcx, [rbp + 0x120]
call fcn.140002fa0
test rax, rax
jne 0x14000194e
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x110]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x220]
call sub.VCRUNTIME140.dll_memset
lea rdx, str.C:_Windows_DM_Sclicksa.txt
lea rcx, [rbp + 0x220]
call fcn.140002b50
nop
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x330]
call sub.VCRUNTIME140.dll_memset
lea rdx, str.C:_Windows_DM_Sclickso.txt
lea rcx, [rbp + 0x330]
call fcn.140002b50
nop
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
mov rax, qword [rbp + 0x220]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x220]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x220]
call fcn.140003670
mov rax, qword [rbp + 0x330]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x330]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x330]
call fcn.140003670
lea rcx, [rbp + 0x230]
call fcn.140002fa0
test rax, rax
jne 0x140001a65
mov rax, qword [rbp + 0x220]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x220]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rcx, [rbp + 0x340]
call fcn.140002fa0
test rax, rax
jne 0x140001a98
mov rax, qword [rbp + 0x330]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x330]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140001e64
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rax, qword [rsp + 0x38]
movsx ecx, byte [rax]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov edi, eax
cmp qword [rsp + 0x68], 0
jbe 0x140001e64
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rcx, qword [rsp + 0x58]
movsx ecx, byte [rcx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov r14d, eax
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rcx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
cmp r8, 3
jne 0x140001d47
lea rdx, [0x14000566c]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001d47
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x440]
call sub.VCRUNTIME140.dll_memset
lea rdx, str.C:_Windows_DM_Sclicksra.txt
lea rcx, [rbp + 0x440]
call fcn.140002b50
nop
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x550]
call sub.VCRUNTIME140.dll_memset
lea rdx, str.C:_Windows_DM_Sclicksro.txt
lea rcx, [rbp + 0x550]
call fcn.140002b50
nop
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], al
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], al
mov rax, qword [rbp + 0x440]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x440]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x440]
call fcn.140003670
mov rax, qword [rbp + 0x550]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x550]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x550]
call fcn.140003670
lea rcx, [rbp + 0x450]
call fcn.140002fa0
test rax, rax
jne 0x140001c2b
mov rax, qword [rbp + 0x440]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x440]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rcx, [rbp + 0x560]
call fcn.140002fa0
test rax, rax
jne 0x140001c5e
mov rax, qword [rbp + 0x550]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x550]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
cmp qword [rbp - 0x78], 0
jbe 0x140001d41
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rax, qword [rsp + 0x78]
movsx ecx, byte [rax]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov edi, eax
cmp qword [rbp - 0x58], 0
jbe 0x140001d41
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rcx, qword [rbp - 0x68]
movsx ecx, byte [rcx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov r14d, eax
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rdx, qword [rsp + 0x78]
mov r8, qword [rbp - 0x78]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003810
lea rdx, str._to_start_
mov rcx, rax
call fcn.1400031d0
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x58]
mov rcx, rax
call fcn.140003810
lea rdx, str._to_stop
mov rcx, rax
call fcn.1400031d0
mov rcx, rax
lea rdx, [0x1400033a0]
call qword [sym.imp.MSVCP140.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]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
movsx ecx, dil
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x140001d11
xor r9d, r9d
movzx r8d, r14b
movzx edx, dil
mov ecx, esi
call fcn.1400013a0
jmp 0x140001d11
call fcn.1400031b0
nop
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rcx, qword [rsp + 0x38]
cmp rbx, 2
jne 0x140001dd4
mov r8, rbx
lea rdx, [0x1400056cc]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001dd4
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rcx, qword [rsp + 0x58]
cmp qword [rsp + 0x68], rbx
jne 0x140001dd4
mov r8, qword [rsp + 0x68]
lea rdx, [0x1400056cc]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001dd4
nop
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 2
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x140001da0
mov r9d, 3
movzx r8d, r14b
movzx edx, dil
mov ecx, esi
call fcn.140001620
jmp 0x140001da0
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rcx, qword [rsp + 0x38]
cmp rbx, 2
jne 0x140001e34
mov r8, rbx
lea rdx, [0x1400056cc]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001e34
nop
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 2
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x140001e00
mov r9d, 1
movzx r8d, r14b
movzx edx, dil
mov ecx, esi
call fcn.140001620
jmp 0x140001e00
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
movsx ecx, dil
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x140001e34
xor r9d, r9d
movzx r8d, r14b
movzx edx, dil
mov ecx, esi
call fcn.140001620
jmp 0x140001e34
call fcn.1400031b0
nop
lea rcx, str.stoi_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3