Function at 0x4af4c0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x4af771
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x4af77c
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4af741
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x4af521
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x4af741
lea edx, [ebp - 8]
mov eax, 0x4af7b4
call fcn.004af1ec
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 8]
call fcn.004af2e0
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 8]
call fcn.004042e0
cmp dword [ebp - 8], 0
je 0x4af741
push 0
push 0
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp - 8]
call fcn.00404708
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4af741
call sub.kernel32.dll_GetTickCount
shr eax, 0xb
mov dword [ebp - 0xc], eax
push 0x64
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x4af72f
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x4af5b5
cmp dword [ebp - 0x48], 0x12
je 0x4af72f
call sub.kernel32.dll_GetTickCount
shr eax, 0xb
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x4af583
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x20], 4
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x1224048
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x4af583
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
ja 0x4af61c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x4af583
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.004af3a0
test al, al
jne 0x4af583
xor eax, eax
call fcn.004ade58
mov edx, 0x4af7d0
call fcn.004ae168
dec eax
je 0x4af64f
dec eax
jne 0x4af707
jmp 0x4af583
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 0x24], eax
push 0xffffffffffffffff
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.user32.dll_AttachThreadInput
xor eax, eax
push ebp
push 0x4af700
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x2c]
push eax
xor eax, eax
call fcn.004ade58
mov ecx, 0x4af7e8
mov edx, 0x4af80c
call fcn.004aeb3c
push 0x4af820
lea eax, [ebp - 0x30]
push eax
xor eax, eax
call fcn.004ade58
mov ecx, 0x4af834
mov edx, 0x4af80c
call fcn.004aeb3c
push 0x21
mov eax, dword [ebp - 0x30]
call fcn.00404708
push eax
mov eax, dword [ebp - 0x2c]
call fcn.00404708
push eax
push 0
call sub.user32.dll_MessageBoxA_1
dec eax
je 0x4af6e1
call fcn.00403d30
jmp 0x4af583
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af707
push 0
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.user32.dll_AttachThreadInput
ret
push 0xffffffffffffffff
lea eax, [ebp - 0x54]
call fcn.0045d518
lea eax, [ebp - 0x54]
mov edx, 0x4af848
call fcn.00404510
mov eax, dword [ebp - 0x54]
xor ecx, ecx
xor edx, edx
call fcn.0045ccb0
jmp 0x4af583
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af778
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.0040426c
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0040426c
lea eax, [ebp - 8]
call fcn.00404248
ret