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

Disassembly:
sub esp, 0x168
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x164], eax
mov al, byte [esp + 0x170]
mov ecx, dword [esp + 0x16c]
mov byte [esp + 2], al
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x180]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x184]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x188]
mov dword [esp + 0x1c], eax
mov eax, dword [0x62271c]
push ebx
push ebp
movzx ebp, word [esp + 0x17c]
lea ebx, [eax*4]
mov dword [esp + 0x10], ecx
mov eax, dword fs:[0x2c]
push esi
push edi
mov dword [esp + 0x1c], ebp
mov eax, dword [ebx + eax]
mov byte [esp + 0x14], 0
cmp byte [eax + 0x2198], 0
jne 0x431d3b
call fcn.004ebad3
mov ecx, dword [esp + 0x18]
mov eax, dword fs:[0x2c]
mov eax, dword [ebx + eax]
mov esi, dword [eax + 0x178]
test esi, esi
je 0x431e69
mov edi, 1
cmp dword [esi], 1
jne 0x431e36
mov al, byte [esi + 0x3c]
test al, al
je 0x431d82
push 0
push dword [ecx + 0x10]
dec al
movzx eax, al
push eax
call fcn.00439ef0
add esp, 0xc
test al, al
je 0x431e36
cmp byte [esp + 0x188], 0
je 0x431e24
mov eax, dword [esi + 8]
test eax, eax
je 0x431e46
cmp dword [eax + 0x390], 0
mov ah, byte [esp + 0x12]
je 0x431e0b
movzx edi, bp
movzx edx, ah
mov al, byte [edi + esi + 0x154]
mov cl, byte [edx + esi + 0x54]
or al, cl
test al, 0x20
jne 0x431dca
cmp byte [esi + 0x43], 0
je 0x431e06
test cl, 0x40
jne 0x431e06
mov eax, dword fs:[0x2c]
shl edi, 0x10
or edi, edx
mov eax, dword [ebx + eax]
cmp byte [eax + 0x2198], 0
jne 0x431de6
call fcn.004ebad3
mov eax, dword fs:[0x2c]
push edi
push esi
push 0x41e
mov eax, dword [ebx + eax]
push dword [eax + 0x214]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ah, byte [esp + 0x12]
mov edi, 1
movzx ecx, bp
mov al, byte [ecx + esi + 0x154]
test al, al
js 0x431e59
movzx ecx, ah
mov al, byte [ecx + esi + 0x54]
test al, al
js 0x431e4c
mov ecx, dword [esp + 0x14]
cmp byte [esi + 0x40], 0
movzx ecx, cl
cmovne ecx, edi
mov dword [esp + 0x14], ecx
mov esi, dword [esi + 4]
test esi, esi
je 0x431e69
mov ecx, dword [esp + 0x18]
jmp 0x431d57
mov ah, byte [esp + 0x12]
jmp 0x431e0b
and al, 0x7f
mov byte [ecx + esi + 0x54], al
xor al, al
jmp 0x432436
and al, 0x7f
mov byte [ecx + esi + 0x154], al
xor al, al
jmp 0x432436
cmp byte [esp + 0x188], 0
jne 0x432434
mov eax, dword fs:[0x2c]
mov byte [esp + 0x13], 1
mov eax, dword [ebx + eax]
cmp byte [eax + 0x2198], 0
jne 0x431e93
call fcn.004ebad3
mov eax, dword fs:[0x2c]
mov eax, dword [ebx + eax]
test byte [eax + 0x147], 0xcf
je 0x431ef1
cmp byte [esp + 0x14], 0
jne 0x431ef1
cmp byte [eax + 0x2198], 0
jne 0x431eba
call fcn.004ebad3
mov eax, dword fs:[0x2c]
mov eax, dword [ebx + eax]
test byte [eax + 0x147], 0xc
je 0x431eec
cmp byte [eax + 0x2198], 0
jne 0x431eda
call fcn.004ebad3
mov eax, dword fs:[0x2c]
mov eax, dword [ebx + eax]
test byte [eax + 0x147], 3
jne 0x431ef1
mov byte [esp + 0x13], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
push ebp
push 0
mov dword [esp + 0x30], ebp
call fcn.0043d5d0
add esp, 8
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edx, dword fs:[0x2c]
mov dword [esp + 0x14], eax
mov ecx, dword [ebx + edx]
cmp dword [ecx + 0x844], ebp
je 0x431f67
push 0x1c
lea eax, [esp + 0x140]
mov dword [ecx + 0x844], ebp
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [esp + 0x13c]
push str.ApplicationFrameWindow
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov edx, dword fs:[0x2c]
add esp, 8
test eax, eax
sete al
mov ecx, dword [ebx + edx]
mov byte [ecx + 0x840], al
xor eax, eax
mov dword [esp + 0x34], eax
mov word [esp + 0x38], ax
cmp byte [ecx + 0x2198], al
jne 0x431f86
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov eax, dword [ebx + edx]
lea edi, [esp + 0x3c]
mov ecx, 0x40
cmp byte [eax + 0x838], 0
lea esi, [eax + 0x570]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.USER32.dll_ToUnicodeEx]
je 0x432060
cmp byte [eax + 0x840], 0
je 0x432060
cmp byte [esp + 0x12], 0xe7
je 0x432060
mov cl, byte [eax + 0x83e]
mov al, byte [eax + 0x83f]
neg cl
sbb cl, cl
and cl, 0x20
neg al
sbb al, al
and al, 9
or cl, al
movzx eax, cl
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0043ce40
mov eax, dword fs:[0x2c]
add esp, 8
mov edi, dword [esp + 0x14]
mov ecx, dword [ebx + eax]
lea eax, [esp + 0x34]
push edi
push 0
push 2
push eax
lea eax, [esp + 0x4c]
push eax
movzx eax, word [ecx + 0x83c]
push eax
movzx eax, byte [ecx + 0x838]
push eax
call esi
test eax, eax
jle 0x43204d
mov eax, dword fs:[0x2c]
push edi
push 0
push 2
mov ecx, dword [ebx + eax]
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x4c]
push eax
movzx eax, word [ecx + 0x83c]
push eax
movzx eax, byte [ecx + 0x838]
push eax
call esi
mov edx, dword fs:[0x2c]
mov eax, dword [ebx + edx]
mov byte [eax + 0x838], 0
jmp 0x432064
mov edi, dword [esp + 0x14]
cmp byte [eax + 0x2198], 0
jne 0x432079
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov eax, dword [ebx + edx]
movzx eax, byte [eax + 0x147]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0043ce40
add esp, 8
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x4320a4
or byte [esp + 0x50], 1
jmp 0x4320a9
and byte [esp + 0x50], 0xfe
mov al, byte [esp + 0x12]
cmp al, 0xe7
jne 0x4320c8
mov eax, dword [esp + 0x18]
mov edi, 1
mov ax, word [eax + 4]
mov word [esp + 0x34], ax
jmp 0x432198
cmp byte [esp + 0x13], 0
je 0x43218c
mov ecx, dword fs:[0x2c]
mov eax, dword [ebx + ecx]
cmp byte [eax + 0x2198], 0
jne 0x4320f2
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ebx + ecx]
xor ecx, ecx
push edi
cmp dword [eax + 0x19c], ecx
lea eax, [esp + 0x38]
setne cl
push ecx
push 2
push eax
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + 4]
movzx eax, byte [esp + 0x2a]
push eax
call esi
mov edx, dword fs:[0x2c]
mov edi, eax
mov ecx, dword [ebx + edx]
cmp byte [ecx + 0x2198], 0
jne 0x43213e
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov eax, dword [ebx + edx]
test byte [eax + 0x147], 3
jne 0x432169
cmp word [esp + 0x34], 0xd
mov eax, 0xa
jne 0x43215c
mov word [esp + 0x34], ax
cmp word [esp + 0x36], 0xd
jne 0x432169
mov word [esp + 0x36], ax
mov al, byte [esp + 0x12]
cmp al, 8
jne 0x432198
test edi, edi
je 0x432198
mov eax, dword [ebx + edx]
cmp byte [eax + 0x840], 0
je 0x432197
xor edi, edi
mov byte [eax + 0x838], 0
jmp 0x432198
mov edx, dword fs:[0x2c]
xor edi, edi
jmp 0x43216d
dec edi
push dword [esp + 0x18c]
lea eax, [esp + 0x38]
push edi
push eax
push dword [esp + 0x28]
push dword [esp + 0x34]
push dword [esp + 0x2c]
call fcn.00432530
add esp, 0x18
test al, al
je 0x431e62
mov esi, dword fs:[0x2c]
mov eax, dword [ebx + esi]
cmp byte [eax + 0x838], 0
je 0x43222f
test edi, edi
jle 0x43222f
mov byte [esp + 0x13], 1
cmp byte [eax + 0x2198], 0
jne 0x4321f2
call fcn.004ebad3
mov esi, dword fs:[0x2c]
mov ecx, dword [ebx + esi]
cmp dword [ecx + 0x858], 0
je 0x4323a6
cmp byte [esp + 0x18c], 0
jne 0x4323a6
movzx eax, byte [esp + 0x12]
add eax, 0xfffffff8
cmp eax, 0x20
ja case.0x432228.9
movzx eax, byte [eax + 0x432504]
jmp dword [eax*4 + 0x4324f8]
mov byte [esp + 0x13], 0
test edi, edi
jns 0x4321dd
cmp byte [eax + 0x2198], 0
mov cl, byte [esp + 0x12]
mov byte [eax + 0x838], cl
mov ecx, dword [esp + 0x1c]
mov word [eax + 0x83c], cx
jne 0x432262
call fcn.004ebad3
mov esi, dword fs:[0x2c]
mov ecx, dword [ebx + esi]
test byte [ecx + 0x147], 0x30
setne al
cmp byte [ecx + 0x2198], 0
mov byte [ecx + 0x83e], al
jne 0x43228a
call fcn.004ebad3
mov esi, dword fs:[0x2c]
mov eax, dword [ebx + esi]
test byte [eax + 0x147], 3
je 0x4322bb
cmp byte [eax + 0x2198], 0
jne 0x4322ab
call fcn.004ebad3
mov esi, dword fs:[0x2c]
mov eax, dword [ebx + esi]
test byte [eax + 0x147], 0xc
je 0x4322bb
mov cl, 1
jmp 0x4322bd
xor cl, cl
cmp byte [eax + 0x2198], 0
mov byte [eax + 0x83f], cl
jne 0x4322d8
call fcn.004ebad3
mov esi, dword fs:[0x2c]
mov eax, dword [esp + 0x14]
xor ecx, ecx
push eax
mov eax, dword [ebx + esi]
cmp dword [eax + 0x19c], ecx
lea eax, [esp + 0x38]
setne cl
push ecx
push 2
push eax
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + 4]
movzx eax, byte [esp + 0x2a]
push eax
mov eax, dword [sym.imp.USER32.dll_ToUnicodeEx]
call eax
jmp 0x432434
cmp byte [ecx + 0x2198], 0
jne 0x432326
call fcn.004ebad3
mov esi, dword fs:[0x2c]
mov eax, dword [ebx + esi]
cmp dword [eax + 0x27c], 0
je case.0x432228.9
cmp byte [eax + 0x2198], 0
jne 0x432347
call fcn.004ebad3
mov esi, dword fs:[0x2c]
mov eax, dword [ebx + esi]
xor ecx, ecx
mov word [eax + 0x3e8], cx
cmp byte [eax + 0x2198], cl
jne 0x432367
call fcn.004ebad3
mov esi, dword fs:[0x2c]
mov eax, dword [ebx + esi]
mov dword [eax + 0x27c], 0
test edi, edi
jle 0x4323a6
push dword [esp + 0x2c]
lea eax, [esp + 0x38]
push dword [esp + 0x34]
push dword [esp + 0x28]
push ebp
push edi
push eax
push dword [esp + 0x30]
call fcn.004313f0
add esp, 0x1c
test al, al
je 0x431e62
mov esi, dword fs:[0x2c]
cmp byte [esp + 0x13], 0
je 0x432434
push 0x100
lea eax, [esp + 0x40]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebx + esi]
mov cl, byte [eax + 0x83e]
mov al, byte [eax + 0x83f]
neg cl
sbb cl, cl
and cl, 0x20
neg al
sbb al, al
and al, 9
or cl, al
movzx eax, cl
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0043ce40
mov eax, dword fs:[0x2c]
add esp, 0x14
mov ecx, dword [ebx + eax]
mov eax, dword [esp + 0x14]
push eax
push 0
push 2
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x4c]
push eax
movzx eax, word [ecx + 0x83c]
push eax
movzx eax, byte [ecx + 0x838]
push eax
mov eax, dword [sym.imp.USER32.dll_ToUnicodeEx]
call eax
mov eax, dword fs:[0x2c]
mov eax, dword [ebx + eax]
mov byte [eax + 0x838], 0
mov al, 1
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x168
ret
cmp byte [ecx + 0x2198], 0
jne 0x432464
call fcn.004ebad3
mov esi, dword fs:[0x2c]
mov eax, dword [ebx + esi]
cmp byte [eax + 0x147], 0
jne case.0x432228.9
cmp byte [eax + 0x2198], 0
jne 0x432489
call fcn.004ebad3
mov esi, dword fs:[0x2c]
mov eax, dword [ebx + esi]
cmp dword [eax + 0x27c], 0
je case.0x432228.9
cmp byte [eax + 0x2198], 0
jne 0x4324ae
call fcn.004ebad3
mov esi, dword fs:[0x2c]
mov ecx, dword [ebx + esi]
dec dword [ecx + 0x27c]
mov eax, dword [ecx + 0x27c]
lea ebp, [eax + eax]
cmp ebp, 0xb4
jae 0x4324f3
cmp byte [ecx + 0x2198], 0
jne 0x4324dd
call fcn.004ebad3
mov esi, dword fs:[0x2c]
mov eax, dword [ebx + esi]
xor ecx, ecx
mov word [eax + ebp + 0x3e8], cx
mov ebp, dword [esp + 0x28]
jmp case.0x432228.9
call fcn.004ebef9
dec edi
and al, 67
add byte [ecx], dl
and eax, dword [ebx]
je 0x432525
inc ebx
add byte [eax], al
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
int3