Function at 0x5bafe0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
sub rsp, 0x2a8
mov rbp, rsp
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0x2c0], rcx
mov dword [rbp + 0x2c8], edx
nop
cmp dword [rbp + 0x2c8], 1
jl 0x5bb05a
mov rcx, qword [rbp + 0x2c0]
lea rdx, [rbp + 0x40]
call fcn.005ba840
mov rcx, qword [rbp + 0x40]
mov edx, dword [rbp + 0x2c8]
call fcn.00440070
cmp al, 1
jne 0x5bb05a
sub dword [rbp + 0x2c8], 1
mov eax, dword [rbp + 0x2c8]
mov dword [rbp + 0x29c], eax
mov rcx, qword [rbp + 0x2c0]
call fcn.005bace0
test al, al
je 0x5bb2df
cmp dword [rbp + 0x29c], 0
jge 0x5bb08d
mov dword [rbp + 0x29c], 0
mov rcx, qword [rbp + 0x2c0]
mov edx, dword [rbp + 0x29c]
call fcn.005bba50
mov dword [rbp + 0x29c], eax
mov eax, dword [rbp + 0x29c]
add eax, 1
mov dword [rbp + 0x298], eax
mov rcx, qword [rbp + 0x2c0]
lea rdx, [rbp + 0x38]
call fcn.005ba840
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x88], rax
mov dword [rbp + 0x84], 0
mov rax, qword [rbp + 0x88]
test rax, rax
je 0x5bb0ee
mov eax, dword [rax - 4]
mov dword [rbp + 0x84], eax
mov eax, dword [rbp + 0x84]
cmp eax, dword [rbp + 0x298]
jle 0x5bb141
mov rcx, qword [rbp + 0x2c0]
lea rdx, [rbp + 0x30]
call fcn.005ba840
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rbp + 0x298]
movzx rax, word [rax + rcx*2 - 2]
mov word [rbp + 0x82], ax
cmp word [rbp + 0x82], 0xd800
jb 0x5bb141
cmp word [rbp + 0x82], 0xdfff
ja 0x5bb141
add dword [rbp + 0x298], 1
mov rax, qword [rbp + 0x2c0]
mov eax, dword [rax + 0x504]
cmp dword [rbp + 0x29c], eax
jl 0x5bb168
mov dword [rbp + 0x29c], eax
mov eax, dword [rbp + 0x29c]
mov dword [rbp + 0x298], eax
mov rcx, qword [rbp + 0x2c0]
mov edx, dword [rbp + 0x298]
mov r8d, dword [rbp + 0x298]
call fcn.005bafb0
mov eax, dword [rbp + 0x29c]
cmp eax, dword [rbp + 0x298]
je 0x5bb2c7
lea rcx, [rbp + 0x198]
call sub.user32.dll_GetKeyboardState
mov eax, pe_nt_image_headers64
lea rcx, [rbp + 0x98]
mov qword [rbp + 0x58], rcx
mov rcx, qword [rbp + 0x58]
mov byte [rcx], 0
add qword [rbp + 0x58], 1
sub eax, 1
test eax, eax
jne 0x5bb1af
nop
mov byte [rbp + 0xa8], 0x81
mov rcx, qword [rbp + 0x2c0]
mov dx, 0xffc6
call fcn.0040d240
mov rcx, qword [rbp + 0x2c0]
call rax
lea rcx, [0x00866a04]
movzx rax, al
movzx rax, word [rcx + rax*2]
mov byte [rax + rbp + 0x98], 0x81
lea rcx, [rbp + 0x98]
call sub.user32.dll_SetKeyboardState
mov rax, qword [rbp + 0x2c0]
mov byte [rax + 0x520], 1
nop
mov rcx, qword [rbp + 0x2c0]
call fcn.0059c5c0
mov rbx, rax
mov rcx, qword [rbp + 0x2c0]
mov dx, 0xffc6
call fcn.0040d240
mov rcx, qword [rbp + 0x2c0]
call rax
mov rcx, rbx
mov edx, pe_nt_image_headers64
lea r8, [0x00866a04]
movzx rax, al
movzx r8, word [r8 + rax*2]
mov r9d, 1
call sub.user32.dll_SendMessageW
mov rcx, qword [rbp + 0x2c0]
call fcn.0059c5c0
mov rbx, rax
mov rcx, qword [rbp + 0x2c0]
mov dx, 0xffc6
call fcn.0040d240
mov rcx, qword [rbp + 0x2c0]
call rax
mov rcx, rbx
mov edx, 0x101
lea r8, [0x00866a04]
movzx rax, al
movzx r8, word [r8 + rax*2]
mov r9d, 1
call sub.user32.dll_SendMessageW
nop
mov rax, qword [rbp + 0x2c0]
mov byte [rax + 0x520], 0
lea rcx, [rbp + 0x198]
call sub.user32.dll_SetKeyboardState
mov rax, qword [rbp + 0x2c0]
mov ecx, dword [rbp + 0x29c]
mov dword [rax + 0x50c], ecx
jmp 0x5bb37b
cmp dword [rbp + 0x29c], 0
jge 0x5bb2f2
mov dword [rbp + 0x29c], 0
mov rcx, qword [rbp + 0x2c0]
lea rdx, [rbp + 0x28]
call fcn.005ba840
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x78], rax
mov dword [rbp + 0x74], 0
mov rax, qword [rbp + 0x78]
test rax, rax
je 0x5bb320
mov eax, dword [rax - 4]
mov dword [rbp + 0x74], eax
mov eax, dword [rbp + 0x29c]
cmp eax, dword [rbp + 0x74]
jl 0x5bb362
mov rcx, qword [rbp + 0x2c0]
lea rdx, [rbp + 0x20]
call fcn.005ba840
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x64], 0
mov rax, qword [rbp + 0x68]
test rax, rax
je 0x5bb359
mov eax, dword [rax - 4]
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
mov dword [rbp + 0x29c], eax
mov rcx, qword [rbp + 0x2c0]
mov edx, dword [rbp + 0x29c]
mov r8d, dword [rbp + 0x29c]
call fcn.005bafb0
nop
lea rcx, [rbp + 0x20]
mov edx, 5
call fcn.0040fe50
lea rsp, [rbp + 0x2a8]
pop rbx
pop rbp
ret