Function at 0x401000
Capabilities:
Accept command line arguments
Create process on windows
Log keystrokes via polling
Register raw input devices
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
shr eax, 0xd
push str.user32.dll
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x40105d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessDPIAware
push edi
call esi
cmp eax, ebx
je 0x401041
call eax
push str.ChangeWindowMessageFilter
push edi
call esi
cmp eax, ebx
je 0x401056
push 1
push 0x800e
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp byte [eax], 0x22
jne 0x401069
inc eax
mov dword [0x4037a8], eax
mov cl, byte [eax]
cmp cl, bl
je 0x4012bd
inc eax
cmp cl, 0x2e
jne 0x40106e
mov ecx, dword [eax]
and ecx, 0xdddfdfdf
cmp ecx, 0x455845
jne 0x40106e
mov dword [0x4037ac], eax
mov cl, byte [eax]
cmp cl, bl
je 0x4010f6
cmp cl, 0x2f
jne 0x4010f3
mov cl, byte [eax + 1]
inc eax
and cl, 0xdf
cmp cl, 0x49
jne 0x4010b0
xor dword [ebp - 4], 4
jmp 0x40109e
cmp cl, 0x58
jne 0x4010bb
xor dword [ebp - 4], 8
jmp 0x40109e
cmp cl, 0x53
jne 0x4010c9
xor dword [section..data], 2
jmp 0x40109e
cmp cl, 0x55
jne 0x4010d7
xor dword [section..data], 4
jmp 0x40109e
cmp cl, 0x4e
jne 0x4010e5
xor dword [section..data], 8
jmp 0x40109e
cmp cl, 0x52
jne 0x401093
xor dword [section..data], 0x10
jmp 0x40109e
inc eax
jmp 0x401093
mov edi, str.__Fol.Menu
mov esi, 0x403020
push edi
push esi
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x40112d
test byte [ebp - 4], 8
je 0x401122
push ebx
push ebx
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4012bd
push 5
push 4
push 0x800e
jmp 0x401116
test byte [ebp - 4], 8
jne 0x4012bd
push ebx
call sub.IMM32.dll_ImmDisableIME
push ebx
mov dword [ebp - 0x40], 0x30
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 0x4012c7
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x66
push eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x40301c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0x33
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
lea ecx, [eax + 2]
push dword [ebp - 0x2c]
shl eax, 2
push ebx
push ebx
push ecx
push eax
push ebx
push ebx
push 0xc00000
push edi
push esi
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [0x40300c], eax
je 0x4012bd
push 6
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x65
push dword [ebp - 0x2c]
call dword [sym.imp.USER32.dll_LoadMenuA]
push ebx
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [0x4037cc], eax
mov eax, dword [0x40300c]
mov dword [ebp - 0x38], eax
push 0xc
lea eax, [ebp - 0x40]
push 1
push eax
mov word [ebp - 0x40], 1
mov word [ebp - 0x3e], 2
mov dword [ebp - 0x3c], 0x100
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x40122d
push 0x1030
push esi
push 0x403210
push dword [0x40300c]
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
push ebx
push 0x10
jmp 0x40123e
test byte [ebp - 4], 4
jne 0x40124a
push 0xca
push ebx
push 0x8013
push dword [0x40300c]
call dword [sym.imp.USER32.dll_PostMessageA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea eax, [ebp - 0x40]
push ebx
push eax
call edi
test eax, eax
je 0x4012ae
mov esi, dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [ebp - 0x3c], 0x8000
jb 0x40129b
mov dword [ebp - 4], ebx
push 1
push 0x7fff
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40129b
cmp dword [ebp - 0x20], 0x12
je 0x4012ae
lea eax, [ebp - 0x24]
push eax
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jle 0x40126f
lea eax, [ebp - 0x40]
push eax
call esi
push ebx
push ebx
lea eax, [ebp - 0x40]
push ebx
push eax
call edi
test eax, eax
jne 0x401263
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_DestroyMenu]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]