Function at 0x401000
Capabilities:
Accept command line arguments
Log keystrokes via polling
Open clipboard
Read clipboard data
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x401049
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessDPIAware
push edi
call esi
cmp eax, ebx
je 0x401030
call eax
push str.ChangeWindowMessageFilter
push edi
call esi
cmp eax, ebx
je 0x401042
push 1
push 0x4a
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0x22
jne 0x401057
inc esi
mov dword [0x40422c], esi
mov al, byte [esi]
cmp al, bl
je 0x401480
inc esi
cmp al, 0x2e
jne 0x40105d
mov eax, dword [esi]
and eax, 0xdddfdfdf
cmp eax, 0x455845
jne 0x40105d
mov eax, esi
add esi, 3
mov dword [ebp - 0x10], esi
mov cl, byte [esi]
cmp cl, 0x20
je 0x40108e
cmp cl, 0x22
jne 0x401091
inc esi
jmp 0x401082
mov edi, 0x404050
mov dword [ebp - 0x10], esi
push edi
push edi
mov dword [eax], 0x464e51
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4010fc
cmp byte [esi], bl
mov eax, esi
je 0x4010b9
inc eax
cmp byte [eax], bl
jne 0x4010b4
sub eax, esi
mov dword [ebp - 0x48], esi
inc eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 8]
push eax
push 0x7e
lea eax, [ebp - 0x50]
push 2
push eax
push ebx
push 0x4a
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x4010ef
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x401480
push ebx
push ebx
push 0x10
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_PostMessageA]
push 0xffffffffffffffff
call sub.IMM32.dll_ImmDisableIME
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
push 0x66
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x404250], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x30
push eax
mov dword [ebp - 0x4c], 0x23
mov dword [ebp - 0x48], 0x40148a
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 5
mov dword [ebp - 0x2c], 0x65
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0x2228
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [0x404230], eax
je 0x401480
lea ecx, [eax + 0x2000]
add eax, 0x2114
mov dword [0x404224], ecx
mov dword [0x404228], eax
mov dword [ecx + 0xc], ebx
mov eax, dword [0x404228]
push ebx
mov dword [eax + 0xc], ebx
lea eax, [ebp - 0x50]
push eax
push 0x3c
push 0x1f
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x4011d1
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x4011d1
mov eax, dword [ebp - 0x50]
cmp eax, ebx
mov dword [0x404260], eax
jge 0x401204
push 2
pop eax
sub eax, dword [ebp - 0x50]
jmp 0x4011ff
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0xc], eax
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x401474
mov eax, dword [ebp - 0x50]
cmp eax, ebx
mov dword [0x404260], eax
jge 0x401204
neg eax
mov dword [0x404260], eax
lea ecx, [eax + eax*2]
lea eax, [eax*4 + 0x14]
mov dword [ebp - 0x44], eax
push 0x300
push 1
lea eax, [ebp - 0x50]
lea ecx, [ecx*8 + 0xc]
push 0xce0000
push eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ecx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov ecx, dword [ebp - 0x50]
push ebx
mov eax, ecx
push esi
neg eax
mov dword [0x404268], eax
mov eax, dword [ebp - 0x4c]
sub dword [ebp - 0x44], eax
mov edx, eax
push ebx
mov eax, 0x7d1
push ebx
sub dword [ebp - 0x48], ecx
push eax
push eax
push ebx
push ebx
push 0x2ce0000
push edi
neg edx
push edi
mov edi, dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x310
mov dword [0x40426c], edx
call edi
cmp eax, ebx
mov dword [0x404258], eax
je 0x401474
push ebx
push esi
push 0x7e
push eax
push ebx
push ebx
push 4
push 4
push 0x54300140
push ebx
push str.LISTBOX
push 0x200
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push dword [ebp - 0xc]
mov dword [0x404254], eax
push 0x30
push eax
call esi
push 0x402038
push 0xfffffffffffffffc
push dword [0x404254]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push ebx
mov dword [0x404220], eax
push dword [ebp - 4]
mov eax, 0x80000000
push ebx
push dword [0x404258]
push eax
push eax
push eax
push eax
push 3
push ebx
push str.tooltips_class32
push ebx
call edi
push 0x7530
mov edi, 0x403
push 2
push edi
push eax
mov dword [0x4041bc], eax
call esi
push 0x78
push 3
push edi
push dword [0x4041bc]
call esi
push 0x4b0
push ebx
push 0x418
push dword [0x4041bc]
call esi
mov eax, dword [0x404258]
push ebx
mov dword [0x404198], eax
mov eax, dword [0x404254]
mov dword [0x40419c], eax
mov eax, dword [ebp - 4]
mov dword [0x404194], 0x11
mov dword [0x4041b0], eax
mov dword [0x4041b4], 0x404150
call fcn.0040199a
test eax, eax
pop ecx
je 0x401375
mov eax, dword [0x404200]
sub dword [0x404208], eax
mov eax, dword [0x404204]
sub dword [0x40420c], eax
jmp 0x401385
mov eax, dword [ebp - 0x48]
mov dword [0x404208], eax
mov eax, dword [ebp - 0x44]
mov dword [0x40420c], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [ebp - 0x50]
push 0x10
push ecx
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetClassNameA]
cmp eax, 0xd
jne 0x4013d8
cmp dword [ebp - 0x50], 0x69626143
jne 0x4013d8
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x48]
add eax, ecx
push 0x1d
cdq
sub eax, edx
sar eax, 1
mov dword [0x404200], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, dword [ebp - 0x4c]
mov dword [0x404204], eax
push 0x40
push 0x9c46
push 0x111
push dword [0x404258]
call esi
push dword [ebp - 0x10]
call fcn.004019f9
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
pop ecx
push ebx
push ebx
lea eax, [ebp - 0x50]
push ebx
push eax
call edi
test eax, eax
je 0x40146b
mov esi, dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [ebp - 0x4c]
and eax, 0xfff0
cmp eax, 0x8000
jne 0x40144e
mov dword [ebp - 8], ebx
push 1
push 0x7fff
push ebx
lea eax, [ebp - 0x30]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x401458
cmp dword [ebp - 0x2c], 0x12
je 0x40146b
lea eax, [ebp - 0x30]
push eax
call esi
inc dword [ebp - 8]
cmp dword [ebp - 8], 5
jb 0x401420
jmp 0x401458
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x50]
push eax
call esi
push ebx
push ebx
lea eax, [ebp - 0x50]
push ebx
push eax
call edi
test eax, eax
jne 0x40140e
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [0x404230]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]