Function at 0x1400513f0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x130
xor esi, esi
mov rbx, rdx
mov rdi, rcx
cmp byte [rdx], sil
jne 0x14005142b
cmp byte [rdx + 1], sil
jne 0x14005142b
cmp byte [rdx + 2], sil
jne 0x14005142b
cmp byte [rdx + 3], sil
jne 0x14005142b
cmp byte [rdx + 4], sil
je 0x140051621
mov rcx, qword [rcx + 0x28]
cmp rcx, rsi
je 0x14005158e
call qword [sym.imp.USER32.dll_GetParent]
cmp rax, rsi
je 0x14005158e
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyboardState]
mov al, byte [rsp + 0x40]
mov r11b, 0x80
cmp byte [rbx], sil
je 0x14005146d
or al, r11b
or byte [rsp + 0xd0], r11b
mov byte [rsp + 0x40], al
cmp byte [rbx + 1], sil
je 0x140051482
or al, r11b
or byte [rsp + 0xd1], r11b
mov byte [rsp + 0x40], al
cmp byte [rbx + 2], sil
je 0x14005148d
or byte [rsp + 0x41], r11b
cmp byte [rbx + 3], sil
je 0x140051498
or byte [rsp + 0x42], r11b
cmp byte [rbx + 4], sil
je 0x1400514a6
or byte [rsp + 0x8b], r11b
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_SetKeyboardState]
cmp byte [rbx], sil
jne 0x1400514bc
cmp byte [rbx + 1], sil
je 0x1400514df
movzx eax, byte [rdi + 0x32]
mov rcx, qword [rdi + 0x28]
mov edx, 0x100
shl eax, 0x10
mov r8d, reloc.WSOCK32.dll_recv
movsxd r9, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 2], sil
je 0x140051508
movzx eax, byte [rdi + 0x30]
mov rcx, qword [rdi + 0x28]
mov edx, 0x100
shl eax, 0x10
mov r8d, reloc.WSOCK32.dll_recvfrom
movsxd r9, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
mov al, byte [rbx + 3]
cmp al, sil
je 0x14005155c
cmp byte [rbx + 2], sil
jne 0x140051534
cmp byte [rdi + 0x20], sil
jne 0x140051534
movzx eax, byte [rdi + 0x31]
mov edx, 0x104
shl eax, 0x10
movsxd r9, eax
or r9, 0x20000001
jmp 0x14005154c
cmp al, sil
je 0x14005155c
movzx eax, byte [rdi + 0x31]
mov edx, 0x100
shl eax, 0x10
movsxd r9, eax
or r9, 1
mov rcx, qword [rdi + 0x28]
mov r8d, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 4], sil
je 0x140051619
movzx eax, byte [rdi + 0x35]
mov rcx, qword [rdi + 0x28]
mov edx, 0x100
shl eax, 0x10
mov r8d, 0x5b
movsxd r9, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140051619
cmp byte [rbx], sil
je 0x1400515a9
mov r8b, byte [rdi + 0x33]
xor r9d, r9d
mov dl, 0xa0
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.140041fa0
cmp byte [rbx + 1], sil
je 0x1400515c5
mov r8b, byte [rdi + 0x34]
xor r9d, r9d
mov dl, RegisterTypeLib
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.140041fa0
cmp byte [rbx + 2], sil
je 0x1400515e1
mov r8b, byte [rdi + 0x30]
xor r9d, r9d
mov dl, reloc.WSOCK32.dll_recvfrom
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.140041fa0
cmp byte [rbx + 3], sil
je 0x1400515fd
mov r8b, byte [rdi + 0x31]
xor r9d, r9d
mov dl, reloc.WSOCK32.dll_select
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.140041fa0
cmp byte [rbx + 4], sil
je 0x140051619
mov r8b, byte [rdi + 0x35]
xor r9d, r9d
mov dl, 0x5b
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.140041fa0
mov rcx, rdi
call fcn.140042010
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret