Function at 0x416250
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
movzx eax, bl
or ax, si
push edi
je 0x4167f4
cmp dword [ebp + 0x1c], 0
jne 0x41627e
mov dword [ebp + 0x1c], 0xffc3d44d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4d75a0]
mov eax, dword [0x4d8f78]
sete byte [esp + 0x11]
test eax, eax
je 0x4162a4
cmp byte [esp + 0x11], 0
mov byte [esp + 0x12], 1
je 0x4162a9
mov byte [esp + 0x12], 0
cmp eax, 1
je 0x4162b5
cmp byte [esp + 0x11], 0
je 0x4162b9
mov byte [ebp + 0x18], 0
test bl, bl
jne 0x4162c9
mov ebx, esi
call fcn.00419a30
mov byte [ebp + 0xc], al
jmp 0x4162e2
test si, si
jne 0x4162e5
mov ecx, dword [ebp + 0xc]
push ecx
xor bl, bl
call fcn.00419720
movzx esi, ax
add esp, 4
mov dword [ebp + 0x10], esi
mov bl, byte [ebp + 0xc]
mov edx, esi
xor eax, eax
shr edx, 8
test dl, dl
setne al
cmp dword [0x4d8f78], 2
mov dword [esp + 0x1c], eax
jne case.default.0x41630b
movzx eax, bl
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x41630b
jmp dword [eax*4 + 0x4167fc]
mov byte [ebp + 0xc], 0x11
jmp 0x416322
mov byte [ebp + 0xc], 0x10
jmp 0x416322
mov byte [ebp + 0xc], 0x12
mov bl, byte [ebp + 0xc]
cmp dword [ebp + 0x14], 0
je 0x416459
xor ecx, ecx
mov edx, esi
mov al, bl
call fcn.00418900
mov ebx, dword [ebp + 8]
test al, al
je 0x4163ef
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov cl, 0x80
mov dl, 0x7f
test ebx, ebx
jne 0x416366
movzx eax, byte [ebp + 0xc]
or byte [esp + eax + 0x28], cl
lea eax, [esp + eax + 0x28]
jmp 0x416377
cmp ebx, 1
jne 0x416377
movzx eax, byte [ebp + 0xc]
and byte [esp + eax + 0x28], dl
lea eax, [esp + eax + 0x28]
movzx eax, byte [ebp + 0xc]
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x416385
jmp dword [eax*4 + 0x416814]
test byte [esp + 0xca], cl
jne 0x4163a4
test byte [esp + 0xcb], cl
jne 0x4163a4
and byte [esp + 0x39], dl
jmp case.default.0x416385
or byte [esp + 0x39], cl
jmp case.default.0x416385
test byte [esp + 0xc8], cl
jne 0x4163c2
test byte [esp + 0xc9], cl
jne 0x4163c2
and byte [esp + 0x38], dl
jmp case.default.0x416385
or byte [esp + 0x38], cl
jmp case.default.0x416385
test byte [esp + 0xcc], cl
jne 0x4163e0
test byte [esp + 0xcd], cl
jne 0x4163e0
and byte [esp + 0x3a], dl
jmp case.default.0x416385
or byte [esp + 0x3a], cl
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USER32.dll_SetKeyboardState]
movzx esi, word [ebp + 0x10]
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
shl esi, 0x10
cmp ebx, 1
je 0x416417
movzx ecx, byte [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov eax, esi
or eax, 1
push eax
push ecx
push pe_nt_image_headers32
push edx
call edi
cmp byte [ebp + 0x18], 0
je 0x416435
cmp ebx, 2
jne 0x416435
mov eax, dword [0x4d4b04]
mov ecx, dword [eax + 0x64]
push ecx
call fcn.00417c50
add esp, 4
jmp 0x41643d
test ebx, ebx
je 0x4167bb
movzx edx, byte [ebp + 0xc]
mov eax, dword [ebp + 0x14]
or esi, 0xc0000001
push esi
push edx
push 0x101
push eax
call edi
jmp 0x4167bb
cmp byte [0x4d8eb4], 0
mov ecx, dword [ebp + 8]
mov dword [0x4d75d4], ecx
mov byte [0x4d8efa], bl
je 0x41649d
cmp bl, 0x12
je 0x416480
cmp bl, 0xa4
je 0x416480
cmp bl, 0xa5
jne 0x41649d
cmp byte [esp + 0x11], 0
jne 0x41649d
push 0
mov byte [esp + 0x1a], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4d8eb4], 0
jmp 0x4164ad
cmp byte [esp + 0x11], 0
mov byte [esp + 0x16], 0
lea esi, [esp + 0x24]
jne 0x4164b2
mov esi, 0x4d75cc
mov dword [esp + 0x18], esi
cmp bl, 0xa5
jne 0x4164cf
cmp byte [esp + 0x12], 0
jne 0x4164cf
cmp dword [0x4d87d0], 0
je 0x4164cf
mov al, 1
jmp 0x4164d1
xor al, al
mov byte [esp + 0x14], al
mov byte [esp + 0x13], al
test al, al
je 0x416536
cmp byte [esp + 0x11], 0
jne 0x4164ec
mov edi, dword [0x4d75d0]
jmp 0x416506
call dword [sym.imp.USER32.dll_GetForegroundWindow]
call fcn.00418cc0
mov edi, eax
push edi
xor eax, eax
call fcn.00418dd0
add esp, 4
mov dword [esi], eax
cmp dword [esi], 0
je 0x416512
mov byte [esp + 0x13], 0
jmp 0x41653a
push 0xa2
mov byte [esp + 0x19], 0xa2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edx, dword [ebp + 0x1c]
mov dword [0x4d86c4], edx
shr eax, 0xf
and al, 1
mov byte [esp + 0x17], al
jmp 0x41653a
mov edi, dword [esp + 0x24]
cmp byte [esp + 0x12], 0
je 0x416553
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov al, bl
call fcn.00418900
mov byte [esp + 0x20], al
jmp 0x416558
mov byte [esp + 0x20], 0
cmp byte [esp + 0x11], 0
jne 0x41657e
mov eax, dword [0x4d8f78]
cmp eax, 2
je 0x41657e
cmp dword [0x4d87d0], 0
je 0x416577
cmp eax, 1
jne 0x41657e
mov byte [esp + 0x11], 1
jmp 0x416583
mov byte [esp + 0x11], 0
cmp dword [ebp + 8], 1
mov esi, dword [sym.imp.USER32.dll_keybd_event]
mov ebx, dword [esp + 0x20]
je 0x416672
cmp byte [esp + 0x12], 0
je 0x4165bd
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
push ebx
call fcn.00417730
add esp, 0x14
jmp 0x416659
cmp byte [esp + 0x14], 0
je 0x4165d6
mov ecx, dword [esp + 0x18]
cmp dword [ecx], 3
jne 0x4165d6
mov edx, dword [ebp + 0x1c]
mov dword [0x4d87c8], edx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
call esi
cmp byte [esp + 0x13], 0
mov dword [0x4d87c8], 0
je 0x416659
cmp dword [0x4d86c4], 0
mov byte [esp + 0x13], 0
je 0x416625
push edi
mov eax, 4
mov dword [0x4d86c4], 0
call fcn.00418dd0
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
jmp 0x416656
cmp byte [esp + 0x17], 0
jne 0x416659
movzx edx, byte [esp + 0x15]
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
and ax, cx
movzx eax, ax
neg eax
sbb eax, eax
add eax, 4
push edi
call fcn.00418dd0
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
add esp, 4
cmp byte [esp + 0x11], 0
je 0x416672
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
xor dl, dl
call fcn.00417e20
add esp, 8
cmp byte [ebp + 0x18], 0
je 0x4166b1
mov eax, 2
cmp dword [ebp + 8], eax
jne 0x4166b1
cmp dword [0x4d8f78], eax
jne 0x41669e
mov edx, dword [0x4d4b04]
mov eax, dword [edx + 0x68]
push eax
call fcn.00417c50
add esp, 4
jmp 0x4166bb
mov eax, dword [0x4d4b04]
mov eax, dword [eax + 0x64]
push eax
call fcn.00417c50
add esp, 4
jmp 0x4166bb
cmp dword [ebp + 8], 0
je 0x4167a5
or dword [esp + 0x1c], 2
cmp byte [esp + 0x12], 0
je 0x4166e9
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
push ebx
call fcn.00417730
mov ebx, dword [ebp + 0x10]
add esp, 0x14
jmp 0x416775
cmp byte [esp + 0x14], 0
je 0x416701
mov edx, dword [esp + 0x18]
cmp dword [edx], 3
jne 0x416701
mov eax, dword [ebp + 0x1c]
mov dword [0x4d87cc], eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push ebx
push eax
call esi
xor eax, eax
mov dword [0x4d87cc], eax
cmp byte [esp + 0x13], al
je 0x416775
cmp dword [0x4d86c4], eax
je 0x416741
mov dword [0x4d86c4], eax
push edi
mov eax, 4
call fcn.00418dd0
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
jmp 0x416772
cmp byte [esp + 0x17], al
je 0x416775
movzx edx, byte [esp + 0x15]
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, 0
setne al
push edi
add eax, 3
call fcn.00418dd0
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
add esp, 4
mov eax, dword [esp + 0x18]
cmp dword [eax], 0
je 0x41678f
mov ecx, 0x138
cmp bx, cx
jne 0x41678f
and byte [0x4d75b3], 0xfe
cmp byte [esp + 0x11], 0
je 0x4167a5
mov edx, dword [ebp + 0xc]
push ebx
push edx
mov dl, 1
call fcn.00417e20
add esp, 8
cmp byte [esp + 0x16], 0
je 0x4167bb
push 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4d8eb4], 1
cmp byte [ebp + 0x18], 0
je 0x4167f4
cmp dword [0x4d8f78], 2
jne 0x4167e2
mov eax, dword [0x4d4b04]
mov eax, dword [eax + 0x60]
push eax
call fcn.00417c50
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4d4b04]
mov eax, dword [ecx + 0x5c]
push eax
call fcn.00417c50
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret