Function at 0x4ba600
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov esi, esp
mov dword [esi + 0x60], ebp
mov dword [esi + 0x64], esp
mov dword [esi + 0x70], 0xffffffff
mov dword [esi + 0x6c], 0x703b10
mov dword [esi + 8], ecx
lea eax, [esi + 0x68]
mov dword [esi + 4], edx
mov ecx, dword fs:[0]
mov dword [esi + 0x68], ecx
mov dword fs:[0], eax
mov eax, dword [0x919820]
test eax, eax
jne 0x4ba657
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x4ba813
mov dword [0x919820], eax
push pe_nt_image_headers32
push 8
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x4ba813
mov dword [esi + 0x70], 0
mov dword [esi], eax
push eax
call dword [sym.imp.user32.dll_GetKeyboardState]
mov eax, dword [esi]
xor ecx, ecx
cmp ecx, 0x100
jne 0x4ba699
jmp 0x4ba716
inc ecx
cmp ecx, 0x100
je 0x4ba716
cmp byte [eax + ecx], 0
jns 0x4ba690
mov dword [esi + 0x70], 1
push 0
mov dword [esi + 0xc], ecx
push ecx
call dword [sym.imp.user32.dll_MapVirtualKeyA]
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 0xc]
call fcn.00700630
mov dword [esi + 0x10], eax
call fcn.007002f0
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x10]
mov ecx, dword [ecx + 0xc]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0xd
mov dword [esi + 0x20], edx
mov edx, dword [esi + 0x14]
mov dword [esi + 0x24], edx
mov edx, dword [esi + 8]
mov dword [esi + 0x28], eax
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 0
mov byte [esi + 0x34], 1
add ecx, 8
mov dword [esi + 0x58], edx
lea edx, [esi + 0x18]
call fcn.004acc60
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
inc ecx
cmp ecx, 0x100
jne 0x4ba699
push eax
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 4]
mov ebx, dword [eax + 8]
mov dword [esi + 0x70], 0xffffffff
lea edi, [ebx + 8]
push edi
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x919aac]
test eax, 0x7fffffff
jne 0x4ba7d9
movzx eax, byte [ebx + 0xc]
test al, al
jne 0x4ba824
mov dword [ebx + 0xc0], 0
mov eax, dword [0x919aac]
test eax, 0x7fffffff
jne 0x4ba7fd
push edi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov ebx, dword [esi + 4]
mov edi, dword [esi + 8]
lea edx, [esi + 0x18]
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0xe
mov dword [esi + 0x20], 0
mov dword [esi + 0x58], edi
add ecx, 8
call fcn.004acc60
mov ecx, dword [ebx + 0xc]
lea edx, [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0xc
mov byte [esi + 0x20], 0
mov dword [esi + 0x58], edi
add ecx, 8
call fcn.004acc60
mov eax, dword [esi + 0x68]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00721f90
movzx ecx, byte [ebx + 0xc]
test cl, cl
jne 0x4ba855
test al, al
mov dword [ebx + 0xc0], 0
jne 0x4ba762
jmp 0x4ba772
call fcn.00721f90
test al, al
jne 0x4ba772
mov byte [ebx + 0xc], 1
jmp 0x4ba772
mov ecx, 1
mov edx, pe_nt_image_headers32
call fcn.00709d20
ud2
xor eax, eax
mov dword [esi + 0x18], edi
mov byte [esi + 0x1c], al
mov dword [esi + 0x70], 2
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x73e5a4
push 0x73e444
lea eax, [esi + 0x18]
push eax
call fcn.0070a360
add esp, 0xc
ud2
xor al, 1
jmp 0x4ba826