Function at 0x401a50
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403d7d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x68], edi
mov esi, ecx
mov dword [ebp - 0x64], esi
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
add esi, 0xffffffdf
cmp esi, 0x6f
ja case.0x401ab0.41
movzx ecx, byte [esi + 0x401ce4]
jmp dword [ecx*4 + 0x401cdc]
or eax, 0x100
push 0x32
lea ecx, [ebp - 0x48]
shl eax, 0x10
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
test eax, eax
je 0x401af7
movups xmm0, xmmword [ebp - 0x48]
mov ax, word [ebp - 0x18]
movups xmmword [edi], xmm0
movups xmm0, xmmword [ebp - 0x38]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [edi + 0x20], xmm0
mov word [edi + 0x30], ax
lea eax, [ebp - 0x48]
jmp 0x401cbe
mov ecx, dword [ebp - 0x64]
lea esi, [ebp - 0x4b]
test ecx, ecx
jns 0x401b35
neg ecx
mov dword [ebp - 0x64], ecx
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
add cl, cl
sub byte [ebp - 0x64], cl
mov ecx, dword [ebp - 0x64]
add cl, 0x30
mov byte [esi], cl
mov ecx, edx
mov dword [ebp - 0x64], ecx
test ecx, ecx
jne 0x401b06
dec esi
mov byte [esi], 0x2d
jmp 0x401b5e
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
add cl, cl
sub byte [ebp - 0x64], cl
mov ecx, dword [ebp - 0x64]
add cl, 0x30
mov byte [esi], cl
mov ecx, edx
mov dword [ebp - 0x64], ecx
test ecx, ecx
jne 0x401b35
push ecx
lea eax, [ebp - 0x4b]
push eax
push esi
lea ecx, [ebp - 0x80]
call fcn.00402d90
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x6c]
mov eax, edx
mov ecx, dword [ebp - 0x70]
sub eax, ecx
cmp eax, 7
jb 0x401bf9
cmp edx, 0x10
lea esi, [ebp - 0x80]
lea eax, [ecx + 7]
cmovae esi, dword [ebp - 0x80]
mov dword [ebp - 0x70], eax
cmp esi, 0x4042bf
jae 0x401bba
lea eax, [esi + ecx]
cmp eax, str.UnkBtn
jb 0x401bba
cmp esi, str.UnkBtn
ja 0x401bb0
xor edi, edi
jmp 0x401bbf
mov edi, esi
sub edi, str.UnkBtn
jmp 0x401bbf
mov edi, 7
lea eax, [ecx + 1]
push eax
lea eax, [esi + 7]
push esi
push eax
call sub.VCRUNTIME140.dll_memmove
push edi
push str.UnkBtn
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, 7
sub eax, edi
push eax
lea eax, [edi + 0x4042bf]
push eax
lea eax, [esi + edi]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x24
lea eax, [ebp - 0x80]
jmp 0x401c0f
push 7
sub esp, 8
mov byte [ebp - 0x64], 0
lea ecx, [ebp - 0x80]
push dword [ebp - 0x64]
push 7
call fcn.00402eb0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x60], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x6c]
movq qword [ebp - 0x50], xmm0
cmp ecx, 0x10
jb 0x401c67
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401c5d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401c5d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040328a
add esp, 8
mov edi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x60]
mov esi, dword [ebp - 0x60]
cmp edi, 0x10
mov eax, dword [ebp - 0x50]
cmovae ecx, esi
inc eax
push eax
push ecx
push dword [ebp - 0x68]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp edi, 0x10
jb 0x401cb9
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x401caf
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401caf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.0040328a
add esp, 8
mov eax, str.ERROR
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00402ff6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret