Function at 0x10405b2
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
call fcn.0103f8bf
test eax, eax
je 0x10405e1
xor eax, eax
jmp 0x1040921
push esi
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push dword [ebp + 0x14]
mov ecx, edi
xor esi, esi
call fcn.0103fa0a
test eax, eax
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
jl 0x104090b
push eax
mov ecx, edi
call fcn.0100b265
test eax, eax
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
je 0x104090b
mov edx, dword [edi]
lea ecx, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push ecx
push 0x100b864
push eax
mov ecx, edi
call dword [edx + 0x84]
test eax, eax
jge 0x104063e
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 0x1047714
push ebx
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, eax
test ebx, ebx
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ebx
je 0x10408f6
and dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov esi, 0x100
jge 0x1040674
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], esi
test byte [edi + 0x48], 8
je 0x1040681
or dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 0x10
push dword [ebp - 0x214]
mov eax, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
mov ecx, dword [eax]
push 0x7000
push esi
push 0
push ebx
push eax
call dword [ecx + 0xc]
push 0x1040958
push esi
push ebx
push dword [ebp - 0x210]
call fcn.0103c6f4
push 0x1040950
push esi
push ebx
push dword [ebp - 0x210]
call fcn.0103c6f4
push 0x102ab68
push esi
push dword [ebp - 0x210]
push ebx
call fcn.0103c4f1
and dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 0
lea ecx, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push ecx
push dword [ebp - 0x220]
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
test eax, eax
je 0x104076c
push 0x104
lea ecx, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push ecx
push eax
push dword [0x1046f18]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x104077e
cmp dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 0xffffffff
je 0x1040744
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
mov eax, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
push 1
or eax, 0x400
push eax
push dword [ebp - 0x214]
push ebx
call dword [sym.imp.USER32.dll_ModifyMenuW]
jmp 0x104077e
push 0
push 0xffffffffffffffff
push 0x800
push ebx
call dword [sym.imp.USER32.dll_AppendMenuW]
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push 1
push dword [ebp - 0x218]
push ebx
call dword [sym.imp.USER32.dll_AppendMenuW]
jmp 0x104077e
push 0x400
push dword [ebp - 0x214]
push ebx
call dword [sym.imp.USER32.dll_DeleteMenu]
push ebx
call fcn.0103c37a
mov ecx, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
mov edx, dword [ecx]
lea eax, [edi + 0x64]
push eax
push 0x1040930
push ecx
call dword [edx]
mov ecx, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
mov edx, dword [ecx]
lea eax, [edi + 0x68]
push eax
push 0x102a2b0
push ecx
call dword [edx]
push 0
push dword [ebp - 0x21c]
push dword [ebp - 0x224]
push dword [ebp - 0x228]
push 0x102
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
mov ebx, eax
lea eax, [edi + 0x64]
push eax
call fcn.01003fed
lea eax, [edi + 0x68]
push eax
call fcn.01003fed
test ebx, ebx
je 0x10408e7
mov eax, ebx
dec eax
push 0x104
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
je 0x104080d
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push dword [ebp - 0x210]
call fcn.0103c654
jmp 0x1040819
push 0x102ab68
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
mov eax, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
xor eax, eax
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
mov eax, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
sub ebx, esi
test byte [edi + 0x48], 8
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
mov eax, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 0x40
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 0x4100000
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ebx
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 0xa
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ebx
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
je 0x10408c6
push 0x1040940
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x10408c6
push dword [ebp - 0x22c]
mov ecx, edi
call fcn.0103fad6
jmp 0x10408e7
mov eax, dword [edi]
lea ecx, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push ecx
lea ecx, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push ecx
push dword [ebp - 0x210]
mov ecx, edi
push dword [ebp - 0x220]
call dword [eax + 0x48]
push dword [ebp - 0x230]
call dword [sym.imp.USER32.dll_DestroyMenu]
xor esi, esi
inc esi
mov eax, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
pop ebx
je 0x104090b
xor eax, eax
jmp 0x1040920
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x21c]
call dword [sym.imp.USER32.dll_DefWindowProcW]
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.01001b01
leave
ret 0x10