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 0x800f
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 [0x404578], eax
mov cl, byte [eax]
cmp cl, bl
je 0x4012dd
inc eax
cmp cl, 0x2e
jne 0x40106e
mov ecx, dword [eax]
and ecx, 0xdddfdfdf
cmp ecx, 0x455845
jne 0x40106e
mov dword [0x40457c], eax
add eax, 3
cmp byte [eax], 0x22
jne 0x40109c
inc eax
cmp byte [eax], 0x20
jne 0x4010a2
inc eax
mov cl, byte [eax]
cmp cl, bl
je 0x401110
cmp cl, 0x2f
jne 0x4010a1
mov cl, byte [eax + 1]
inc eax
and cl, 0xdf
cmp cl, 0x54
jne 0x4010bf
xor dword [ebp - 4], 4
jmp 0x4010ad
cmp cl, 0x58
jne 0x4010ca
xor dword [ebp - 4], 0x10
jmp 0x4010ad
cmp cl, 0x53
jne 0x4010d8
or dword [0x404580], 2
jmp 0x4010ad
cmp cl, 0x41
jne 0x4010e6
or dword [0x404580], 4
jmp 0x4010ad
cmp cl, 0x55
jne 0x4010f4
or dword [0x404580], 8
jmp 0x4010ad
cmp cl, 0x4e
jne 0x401102
or dword [0x404580], 0x10
jmp 0x4010ad
cmp cl, 0x52
jne 0x4010a2
or dword [0x404580], 0x20
jmp 0x4010ad
mov esi, 0x4041c8
push esi
push esi
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x401141
test byte [ebp - 4], 0x10
je 0x401137
push ebx
push ebx
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4012dd
push 5
push ebx
push 0x800f
jmp 0x40112b
test byte [ebp - 4], 0x10
jne 0x4012dd
push ebx
call sub.IMM32.dll_ImmDisableIME
push ebx
mov dword [ebp - 0x40], 0x30
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 0x4012e7
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]
push 0x65
mov dword [0x4041c4], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], eax
pop edi
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
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 str.__Fol.Menu
push esi
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [0x4041b4], eax
je 0x4012dd
push 6
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push edi
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 [0x404598], eax
mov eax, dword [0x4041b4]
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 0x401247
push 0x1010
push esi
push 0x4041e0
push dword [0x4041b4]
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
push ebx
push 0x10
jmp 0x401258
test byte [ebp - 4], 4
jne 0x401264
push 0xca
push ebx
push 0x8013
push dword [0x4041b4]
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 0x4012ce
mov esi, dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [ebp - 0x3c]
and eax, 0xffe0
cmp eax, 0x8000
jne 0x4012bb
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 0x4012bb
cmp dword [ebp - 0x20], 0x12
je 0x4012ce
lea eax, [ebp - 0x24]
push eax
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jbe 0x40128f
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 0x40127d
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]