Function at 0x40c380
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c782e
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x5091d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0045f3b0
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x15c]
call fcn.00454ff0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x15c]
call fcn.00455360
mov esi, dword [ebp - 0x110]
cmp esi, dword [ebp - 0x114]
je 0x40bff8
movzx eax, word [esi + 8]
mov ecx, edi
push eax
call fcn.0045eff0
mov ecx, edi
test al, al
je 0x40bfd8
mov ax, word [esi + 8]
mov word [ebp - 0x118], ax
lea eax, [ebp - 0x116]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00402270
jmp 0x40bfe2
movzx eax, word [esi + 8]
push eax
call fcn.0045fb40
mov esi, dword [ebp - 0x110]
mov esi, dword [esi]
mov dword [ebp - 0x110], esi
cmp esi, dword [ebp - 0x114]
jne 0x40bfa6
mov eax, dword [ebp - 0x120]
mov esi, dword [ebp - 0x11c]
sub eax, esi
sar eax, 1
mov ecx, eax
mov dword [ebp - 0x10c], eax
sub ecx, 1
je 0x40c67d
sub ecx, 1
je 0x40c4db
sub ecx, 1
je 0x40c248
xor ecx, ecx
add eax, eax
mov edx, 0x1c
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049f828
mov esi, eax
add esp, 4
mov dword [ebp - 0x134], esi
mov ecx, dword [ebp - 0x10c]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x40c15a
mov eax, dword [ebp - 0x11c]
add eax, 2
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x130], eax
lea eax, [esi + 4]
mov dword [ebp - 0x114], eax
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax*4 - 0x16]
add edx, esi
mov esi, dword [ebp - 0x114]
mov dword [ebp - 0x118], edx
nop dword [eax]
mov ecx, dword [ebp - 0x130]
lea eax, [ebp - 0x114]
push eax
call fcn.004655b0
lea ecx, [ebp - 0x114]
call fcn.00464b10
movzx eax, al
push 0
push eax
mov word [esi], ax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov word [esi + 2], ax
movzx eax, byte [esi]
add eax, 0xffffffdf
cmp eax, 0xd
ja case.0x40c0e2.41
movzx eax, byte [eax + 0x40c7c0]
jmp dword [eax*4 + 0x40c7b8]
mov eax, 1
jmp 0x40c0f2
xor eax, eax
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov ecx, dword [ebp - 0x118]
mov dword [esi + 0xc], eax
movzx eax, word [esi]
mov word [ecx - 2], ax
movzx eax, word [esi + 2]
mov word [ecx], ax
mov eax, dword [esi + 4]
or eax, 2
mov dword [ecx + 2], eax
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov edx, dword [ebp - 0x118]
mov ecx, edi
mov dword [edx + 0xa], eax
push dword [ebp - 0x114]
call fcn.0045f160
sub dword [ebp - 0x118], 0x1c
add esi, 0x1c
sub dword [ebp - 0x110], 1
jne 0x40c0a0
mov esi, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x10c]
push 0x1c
push esi
push ecx
call dword [sym.imp.USER32.dll_SendInput]
test eax, eax
je 0x40c76e
mov byte [ebp - 4], 0
test esi, esi
je 0x40c17d
push esi
call fcn.0049f831
add esp, 4
mov esi, dword [ebp - 0x11c]
push dword [ebp - 0x120]
mov ecx, edi
push esi
call fcn.0045ea00
lea eax, [ebp - 0x108]
mov ecx, edi
push eax
call fcn.0045f3b0
push eax
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x15c]
call fcn.00454c90
lea ecx, [ebp - 0x108]
call fcn.00454890
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00454ff0
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00455360
mov eax, dword [ebp - 0x110]
cmp eax, dword [ebp - 0x10c]
je 0x40c215
movzx eax, word [eax + 8]
mov ecx, edi
push eax
call fcn.0045f380
mov eax, dword [ebp - 0x110]
mov eax, dword [eax]
mov dword [ebp - 0x110], eax
cmp eax, dword [ebp - 0x10c]
jne 0x40c1f3
lea ecx, [ebp - 0xe0]
call fcn.00454890
lea ecx, [ebp - 0x15c]
call fcn.00454890
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049f836
mov esp, ebp
pop ebp
ret 8
xorps xmm0, xmm0
mov dword [ebp - 0xb8], 1
lea eax, [ebp - 0x10c]
movq qword [ebp - 0xa4], xmm0
push eax
mov ecx, esi
mov dword [ebp - 0x9c], 1
movups xmmword [ebp - 0xb4], xmm0
mov dword [ebp - 0x80], 1
movups xmmword [ebp - 0x98], xmm0
mov dword [ebp - 0x64], 1
movq qword [ebp - 0x88], xmm0
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x48], 1
movq qword [ebp - 0x6c], xmm0
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x2c], 1
movq qword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x44], xmm0
movq qword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x28], xmm0
movq qword [ebp - 0x18], xmm0
call fcn.004655b0
lea ecx, [ebp - 0x10c]
call fcn.00464b10
movzx eax, al
push 0
push eax
mov word [ebp - 0xb4], ax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov word [ebp - 0xb2], ax
movzx eax, byte [ebp - 0xb4]
add eax, 0xffffffdf
cmp eax, 0xd
ja case.0x40c306.41
movzx eax, byte [eax + 0x40c7d8]
jmp dword [eax*4 + 0x40c7d0]
mov eax, 1
jmp 0x40c316
xor eax, eax
mov dword [ebp - 0xb0], eax
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 0xa8], eax
lea ecx, [esi + 2]
lea eax, [ebp - 0x114]
push eax
call fcn.004655b0
lea ecx, [ebp - 0x114]
call fcn.00464b10
movzx eax, al
push 0
push eax
mov word [ebp - 0x98], ax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov word [ebp - 0x96], ax
movzx eax, byte [ebp - 0x98]
add eax, 0xffffffdf
cmp eax, 0xd
ja case.0x40c372.41
movzx eax, byte [eax + 0x40c7f0]
jmp dword [eax*4 + 0x40c7e8]
mov eax, 1
jmp 0x40c382
xor eax, eax
mov dword [ebp - 0x94], eax
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 0x8c], eax
lea ecx, [esi + 4]
lea eax, [ebp - 0x110]
push eax
call fcn.004655b0
lea ecx, [ebp - 0x110]
call fcn.00464b10
movzx eax, al
push 0
push eax
mov word [ebp - 0x7c], ax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov word [ebp - 0x7a], ax
movzx eax, byte [ebp - 0x7c]
add eax, 0xffffffdf
cmp eax, 0xd
ja case.0x40c3d5.41
movzx eax, byte [eax + 0x40c808]
jmp dword [eax*4 + 0x40c800]
mov eax, 1
jmp 0x40c3e5
xor eax, eax
mov dword [ebp - 0x78], eax
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 0x70], eax
movzx eax, word [ebp - 0x7c]
mov word [ebp - 0x60], ax
movzx eax, word [ebp - 0x7a]
mov word [ebp - 0x5e], ax
mov eax, dword [ebp - 0x78]
or eax, 2
mov dword [ebp - 0x5c], eax
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 0x54], eax
movzx eax, word [ebp - 0x98]
mov word [ebp - 0x44], ax
movzx eax, word [ebp - 0x96]
mov word [ebp - 0x42], ax
mov eax, dword [ebp - 0x94]
or eax, 2
mov dword [ebp - 0x40], eax
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 0x38], eax
movzx eax, word [ebp - 0xb4]
mov word [ebp - 0x28], ax
movzx eax, word [ebp - 0xb2]
mov word [ebp - 0x26], ax
mov eax, dword [ebp - 0xb0]
or eax, 2
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
push dword [ebp - 0x10c]
mov ecx, edi
mov dword [ebp - 0x1c], eax
call fcn.0045f160
push dword [ebp - 0x114]
mov ecx, edi
call fcn.0045f160
push dword [ebp - 0x110]
mov ecx, edi
call fcn.0045f160
push 0x1c
lea eax, [ebp - 0xb8]
push eax
push 6
call dword [sym.imp.USER32.dll_SendInput]
test eax, eax
jne 0x40c183
push str.An_runtime_exception_occurred:
lea ecx, [ebp - 0xd0]
call fcn.00402850
push str.failed_sending_keyboard_event
push eax
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 5
push eax
call fcn.004020f0
add esp, 0xc
mov byte [ebp - 4], 6
jmp 0x40c79b
xorps xmm0, xmm0
mov dword [ebp - 0x80], 1
lea eax, [ebp - 0x10c]
movq qword [ebp - 0x6c], xmm0
push eax
mov ecx, esi
mov dword [ebp - 0x64], 1
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x48], 1
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x2c], 1
movq qword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x44], xmm0
movq qword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x28], xmm0
movq qword [ebp - 0x18], xmm0
call fcn.004655b0
lea ecx, [ebp - 0x10c]
call fcn.00464b10
movzx eax, al
push 0
push eax
mov word [ebp - 0x7c], ax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov word [ebp - 0x7a], ax
movzx eax, byte [ebp - 0x7c]
add eax, 0xffffffdf
cmp eax, 0xd
ja case.0x40c55e.41
movzx eax, byte [eax + 0x40c820]
jmp dword [eax*4 + 0x40c818]
mov eax, 1
jmp 0x40c56e
xor eax, eax
mov dword [ebp - 0x78], eax
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 0x70], eax
lea ecx, [esi + 2]
lea eax, [ebp - 0x114]
push eax
call fcn.004655b0
lea ecx, [ebp - 0x114]
call fcn.00464b10
movzx eax, al
push 0
push eax
mov word [ebp - 0x60], ax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov word [ebp - 0x5e], ax
movzx eax, byte [ebp - 0x60]
add eax, 0xffffffdf
cmp eax, 0xd
ja case.0x40c5bb.41
movzx eax, byte [eax + 0x40c838]
jmp dword [eax*4 + 0x40c830]
mov eax, 1
jmp 0x40c5cb
xor eax, eax
mov dword [ebp - 0x5c], eax
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 0x54], eax
movzx eax, word [ebp - 0x60]
mov word [ebp - 0x44], ax
movzx eax, word [ebp - 0x5e]
mov word [ebp - 0x42], ax
mov eax, dword [ebp - 0x5c]
or eax, 2
mov dword [ebp - 0x40], eax
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 0x38], eax
movzx eax, word [ebp - 0x7c]
mov word [ebp - 0x28], ax
movzx eax, word [ebp - 0x7a]
mov word [ebp - 0x26], ax
mov eax, dword [ebp - 0x78]
or eax, 2
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
push dword [ebp - 0x10c]
mov ecx, edi
mov dword [ebp - 0x1c], eax
call fcn.0045f160
push dword [ebp - 0x114]
mov ecx, edi
call fcn.0045f160
push 0x1c
lea eax, [ebp - 0x80]
push eax
push 4
call dword [sym.imp.USER32.dll_SendInput]
test eax, eax
jne 0x40c183
push str.An_runtime_exception_occurred:
lea ecx, [ebp - 0xd0]
call fcn.00402850
push str.failed_sending_keyboard_event
push eax
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 3
push eax
call fcn.004020f0
add esp, 0xc
mov byte [ebp - 4], 4
jmp 0x40c79b
xorps xmm0, xmm0
mov dword [ebp - 0x48], 1
lea eax, [ebp - 0x10c]
movq qword [ebp - 0x34], xmm0
push eax
mov ecx, esi
mov dword [ebp - 0x2c], 1
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x28], xmm0
movq qword [ebp - 0x18], xmm0
call fcn.004655b0
lea ecx, [ebp - 0x10c]
call fcn.00464b10
movzx eax, al
push 0
push eax
mov word [ebp - 0x44], ax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov word [ebp - 0x42], ax
movzx eax, byte [ebp - 0x44]
add eax, 0xffffffdf
cmp eax, 0xd
ja case.0x40c6e0.41
movzx eax, byte [eax + 0x40c850]
jmp dword [eax*4 + 0x40c848]
mov eax, 1
jmp 0x40c6f0
xor eax, eax
mov esi, dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x38], eax
movzx eax, word [ebp - 0x44]
mov word [ebp - 0x28], ax
movzx eax, word [ebp - 0x42]
mov word [ebp - 0x26], ax
mov eax, dword [ebp - 0x40]
or eax, 2
mov dword [ebp - 0x24], eax
call esi
push dword [ebp - 0x10c]
mov ecx, edi
mov dword [ebp - 0x1c], eax
call fcn.0045f160
push 0x1c
lea eax, [ebp - 0x48]
push eax
push 2
call dword [sym.imp.USER32.dll_SendInput]
test eax, eax
jne 0x40c17d
push str.An_runtime_exception_occurred:
lea ecx, [ebp - 0xd0]
call fcn.00402850
push str.failed_sending_keyboard_event
push eax
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 1
push eax
call fcn.004020f0
add esp, 0xc
mov byte [ebp - 4], 2
jmp 0x40c79b
push str.An_runtime_exception_occurred:
lea ecx, [ebp - 0xf8]
call fcn.00402850
push str.failed_sending_keyboard_event
push eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 8
push eax
call fcn.004020f0
add esp, 0xc
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x12c]
call fcn.00402b30
push 0x4f9f28
lea eax, [ebp - 0x12c]
push eax
call fcn.004a0dc4
jmp 0xf041087d