Function at 0x140012558
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
cmp dword [0x1400c6018], 4
mov r12d, 1
jne 0x1400125ae
mov r9d, 0x1010
xor r8d, r8d
xor edx, edx
mov ecx, 0x60001
call fcn.14000e620
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReplyMessage]
mov dword [0x1400c6018], r12d
mov rax, qword [0x1400c61a8]
xor r15d, r15d
mov ecx, dword [0x1400c7ae8]
mov esi, r15d
mov r14d, dword [0x1400c6a54]
add ecx, r12d
cmp dword [0x1400c6a5c], r15d
mov qword [rbp - 0x59], rax
lea rax, [rbp - 0x59]
mov qword [0x1400c61a8], rax
mov eax, ecx
mov dword [0x1400c7ae8], ecx
mov dword [rbp - 0x51], r15d
mov dword [0x1400c6a54], r15d
jne 0x140012609
mov ecx, r12d
mov dword [0x1400c6a5c], r12d
mov dword [0x1400c7ae8], ecx
mov eax, r12d
cmp eax, dword [0x1400c7aec]
jne 0x140012a66
mov rcx, qword [0x1400c6b30]
mov ebx, 0x8000
mov edi, r15d
test rcx, rcx
je 0x14001267d
mov rax, qword [0x1400c6158]
cmp dword [rax + 0xc], r15d
je 0x14001267d
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r15d
xor edx, edx
lea rcx, [rbp + 0x17]
mov rbx, qword [rax + 0x60]
call qword [sym.imp.USER32.dll_PeekMessageA]
mov rcx, qword [0x1400c6b30]
neg eax
lea rax, [rbp + 0x17]
sbb rdx, rdx
and rdx, rax
mov rax, rbx
call qword [0x1400b1958]
test eax, eax
je 0x140012a4f
mov ebx, 0x8000
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
lea rcx, [rbp - 0x49]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140012992
cmp dword [0x1400c6018], r12d
mov edx, dword [rbp - 0x41]
jne 0x140012775
cmp edx, 0xa0
je 0x1400126c5
lea eax, [rdx - 0x113]
cmp eax, 0xed
ja 0x140012775
mov r9d, 0x9f
mov dword [rsp + 0x20], r15d
xor r8d, r8d
lea rcx, [rbp - 0x19]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x140012772
mov r9d, 0x109
mov dword [rsp + 0x20], r15d
xor edx, edx
lea rcx, [rbp - 0x19]
lea r8d, [r9 - 0x68]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x140012772
xor edx, edx
mov dword [rsp + 0x20], r15d
mov r9d, 0x400
lea rcx, [rbp - 0x19]
mov r8d, 0x201
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x140012772
mov edx, dword [rbp - 0x41]
cmp edx, 0xa0
je 0x14001273a
cmp edx, 0x200
jne 0x14001276b
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x140012772
mov ecx, 2
call qword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x140012772
mov ecx, 4
call qword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x140012772
mov edx, dword [rbp - 0x41]
mov ebx, 2
jmp 0x140012778
mov edx, dword [rbp - 0x41]
mov ebx, r15d
mov eax, ebx
neg eax
sbb ecx, ecx
and esi, ecx
cmp dword [0x1400c6018], 5
jb 0x140012865
call qword [sym.imp.USER32.dll_GetCapture]
mov edx, dword [rbp - 0x41]
test rax, rax
je 0x1400127aa
lea eax, [rdx - 0x200]
cmp eax, 0xe
jbe 0x140012865
lea eax, [rdx - 0x200]
mov ecx, 0x125
cmp eax, 8
ja 0x1400127c3
bt ecx, eax
jb 0x140012865
lea eax, [rdx - 0xa0]
cmp eax, 8
ja 0x1400127d7
bt ecx, eax
jb 0x140012865
mov rcx, qword [rbp - 0x39]
cmp edx, 0xa1
jne 0x1400127f1
lea rax, [rcx - 1]
cmp rax, r12
ja 0x140012812
jmp 0x1400128e8
lea eax, [rdx - 0xa0]
cmp eax, 9
jbe 0x140012812
lea eax, [rdx - 0x100]
cmp eax, 9
jbe 0x140012812
lea eax, [rdx - 0x200]
cmp eax, 0xe
ja 0x140012865
cmp edx, 0x104
jne 0x14001298e
lea rax, [rcx - 0x11]
cmp rax, r12
jbe 0x14001285e
cmp byte [0x1400c6a58], r15b
je 0x14001298e
cmp rcx, 0x10
je 0x14001298e
mov byte [0x1400c6a58], r15b
cmp rcx, 9
je 0x1400128e8
cmp rcx, 0x1b
jne 0x14001298e
jmp 0x1400128e8
mov byte [0x1400c6a58], r12b
mov eax, 0x102
cmp edx, eax
ja 0x1400128cd
je 0x1400128b7
cmp edx, 0x12
je 0x140012aa4
cmp edx, 0xa0
jbe 0x140012932
cmp edx, 0xa2
jbe 0x1400128e8
cmp edx, 0x100
je 0x1400128e8
cmp edx, 0x101
jne 0x140012932
mov ecx, dword [0x1400c52c0]
cmp ecx, 0xffffffff
je 0x140012932
call fcn.14006658c
jmp 0x140012932
cmp dword [0x1400c5fec], r15d
je 0x1400128a1
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x14001298e
cmp edx, 0x104
je 0x1400128e8
lea eax, [rdx - 0x201]
cmp eax, r12d
jbe 0x1400128e8
cmp edx, 0x206
jne 0x140012932
cmp dword [0x1400c52c0], 0xffffffff
je 0x1400128f8
xor ecx, ecx
call fcn.1400665f8
mov ecx, 2
call fcn.1400a3c18
call fcn.1400136dc
mov dword [0x1400c7afc], eax
mov eax, dword [rbp - 0x41]
add eax, 0xffffff00
test eax, 0xfffffffb
jne 0x140012932
cmp dword [0x1400c6018], 2
je 0x14001298e
mov rcx, qword [rbp - 0x39]
call fcn.140013e68
test eax, eax
jne 0x14001298e
mov rcx, qword [0x1400c6b30]
test rcx, rcx
je 0x14001295e
mov rax, qword [0x1400c6158]
cmp dword [rax + 8], r15d
je 0x14001295e
mov rax, qword [rcx]
lea rdx, [rbp - 0x49]
mov rax, qword [rax + 0x28]
call qword [0x1400b1958]
jmp 0x140012961
mov eax, r15d
test eax, eax
jne 0x14001298e
mov rcx, qword [0x1400c6a70]
lea rdx, [rbp - 0x49]
call qword [sym.imp.USER32.dll_TranslateMDISysAccel]
test eax, eax
jne 0x14001298e
lea rcx, [rbp - 0x49]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x49]
call qword [sym.imp.USER32.dll_DispatchMessageA]
test ebx, ebx
je 0x1400129d5
cmp dword [0x1400c6018], r12d
jne 0x1400129d5
cmp dword [0x1400c6a50], r15d
jne 0x1400129e2
mov ebx, dword [0x1400c5ff8]
call fcn.14000fc24
mov ecx, r15d
test esi, esi
mov edx, r12d
sete cl
call fcn.140013a68
test eax, eax
mov dword [0x1400c6a48], r12d
mov dword [0x1400c5ff8], ebx
mov esi, r12d
sete dil
mov eax, dword [0x1400c6018]
dec eax
cmp eax, 3
ja 0x140012a06
call fcn.140001424
mov rcx, qword [0x1400c7be8]
mov rax, qword [0x1400c7df0]
cmp qword [rcx + 0x2e], rax
jne 0x140012a06
cmp qword [rcx + 0x26], r15
jne 0x140012a06
call fcn.1400012f8
test edi, edi
je 0x140012a29
mov rcx, qword [0x1400c6b30]
test rcx, rcx
je 0x140012a23
mov rax, qword [rcx]
mov rax, qword [rax + 0x58]
call qword [0x1400b1958]
call qword [sym.imp.USER32.dll_WaitMessage]
mov ecx, dword [0x1400c7ae8]
mov eax, dword [0x1400c7aec]
cmp dword [rbp - 0x51], r15d
je 0x140012a48
cmp eax, ecx
jne 0x140012a66
sub eax, r12d
mov dword [0x1400c7aec], eax
cmp ecx, eax
jmp 0x14001260f
mov rax, qword [0x1400c6158]
mov ecx, dword [0x1400c7ae8]
dec dword [rax + 0xc]
sub dword [0x1400c7aec], r12d
mov rax, qword [rbp - 0x59]
sub ecx, r12d
mov qword [0x1400c61a8], rax
xor eax, eax
mov dword [0x1400c6a54], r14d
mov dword [0x1400c7ae8], ecx
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rax, qword [rbp - 0x59]
sub dword [0x1400c7ae8], r12d
mov qword [0x1400c61a8], rax
call fcn.140001424
mov rax, qword [rbp - 0x39]
jmp 0x140012a83