Function at 0x691a1ac0
Capabilities:
Log keystrokes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
mov rsi, rdx
lea r12, [rsp + 0x3c]
mov r14, r9
mov r13d, r8d
mov qword [rsp + 0x3c], 0
mov rbx, rcx
mov rcx, r12
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rax, qword [rsi + 0x10]
mov rdx, r12
mov ebp, dword [rsp + 0x3c]
mov edi, dword [rsp + 0x40]
mov r12d, r14d
mov rcx, qword [rax + 0x30]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rsi, qword [rsp + 0x1c0]
sar rsi, 0x10
cmp r14, 0x10
mov r14, qword [sym.imp.USER32.dll_MapVirtualKeyA]
movzx esi, sil
jne 0x691a1b3c
mov edx, 3
mov ecx, esi
call r14
mov r12d, eax
xor edx, edx
mov ecx, r12d
call r14
mov edx, 2
mov ecx, r12d
mov r15d, eax
call r14
cmp r13b, 1
mov r14d, eax
sbb eax, eax
not eax
add eax, 0xa
mov dword [rbx], eax
call qword [sym.imp.USER32.dll_GetMessageTime]
cvtsi2sd xmm0, eax
mulsd xmm0, qword [0x6932e828]
movsd qword [rbx + 8], xmm0
call fcn.691a1a30
cvtsi2sd xmm0, dword [rsp + 0x3c]
mov dword [rbx + 0x34], esi
lea edx, [r12 + 0xdf90]
mov dword [rbx + 0x30], eax
mov ecx, eax
lea eax, [r12 - 0x70]
mov dword [rbx + 0x38], 0
movsd qword [rbx + 0x20], xmm0
cvtsi2sd xmm0, dword [rsp + 0x40]
movsd qword [rbx + 0x28], xmm0
cvtsi2sd xmm0, ebp
movsd qword [rbx + 0x10], xmm0
cvtsi2sd xmm0, edi
movsd qword [rbx + 0x18], xmm0
cmp eax, 0xb
jbe 0x691a1cfa
mov rax, qword [rsp + 0x1c0]
lea r8d, [r12 - 0x21]
and eax, 0x1000000
cmp rax, 1
sbb edx, edx
and edx, 0x40
add edx, 0xe031
add edx, r8d
cmp r8d, 7
jbe 0x691a1cfa
lea edx, [r12 - 0x60]
cmp edx, 9
ja 0x691a1c10
lea edx, [r12 + 0xe000]
jmp 0x691a1cfa
lea edx, [r12 - 0x6a]
cmp edx, 5
ja 0x691a1c27
lea edx, [r12 + 0xe040]
jmp 0x691a1cfa
lea edx, [r12 - 0xa0]
cmp edx, 5
ja 0x691a1c41
lea edx, [r12 + 0xdfb1]
jmp 0x691a1cfa
cmp r12d, 0x2c
je 0x691a1cd9
ja 0x691a1c79
cmp r12d, 0x13
je 0x691a1ce0
ja 0x691a1c6e
cmp r12d, 8
je 0x691a1ce7
mov edx, 0xe09d
cmp r12d, 0xc
jmp 0x691a1ca1
mov edx, 0xe047
cmp r12d, 0x14
jmp 0x691a1ca1
cmp r12d, 0x90
je 0x691a1cee
ja 0x691a1c95
cmp r12d, 0x5b
je 0x691a1cf5
mov edx, 0xe058
cmp r12d, 0x5c
jmp 0x691a1ca1
mov edx, 0xe046
cmp r12d, 0x91
je 0x691a1cfa
mov edx, r12d
test rax, rax
je 0x691a1cbe
sub rdx, 0xd
lea rax, [0x6933b240]
cmp rdx, 0x21
jbe 0x691a1ccf
jmp 0x691a1d07
sub rdx, 0x10
cmp rdx, 0x1e
ja 0x691a1d07
lea rax, [0x6933b2a0]
movzx edx, word [rax + rdx*2]
test edx, edx
je 0x691a1d07
jmp 0x691a1cfa
mov edx, 0xe041
jmp 0x691a1cfa
mov edx, 0xe043
jmp 0x691a1cfa
mov edx, 8
jmp 0x691a1cfa
mov edx, 0xe045
jmp 0x691a1cfa
mov edx, 0xe057
mov dword [rbx + 0x38], edx
call fcn.6918e110
mov dword [rbx + 0x30], eax
jmp 0x691a1d7a
test r14d, r14d
js 0x691a1d7a
xor eax, eax
lea rdi, [rsp + 0x60]
mov ecx, 0x3c
mov edx, r15d
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x46]
mov ecx, 0xa
mov qword [rsp + 0x50], 0
rep stosb byte [rdi], al
lea r9, [rsp + 0x46]
mov ecx, r12d
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x28], 4
lea r8, [rsp + 0x50]
mov dword [rsp + 0x20], 4
call qword [sym.imp.USER32.dll_ToUnicode]
movzx eax, word [rsp + 0x46]
lea edx, [rax - 0xd800]
cmp edx, 0x3ff
mov edx, 0xfffd
cmovbe eax, edx
mov dword [rbx + 0x38], eax
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret