Function at 0x401000
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes
Log keystrokes via polling
Read .ini file
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 0x10
call esi
movzx edi, ax
push 0x11
shr edi, 1
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.user32.dll
movzx eax, ax
or edi, eax
shr edi, 0xe
mov dword [ebp - 0xc], edi
call ebx
mov esi, eax
test esi, esi
je 0x401056
push str.SetProcessDPIAware
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40104f
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, 0x22
cmp byte [eax], dl
jne 0x401071
inc eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
je 0x401077
cmp cl, dl
jne 0x401063
jmp 0x401077
inc eax
cmp byte [eax], 0x20
ja 0x401071
lea edi, [eax - 0xd]
mov esi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
mov cl, byte [eax]
cmp cl, 0x20
je 0x40108d
cmp cl, dl
jne 0x401090
inc eax
jmp 0x401082
mov cl, byte [eax]
test cl, cl
je 0x4010a4
mov byte [esi], cl
mov cl, byte [eax + 1]
inc esi
inc eax
test cl, cl
jne 0x401096
mov dword [ebp - 0x10], esi
cmp byte [esi - 1], dl
lea eax, [esi - 1]
jne 0x4010b1
mov dword [ebp - 0x10], eax
mov esi, eax
and byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4010ca
and dword [ebp - 4], 0
and byte [edi], 0
test byte [ebp - 4], 0x10
je 0x4010ea
and byte [esi + 0xc], 0
mov dword [esi], 0x7365445c
mov dword [esi + 4], 0x706f746b
mov dword [esi + 8], 0x696e692e
jmp 0x4010ee
and dword [ebp - 4], 0
push str.SHELL32.DLL
call ebx
test eax, eax
mov dword [ebp - 0x28], eax
je 0x40135e
push 0x3e
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 0x24], eax
je 0x401355
and dword [ebp - 8], 0
and byte [ebp - 0x12c], 0
test byte [ebp - 0xc], 1
mov esi, 0x104
mov ebx, str..ShellClassInfo
jne 0x4011bb
test byte [ebp - 0xc], 2
jne 0x40121c
cmp dword [ebp - 4], 0
je 0x40121c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x12c]
push esi
push eax
lea eax, [ebp - 8]
push eax
push str.IconFile
push ebx
call edi
test eax, eax
je 0x4011b8
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push 0xc
push eax
lea eax, [ebp - 8]
push eax
push str.IconIndex
push ebx
call edi
test eax, eax
je 0x4011b8
cmp byte [ebp - 0x20], 0x2d
lea ecx, [ebp - 0x20]
jne 0x40118b
lea ecx, [ebp - 0x1f]
mov al, byte [ecx]
cmp al, 0x30
jb 0x4011a8
cmp al, 0x39
ja 0x4011a8
mov edx, dword [ebp - 8]
inc ecx
movsx eax, al
lea edx, [edx + edx*4]
lea eax, [eax + edx*2 - 0x30]
mov dword [ebp - 8], eax
jmp 0x40118b
cmp byte [ebp - 0x20], 0x2d
jne 0x4011b8
cmp dword [ebp - 8], 0x64
jl 0x4011b8
sub dword [ebp - 8], 0x64
mov edi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jl 0x401257
lea eax, [ebp - 0x334]
push esi
push eax
lea eax, [ebp - 0x12c]
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x334]
push esi
push eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x12c]
push esi
push ecx
lea ecx, [ebp - 0x334]
push 0xffffffffffffffff
push ecx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x401270
mov cl, byte [edi]
lea eax, [ebp - 0x12c]
test cl, cl
je 0x401240
mov edx, edi
lea edi, [ebp - 0x12c]
sub edx, edi
mov byte [eax], cl
mov cl, byte [edx + eax + 1]
inc eax
test cl, cl
jne 0x401232
mov edi, dword [ebp - 0x14]
cmp dword [ebp - 4], 0
je 0x40124f
and byte [eax - 0xb], 0
jmp 0x4011bb
and byte [eax], 0
jmp 0x4011bb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x12c]
push esi
push eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
xor esi, esi
cmp dword [ebp - 0xc], esi
je 0x4012e3
cmp dword [ebp - 4], esi
je 0x40129d
push dword [ebp - 8]
or dword [ebp - 4], 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x6425
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40130f
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x20], 0x25206425
push eax
lea eax, [ebp - 0x20]
push dword [ebp - 8]
mov dword [ebp - 0x1c], 0x73
push eax
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x334]
push 0x50000
push str.Icon_Index_File
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401355
cmp dword [ebp - 4], esi
je 0x401355
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call esi
test ax, ax
jl 0x401300
push 0x1d
call esi
test ax, ax
jge 0x401355
and dword [ebp - 4], 0xfffffffe
and byte [ebp - 0x12c], 0
and byte [ebp - 0x20], 0
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x20]
push edi
push eax
push str.IconIndex
push ebx
call esi
test eax, eax
je 0x401355
lea eax, [ebp - 0x12c]
push edi
push eax
push str.IconFile
push ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or al, 6
push eax
push edi
call esi
push dword [ebp - 4]
mov eax, dword [ebp - 0x10]
and byte [eax], 0
push edi
call esi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]