Function at 0x14004c868
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x130
xor esi, esi
mov rbx, rdx
mov rdi, rcx
cmp byte [rdx], sil
jne 0x14004c8b0
cmp byte [rdx + 1], sil
jne 0x14004c8b0
cmp byte [rdx + 2], sil
jne 0x14004c8b0
cmp byte [rdx + 3], sil
jne 0x14004c8b0
cmp byte [rdx + 4], sil
je 0x14004ca7f
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x14004c9ff
call qword [sym.imp.USER32.dll_GetParent]
test rax, rax
je 0x14004c9ff
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x14004c926
mov al, byte [rsp + 0x40]
mov cl, 0x80
cmp byte [rbx], sil
je 0x14004c8ef
xor al, cl
xor byte [rbp - 0x30], cl
mov byte [rsp + 0x40], al
cmp byte [rbx + 1], sil
je 0x14004c8fe
xor al, cl
xor byte [rbp - 0x2f], cl
mov byte [rsp + 0x40], al
cmp byte [rbx + 2], sil
je 0x14004c908
xor byte [rsp + 0x41], cl
cmp byte [rbx + 3], sil
je 0x14004c912
xor byte [rsp + 0x42], cl
cmp byte [rbx + 4], sil
je 0x14004c91b
xor byte [rbp - 0x75], cl
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_SetKeyboardState]
mov r15d, 0xc0000001
mov r14d, 0x101
cmp byte [rbx], sil
jne 0x14004c93d
cmp byte [rbx + 1], sil
je 0x14004c95d
movzx eax, byte [rdi + 0x32]
mov rcx, qword [rdi + 0x28]
mov r8d, reloc.WSOCK32.dll_recv
shl eax, 0x10
mov edx, r14d
movsxd r9, eax
or r9, r15
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 2], sil
je 0x14004c983
movzx eax, byte [rdi + 0x30]
mov rcx, qword [rdi + 0x28]
mov r8d, reloc.WSOCK32.dll_recvfrom
shl eax, 0x10
mov edx, r14d
movsxd r9, eax
or r9, r15
call qword [sym.imp.USER32.dll_PostMessageW]
mov al, byte [rbx + 3]
test al, al
je 0x14004c9d3
cmp byte [rbx + 2], sil
jne 0x14004c9af
cmp byte [rdi + 0x20], sil
jne 0x14004c9af
movzx eax, byte [rdi + 0x31]
mov edx, 0x105
shl eax, 0x10
movsxd r9, eax
mov eax, 0xe0000001
or r9, rax
jmp 0x14004c9c3
test al, al
je 0x14004c9d3
movzx eax, byte [rdi + 0x31]
mov edx, r14d
shl eax, 0x10
movsxd r9, eax
or r9, r15
mov rcx, qword [rdi + 0x28]
mov r8d, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 4], sil
je 0x14004ca77
movzx eax, byte [rdi + 0x35]
mov rcx, qword [rdi + 0x28]
mov r8d, 0x5b
shl eax, 0x10
mov edx, r14d
movsxd r9, eax
or r9, r15
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14004ca77
mov r14d, 2
cmp byte [rbx], sil
je 0x14004ca1b
mov r8b, byte [rdi + 0x33]
mov r9d, r14d
mov dl, 0xa0
mov rcx, rdi
call fcn.14004cc68
cmp byte [rbx + 1], sil
je 0x14004ca32
mov r8b, byte [rdi + 0x34]
mov r9d, r14d
mov dl, 0xa1
mov rcx, rdi
call fcn.14004cc68
cmp byte [rbx + 2], sil
je 0x14004ca49
mov r8b, byte [rdi + 0x30]
mov r9d, r14d
mov dl, reloc.WSOCK32.dll_recvfrom
mov rcx, rdi
call fcn.14004cc68
cmp byte [rbx + 3], sil
je 0x14004ca60
mov r8b, byte [rdi + 0x31]
mov r9d, r14d
mov dl, reloc.WSOCK32.dll_select
mov rcx, rdi
call fcn.14004cc68
cmp byte [rbx + 4], sil
je 0x14004ca77
mov r8b, byte [rdi + 0x35]
mov r9d, r14d
mov dl, 0x5b
mov rcx, rdi
call fcn.14004cc68
mov rcx, rdi
call fcn.14004b2f4
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret