Function at 0x1400517c0
Capabilities:
Check for foreground window switch
Get graphical window text
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140086010]
xor rax, rsp
mov qword [rsp + 0x250], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8d, 0x200
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 0xf
lea rax, [rsp + 0x50]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x140051822
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140053120
lea rdx, [rsp + 0x30]
mov r9, qword [rsp + 0x48]
cmp r9, 0x10
setae r10b
mov r8, qword [rsp + 0x30]
cmovae rdx, r8
cmp qword [rsp + 0x40], 4
jne 0x140051896
mov rcx, rsi
lea r11, str.Rust
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r11 + rcx - 1]
jne 0x140051888
cmp rcx, 4
jne 0x140051870
mov eax, esi
jmp 0x14005188d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140051896
mov dil, 1
jmp 0x140051899
xor dil, dil
test r10b, r10b
je 0x1400518cf
lea rdx, [r9 + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x1400518c7
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005198c
mov rcx, r8
call fcn.140066fd0
test dil, dil
je 0x140051a87
cmp byte [0x140094671], 0
je 0x140051a87
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8d, 0x200
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 0xf
lea rax, [rsp + 0x50]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140051917
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140053120
lea rax, [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
setae r8b
mov rcx, qword [rsp + 0x30]
cmovae rax, rcx
cmp qword [rsp + 0x40], 4
jne 0x140051961
cmp dword [rax], 0x74737552
jne 0x140051961
mov bl, 1
jmp 0x140051963
xor bl, bl
test r8b, r8b
je 0x140051998
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051993
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140051993
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140066fd0
test bl, bl
je 0x140051a87
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
xor r8d, r8d
mov dl, 0xb8
mov cl, 0x57
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 0x190
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
lea r8d, [r9 + 2]
mov dl, 0xb8
mov cl, 0x57
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
xor r8d, r8d
mov dl, 0xb8
mov cl, 0x41
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 0x190
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
lea r8d, [r9 + 2]
mov dl, 0xb8
mov cl, 0x41
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
xor r8d, r8d
mov dl, 0xb8
mov cl, 0x53
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 0x190
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
lea r8d, [r9 + 2]
mov dl, 0xb8
mov cl, 0x53
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
xor r8d, r8d
mov dl, 0xb8
mov cl, 0x44
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 0x190
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
lea r8d, [r9 + 2]
mov dl, 0xb8
mov cl, 0x44
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x1400946c4]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
lea rbx, str.NONE
test al, 1
je 0x140051b63
cmp byte [0x1400946b7], 0
sete al
mov byte [0x1400946b7], al
cmp al, 1
jne 0x140051ade
mov byte [0x140094689], 0
mov byte [0x1400946b6], 0
mov dword [0x1400946c8], 1
lea rax, str.AK47
mov qword [str.NONE], rax
jmp 0x140051b17
test al, al
jne 0x140051b63
mov byte [0x1400946b7], al
mov byte [0x1400946b5], al
mov byte [0x140094653], al
mov byte [0x140094670], al
mov byte [0x1400946a4], al
mov byte [0x140094652], al
mov dword [0x1400946c8], esi
mov qword [str.NONE], rbx
cmp byte [0x1400893be], 1
mov byte [0x140094678], 0
mov byte [0x14009468b], 0
mov byte [0x140094679], 0
mov byte [0x140094651], 0
mov byte [0x14009467b], 0
mov byte [0x140094673], 0
jne 0x140051b58
mov edx, 0x91
lea ecx, [rdx - 0x5f]
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x140094690]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140051c38
cmp byte [0x140094673], 0
sete al
mov byte [0x140094673], al
cmp al, 1
jne 0x140051bb3
mov byte [0x140094689], 0
mov byte [0x1400946b6], 0
mov dword [0x1400946c8], 2
lea rax, str.LR300
mov qword [str.NONE], rax
jmp 0x140051bec
test al, al
jne 0x140051c38
mov byte [0x140094673], al
mov byte [0x1400946b5], al
mov byte [0x140094653], al
mov byte [0x140094670], al
mov byte [0x1400946a4], al
mov byte [0x140094652], al
mov dword [0x1400946c8], esi
mov qword [str.NONE], rbx
cmp byte [0x1400893be], 1
mov byte [0x140094678], 0
mov byte [0x14009468b], 0
mov byte [0x140094679], 0
mov byte [0x140094651], 0
mov byte [0x14009467b], 0
mov byte [0x1400946b7], 0
jne 0x140051c2d
mov edx, 0x91
lea ecx, [rdx - 0x5f]
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x140094680]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140051d0d
cmp byte [0x14009467b], 0
sete al
mov byte [0x14009467b], al
cmp al, 1
jne 0x140051c88
mov byte [0x140094689], 0
mov byte [0x1400946b6], 0
lea rax, [0x140079d7c]
mov qword [str.NONE], rax
mov dword [0x1400946c8], 3
jmp 0x140051cc1
test al, al
jne 0x140051d0d
mov byte [0x14009467b], al
mov byte [0x1400946b5], al
mov byte [0x140094653], al
mov byte [0x140094670], al
mov byte [0x1400946a4], al
mov byte [0x140094652], al
mov dword [0x1400946c8], esi
mov qword [str.NONE], rbx
cmp byte [0x1400893be], 1
mov byte [0x140094678], 0
mov byte [0x14009468b], 0
mov byte [0x140094679], 0
mov byte [0x140094651], 0
mov byte [0x140094673], 0
mov byte [0x1400946b7], 0
jne 0x140051d02
mov edx, 0x91
lea ecx, [rdx - 0x5f]
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x140094674]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140051de2
cmp byte [0x140094679], 0
sete al
mov byte [0x140094679], al
cmp al, 1
jne 0x140051d5d
mov byte [0x140094689], 0
mov byte [0x1400946b6], 0
mov dword [0x1400946c8], 4
lea rax, [0x140079d80]
mov qword [str.NONE], rax
jmp 0x140051d96
test al, al
jne 0x140051de2
mov byte [0x140094679], al
mov byte [0x1400946b5], al
mov byte [0x140094653], al
mov byte [0x140094670], al
mov byte [0x1400946a4], al
mov byte [0x140094652], al
mov dword [0x1400946c8], esi
mov qword [str.NONE], rbx
cmp byte [0x1400893be], 1
mov byte [0x140094678], 0
mov byte [0x14009468b], 0
mov byte [0x140094651], 0
mov byte [0x14009467b], 0
mov byte [0x140094673], 0
mov byte [0x1400946b7], 0
jne 0x140051dd7
mov edx, 0x91
lea ecx, [rdx - 0x5f]
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x1400946a0]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140051eb7
cmp byte [0x140094651], 0
sete al
mov byte [0x140094651], al
cmp al, 1
jne 0x140051e32
mov byte [0x140094689], 0
mov byte [0x1400946b6], 0
mov dword [0x1400946c8], 5
lea rax, str.TOMMY
mov qword [str.NONE], rax
jmp 0x140051e6b
test al, al
jne 0x140051eb7
mov byte [0x140094651], al
mov byte [0x1400946b5], al
mov byte [0x140094653], al
mov byte [0x140094670], al
mov byte [0x1400946a4], al
mov byte [0x140094652], al
mov dword [0x1400946c8], esi
mov qword [str.NONE], rbx
cmp byte [0x1400893be], 1
mov byte [0x140094678], 0
mov byte [0x14009468b], 0
mov byte [0x140094679], 0
mov byte [0x14009467b], 0
mov byte [0x140094673], 0
mov byte [0x1400946b7], 0
jne 0x140051eac
mov edx, 0x91
lea ecx, [rdx - 0x5f]
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x14009467c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140051f8c
cmp byte [0x140094678], 0
sete al
mov byte [0x140094678], al
cmp al, 1
jne 0x140051f07
mov byte [0x140094689], 0
mov byte [0x1400946b6], 0
mov dword [0x1400946c8], 6
lea rax, str.SEMI
mov qword [str.NONE], rax
jmp 0x140051f40
test al, al
jne 0x140051f8c
mov byte [0x140094678], al
mov byte [0x1400946b5], al
mov byte [0x140094653], al
mov byte [0x140094670], al
mov byte [0x1400946a4], al
mov byte [0x140094652], al
mov dword [0x1400946c8], esi
mov qword [str.NONE], rbx
cmp byte [0x1400893be], 1
mov byte [0x14009468b], 0
mov byte [0x140094679], 0
mov byte [0x140094651], 0
mov byte [0x14009467b], 0
mov byte [0x140094673], 0
mov byte [0x1400946b7], 0
jne 0x140051f81
mov edx, 0x91
lea ecx, [rdx - 0x5f]
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x1400946bc]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140052061
cmp byte [0x14009468b], 0
sete al
mov byte [0x14009468b], al
cmp al, 1
jne 0x140051fdc
mov byte [0x140094689], 0
mov byte [0x1400946b6], 0
mov dword [0x1400946c8], 7
lea rax, str.M249
mov qword [str.NONE], rax
jmp 0x140052015
test al, al
jne 0x140052061
mov byte [0x14009468b], al
mov byte [0x1400946b5], al
mov byte [0x140094653], al
mov byte [0x140094670], al
mov byte [0x1400946a4], al
mov byte [0x140094652], al
mov dword [0x1400946c8], esi
mov qword [str.NONE], rbx
cmp byte [0x1400893be], 1
mov byte [0x140094678], 0
mov byte [0x140094679], 0
mov byte [0x140094651], 0
mov byte [0x14009467b], 0
mov byte [0x140094673], 0
mov byte [0x1400946b7], 0
jne 0x140052056
mov edx, 0x91
lea ecx, [rdx - 0x5f]
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x1400946b8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140052130
cmp byte [0x140094689], 0
sete al
mov byte [0x140094689], al
cmp al, 1
jne 0x1400520aa
mov byte [0x1400946b6], 0
mov dword [0x1400946c8], 8
lea rax, str.HMLMG
mov qword [str.NONE], rax
jmp 0x1400520dd
test al, al
jne 0x140052130
mov byte [0x1400946b5], al
mov byte [0x140094653], al
mov byte [0x140094670], al
mov byte [0x1400946a4], al
mov byte [0x140094652], al
mov dword [0x1400946c8], esi
mov qword [str.NONE], rbx
cmp byte [0x1400893be], 1
mov byte [0x140094678], 0
mov byte [0x14009468b], 0
mov byte [0x140094679], 0
mov byte [0x140094651], 0
mov byte [0x14009467b], 0
mov byte [0x140094673], 0
mov byte [0x1400946b7], 0
jne 0x140052125
mov edx, 0x91
lea ecx, [rdx - 0x5f]
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x140094694]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400521b6
cmp byte [0x1400946b5], 0
sete al
mov byte [0x1400946b5], al
cmp al, 1
jne 0x140052183
mov byte [0x140094653], 0
mov byte [0x140094670], 0
mov byte [0x1400946a4], 0
lea rax, str.HOLO
mov qword [str.NONE], rax
mov dword [0x140094698], 3
jmp 0x140052194
test al, al
jne 0x1400521b6
mov qword [str.NONE], rbx
mov dword [0x140094698], esi
cmp byte [0x1400893be], 1
jne 0x1400521ab
mov edx, 0x91
lea ecx, [rdx - 0x5f]
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x140094684]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14005223c
cmp byte [0x140094653], 0
sete al
mov byte [0x140094653], al
cmp al, 1
jne 0x140052209
mov byte [0x1400946b5], 0
mov byte [0x140094670], 0
mov byte [0x1400946a4], 0
mov dword [0x140094698], 1
lea rax, [0x140079dac]
mov qword [str.NONE], rax
jmp 0x14005221a
test al, al
jne 0x14005223c
mov dword [0x140094698], esi
mov qword [str.NONE], rbx
cmp byte [0x1400893be], 1
jne 0x140052231
mov edx, 0x91
lea ecx, [rdx - 0x5f]
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x14009469c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400522c2
cmp byte [0x140094670], 0
sete al
mov byte [0x140094670], al
cmp al, 1
jne 0x14005228f
mov byte [0x1400946b5], 0
mov byte [0x140094653], 0
mov byte [0x1400946a4], 0
mov dword [0x140094698], 4
lea rax, str.SIMPLE
mov qword [str.NONE], rax
jmp 0x1400522a0
test al, al
jne 0x1400522c2
mov qword [str.NONE], rbx
mov dword [0x140094698], esi
cmp byte [0x1400893be], 1
jne 0x1400522b7
mov edx, 0x91
lea ecx, [rdx - 0x5f]
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x140094654]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140052348
cmp byte [0x1400946a4], 0
sete al
mov byte [0x1400946a4], al
cmp al, 1
jne 0x140052315
mov byte [0x1400946b5], 0
mov byte [0x140094653], 0
mov byte [0x140094670], 0
mov dword [0x140094698], 2
lea rax, [0x140079db8]
mov qword [str.NONE], rax
jmp 0x140052326
test al, al
jne 0x140052348
mov qword [str.NONE], rbx
mov dword [0x140094698], esi
cmp byte [0x1400893be], 1
jne 0x14005233d
mov edx, 0x91
lea ecx, [rdx - 0x5f]
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x1400946ac]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400523b9
cmp byte [0x140094652], 0
sete al
mov byte [0x140094652], al
cmp al, 1
jne 0x140052386
mov dword [0x1400946b0], 1
lea rax, str.SILENCER
mov qword [str.NONE], rax
jmp 0x140052397
test al, al
jne 0x1400523b9
mov dword [0x1400946b0], esi
mov qword [str.NONE], rbx
cmp byte [0x1400893be], 1
jne 0x1400523ae
mov edx, 0x91
lea ecx, [rdx - 0x5f]
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x14009468c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140052417
cmp byte [0x1400946b4], 1
jne 0x140052417
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
mov ecx, 0x4b
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
mov ecx, 0x4b
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x1400920e4]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14005247e
mov byte [0x1400946b6], 0
mov byte [0x140094652], 0
mov dword [0x1400946c8], esi
mov dword [0x140094698], esi
mov dword [0x1400946b0], esi
mov qword [str.NONE], rbx
mov qword [str.NONE], rbx
mov qword [str.NONE], rbx
cmp byte [0x1400893be], 1
jne 0x140052473
mov edx, 0x91
lea ecx, [rdx - 0x5f]
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140066ee0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret