Function at 0x4951c0
Capabilities:
Get graphical window text
Log keystrokes via polling

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rbx, r8
mov r13d, edx
mov rdi, rcx
xor r15d, r15d
mov r14d, r15d
mov dword [rsp + 0x118], r15d
mov rax, qword [rcx + 0x448]
cmp rax, qword [rcx + 0x440]
je 0x495236
cmp rbx, 9
je 0x495236
cmp edx, 0x100
jne 0x495242
cmp rax, qword [rcx + 0x440]
je 0x49533c
mov word [rax], r15w
mov rax, qword [rcx + 0x448]
mov qword [rcx + 0x440], rax
cmp edx, 0x100
je 0x49533c
cmp rbx, 9
je 0x49528d
cmp rbx, 0xd
je 0x49525b
mov rax, qword [rsp + 0x130]
mov dword [rax], r15d
jmp 0x49529b
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
mov esi, 0x8000
test si, ax
jne 0x495280
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x49529b
mov rax, qword [rsp + 0x130]
mov dword [rax], r15d
jmp 0x49529b
mov rax, qword [rsp + 0x130]
mov dword [rax], 1
cmp r13d, 0x102
jne 0x495335
call qword [sym.imp.USER32.dll_GetFocus]
cmp rax, qword [rdi + 0x2c0]
jne 0x495335
cmp rbx, 0xd
je 0x495335
cmp rbx, 9
je 0x495335
cmp rbx, 8
je 0x495335
mov rcx, qword [rdi + 0x7b8]
cmp rcx, r15
je 0x4952ff
call fcn.005a1568
cmp byte [rax + 0x2e7e], r15b
jne 0x4952f7
mov rcx, qword [rax + 0x30]
cmp rcx, r15
je 0x4952f7
lea edx, [r13 - 0x7c]
call fcn.004083bc
jmp 0x49532d
add rax, 0x1958
jmp 0x49532d
mov rax, qword [0x00862cb8]
cmp byte [rax + 0x2f06], r15b
jne 0x495327
mov rcx, qword [rax + 0xb8]
cmp rcx, r15
je 0x495327
mov edx, 0x86
call fcn.004083bc
jmp 0x49532d
add rax, 0x19e0
mov rcx, rax
call fcn.0058ee60
xor eax, eax
jmp 0x495b8b
cmp rbx, 9
jne 0x49534e
call fcn.00494920
xor eax, eax
jmp 0x495b8b
mov ebp, reloc.WS2_32.dll_recvfrom
lea r12d, [rbp + 1]
or r13, 0xffffffffffffffff
mov esi, 0x8000
cmp rbx, 0x1b
jne 0x4953eb
mov rcx, qword [rcx + 0x2c0]
call qword [sym.imp.USER32.dll_SetFocus]
mov dword [rsp + 0x110], r13d
mov dword [rsp + 0x114], r13d
lea r9, [rsp + 0x110]
xor r8d, r8d
mov edx, 0x437
mov rcx, qword [rdi + 0xaa0]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
mov edx, 0xb5
lea r8d, [rbp - 0xa]
mov rcx, qword [rdi + 0xaa0]
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
lea r8d, [rbp - 0x10]
mov rcx, qword [rdi + 0xaa0]
call qword [sym.imp.USER32.dll_InvalidateRect]
lea rcx, [rdi + 0x4c8]
lea rdx, [0x0078dc30]
mov r8, rdx
call fcn.00406d38
jmp 0x4954f5
cmp rbx, 0x72
jne 0x4953ff
lea ecx, [rbx - 0x62]
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
jne 0x495428
cmp rbx, 0x46
jne 0x49547e
mov ecx, ebp
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x4954f5
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
jne 0x4954f5
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.00492aac
mov rdx, rax
mov rcx, rdi
call fcn.004928a0
lea r11, [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
cmp rcx, r11
je 0x495477
cmp rcx, r15
je 0x495477
mov rdx, qword [rsp + 0x20]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
cmp rdx, 0x100
jbe 0x495472
call fcn.006a4944
jmp 0x495477
call fcn.006a3610
xor eax, eax
jmp 0x495b8b
cmp rbx, 0x72
jne 0x4954f5
lea rdx, [rdi + 0x4c8]
mov rax, qword [rdx + 0x40]
cmp qword [rdx + 0x48], rax
jne 0x4954a9
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.00492aac
mov rdx, rax
lea r14d, [rbx - 0x71]
mov rcx, rdi
call fcn.004928a0
test r14b, 1
je 0x4954ee
lea rax, [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x4954ee
cmp rcx, r15
je 0x4954ee
mov rdx, qword [rsp + 0x20]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
cmp rdx, 0x100
jbe 0x4954e9
call fcn.006a4944
jmp 0x4954ee
call fcn.006a3610
xor eax, eax
jmp 0x495b8b
call qword [sym.imp.USER32.dll_GetFocus]
cmp rax, qword [rdi + 0x2c0]
je 0x495516
mov rax, qword [rsp + 0x130]
mov dword [rax], r15d
xor eax, eax
jmp 0x495b8b
sub rbx, 0xd
je 0x495b59
sub rbx, 0x14
je 0x495b27
sub rbx, 1
je 0x495af3
sub rbx, 1
je 0x495a7f
sub rbx, 1
je 0x495946
sub rbx, 2
je 0x495710
sub rbx, 2
je 0x495568
mov rax, qword [rsp + 0x130]
mov dword [rax], r15d
jmp 0x495b89
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
jne 0x495618
mov rcx, qword [rdi + 0x7b8]
cmp rcx, r15
je 0x4955b3
call fcn.005a1568
cmp byte [rax + 0x3056], r15b
jne 0x4955ab
mov rcx, qword [rax + 0x30]
cmp rcx, r15
je 0x4955ab
mov edx, 0x25e
call fcn.0041024c
mov bl, al
jmp 0x4955e3
mov bl, byte [rax + 0x2c77]
jmp 0x4955e3
mov rax, qword [0x00862cb8]
cmp byte [rax + 0x30de], r15b
jne 0x4955dd
mov rcx, qword [rax + 0xb8]
cmp rcx, r15
je 0x4955dd
mov edx, 0x25e
call fcn.0041024c
mov bl, al
jmp 0x4955e3
mov bl, byte [rax + 0x2cff]
mov ecx, ebp
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
not r11d
and r11d, 1
mov ecx, r15d
cmp bl, 1
sete cl
xor r11d, ecx
jne 0x495618
mov rax, qword [rsp + 0x130]
mov dword [rax], r15d
jmp 0x495b89
mov r8, qword [rdi + 0x4c0]
inc r8
mov rcx, qword [rdi + 0x460]
sub rcx, qword [rdi + 0x458]
movabs r9, 0x6666666666666667
mov rax, r9
imul rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8, rdx
jae 0x49567c
mov qword [rdi + 0x4c0], r8
lea rax, [r8 + r8*4]
add rax, rax
mov rdx, qword [rdi + 0x458]
mov rdx, qword [rdx + rax*8 + 0x48]
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x4956be
mov rcx, qword [rdi + 0x460]
sub rcx, qword [rdi + 0x458]
mov rax, r9
imul rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8, rdx
jne 0x4956be
mov rdx, qword [rdi + 0x4b8]
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_SetWindowTextW]
inc qword [rdi + 0x4c0]
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rbx, eax
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov r9, rbx
movsxd r8, eax
mov edx, 0xb1
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xb7
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x495b89
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
jne 0x4957c0
mov rcx, qword [rdi + 0x7b8]
cmp rcx, r15
je 0x49575b
call fcn.005a1568
cmp byte [rax + 0x3056], r15b
jne 0x495753
mov rcx, qword [rax + 0x30]
cmp rcx, r15
je 0x495753
mov edx, 0x25e
call fcn.0041024c
mov bl, al
jmp 0x49578b
mov bl, byte [rax + 0x2c77]
jmp 0x49578b
mov rax, qword [0x00862cb8]
cmp byte [rax + 0x30de], r15b
jne 0x495785
mov rcx, qword [rax + 0xb8]
cmp rcx, r15
je 0x495785
mov edx, 0x25e
call fcn.0041024c
mov bl, al
jmp 0x49578b
mov bl, byte [rax + 0x2cff]
mov ecx, ebp
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
not r11d
and r11d, 1
mov ecx, r15d
cmp bl, 1
sete cl
xor r11d, ecx
jne 0x4957c0
mov rax, qword [rsp + 0x130]
mov dword [rax], r15d
jmp 0x495b89
mov r8, qword [rdi + 0x4c0]
cmp r8, r15
jbe 0x4958f4
mov rcx, qword [rdi + 0x460]
sub rcx, qword [rdi + 0x458]
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 5
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
cmp r8, rdx
jne 0x4958c6
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
add eax, 2
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.006a43c4
mov rbx, rax
mov qword [rsp + 0x110], rax
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea r8d, [rax + 1]
mov rdx, rbx
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea r8, [rsp + 0x118]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.004023b4
nop
lea rcx, [rdi + 0x470]
cmp rax, rcx
je 0x495885
mov r8, qword [rax + 0x40]
mov rdx, qword [rax + 0x48]
call fcn.00406d38
nop
lea rax, [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x4958be
cmp rcx, r15
je 0x4958be
mov rax, qword [rsp + 0x20]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, 0x100
jbe 0x4958b8
call fcn.006a4944
jmp 0x4958be
call fcn.006a3610
nop
mov rcx, rbx
call fcn.006a5088
add qword [rdi + 0x4c0], r13
mov rax, qword [rdi + 0x4c0]
lea rcx, [rax + rax*4]
add rcx, rcx
mov rdx, qword [rdi + 0x458]
mov rdx, qword [rdx + rcx*8 + 0x48]
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rbx, eax
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov r9, rbx
movsxd r8, eax
mov edx, 0xb1
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xb7
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x495b89
mov rax, qword [rdi + 0x460]
cmp qword [rdi + 0x458], rax
je 0x495963
mov ecx, ebp
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
jne 0x495975
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x495a6f
mov qword [rdi + 0x4c0], r15
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
add eax, 2
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.006a43c4
mov rbx, rax
mov qword [rsp + 0x110], rax
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea r8d, [rax + 1]
mov rdx, rbx
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea r8, [rsp + 0x118]
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.004023b4
nop
lea rcx, [rdi + 0x470]
cmp rax, rcx
je 0x4959ff
mov r8, qword [rax + 0x40]
mov rdx, qword [rax + 0x48]
call fcn.00406d38
nop
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
cmp rcx, rax
je 0x495a3a
cmp rcx, r15
je 0x495a3a
mov rax, qword [rsp + 0x78]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, 0x100
jbe 0x495a35
call fcn.006a4944
jmp 0x495a3a
call fcn.006a3610
mov rcx, qword [rdi + 0x458]
mov rax, qword [rdi + 0x4c0]
lea rdx, [rax + rax*4]
add rdx, rdx
mov rdx, qword [rcx + rdx*8 + 0x48]
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_SetWindowTextW]
nop
mov rcx, rbx
call fcn.006a5088
jmp 0x495b89
mov rax, qword [rsp + 0x130]
mov dword [rax], r15d
jmp 0x495b89
mov ecx, ebp
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
jne 0x495aaa
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
jne 0x495aaa
mov rax, qword [rsp + 0x130]
mov dword [rax], r15d
jmp 0x495b89
mov rcx, qword [rdi + 0x460]
sub rcx, qword [rdi + 0x458]
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rdi + 0x4c0], rdx
mov rdx, qword [rdi + 0x4b8]
mov rcx, qword [rdi + 0x2c0]
call qword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x495b89
mov ecx, ebp
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
and r11d, esi
or r11d, 0x6000
shr r11d, 0xd
mov r8d, r11d
xor r9d, r9d
mov edx, 0x115
mov rcx, qword [rdi + 0xaa0]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x495b89
mov ecx, ebp
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
and r11d, esi
bts r11d, 0xe
shr r11d, 0xd
mov r8d, r11d
xor r9d, r9d
mov edx, 0x115
mov rcx, qword [rdi + 0xaa0]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x495b89
mov ecx, ebp
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
jne 0x495b7e
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
jne 0x495b7e
mov rcx, rdi
call fcn.0048ddd8
jmp 0x495b89
mov rax, qword [rsp + 0x130]
mov dword [rax], r15d
xor eax, eax
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret