Function at 0x140051190
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x130
xor esi, esi
mov rbx, rdx
mov rdi, rcx
cmp byte [rdx], sil
jne 0x1400511d5
cmp byte [rdx + 1], sil
jne 0x1400511d5
cmp byte [rdx + 2], sil
jne 0x1400511d5
cmp byte [rdx + 3], sil
jne 0x1400511d5
cmp byte [rdx + 4], sil
je 0x1400513cc
mov rcx, qword [rcx + 0x28]
cmp rcx, rsi
je 0x140051334
call qword [sym.imp.USER32.dll_GetParent]
cmp rax, rsi
je 0x140051334
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyboardState]
mov al, byte [rsp + 0x40]
mov r11b, 0x80
cmp byte [rbx], sil
je 0x140051217
xor al, r11b
xor byte [rsp + 0xd0], r11b
mov byte [rsp + 0x40], al
cmp byte [rbx + 1], sil
je 0x14005122c
xor al, r11b
xor byte [rsp + 0xd1], r11b
mov byte [rsp + 0x40], al
cmp byte [rbx + 2], sil
je 0x140051237
xor byte [rsp + 0x41], r11b
cmp byte [rbx + 3], sil
je 0x140051242
xor byte [rsp + 0x42], r11b
cmp byte [rbx + 4], sil
je 0x140051250
xor byte [rsp + 0x8b], r11b
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_SetKeyboardState]
mov ebp, 0x101
mov r12d, 0xc0000001
cmp byte [rbx], sil
jne 0x140051271
cmp byte [rbx + 1], sil
je 0x140051290
movzx eax, byte [rdi + 0x32]
mov rcx, qword [rdi + 0x28]
mov r8d, reloc.WSOCK32.dll_recv
shl eax, 0x10
mov edx, ebp
movsxd r9, eax
or r9, r12
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 2], sil
je 0x1400512b5
movzx eax, byte [rdi + 0x30]
mov rcx, qword [rdi + 0x28]
mov r8d, reloc.WSOCK32.dll_recvfrom
shl eax, 0x10
mov edx, ebp
movsxd r9, eax
or r9, r12
call qword [sym.imp.USER32.dll_PostMessageW]
mov al, byte [rbx + 3]
cmp al, sil
je 0x140051306
cmp byte [rbx + 2], sil
jne 0x1400512e2
cmp byte [rdi + 0x20], sil
jne 0x1400512e2
movzx eax, byte [rdi + 0x31]
mov edx, 0x105
shl eax, 0x10
movsxd r9, eax
mov eax, 0xe0000001
or r9, rax
jmp 0x1400512f6
cmp al, sil
je 0x140051306
movzx eax, byte [rdi + 0x31]
mov edx, ebp
shl eax, 0x10
movsxd r9, eax
or r9, r12
mov rcx, qword [rdi + 0x28]
mov r8d, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 4], sil
je 0x1400513c4
movzx eax, byte [rdi + 0x35]
mov rcx, qword [rdi + 0x28]
mov r8d, 0x5b
shl eax, 0x10
mov edx, ebp
movsxd r9, eax
or r9, r12
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1400513c4
mov ebp, 2
cmp byte [rbx], sil
je 0x140051354
mov r8b, byte [rdi + 0x33]
mov r9d, ebp
mov dl, 0xa0
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.140041fa0
cmp byte [rbx + 1], sil
je 0x140051370
mov r8b, byte [rdi + 0x34]
mov r9d, ebp
mov dl, RegisterTypeLib
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.140041fa0
cmp byte [rbx + 2], sil
je 0x14005138c
mov r8b, byte [rdi + 0x30]
mov r9d, ebp
mov dl, reloc.WSOCK32.dll_recvfrom
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.140041fa0
cmp byte [rbx + 3], sil
je 0x1400513a8
mov r8b, byte [rdi + 0x31]
mov r9d, ebp
mov dl, reloc.WSOCK32.dll_select
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.140041fa0
cmp byte [rbx + 4], sil
je 0x1400513c4
mov r8b, byte [rdi + 0x35]
mov r9d, ebp
mov dl, 0x5b
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.140041fa0
mov rcx, rdi
call fcn.140042030
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret