Function at 0x402270
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5c7f
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
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 dword [ebp - 0xd4], ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
sub edi, esi
mov dword [ebp - 0xcc], esi
sar edi, 1
mov eax, edi
mov dword [ebp - 0xd8], edi
sub eax, 1
je 0x402641
sub eax, 1
je 0x402526
sub eax, 1
je 0x4023ca
xor ecx, ecx
mov eax, edi
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 - 0xd0], esi
mov dword [ebp - 4], 6
test edi, edi
je 0x4023a2
lea edi, [esi + 4]
xor esi, esi
nop dword [eax]
mov eax, dword [ebp - 0xcc]
lea ecx, [eax + esi*2]
lea eax, [ebp - 0xc6]
push eax
call fcn.004655b0
mov ecx, eax
call fcn.00464b10
movzx eax, al
push 0
push eax
mov word [edi], ax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov word [edi + 2], ax
movzx eax, byte [edi]
add eax, 0xffffffdf
cmp eax, 0xd
ja case.0x402351.41
movzx eax, byte [eax + 0x4027a4]
jmp dword [eax*4 + 0x40279c]
mov eax, 3
jmp 0x402364
mov eax, 2
mov dword [edi + 4], eax
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov ecx, dword [ebp - 0xd4]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0xcc]
movzx eax, word [eax + 2]
push eax
call fcn.0045fb40
inc esi
add edi, 0x1c
cmp esi, dword [ebp - 0xd8]
jb 0x402310
mov esi, dword [ebp - 0xd0]
mov edi, dword [ebp - 0xd8]
push 0x1c
push esi
push edi
call dword [sym.imp.USER32.dll_SendInput]
test eax, eax
je 0x402707
test esi, esi
je 0x4026ea
push esi
call fcn.0049f831
add esp, 4
jmp 0x4026ea
xorps xmm0, xmm0
mov dword [ebp - 0x64], 1
lea eax, [ebp - 0xc6]
movq qword [ebp - 0x50], xmm0
push eax
mov ecx, esi
mov dword [ebp - 0x48], 1
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x2c], 1
movups xmmword [ebp - 0x44], xmm0
movq qword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x28], xmm0
movq qword [ebp - 0x18], xmm0
call fcn.004655b0
mov ecx, eax
call fcn.00464b10
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
movzx eax, al
push 0
push eax
mov word [ebp - 0x60], ax
call edi
mov word [ebp - 0x5e], ax
push dword [ebp - 0x60]
call fcn.00402230
mov esi, dword [sym.imp.USER32.dll_GetMessageExtraInfo]
add esp, 4
or eax, 2
mov dword [ebp - 0x5c], eax
call esi
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0xc6]
mov eax, dword [ebp - 0xcc]
add eax, 2
push ecx
mov ecx, eax
mov dword [ebp - 0xd0], eax
call fcn.004655b0
mov ecx, eax
call fcn.00464b10
movzx eax, al
push 0
push eax
mov word [ebp - 0x44], ax
call edi
mov word [ebp - 0x42], ax
push dword [ebp - 0x44]
call fcn.00402230
add esp, 4
or eax, 2
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0xc6]
mov eax, dword [ebp - 0xcc]
add eax, 4
push ecx
mov ecx, eax
mov dword [ebp - 0xd8], eax
call fcn.004655b0
mov ecx, eax
call fcn.00464b10
movzx eax, al
push 0
push eax
mov word [ebp - 0x28], ax
call edi
mov word [ebp - 0x26], ax
push dword [ebp - 0x28]
call fcn.00402230
add esp, 4
or eax, 2
mov dword [ebp - 0x24], eax
call esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x64]
push 0x1c
push eax
push 3
call dword [sym.imp.USER32.dll_SendInput]
test eax, eax
je 0x402751
mov eax, dword [ebp - 0xcc]
mov esi, dword [ebp - 0xd4]
mov ecx, esi
movzx eax, word [eax]
push eax
call fcn.0045fb40
mov ecx, dword [ebp - 0xd0]
movzx eax, word [ecx]
mov ecx, esi
push eax
call fcn.0045fb40
mov ecx, dword [ebp - 0xd8]
movzx eax, word [ecx]
mov ecx, esi
jmp 0x4026e4
xorps xmm0, xmm0
mov dword [ebp - 0x48], 1
lea eax, [ebp - 0xc6]
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
mov ecx, eax
call fcn.00464b10
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
movzx eax, al
push 0
push eax
mov word [ebp - 0x44], ax
call edi
mov word [ebp - 0x42], ax
push dword [ebp - 0x44]
call fcn.00402230
mov esi, dword [sym.imp.USER32.dll_GetMessageExtraInfo]
add esp, 4
or eax, 2
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0xc6]
mov eax, dword [ebp - 0xcc]
add eax, 2
push ecx
mov ecx, eax
mov dword [ebp - 0xd0], eax
call fcn.004655b0
mov ecx, eax
call fcn.00464b10
movzx eax, al
push 0
push eax
mov word [ebp - 0x28], ax
call edi
mov word [ebp - 0x26], ax
push dword [ebp - 0x28]
call fcn.00402230
add esp, 4
or eax, 2
mov dword [ebp - 0x24], eax
call esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x48]
push 0x1c
push eax
push 2
call dword [sym.imp.USER32.dll_SendInput]
test eax, eax
jne 0x40261e
push str.An_runtime_exception_occurred:
lea ecx, [ebp - 0x94]
call fcn.00402850
push str.failed_sending_keyboard_event
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], 2
push eax
call fcn.004020f0
add esp, 0xc
mov byte [ebp - 4], 3
jmp 0x40277e
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xd4]
movzx eax, word [eax]
push eax
call fcn.0045fb40
mov ecx, dword [ebp - 0xd0]
movzx eax, word [ecx]
jmp 0x4026de
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0xc6]
movq qword [ebp - 0x18], xmm0
push eax
mov ecx, esi
movups xmmword [ebp - 0x28], xmm0
call fcn.004655b0
mov ecx, eax
call fcn.00464b10
movzx eax, al
push 0
push eax
mov word [ebp - 0x28], ax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov word [ebp - 0x26], ax
push dword [ebp - 0x28]
call fcn.00402230
add esp, 4
or eax, 2
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push 0x1c
push eax
push 1
call dword [sym.imp.USER32.dll_SendInput]
test eax, eax
jne 0x4026db
push str.An_runtime_exception_occurred:
lea ecx, [ebp - 0x94]
call fcn.00402850
push str.failed_sending_keyboard_event
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], 0
push eax
call fcn.004020f0
add esp, 0xc
mov byte [ebp - 4], 1
jmp 0x40277e
movzx eax, word [esi]
mov ecx, dword [ebp - 0xd4]
push eax
call fcn.0045fb40
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
push str.An_runtime_exception_occurred:
lea ecx, [ebp - 0xac]
call fcn.00402850
push str.failed_sending_keyboard_event
push eax
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 7
push eax
call fcn.004020f0
add esp, 0xc
push eax
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 8
call fcn.00402b30
push 0x4f9f28
lea eax, [ebp - 0xf0]
push eax
call fcn.004a0dc4
push str.An_runtime_exception_occurred:
lea ecx, [ebp - 0x7c]
call fcn.00402850
push str.failed_sending_keyboard_event
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 4], 4
push eax
call fcn.004020f0
add esp, 0xc
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0xe4]
call fcn.00402b30
push 0x4f9f28
lea eax, [ebp - 0xe4]
push eax
call fcn.004a0dc4
nop
pop eax
and eax, dword [eax]
pop edi
and eax, dword [eax]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [ecx], eax
add dword [ecx], eax
add byte [eax], al
int3