Function at 0x401c00
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x918
mov eax, dword [0x404014]
mov dword [esp + 0x914], eax
mov eax, dword [esp + 0x91c]
push 0x43
mov dword [0x4040cc], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x401c4b
lea ecx, [esp + 0x414]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x401c4b
mov al, byte [esp + 0x4b4]
test al, al
js 0x402125
push esi
push 4
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x401c65
mov ecx, eax
call fcn.00401170
mov esi, eax
jmp 0x401c67
xor esi, esi
push ebx
push ebp
push edi
push 0x400
mov dword [esp + 0x1c], esi
mov dword [0x4040d0], esi
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
mov eax, dword [str.System_Help_Service]
mov edx, edi
mov dword [edx], eax
mov ecx, dword [0x403258]
mov dword [edx + 4], ecx
mov eax, dword [0x40325c]
mov dword [edx + 8], eax
mov ecx, dword [0x403260]
add esp, 4
mov dword [edx + 0xc], ecx
mov eax, dword [0x403264]
push 1
push 0x401160
mov dword [esp + 0x18], edi
mov dword [edx + 0x10], eax
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ebp, dword [sym.imp.MSVCR71.dll___p___argc]
call ebp
cmp dword [eax], 1
mov ebx, dword [sym.imp.MSVCR71.dll___p___argv]
jle 0x401f82
mov dword [esp + 0x1c], 2
mov dword [esp + 0x14], 4
mov edi, edi
call ebx
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
mov edx, dword [esi + ecx]
mov edi, dword [sym.imp.MSVCR71.dll__stricmp]
push str._instserv
push edx
call edi
add esp, 8
test eax, eax
je 0x401fbf
call ebx
mov eax, dword [eax]
mov ecx, dword [esi + eax]
push str._installsuspend
push ecx
call edi
add esp, 8
test eax, eax
je 0x402050
call ebx
mov edx, dword [eax]
mov eax, dword [esi + edx]
push str._removeserv
push eax
call edi
add esp, 8
test eax, eax
je 0x4020d8
call ebx
mov ecx, dword [eax]
mov edx, dword [esi + ecx]
push str._service
push edx
call edi
add esp, 8
test eax, eax
jne 0x401d81
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push 1
push eax
push ecx
call fcn.004011f0
push eax
mov dword [esp + 0x30], eax
mov dword [0x4040d4], eax
call fcn.00401680
add esp, 0x10
call ebx
mov edx, dword [eax]
mov eax, dword [esi + edx]
lea edx, [eax + 1]
jmp 0x401d90
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401d90
sub eax, edx
cmp eax, 0xd
jbe 0x401f55
call ebx
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax]
lea edx, [esp + 0x24]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401db3
mov edx, dword [str._servicename]
mov eax, dword [0x403214]
mov ecx, dword [0x403218]
mov dword [esp + 0x524], edx
mov dl, byte [0x40321c]
lea edi, [esp + 0x524]
mov dword [esp + 0x528], eax
mov dword [esp + 0x52c], ecx
mov byte [esp + 0x530], dl
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401df8
mov ax, word [0x40320c]
mov word [edi], ax
mov byte [esp + 0x31], 0
lea esi, [esp + 0x524]
lea eax, [esp + 0x24]
lea esp, [esp]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401e44
test cl, cl
je 0x401e40
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401e44
add eax, 2
add esi, 2
test cl, cl
jne 0x401e20
xor eax, eax
jmp 0x401e49
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401f55
call ebx
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax]
lea edx, [esp + 0x24]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401e62
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x31]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401e78
mov ebp, dword [esp + 0x1c]
call dword [sym.imp.MSVCR71.dll___p___argc]
cmp ebp, dword [eax]
jge 0x401f55
call ebx
mov edx, dword [eax]
mov eax, dword [edx + ebp*4]
mov esi, dword [sym.imp.MSVCR71.dll__stricmp]
push str._instserv
push eax
call esi
add esp, 8
test eax, eax
je 0x401f55
call ebx
mov ecx, dword [eax]
mov edx, dword [ecx + ebp*4]
push str._removeserv
push edx
call esi
add esp, 8
test eax, eax
je 0x401f55
call ebx
mov eax, dword [eax]
mov ecx, dword [eax + ebp*4]
push str._installsuspend
push ecx
call esi
add esp, 8
test eax, eax
je 0x401f55
call ebx
mov edx, dword [eax]
mov eax, dword [edx + ebp*4]
push str._service
push eax
call esi
add esp, 8
test eax, eax
je 0x401f55
mov edi, dword [esp + 0x10]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401f00
mov cx, word [0x403208]
mov word [edi], cx
call ebx
mov edx, dword [eax]
mov eax, dword [edx + ebp*4]
mov ecx, eax
jmp 0x401f20
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401f20
mov edi, dword [esp + 0x10]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401f30
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc ebp
call dword [sym.imp.MSVCR71.dll___p___argc]
cmp ebp, dword [eax]
jl 0x401e94
add dword [esp + 0x14], 4
mov esi, dword [esp + 0x1c]
inc esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.MSVCR71.dll___p___argc]
mov ecx, dword [eax]
dec esi
cmp esi, ecx
jl 0x401cf0
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.MSVCR71.dll___p___argc]
call ebp
cmp dword [eax], 1
jne 0x4020f7
push 1
push esi
push edi
call fcn.004011f0
mov esi, eax
push edi
mov dword [0x4040d4], esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 0x10
call ebx
mov edi, eax
call ebp
mov ecx, dword [edi]
mov edx, dword [eax]
push ecx
push edx
mov ecx, esi
call fcn.004011a0
jmp 0x402100
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.00401960
lea edi, [esp + 0x2c]
add esp, 8
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401fd6
mov cx, word [0x403208]
mov word [edi], cx
lea edi, [esp + 0x24]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401ff0
mov edx, dword [str._service]
mov eax, dword [0x403224]
mov cl, byte [0x403228]
mov esi, dword [esp + 0x10]
mov dword [edi], edx
push 0
lea edx, [esp + 0x28]
push edx
mov dword [edi + 4], eax
push esi
mov byte [edi + 8], cl
call fcn.00401270
add esp, 0xc
test eax, eax
jne 0x4020b5
mov eax, dword [esp + 0x18]
push 1
push eax
push esi
call fcn.004011f0
push 0
push 0
push 0x40
push eax
mov dword [0x4040d4], eax
call fcn.00401550
add esp, 0x1c
jmp 0x4020b5
lea ecx, [esp + 0x24]
push 0x400
push ecx
call fcn.00401960
lea edi, [esp + 0x2c]
add esp, 8
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402067
mov dx, word [0x403208]
mov word [edi], dx
lea edi, [esp + 0x24]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402080
mov eax, dword [str._service]
mov ecx, dword [0x403224]
mov dl, byte [0x403228]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
mov byte [edi + 8], dl
call fcn.00401270
add esp, 0xc
mov ecx, dword [0x4040d0]
test ecx, ecx
je 0x4020c6
mov edx, dword [ecx]
push 1
call dword [edx + 0x1c]
mov ecx, dword [0x4040d4]
test ecx, ecx
je 0x402121
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x402121
mov ecx, dword [esp + 0x20]
push 0
push 0
push 1
push ecx
call fcn.00401550
mov edx, dword [esp + 0x20]
push edx
call fcn.004012e0
add esp, 0x14
jmp 0x402100
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [0x4040d0]
test ecx, ecx
je 0x402111
mov eax, dword [ecx]
push 1
call dword [eax + 0x1c]
mov ecx, dword [0x4040d4]
test ecx, ecx
je 0x402121
mov edx, dword [ecx]
push 1
call dword [edx]
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x914]
xor eax, eax
call fcn.0040216d
add esp, 0x918
ret 0x10