Function at 0x1400376b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x1b0
lea rdi, [rsp + 0x30]
mov ecx, 0x60
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1c0]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
movzx eax, byte [rsp + 0x1c8]
movzx ecx, word [rsp + 0x1d0]
or eax, ecx
test eax, eax
jne 0x140037710
jmp 0x140037f1b
cmp dword [rsp + 0x1e8], 0
jne 0x140037725
mov dword [rsp + 0x1e8], 0xffc3d44d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x1403213b8]
jne 0x140037740
mov dword [rsp + 0x170], 1
jmp 0x14003774b
mov dword [rsp + 0x170], 0
movzx eax, byte [rsp + 0x170]
mov byte [rsp + 0x30], al
cmp dword [0x140322308], 0
je 0x140037776
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x140037776
mov dword [rsp + 0x174], 1
jmp 0x140037781
mov dword [rsp + 0x174], 0
movzx eax, byte [rsp + 0x174]
mov byte [rsp + 0x31], al
cmp dword [0x140322308], 1
je 0x14003779f
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1400377a7
mov byte [rsp + 0x1e0], 0
movzx eax, byte [rsp + 0x1c8]
test eax, eax
jne 0x1400377c9
movzx ecx, word [rsp + 0x1d0]
call fcn.14003ee90
mov byte [rsp + 0x1c8], al
jmp 0x1400377ec
movzx eax, word [rsp + 0x1d0]
test eax, eax
jne 0x1400377ec
xor edx, edx
movzx ecx, byte [rsp + 0x1c8]
call fcn.14003ef60
mov word [rsp + 0x1d0], ax
movzx eax, word [rsp + 0x1d0]
and rax, 0xff
mov byte [rsp + 0x32], al
movzx eax, word [rsp + 0x1d0]
shr rax, 8
and rax, 0xff
movzx eax, al
test eax, eax
je 0x140037824
mov dword [rsp + 0x178], 1
jmp 0x14003782f
mov dword [rsp + 0x178], 0
mov eax, dword [rsp + 0x178]
mov dword [rsp + 0x34], eax
cmp dword [0x140322308], 2
jne case.default.0x140037888
movzx eax, byte [rsp + 0x1c8]
mov dword [rsp + 0x17c], eax
mov eax, dword [rsp + 0x17c]
sub eax, 0xa0
mov dword [rsp + 0x17c], eax
cmp dword [rsp + 0x17c], 5
ja case.default.0x140037888
movsxd rax, dword [rsp + 0x17c]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x37f44]
add rax, rcx
jmp rax
mov byte [rsp + 0x1c8], reloc.OLEAUT32.dll_SafeArrayGetElemsize
jmp case.default.0x140037888
mov byte [rsp + 0x1c8], reloc.WSOCK32.dll_recv
jmp case.default.0x140037888
mov byte [rsp + 0x1c8], reloc.OLEAUT32.dll_SafeArrayGetUBound
cmp qword [rsp + 0x1d8], 0
je 0x140037ba3
xor r8d, r8d
movzx edx, word [rsp + 0x1d0]
movzx ecx, byte [rsp + 0x1c8]
call fcn.140037fc0
movzx eax, al
test eax, eax
je 0x140037aec
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetKeyboardState]
cmp dword [rsp + 0x1c0], 0
jne 0x14003790c
movzx eax, byte [rsp + 0x1c8]
movzx eax, byte [rsp + rax + 0x50]
bts eax, 7
movzx ecx, byte [rsp + 0x1c8]
mov byte [rsp + rcx + 0x50], al
jmp 0x140037933
cmp dword [rsp + 0x1c0], 1
jne 0x140037933
movzx eax, byte [rsp + 0x1c8]
movzx eax, byte [rsp + rax + 0x50]
btr eax, 7
movzx ecx, byte [rsp + 0x1c8]
mov byte [rsp + rcx + 0x50], al
movzx eax, byte [rsp + 0x1c8]
mov dword [rsp + 0x180], eax
mov eax, dword [rsp + 0x180]
sub eax, 0xa0
mov dword [rsp + 0x180], eax
cmp dword [rsp + 0x180], 5
ja case.default.0x14003797c
movsxd rax, dword [rsp + 0x180]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x37f5c]
add rax, rcx
jmp rax
mov eax, 1
imul rax, rax, 0xa2
movzx eax, byte [rsp + rax + 0x50]
and eax, 0x80
test eax, eax
jne 0x1400379b2
mov eax, 1
imul rax, rax, 0xa3
movzx eax, byte [rsp + rax + 0x50]
and eax, 0x80
test eax, eax
je 0x1400379d3
mov eax, 1
imul rax, rax, 0x11
movzx eax, byte [rsp + rax + 0x50]
bts eax, 7
mov ecx, 1
imul rcx, rcx, 0x11
mov byte [rsp + rcx + 0x50], al
jmp 0x1400379f2
mov eax, 1
imul rax, rax, 0x11
movzx eax, byte [rsp + rax + 0x50]
btr eax, 7
mov ecx, 1
imul rcx, rcx, 0x11
mov byte [rsp + rcx + 0x50], al
jmp case.default.0x14003797c
mov eax, 1
imul rax, rax, 0xa0
movzx eax, byte [rsp + rax + 0x50]
and eax, 0x80
test eax, eax
jne 0x140037a2b
mov eax, 1
imul rax, rax, 0xa1
movzx eax, byte [rsp + rax + 0x50]
and eax, 0x80
test eax, eax
je 0x140037a4c
mov eax, 1
imul rax, rax, 0x10
movzx eax, byte [rsp + rax + 0x50]
bts eax, 7
mov ecx, 1
imul rcx, rcx, 0x10
mov byte [rsp + rcx + 0x50], al
jmp 0x140037a6b
mov eax, 1
imul rax, rax, 0x10
movzx eax, byte [rsp + rax + 0x50]
btr eax, 7
mov ecx, 1
imul rcx, rcx, 0x10
mov byte [rsp + rcx + 0x50], al
jmp case.default.0x14003797c
mov eax, 1
imul rax, rax, 0xa4
movzx eax, byte [rsp + rax + 0x50]
and eax, 0x80
test eax, eax
jne 0x140037aa1
mov eax, 1
imul rax, rax, 0xa5
movzx eax, byte [rsp + rax + 0x50]
and eax, 0x80
test eax, eax
je 0x140037ac2
mov eax, 1
imul rax, rax, 0x12
movzx eax, byte [rsp + rax + 0x50]
bts eax, 7
mov ecx, 1
imul rcx, rcx, 0x12
mov byte [rsp + rcx + 0x50], al
jmp case.default.0x14003797c
mov eax, 1
imul rax, rax, 0x12
movzx eax, byte [rsp + rax + 0x50]
btr eax, 7
mov ecx, 1
imul rcx, rcx, 0x12
mov byte [rsp + rcx + 0x50], al
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_SetKeyboardState]
movzx eax, word [rsp + 0x1d0]
shl eax, 0x10
cdqe
mov qword [rsp + 0x158], rax
cmp dword [rsp + 0x1c0], 1
je 0x140037b38
mov rax, qword [rsp + 0x158]
or rax, 1
movzx ecx, byte [rsp + 0x1c8]
mov r9, rax
mov r8d, ecx
mov edx, 0x100
mov rcx, qword [rsp + 0x1d8]
call qword [sym.imp.USER32.dll_PostMessageW]
movzx eax, byte [rsp + 0x1e0]
test eax, eax
je 0x140037b60
cmp dword [rsp + 0x1c0], 2
jne 0x140037b60
mov rax, qword [0x14031a1e8]
mov ecx, dword [rax + 0xa0]
call fcn.140036fe0
cmp dword [rsp + 0x1c0], 0
je 0x140037b9e
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x158]
or rcx, rax
mov rax, rcx
movzx ecx, byte [rsp + 0x1c8]
mov r9, rax
mov r8d, ecx
mov edx, 0x101
mov rcx, qword [rsp + 0x1d8]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140037ed0
mov eax, dword [rsp + 0x1c0]
mov dword [0x14032230c], eax
movzx eax, byte [rsp + 0x1c8]
mov byte [0x140322310], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140037be6
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
call fcn.1400372f0
mov rcx, rax
call fcn.1400382a0
mov dword [rsp + 0x184], eax
jmp 0x140037bf3
mov eax, dword [0x140322314]
mov dword [rsp + 0x184], eax
mov eax, dword [rsp + 0x184]
mov dword [rsp + 0x160], eax
movzx eax, byte [rsp + 0x1c8]
cmp eax, 0xa5
jne 0x140037c3a
cmp dword [rsp + 0x160], 0
je 0x140037c3a
movzx eax, byte [rsp + 0x31]
test eax, eax
jne 0x140037c3a
cmp qword [0x140321418], 0
je 0x140037c3a
mov dword [rsp + 0x188], 1
jmp 0x140037c45
mov dword [rsp + 0x188], 0
movzx eax, byte [rsp + 0x188]
mov byte [rsp + 0x164], al
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x140037c81
xor r8d, r8d
movzx edx, word [rsp + 0x1d0]
movzx ecx, byte [rsp + 0x1c8]
call fcn.140037fc0
movzx eax, al
mov dword [rsp + 0x18c], eax
jmp 0x140037c8c
mov dword [rsp + 0x18c], 0
movzx eax, byte [rsp + 0x18c]
mov byte [rsp + 0x165], al
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x140037ccd
cmp dword [0x140322308], 2
je 0x140037ccd
cmp qword [0x140321418], 0
je 0x140037cc0
cmp dword [0x140322308], 1
jne 0x140037ccd
mov dword [rsp + 0x190], 1
jmp 0x140037cd8
mov dword [rsp + 0x190], 0
movzx eax, byte [rsp + 0x190]
mov byte [rsp + 0x166], al
cmp dword [rsp + 0x1c0], 1
je 0x140037d97
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x140037d2e
mov eax, dword [rsp + 0x1e8]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x34]
movzx r8d, word [rsp + 0x1d0]
movzx edx, byte [rsp + 0x1c8]
movzx ecx, byte [rsp + 0x165]
call fcn.14003a450
jmp 0x140037d73
movzx eax, byte [rsp + 0x164]
test eax, eax
je 0x140037d47
mov eax, dword [rsp + 0x1e8]
mov dword [0x140321414], eax
mov eax, dword [rsp + 0x1e8]
mov r9d, eax
mov r8d, dword [rsp + 0x34]
movzx edx, byte [rsp + 0x32]
movzx ecx, byte [rsp + 0x1c8]
call qword [sym.imp.USER32.dll_keybd_event]
mov dword [0x140321414], 0
movzx eax, byte [rsp + 0x166]
test eax, eax
je 0x140037d97
movzx r8d, word [rsp + 0x1d0]
movzx edx, byte [rsp + 0x1c8]
xor ecx, ecx
call fcn.14003e870
movzx eax, byte [rsp + 0x1e0]
test eax, eax
je 0x140037dec
cmp dword [rsp + 0x1c0], 2
jne 0x140037dec
cmp dword [0x140322308], 2
jne 0x140037dcc
mov rax, qword [0x14031a1e8]
mov eax, dword [rax + 0xa4]
mov dword [rsp + 0x194], eax
jmp 0x140037de0
mov rax, qword [0x14031a1e8]
mov eax, dword [rax + 0xa0]
mov dword [rsp + 0x194], eax
mov ecx, dword [rsp + 0x194]
call fcn.140036fe0
cmp dword [rsp + 0x1c0], 0
je 0x140037ed0
mov eax, dword [rsp + 0x34]
or eax, 2
mov dword [rsp + 0x34], eax
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x140037e3e
mov eax, dword [rsp + 0x1e8]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x34]
movzx r8d, word [rsp + 0x1d0]
movzx edx, byte [rsp + 0x1c8]
movzx ecx, byte [rsp + 0x165]
call fcn.14003a450
jmp 0x140037e83
movzx eax, byte [rsp + 0x164]
test eax, eax
je 0x140037e57
mov eax, dword [rsp + 0x1e8]
mov dword [0x140321414], eax
mov eax, dword [rsp + 0x1e8]
mov r9d, eax
mov r8d, dword [rsp + 0x34]
movzx edx, byte [rsp + 0x32]
movzx ecx, byte [rsp + 0x1c8]
call qword [sym.imp.USER32.dll_keybd_event]
mov dword [0x140321414], 0
cmp dword [rsp + 0x160], 0
je 0x140037eac
movzx eax, word [rsp + 0x1d0]
cmp eax, 0x138
jne 0x140037eac
movzx eax, byte [0x1403223cc]
and eax, 0xfffffffe
mov byte [0x1403223cc], al
movzx eax, byte [rsp + 0x166]
test eax, eax
je 0x140037ed0
movzx r8d, word [rsp + 0x1d0]
movzx edx, byte [rsp + 0x1c8]
mov cl, 1
call fcn.14003e870
movzx eax, byte [rsp + 0x1e0]
test eax, eax
je 0x140037f1b
cmp dword [0x140322308], 2
jne 0x140037efb
mov rax, qword [0x14031a1e8]
mov eax, dword [rax + 0x9c]
mov dword [rsp + 0x198], eax
jmp 0x140037f0f
mov rax, qword [0x14031a1e8]
mov eax, dword [rax + 0x98]
mov dword [rsp + 0x198], eax
mov ecx, dword [rsp + 0x198]
call fcn.140036fe0
mov rcx, rsp
lea rdx, [0x140273bc0]
call fcn.140134a00
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140135520
add rsp, 0x1b0
pop rdi
ret