Function at 0x14001f7c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
push rbx
push rdi
push r12
push r13
lea rbp, [rsp - 0x60]
sub rsp, 0x160
movzx ebx, dl
mov r13, r9
movzx edi, r8w
movzx eax, bx
mov r12d, ecx
or ax, r8w
je 0x14001fda5
mov qword [r11 + 8], rsi
mov qword [r11 - 0x30], r14
mov r14d, dword [rbp + 0xb8]
mov eax, 0xffc3d44d
test r14d, r14d
mov qword [r11 - 0x38], r15
cmove r14d, eax
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp eax, dword [0x1401298f8]
sete sil
cmp dword [0x14012b780], 0
je 0x14001f832
test sil, sil
jne 0x14001f832
mov r15b, 1
jmp 0x14001f835
xor r15b, r15b
cmp dword [0x14012b780], 1
mov byte [rbp + 0xa0], r15b
je 0x14001f84a
test sil, sil
je 0x14001f851
mov byte [rbp + 0xb0], 0
test bl, bl
jne 0x14001f862
movzx ecx, di
call fcn.1400239c0
movzx ebx, al
jmp 0x14001f874
test di, di
jne 0x14001f874
xor edx, edx
movzx ecx, bl
call fcn.140023650
movzx edi, ax
xor ecx, ecx
movzx eax, di
lea rdx, [0x140000000]
shr ax, 8
test al, al
setne cl
cmp dword [0x14012b780], 2
mov dword [rsp + 0x38], ecx
jne case.default.0x14001f8af
movzx eax, bl
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x14001f8af
cdqe
mov ecx, dword [rdx + rax*4 + 0x1fdb4]
add rcx, rdx
jmp rcx
mov bl, reloc.OLEAUT32.DLL_SafeArrayGetElemsize
jmp case.default.0x14001f8af
mov bl, reloc.OLEAUT32.DLL_SafeArrayGetDim
jmp case.default.0x14001f8af
mov bl, reloc.OLEAUT32.DLL_SafeArrayGetUBound
test r13, r13
je 0x14001f9ef
xor r8d, r8d
movzx edx, di
movzx ecx, bl
call fcn.140022540
test al, al
je 0x14001f97b
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.DLL_GetKeyboardState]
test r12d, r12d
jne 0x14001f8f4
movzx eax, bl
or byte [rsp + rax + 0x50], 0x80
jmp 0x14001f902
cmp r12d, 1
jne 0x14001f902
movzx eax, bl
and byte [rsp + rax + 0x50], 0x7f
movzx eax, bl
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x14001f922
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x1fdcc]
add rcx, rdx
jmp rcx
test byte [rbp - 0xe], 0x80
jne 0x14001f937
test byte [rbp - 0xd], 0x80
jne 0x14001f937
and byte [rsp + 0x61], 0x7f
jmp case.default.0x14001f922
or byte [rsp + 0x61], 0x80
jmp case.default.0x14001f922
test byte [rbp - 0x10], 0x80
jne 0x14001f951
test byte [rbp - 0xf], 0x80
jne 0x14001f951
and byte [rsp + 0x60], 0x7f
jmp case.default.0x14001f922
or byte [rsp + 0x60], 0x80
jmp case.default.0x14001f922
test byte [rbp - 0xc], 0x80
jne 0x14001f96b
test byte [rbp - 0xb], 0x80
jne 0x14001f96b
and byte [rsp + 0x62], 0x7f
jmp case.default.0x14001f922
or byte [rsp + 0x62], 0x80
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.DLL_SetKeyboardState]
movzx eax, di
shl eax, 0x10
movsxd rdi, eax
cmp r12d, 1
je 0x14001f9a3
mov r9, rdi
movzx r8d, bl
mov edx, 0x100
or r9, 1
mov rcx, r13
call qword [sym.imp.USER32.DLL_PostMessageW]
cmp byte [rbp + 0xb0], 0
je 0x14001f9c6
cmp r12d, 2
jne 0x14001f9c6
mov rax, qword [0x1401255c8]
mov ecx, dword [rax + 0x84]
call fcn.1400215d0
jmp 0x14001f9cf
test r12d, r12d
je 0x14001fd64
mov r9d, 0xc0000001
movzx r8d, bl
mov edx, 0x101
or r9, rdi
mov rcx, r13
call qword [sym.imp.USER32.DLL_PostMessageW]
jmp 0x14001fd64
cmp byte [0x14012b625], 0
mov dword [0x140129938], r12d
mov byte [0x14012b699], bl
je 0x14001fa2f
cmp bl, 0x12
je 0x14001fa14
cmp bl, 0xa4
je 0x14001fa14
cmp bl, 0xa5
jne 0x14001fa2f
test sil, sil
jne 0x14001fa2f
xor ecx, ecx
mov byte [rsp + 0x33], 1
call qword [sym.imp.USER32.DLL_BlockInput]
mov byte [0x14012b625], sil
jmp 0x14001fa34
mov byte [rsp + 0x33], 0
test sil, sil
lea rax, [0x140129924]
lea r13, [rsp + 0x48]
cmove r13, rax
cmp bl, 0xa5
jne 0x14001fa5f
test r15b, r15b
jne 0x14001fa5f
cmp qword [0x14012ac08], 0
je 0x14001fa5f
mov al, 1
jmp 0x14001fa61
xor al, al
mov byte [rbp + 0x98], al
mov byte [rsp + 0x31], al
test al, al
je 0x14001fad9
test sil, sil
jne 0x14001fa82
mov rax, qword [0x140129930]
mov qword [rsp + 0x40], rax
jmp 0x14001faa6
call qword [sym.imp.USER32.DLL_GetForegroundWindow]
mov rcx, rax
call fcn.140022840
xor edx, edx
mov rcx, rax
mov r15, rax
mov qword [rsp + 0x40], rax
call fcn.140022a10
mov dword [r13], eax
cmp dword [r13], 0
je 0x14001fab4
mov byte [rsp + 0x31], 0
jmp 0x14001fae3
mov ecx, 0xa2
mov byte [rsp + 0x30], 0xa2
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
mov dword [0x14012aaf8], r14d
movzx r15d, ax
shr r15d, 0xf
and r15b, 1
jmp 0x14001faf6
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x40], rax
movzx eax, byte [rbp + 0x98]
movzx r15d, byte [rbp + 0x98]
mov byte [rsp + 0x30], al
movzx ecx, byte [rbp + 0xa0]
test cl, cl
je 0x14001fb20
xor r8d, r8d
movzx edx, di
movzx ecx, bl
call fcn.140022540
movzx ecx, byte [rbp + 0xa0]
movzx r10d, al
mov byte [rsp + 0x34], al
jmp 0x14001fb28
xor r10b, r10b
mov byte [rsp + 0x34], r10b
test sil, sil
jne 0x14001fb4e
mov eax, dword [0x14012b780]
cmp eax, 2
je 0x14001fb4e
cmp qword [0x14012ac08], 0
je 0x14001fb47
cmp eax, 1
jne 0x14001fb4e
mov byte [rsp + 0x32], 1
jmp 0x14001fb53
mov byte [rsp + 0x32], 0
cmp r12d, 1
je 0x14001fc2e
test cl, cl
je 0x14001fb87
mov r9d, dword [rsp + 0x38]
movzx r8d, di
movzx edx, bl
movzx ecx, r10b
mov dword [rsp + 0x20], r14d
call fcn.140021040
movzx esi, byte [rbp + 0x98]
jmp 0x14001fc17
movzx esi, byte [rbp + 0x98]
test sil, sil
je 0x14001fba8
mov eax, dword [0x14012aafc]
cmp dword [r13], 3
cmove eax, r14d
mov dword [0x14012aafc], eax
mov r8d, dword [rsp + 0x38]
mov r9d, r14d
movzx edx, dil
movzx ecx, bl
call qword [sym.imp.USER32.DLL_keybd_event]
xor r11d, r11d
mov dword [0x14012aafc], r11d
cmp byte [rsp + 0x31], r11b
je 0x14001fc17
cmp dword [0x14012aaf8], r11d
mov byte [rsp + 0x31], r11b
je 0x14001fbe9
mov dword [0x14012aaf8], r11d
lea edx, [r11 + 4]
jmp 0x14001fc09
test r15b, r15b
jne 0x14001fc17
movzx ecx, byte [rsp + 0x30]
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
mov ecx, 0x8000
and ax, cx
neg ax
sbb edx, edx
add edx, 4
mov rcx, qword [rsp + 0x40]
call fcn.140022a10
mov dword [r13], eax
cmp byte [rsp + 0x32], 0
je 0x14001fc35
movzx r8d, di
movzx edx, bl
xor ecx, ecx
call fcn.1400217e0
jmp 0x14001fc35
movzx esi, byte [rbp + 0x98]
cmp byte [rbp + 0xb0], 0
je 0x14001fc6e
cmp r12d, 2
jne 0x14001fc6e
cmp dword [0x14012b780], r12d
mov rax, qword [0x1401255c8]
jne 0x14001fc61
mov ecx, dword [rax + 0x88]
call fcn.1400215d0
jmp 0x14001fc77
mov ecx, dword [rax + 0x84]
call fcn.1400215d0
jmp 0x14001fc77
test r12d, r12d
je 0x14001fd4b
mov ecx, dword [rsp + 0x38]
or ecx, 2
cmp byte [rbp + 0xa0], 0
je 0x14001fca2
mov r9d, ecx
movzx ecx, byte [rsp + 0x34]
movzx r8d, di
movzx edx, bl
mov dword [rsp + 0x20], r14d
call fcn.140021040
jmp 0x14001fd1e
test sil, sil
je 0x14001fcbc
mov eax, dword [0x14012ac00]
cmp dword [r13], 3
cmove eax, r14d
mov dword [0x14012ac00], eax
mov r8d, ecx
mov r9d, r14d
movzx edx, dil
movzx ecx, bl
call qword [sym.imp.USER32.DLL_keybd_event]
xor esi, esi
mov dword [0x14012ac00], esi
cmp byte [rsp + 0x31], sil
je 0x14001fd1e
cmp dword [0x14012aaf8], esi
je 0x14001fcf1
mov dword [0x14012aaf8], esi
lea edx, [rsi + 4]
jmp 0x14001fd10
test r15b, r15b
je 0x14001fd1e
movzx ecx, byte [rsp + 0x30]
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
setne sil
lea edx, [rsi + 3]
mov rcx, qword [rsp + 0x40]
call fcn.140022a10
mov dword [r13], eax
cmp dword [r13], 3
jne 0x14001fd36
mov eax, 0x138
cmp di, ax
jne 0x14001fd36
and byte [0x14012990f], 0xfe
cmp byte [rsp + 0x32], 0
je 0x14001fd4b
movzx r8d, di
movzx edx, bl
mov cl, 1
call fcn.1400217e0
cmp byte [rsp + 0x33], 0
je 0x14001fd64
mov ecx, 1
call qword [sym.imp.USER32.DLL_BlockInput]
mov byte [0x14012b625], 1
cmp byte [rbp + 0xb0], 0
mov r15, qword [rsp + 0x150]
mov r14, qword [rsp + 0x158]
mov rsi, qword [rsp + 0x190]
je 0x14001fda5
cmp dword [0x14012b780], 2
mov rax, qword [0x1401255c8]
jne 0x14001fd9d
mov ecx, dword [rax + 0x80]
jmp 0x14001fda0
mov ecx, dword [rax + 0x7c]
call fcn.1400215d0
add rsp, 0x160
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret