Function at 0x140002860
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140009008]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov dword [rsp + 0x30], 0x70008
xor r15d, r15d
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0x5c], 0x70006
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
mov edx, dword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
lea r8, [rsp + 0x58]
lea edx, [r15 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rdx, str.settings.txt
lea rcx, [rbp - 0x70]
call fcn.140003890
nop
lea rdx, [0x1400098e0]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.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]
inc dword [0x1400098e0]
lea rdx, [0x1400098e8]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.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]
mov eax, dword [0x1400098e0]
add dword [0x1400098e8], eax
lea rdx, [0x1400098ec]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.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]
mov eax, dword [0x1400098e8]
add dword [0x1400098ec], eax
lea rdx, [0x1400098e4]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.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]
mov eax, dword [0x1400098ec]
add dword [0x1400098e4], eax
lea rcx, [rbp - 0x60]
call fcn.140003ca0
test rax, rax
jne 0x1400029a5
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r15 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rbp - 0x70]
call fcn.140001830
mov ecx, 0x60
call fcn.140004750
mov qword [rsp + 0x58], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.1400018f0
mov rsi, rax
mov ecx, dword [rax + 0x20]
add ecx, 2
lea edx, [rcx + rcx*2]
mov rcx, rax
cmp qword [rax + 0x18], 0x10
jb 0x1400029e6
mov rcx, qword [rax]
movsxd rax, edx
mov byte [rax + rcx], 0x40
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1400029fa
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004340
mov eax, dword [rsi + 0x20]
add eax, 2
lea edx, [rax + rax*2]
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140002a20
mov rcx, qword [rsi]
movsxd rax, edx
mov byte [rax + rcx], 0x20
mov rbx, qword [0x1400098f8]
sub rbx, qword [0x1400098f0]
sar rbx, 3
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
xor edx, edx
div rbx
mov rax, qword [0x1400098f0]
mov rcx, qword [rax + rdx*8]
mov byte [rcx + 0x31], 1
mov eax, dword [rcx + 0x20]
add eax, 2
lea edx, [rax + rax*2]
cmp qword [rcx + 0x18], 0x10
jb 0x140002a68
mov rcx, qword [rcx]
movsxd rax, edx
mov byte [rax + rcx], 0x65
mov rcx, qword [0x1400098f8]
cmp qword [0x1400098f0], rcx
cmovne rcx, qword [0x1400098f0]
mov qword [0x1400098f8], rcx
mov r14, rsi
nop
mov edi, 0xffffffff
mov rbx, 0xffffffffffffffff
nop dword [rax]
mov ecx, 0x57
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x140002abe
mov ecx, 0x26
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140002ac4
mov edi, r15d
mov rbx, r15
mov ecx, 0x44
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x140002ae2
mov ecx, 0x27
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140002ae9
mov edi, 1
mov ebx, edi
mov ecx, 0x53
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x140002b07
mov ecx, 0x28
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140002b0e
mov edi, 2
mov ebx, edi
mov ecx, 0x41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x140002b37
mov ecx, 0x25
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x140002b37
cmp rbx, 0xffffffffffffffff
jne 0x140002b3e
jmp 0x140002aa0
mov edi, 3
mov ebx, edi
lea rbx, [r14 + rbx*8]
mov rax, qword [rbx + 0x38]
mov rdx, r14
mov ecx, edi
test rax, rax
jne 0x140002b5a
call fcn.1400024b0
jmp 0x140002a90
cmp byte [rax + 0x31], 0
jne 0x140002b78
mov r9d, 0x7d
lea r8d, [r9 - 0x79]
call fcn.140001de0
mov r14, qword [rbx + 0x38]
jmp 0x140002a90
call fcn.1400026f0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], 0xf
mov r8d, 0xe
lea rdx, str.end_screen.txt
lea rcx, [rsp + 0x38]
call fcn.140003d50
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1400012a0
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004340
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.140001cf0
nop
mov qword [rsp + 0x70], r15
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rax, qword [rsp + 0x60]
mov byte [rax], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140002c46
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c41
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002c41
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400049dc
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140004730
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret