Function at 0x40c60d
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40c8c9
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40c8c9
push 1
push ebx
push edi
call sub.MSVCRT.dll_memcpy
mov esi, dword [ebp + 0x10]
add esp, 0xc
inc edi
mov dword [esi], 1
movsx eax, byte [ebx]
inc ebx
dec eax
mov dword [ebp + 8], ebx
je 0x40c86a
dec eax
je 0x40c83a
dec eax
je 0x40c803
sub eax, 3
je 0x40c776
sub eax, 8
jne 0x40c8d7
call fcn.004045fb
cmp eax, 1
push 0
jne 0x40c6a8
push 0x9c4b
push 0x111
push dword [0x4289ac]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 0x200]
push 0x100
push eax
push 0x9b
jmp 0x40c6cf
push 0x9c47
push 0x111
push dword [0x4289ac]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 0x200]
push 0x100
push eax
push 0x98
push dword [0x428fe4]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x200]
push eax
push 0x425390
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
mov dword [ebp + 8], eax
je 0x40c776
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x40c738
push 0x426398
push 6
call fcn.0040148c
pop ecx
pop ecx
jmp 0x40c74e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x426358
push 3
call fcn.0040148c
add esp, 0xc
xor eax, eax
push 3
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0x200]
push eax
push 0x426340
push 6
call fcn.0040148c
add esp, 0xc
movsx eax, byte [ebx]
sub eax, 3
je 0x40c7be
dec eax
dec eax
jne 0x40c8d7
push 1
push ebx
push edi
call sub.MSVCRT.dll_memcpy
inc dword [esi]
inc edi
push 4
push 0x429cc0
push edi
call sub.MSVCRT.dll_memcpy
call fcn.004046bd
mov dword [ebp + 8], eax
push 4
lea eax, [ebp + 8]
push eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0x24
add dword [esi], 4
jmp 0x40c8d7
push 1
push ebx
push edi
call sub.MSVCRT.dll_memcpy
inc dword [esi]
inc edi
call fcn.0040477f
mov ebx, eax
push ebx
call sub.MSVCRT.dll_strlen
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 4
push eax
push edi
call sub.MSVCRT.dll_memcpy
push dword [ebp + 8]
add dword [esi], 4
add edi, 4
push ebx
push edi
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0x28
add dword [esi], eax
jmp 0x40c8d7
and dword [ebp + 8], 0
and dword [ebp + 0xc], 0
push 4
lea eax, [ebp + 0xc]
pop ebx
push ebx
push eax
push edi
call sub.MSVCRT.dll_memcpy
add dword [esi], ebx
call fcn.004045fb
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push ebx
add edi, ebx
push eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0x18
add dword [esi], ebx
jmp 0x40c8d7
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push 4
push eax
push edi
call sub.MSVCRT.dll_memcpy
add dword [esi], 4
add esp, 0xc
push 0
push 0x9c4c
push 0x111
push dword [0x4289ac]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40c8d7
call fcn.004045fb
cmp eax, 1
je 0x40c87d
push 0x4262f0
push 6
jmp 0x40c8d0
push 0
call fcn.00404722
mov dword [esp], 0x24c
mov ebx, 0x428690
push 0
push ebx
call sub.MSVCRT.dll_memset
push 0x24c
push dword [ebp + 8]
push ebx
call sub.MSVCRT.dll_memcpy
or dword [0x428798], 1
mov dword [0x428794], 2
call fcn.0040c373
mov dword [ebp + 0xc], eax
push 4
lea eax, [ebp + 0xc]
jmp 0x40c7ac
push 0x4262bc
push 3
call fcn.0040148c
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret