Function at 0x41b1a0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
push ebx
mov bl, dl
mov dword [esp + 0x18], edx
push esi
mov esi, dword [ebp + 8]
movzx eax, bl
or ax, si
mov dword [esp + 0x14], ecx
push edi
je 0x41b855
mov eax, dword [ebp + 0x14]
mov ecx, 0xffc3d44d
test eax, eax
cmovne ecx, eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4fa4fc]
sete bh
cmp dword [0x4fc928], 0
je 0x41b1fa
mov byte [esp + 0x12], 1
test bh, bh
je 0x41b1ff
mov byte [esp + 0x12], 0
cmp dword [0x4fc928], 1
je 0x41b20c
test bh, bh
je 0x41b210
mov byte [ebp + 0x10], 0
test bl, bl
jne 0x41b226
mov ecx, esi
call fcn.0041ed80
mov edx, dword [ebp + 8]
mov bl, al
mov byte [esp + 0x20], bl
jmp 0x41b23d
mov edx, dword [ebp + 8]
test dx, dx
jne 0x41b23d
xor dl, dl
mov cl, bl
call fcn.0041e960
movzx edx, ax
mov dword [ebp + 8], edx
mov eax, edx
mov byte [esp + 0x2c], dl
xor ecx, ecx
shr eax, 8
test al, al
setne cl
cmp dword [0x4fc928], 2
mov dword [esp + 0x30], ecx
jne case.default.0x41b267
movzx eax, bl
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x41b267
jmp dword [eax*4 + 0x41b85c]
mov bl, 0x11
jmp 0x41b278
mov bl, 0x10
jmp 0x41b278
mov bl, 0x12
mov byte [esp + 0x20], bl
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x41b3b3
push 0
mov cl, bl
call fcn.0041dc50
add esp, 4
test al, al
je 0x41b34b
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x41b2b8
movzx eax, bl
or byte [esp + eax + 0x38], 0x80
jmp 0x41b2c5
cmp eax, 1
jne 0x41b2c5
movzx eax, bl
and byte [esp + eax + 0x38], 0x7f
movzx eax, bl
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x41b2d2
jmp dword [eax*4 + 0x41b874]
test byte [esp + 0xda], 0x80
jne 0x41b2f4
test byte [esp + 0xdb], 0x80
jne 0x41b2f4
and byte [esp + 0x49], 0x7f
jmp case.default.0x41b2d2
or byte [esp + 0x49], 0x80
jmp case.default.0x41b2d2
test byte [esp + 0xd8], 0x80
jne 0x41b316
test byte [esp + 0xd9], 0x80
jne 0x41b316
and byte [esp + 0x48], 0x7f
jmp case.default.0x41b2d2
or byte [esp + 0x48], 0x80
jmp case.default.0x41b2d2
test byte [esp + 0xdc], 0x80
jne 0x41b338
test byte [esp + 0xdd], 0x80
jne 0x41b338
and byte [esp + 0x4a], 0x7f
jmp case.default.0x41b2d2
or byte [esp + 0x4a], 0x80
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x18]
movzx esi, dx
shl esi, 0x10
cmp eax, 1
je 0x41b374
mov eax, esi
or eax, 1
push eax
movzx eax, bl
push eax
push 0x100
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x18]
cmp byte [ebp + 0x10], 0
je 0x41b38f
cmp eax, 2
jne 0x41b38f
mov ecx, dword [0x4f70f4]
mov ecx, dword [ecx + 0x64]
call fcn.0041cee0
jmp 0x41b397
test eax, eax
je 0x41b728
or esi, 0xc0000001
movzx eax, bl
push esi
push eax
push 0x101
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x41b728
cmp byte [0x4f9a6e], 0
mov eax, dword [esp + 0x18]
mov dword [0x4fc8b0], eax
mov byte [0x4fc8b4], bl
je 0x41b3f6
cmp bl, 0x12
je 0x41b3da
cmp bl, 0xa4
je 0x41b3da
cmp bl, 0xa5
jne 0x41b3f6
test bh, bh
jne 0x41b3f6
push 0
mov byte [esp + 0x1b], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov edx, dword [ebp + 8]
mov byte [0x4f9a6e], bh
jmp 0x41b3fb
mov byte [esp + 0x17], 0
test bh, bh
lea esi, [esp + 0x34]
mov eax, 0x4fc90c
cmove esi, eax
mov al, byte [esp + 0x12]
mov dword [esp + 0x24], esi
cmp bl, 0xa5
jne 0x41b4e0
test al, al
jne 0x41b4e0
cmp dword [0x4f9a08], 0
je 0x41b4e0
mov byte [esp + 0x15], 1
mov byte [esp + 0x13], 1
test bh, bh
jne 0x41b445
mov edi, dword [0x4fc908]
jmp 0x41b4a5
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x41b48d
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call edi
mov esi, eax
mov dword [esp + 0x138], 0x30
lea eax, [esp + 0x138]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x41b48d
mov eax, dword [esp + 0x144]
test eax, eax
je 0x41b48d
push 0
push eax
call edi
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, eax
xor edx, edx
mov ecx, edi
call fcn.0041df80
mov esi, dword [esp + 0x24]
mov dword [esi], eax
cmp dword [esi], 0
je 0x41b4b9
mov cl, byte [esp + 0x11]
mov byte [esp + 0x13], 0
mov byte [esp + 0x14], cl
jmp 0x41b522
push 0xa2
mov byte [esp + 0x18], 0xa2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and eax, 0xffffff01
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [0x4fa3d8], eax
jmp 0x41b52a
mov byte [esp + 0x15], 0
mov byte [esp + 0x13], 0
test al, al
je 0x41b516
push 0
mov cl, bl
call fcn.0041dc50
mov cl, byte [esp + 0x15]
mov ch, al
mov edi, dword [esp + 0x30]
add esp, 4
mov byte [esp + 0x16], al
mov al, byte [esp + 0x11]
mov byte [esp + 0x14], cl
mov dword [esp + 0x28], eax
jmp 0x41b533
mov al, byte [esp + 0x11]
mov edi, dword [esp + 0x2c]
mov byte [esp + 0x14], al
mov al, byte [esp + 0x11]
mov dword [esp + 0x28], eax
mov edx, dword [ebp + 8]
xor ch, ch
mov byte [esp + 0x16], ch
test bh, bh
jne 0x41b556
mov eax, dword [0x4fc928]
cmp eax, 2
je 0x41b556
cmp dword [0x4f9a08], 0
je 0x41b54f
cmp eax, 1
jne 0x41b556
mov byte [esp + 0x11], 1
jmp 0x41b55b
mov byte [esp + 0x11], 0
mov eax, dword [esp + 0x18]
mov bh, byte [esp + 0x12]
cmp eax, 1
je 0x41b6ae
test bh, bh
je 0x41b58a
push dword [esp + 0x1c]
mov cl, ch
push dword [esp + 0x34]
push edx
mov dl, bl
call fcn.0041c8e0
add esp, 0xc
jmp 0x41b670
cmp byte [esp + 0x15], 0
je 0x41b5a3
mov eax, dword [0x4fa3d4]
cmp dword [esi], 3
cmove eax, dword [esp + 0x1c]
mov dword [0x4fa3d4], eax
push dword [esp + 0x1c]
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_keybd_event]
cmp byte [esp + 0x13], 0
mov dword [0x4fa3d4], 0
je 0x41b670
cmp dword [0x4fa3d8], 0
mov byte [esp + 0x13], 0
je 0x41b642
mov dword [0x4fa3d8], 0
xor ecx, ecx
nop dword [eax + eax]
mov eax, dword [ecx*8 + 0x4fc8b8]
test eax, eax
je 0x41b605
cmp eax, edi
je 0x41b629
inc ecx
cmp ecx, 0xa
jl 0x41b5f0
cmp ecx, 0xa
mov eax, 9
cmovl eax, ecx
mov dword [eax*8 + 0x4fc8b8], edi
mov dword [eax*8 + 0x4fc8bc], 4
mov eax, 4
jmp 0x41b66e
mov eax, dword [ecx*8 + 0x4fc8bc]
test eax, eax
jne 0x41b66e
mov eax, 4
mov dword [ecx*8 + 0x4fc8bc], eax
jmp 0x41b66e
cmp byte [esp + 0x28], 0
jne 0x41b670
movzx eax, byte [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
and ax, cx
mov ecx, edi
movzx edx, ax
neg edx
sbb edx, edx
add edx, 4
call fcn.0041df80
mov dword [esi], eax
cmp byte [esp + 0x11], 0
mov esi, dword [ebp + 8]
je 0x41b687
push esi
mov dl, bl
xor cl, cl
call fcn.0041d0f0
add esp, 4
mov eax, dword [esp + 0x18]
cmp byte [ebp + 0x10], 0
je 0x41b6bd
cmp eax, 2
jne 0x41b6bd
cmp dword [0x4fc928], 2
mov eax, dword [0x4f70f4]
jne 0x41b6b3
mov ecx, dword [eax + 0x68]
call fcn.0041cee0
jmp 0x41b6c1
mov esi, dword [ebp + 8]
jmp 0x41b68b
mov ecx, dword [eax + 0x64]
call fcn.0041cee0
jmp 0x41b6c1
test eax, eax
je 0x41b712
mov edx, dword [esp + 0x30]
or edx, 2
test bh, bh
je 0x41b753
push dword [esp + 0x1c]
mov cl, byte [esp + 0x1a]
push edx
push esi
mov dl, bl
call fcn.0041c8e0
add esp, 0xc
mov edx, dword [esp + 0x24]
cmp dword [edx], 0
je 0x41b6fe
mov eax, 0x138
cmp si, ax
jne 0x41b6fe
and byte [0x4fc91c], 0xfe
cmp byte [esp + 0x11], 0
je 0x41b712
push esi
mov dl, bl
mov cl, 1
call fcn.0041d0f0
add esp, 4
cmp byte [esp + 0x17], 0
je 0x41b728
push 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4f9a6e], 1
cmp byte [ebp + 0x10], 0
je 0x41b855
cmp dword [0x4fc928], 2
mov eax, dword [0x4f70f4]
jne 0x41b84d
mov ecx, dword [eax + 0x60]
call fcn.0041cee0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x15], 0
je 0x41b770
mov ecx, dword [esp + 0x24]
mov eax, dword [0x4fa3d0]
cmp dword [ecx], 3
cmove eax, dword [esp + 0x1c]
mov dword [0x4fa3d0], eax
push dword [esp + 0x1c]
push edx
push dword [esp + 0x34]
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_keybd_event]
cmp byte [esp + 0x13], 0
mov dword [0x4fa3d0], 0
je 0x41b6e4
cmp dword [0x4fa3d8], 0
je 0x41b814
mov dword [0x4fa3d8], 0
xor eax, eax
nop dword [eax]
mov ecx, dword [eax*8 + 0x4fc8b8]
test ecx, ecx
je 0x41b7c5
cmp ecx, edi
je 0x41b7f2
inc eax
cmp eax, 0xa
jl 0x41b7b0
cmp eax, 0xa
mov ecx, 9
cmovl ecx, eax
mov dword [ecx*8 + 0x4fc8b8], edi
mov dword [ecx*8 + 0x4fc8bc], 4
mov ecx, 4
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
jmp 0x41b6e8
mov ecx, dword [eax*8 + 0x4fc8bc]
test ecx, ecx
jne 0x41b7e7
mov edx, dword [esp + 0x24]
mov ecx, 4
mov dword [eax*8 + 0x4fc8bc], ecx
mov dword [edx], ecx
jmp 0x41b6e8
cmp byte [esp + 0x28], 0
je 0x41b6e4
movzx eax, byte [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
mov edx, 0
mov ecx, edi
setb dl
add edx, 3
call fcn.0041df80
mov edx, dword [esp + 0x24]
mov dword [edx], eax
jmp 0x41b6e8
mov ecx, dword [eax + 0x5c]
call fcn.0041cee0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret