Function at 0x140060cb0
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
lea rbp, [rax - 0x38]
sub rsp, 0x130
xor edi, edi
mov rbx, rcx
cmp byte [rdx], dil
je 0x140060cd9
mov byte [rcx + 0x18], 1
cmp byte [rdx + 2], dil
je 0x140060ce3
mov byte [rcx + 0x1a], 1
cmp byte [rdx + 3], dil
je 0x140060ced
mov byte [rcx + 0x1b], 1
cmp byte [rcx + 0x18], dil
je 0x140060d01
movzx eax, byte [rcx + 0x18]
cmp byte [rcx + 0x1e], dil
cmovne eax, edi
mov byte [rcx + 0x18], al
cmp byte [rcx + 0x19], dil
je 0x140060d15
movzx eax, byte [rcx + 0x19]
cmp byte [rcx + 0x1f], dil
cmovne eax, edi
mov byte [rcx + 0x19], al
cmp byte [rcx + 0x1a], dil
je 0x140060d29
movzx eax, byte [rcx + 0x1a]
cmp byte [rcx + 0x20], dil
cmovne eax, edi
mov byte [rcx + 0x1a], al
cmp byte [rcx + 0x1b], dil
je 0x140060d3d
movzx eax, byte [rcx + 0x1b]
cmp byte [rcx + 0x21], dil
cmovne eax, edi
mov byte [rcx + 0x1b], al
cmp byte [rcx + 0x1c], dil
je 0x140060d51
movzx eax, byte [rcx + 0x1c]
cmp byte [rcx + 0x22], dil
cmovne eax, edi
mov byte [rcx + 0x1c], al
cmp qword [rcx + 0x28], rdi
je 0x140060dd4
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x140060f1e
mov r8b, byte [rbx + 0x1e]
mov dl, byte [rbx + 0x1f]
mov al, r8b
neg al
mov al, dl
sbb cl, cl
and cl, byte [rbp - 0x30]
neg al
mov byte [rbp - 0x30], cl
sbb cl, cl
and cl, byte [rbp - 0x2f]
mov byte [rbp - 0x2f], cl
test r8b, r8b
jne 0x140060d9b
neg dl
sbb al, al
and al, byte [rsp + 0x40]
mov byte [rsp + 0x40], al
mov al, byte [rbx + 0x20]
neg al
mov al, byte [rbx + 0x21]
sbb cl, cl
and cl, byte [rsp + 0x41]
neg al
mov byte [rsp + 0x41], cl
sbb cl, cl
and cl, byte [rsp + 0x42]
neg r8b
sbb al, al
mov byte [rsp + 0x42], cl
lea rcx, [rsp + 0x30]
and al, byte [rbp - 0x75]
mov byte [rbp - 0x75], al
call qword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x140060f1e
lea rcx, [rsp + 0x20]
call fcn.14004e940
mov ecx, LHashValOfNameSys
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, 0x8000
test si, ax
jne 0x140060e03
mov ecx, LHashValOfNameSys
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140060e22
cmp byte [rbx + 0x1e], dil
jne 0x140060e22
lea rcx, [rsp + 0x20]
mov dl, 0xa0
call fcn.140057aa0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400576d0
mov ecx, LHashValOfNameSys
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x140060e42
mov ecx, LHashValOfNameSys
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140060e61
cmp byte [rbx + 0x1f], dil
jne 0x140060e61
lea rcx, [rsp + 0x20]
mov dl, 0xa1
call fcn.140057aa0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400576d0
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x140060e81
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140060ea0
cmp byte [rbx + 0x20], dil
jne 0x140060ea0
lea rcx, [rsp + 0x20]
mov dl, reloc.WSOCK32.dll_recvfrom
call fcn.140057aa0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400576d0
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x140060ec0
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140060edf
cmp byte [rbx + 0x21], dil
jne 0x140060edf
lea rcx, [rsp + 0x20]
mov dl, reloc.WSOCK32.dll_select
call fcn.140057aa0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400576d0
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x140060eff
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140060f1e
cmp byte [rbx + 0x22], dil
jne 0x140060f1e
lea rcx, [rsp + 0x20]
mov dl, 0x5b
call fcn.140057aa0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400576d0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret