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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x270
mov rax, qword [0x140087010]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor r14d, r14d
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8d, 0x200
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
xorps xmm0, xmm0
lea rax, [rsp + 0x60]
xorps xmm1, xmm1
mov rbx, 0xffffffffffffffff
movups xmmword [rsp + 0x30], xmm0
mov r8, rbx
movdqu xmmword [rsp + 0x40], xmm1
inc r8
cmp byte [rax + r8], r14b
jne 0x1400528a7
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x280], rbp
lea rcx, [rsp + 0x30]
call fcn.140053620
mov rsi, qword [rsp + 0x48]
lea rcx, [rsp + 0x30]
mov rdi, qword [rsp + 0x30]
cmp rsi, 0x10
mov r8, qword [rsp + 0x40]
cmovae rcx, rdi
cmp r8, 4
jne 0x1400528fe
lea rdx, str.Rust
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400528fe
mov bpl, 1
jmp 0x140052901
xor bpl, bpl
cmp rsi, 0x10
jb 0x140052938
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140052930
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140052a00
mov rcx, rdi
call fcn.1400682a0
test bpl, bpl
je 0x140052aff
cmp byte [0x140095830], r14b
je 0x140052aff
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8d, 0x200
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
xorps xmm0, xmm0
lea rax, [rsp + 0x60]
xorps xmm1, xmm1
movups xmmword [rsp + 0x30], xmm0
movdqu xmmword [rsp + 0x40], xmm1
nop
inc rbx
cmp byte [rax + rbx], r14b
jne 0x140052980
mov r8, rbx
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140053620
mov rdi, qword [rsp + 0x48]
lea rcx, [rsp + 0x30]
mov rbx, qword [rsp + 0x30]
cmp rdi, 0x10
mov r8, qword [rsp + 0x40]
cmovae rcx, rbx
cmp r8, 4
jne 0x1400529d2
lea rdx, str.Rust
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400529d2
mov sil, 1
jmp 0x1400529d5
xor sil, sil
cmp rdi, 0x10
jb 0x140052a0f
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140052a07
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052a07
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400682a0
test sil, sil
je 0x140052aff
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
mov dl, 0xb8
mov cl, 0x57
lea r8d, [r9 + 2]
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
mov dl, 0xb8
mov cl, 0x41
lea r8d, [r9 + 2]
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
mov dl, 0xb8
mov cl, 0x53
lea r8d, [r9 + 2]
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
mov dl, 0xb8
mov cl, 0x44
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x140095884]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
lea rbx, str.NONE
test al, 1
je 0x140052be2
cmp byte [0x14009587e], r14b
sete al
mov byte [0x14009587e], al
cmp al, 1
jne 0x140052b56
lea rax, str.AK47
mov byte [0x14009584c], r14b
mov qword [str.NONE], rax
mov byte [0x14009587d], r14b
mov dword [0x140095888], 1
jmp 0x140052b96
test al, al
jne 0x140052be2
mov byte [0x14009587e], r14b
mov byte [0x14009587c], r14b
mov byte [0x14009582a], r14b
mov byte [0x14009582b], r14b
mov byte [0x14009584f], r14b
mov byte [0x140095829], r14b
mov dword [0x140095888], r14d
mov qword [str.NONE], rbx
cmp byte [0x14008a20e], 1
mov byte [0x140095833], r14b
mov byte [0x14009584e], r14b
mov byte [0x140095838], r14b
mov byte [0x140095828], r14b
mov byte [0x14009583a], r14b
mov byte [0x140095832], r14b
jne 0x140052bd7
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 [0x140095850]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140052cbe
cmp byte [0x140095832], r14b
sete al
mov byte [0x140095832], al
cmp al, 1
jne 0x140052c32
lea rax, str.LR300
mov byte [0x14009584c], r14b
mov qword [str.NONE], rax
mov byte [0x14009587d], r14b
mov dword [0x140095888], 2
jmp 0x140052c72
test al, al
jne 0x140052cbe
mov byte [0x140095832], r14b
mov byte [0x14009587c], r14b
mov byte [0x14009582a], r14b
mov byte [0x14009582b], r14b
mov byte [0x14009584f], r14b
mov byte [0x140095829], r14b
mov dword [0x140095888], r14d
mov qword [str.NONE], rbx
cmp byte [0x14008a20e], 1
mov byte [0x140095833], r14b
mov byte [0x14009584e], r14b
mov byte [0x140095838], r14b
mov byte [0x140095828], r14b
mov byte [0x14009583a], r14b
mov byte [0x14009587e], r14b
jne 0x140052cb3
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 [0x140095840]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140052d9a
cmp byte [0x14009583a], r14b
sete al
mov byte [0x14009583a], al
cmp al, 1
jne 0x140052d0e
lea rax, [0x14007acfc]
mov byte [0x14009584c], r14b
mov qword [str.NONE], rax
mov byte [0x14009587d], r14b
mov dword [0x140095888], 3
jmp 0x140052d4e
test al, al
jne 0x140052d9a
mov byte [0x14009583a], r14b
mov byte [0x14009587c], r14b
mov byte [0x14009582a], r14b
mov byte [0x14009582b], r14b
mov byte [0x14009584f], r14b
mov byte [0x140095829], r14b
mov dword [0x140095888], r14d
mov qword [str.NONE], rbx
cmp byte [0x14008a20e], 1
mov byte [0x140095833], r14b
mov byte [0x14009584e], r14b
mov byte [0x140095838], r14b
mov byte [0x140095828], r14b
mov byte [0x140095832], r14b
mov byte [0x14009587e], r14b
jne 0x140052d8f
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 [0x140095834]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140052e76
cmp byte [0x140095838], r14b
sete al
mov byte [0x140095838], al
cmp al, 1
jne 0x140052dea
lea rax, [0x14007ad00]
mov byte [0x14009584c], r14b
mov qword [str.NONE], rax
mov byte [0x14009587d], r14b
mov dword [0x140095888], 4
jmp 0x140052e2a
test al, al
jne 0x140052e76
mov byte [0x140095838], r14b
mov byte [0x14009587c], r14b
mov byte [0x14009582a], r14b
mov byte [0x14009582b], r14b
mov byte [0x14009584f], r14b
mov byte [0x140095829], r14b
mov dword [0x140095888], r14d
mov qword [str.NONE], rbx
cmp byte [0x14008a20e], 1
mov byte [0x140095833], r14b
mov byte [0x14009584e], r14b
mov byte [0x140095828], r14b
mov byte [0x14009583a], r14b
mov byte [0x140095832], r14b
mov byte [0x14009587e], r14b
jne 0x140052e6b
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 [0x140095860]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140052f52
cmp byte [0x140095828], r14b
sete al
mov byte [0x140095828], al
cmp al, 1
jne 0x140052ec6
lea rax, str.TOMMY
mov byte [0x14009584c], r14b
mov qword [str.NONE], rax
mov byte [0x14009587d], r14b
mov dword [0x140095888], 5
jmp 0x140052f06
test al, al
jne 0x140052f52
mov byte [0x140095828], r14b
mov byte [0x14009587c], r14b
mov byte [0x14009582a], r14b
mov byte [0x14009582b], r14b
mov byte [0x14009584f], r14b
mov byte [0x140095829], r14b
mov dword [0x140095888], r14d
mov qword [str.NONE], rbx
cmp byte [0x14008a20e], 1
mov byte [0x140095833], r14b
mov byte [0x14009584e], r14b
mov byte [0x140095838], r14b
mov byte [0x14009583a], r14b
mov byte [0x140095832], r14b
mov byte [0x14009587e], r14b
jne 0x140052f47
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 [0x14009583c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14005302e
cmp byte [0x140095833], r14b
sete al
mov byte [0x140095833], al
cmp al, 1
jne 0x140052fa2
lea rax, str.SEMI
mov byte [0x14009584c], r14b
mov qword [str.NONE], rax
mov byte [0x14009587d], r14b
mov dword [0x140095888], 6
jmp 0x140052fe2
test al, al
jne 0x14005302e
mov byte [0x140095833], r14b
mov byte [0x14009587c], r14b
mov byte [0x14009582a], r14b
mov byte [0x14009582b], r14b
mov byte [0x14009584f], r14b
mov byte [0x140095829], r14b
mov dword [0x140095888], r14d
mov qword [str.NONE], rbx
cmp byte [0x14008a20e], 1
mov byte [0x14009584e], r14b
mov byte [0x140095838], r14b
mov byte [0x140095828], r14b
mov byte [0x14009583a], r14b
mov byte [0x140095832], r14b
mov byte [0x14009587e], r14b
jne 0x140053023
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 [0x140095878]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14005310a
cmp byte [0x14009584e], r14b
sete al
mov byte [0x14009584e], al
cmp al, 1
jne 0x14005307e
lea rax, str.M249
mov byte [0x14009584c], r14b
mov qword [str.NONE], rax
mov byte [0x14009587d], r14b
mov dword [0x140095888], 7
jmp 0x1400530be
test al, al
jne 0x14005310a
mov byte [0x14009584e], r14b
mov byte [0x14009587c], r14b
mov byte [0x14009582a], r14b
mov byte [0x14009582b], r14b
mov byte [0x14009584f], r14b
mov byte [0x140095829], r14b
mov dword [0x140095888], r14d
mov qword [str.NONE], rbx
cmp byte [0x14008a20e], 1
mov byte [0x140095833], r14b
mov byte [0x140095838], r14b
mov byte [0x140095828], r14b
mov byte [0x14009583a], r14b
mov byte [0x140095832], r14b
mov byte [0x14009587e], r14b
jne 0x1400530ff
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 [0x140095874]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400531df
cmp byte [0x14009584c], r14b
sete al
mov byte [0x14009584c], al
cmp al, 1
jne 0x140053153
lea rax, str.HMLMG
mov byte [0x14009587d], r14b
mov qword [str.NONE], rax
mov dword [0x140095888], 8
jmp 0x14005318c
test al, al
jne 0x1400531df
mov byte [0x14009587c], r14b
mov byte [0x14009582a], r14b
mov byte [0x14009582b], r14b
mov byte [0x14009584f], r14b
mov byte [0x140095829], r14b
mov dword [0x140095888], r14d
mov qword [str.NONE], rbx
cmp byte [0x14008a20e], 1
mov byte [0x140095833], r14b
mov byte [0x14009584e], r14b
mov byte [0x140095838], r14b
mov byte [0x140095828], r14b
mov byte [0x14009583a], r14b
mov byte [0x140095832], r14b
mov byte [0x14009587e], r14b
jne 0x1400531d4
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 [0x140095854]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140053266
cmp byte [0x14009587c], r14b
sete al
mov byte [0x14009587c], al
cmp al, 1
jne 0x140053232
lea rax, str.HOLO
mov byte [0x14009582a], r14b
mov qword [str.NONE], rax
mov byte [0x14009582b], r14b
mov byte [0x14009584f], r14b
mov dword [0x140095858], 3
jmp 0x140053244
test al, al
jne 0x140053266
mov qword [str.NONE], rbx
mov dword [0x140095858], r14d
cmp byte [0x14008a20e], 1
jne 0x14005325b
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 [0x140095844]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400532ed
cmp byte [0x14009582a], r14b
sete al
mov byte [0x14009582a], al
cmp al, 1
jne 0x1400532b9
lea rax, [0x14007ad2c]
mov byte [0x14009587c], r14b
mov qword [str.NONE], rax
mov byte [0x14009582b], r14b
mov byte [0x14009584f], r14b
mov dword [0x140095858], 1
jmp 0x1400532cb
test al, al
jne 0x1400532ed
mov dword [0x140095858], r14d
mov qword [str.NONE], rbx
cmp byte [0x14008a20e], 1
jne 0x1400532e2
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 [0x14009585c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140053374
cmp byte [0x14009582b], r14b
sete al
mov byte [0x14009582b], al
cmp al, 1
jne 0x140053340
lea rax, str.SIMPLE
mov byte [0x14009587c], r14b
mov qword [str.NONE], rax
mov byte [0x14009582a], r14b
mov byte [0x14009584f], r14b
mov dword [0x140095858], 4
jmp 0x140053352
test al, al
jne 0x140053374
mov qword [str.NONE], rbx
mov dword [0x140095858], r14d
cmp byte [0x14008a20e], 1
jne 0x140053369
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 [0x14009582c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400533fb
cmp byte [0x14009584f], r14b
sete al
mov byte [0x14009584f], al
cmp al, 1
jne 0x1400533c7
lea rax, [0x14007ad38]
mov byte [0x14009587c], r14b
mov qword [str.NONE], rax
mov byte [0x14009582a], r14b
mov byte [0x14009582b], r14b
mov dword [0x140095858], 2
jmp 0x1400533d9
test al, al
jne 0x1400533fb
mov qword [str.NONE], rbx
mov dword [0x140095858], r14d
cmp byte [0x14008a20e], 1
jne 0x1400533f0
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 [0x14009586c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14005346d
cmp byte [0x140095829], r14b
sete al
mov byte [0x140095829], al
cmp al, 1
jne 0x140053439
lea rax, str.SILENCER
mov dword [0x140095870], 1
mov qword [str.NONE], rax
jmp 0x14005344b
test al, al
jne 0x14005346d
mov dword [0x140095870], r14d
mov qword [str.NONE], rbx
cmp byte [0x14008a20e], 1
jne 0x140053462
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 [0x140095848]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1400534cb
cmp byte [0x14009586b], 1
jne 0x1400534cb
xor edx, edx
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
mov ecx, 0x4b
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
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 [0x14008b110]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140053535
cmp byte [0x14008a20e], 1
mov byte [0x14009587d], r14b
mov byte [0x140095829], r14b
mov dword [0x140095888], r14d
mov dword [0x140095858], r14d
mov dword [0x140095870], r14d
mov qword [str.NONE], rbx
mov qword [str.NONE], rbx
mov qword [str.NONE], rbx
jne 0x14005352a
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 rbp, qword [rsp + 0x280]
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400681b0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret