Function at 0x140062dc0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x130
xor edi, edi
mov rbx, rcx
cmp byte [rdx], dil
je 0x140062de0
mov byte [rcx + 0x18], 1
cmp byte [rdx + 2], dil
je 0x140062dea
mov byte [rcx + 0x1a], 1
cmp byte [rdx + 3], dil
je 0x140062df4
mov byte [rcx + 0x1b], 1
cmp byte [rcx + 0x18], dil
je 0x140062e04
cmp byte [rcx + 0x1e], dil
je 0x140062e04
mov byte [rcx + 0x18], dil
cmp byte [rcx + 0x19], dil
je 0x140062e14
cmp byte [rcx + 0x1f], dil
je 0x140062e14
mov byte [rcx + 0x19], dil
cmp byte [rcx + 0x1a], dil
je 0x140062e24
cmp byte [rcx + 0x20], dil
je 0x140062e24
mov byte [rcx + 0x1a], dil
cmp byte [rcx + 0x1b], dil
je 0x140062e34
cmp byte [rcx + 0x21], dil
je 0x140062e34
mov byte [rcx + 0x1b], dil
cmp byte [rcx + 0x1c], dil
je 0x140062e44
cmp byte [rcx + 0x22], dil
je 0x140062e44
mov byte [rcx + 0x1c], dil
cmp qword [rcx + 0x28], rdi
je 0x140062edb
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyboardState]
mov r11b, byte [rbx + 0x1e]
mov dl, byte [rbx + 0x1f]
mov al, r11b
neg al
mov al, dl
sbb cl, cl
and cl, byte [rsp + 0xd0]
neg al
mov byte [rsp + 0xd0], cl
sbb cl, cl
and cl, byte [rsp + 0xd1]
mov byte [rsp + 0xd1], cl
cmp r11b, dil
jne 0x140062e9a
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 r11b
sbb al, al
mov byte [rsp + 0x42], cl
lea rcx, [rsp + 0x30]
and al, byte [rsp + 0x8b]
mov byte [rsp + 0x8b], al
call qword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x140063025
lea rcx, [rsp + 0x20]
call fcn.1400518b0
mov ecx, RegisterTypeLib
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, 0x8000
test si, ax
jne 0x140062f0a
mov ecx, RegisterTypeLib
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140062f29
cmp byte [rbx + 0x1e], dil
jne 0x140062f29
lea rcx, [rsp + 0x20]
mov dl, 0xa0
call fcn.14005a810
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14005a410
mov ecx, RegisterTypeLib
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x140062f49
mov ecx, RegisterTypeLib
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140062f68
cmp byte [rbx + 0x1f], dil
jne 0x140062f68
lea rcx, [rsp + 0x20]
mov dl, RegisterTypeLib
call fcn.14005a810
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14005a410
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x140062f88
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140062fa7
cmp byte [rbx + 0x20], dil
jne 0x140062fa7
lea rcx, [rsp + 0x20]
mov dl, reloc.WSOCK32.dll_recvfrom
call fcn.14005a810
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14005a410
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x140062fc7
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140062fe6
cmp byte [rbx + 0x21], dil
jne 0x140062fe6
lea rcx, [rsp + 0x20]
mov dl, reloc.WSOCK32.dll_select
call fcn.14005a810
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14005a410
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x140063006
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140063025
cmp byte [rbx + 0x22], dil
jne 0x140063025
lea rcx, [rsp + 0x20]
mov dl, 0x5b
call fcn.14005a810
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14005a410
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret