Function at 0x1001dd54
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
call fcn.10021317
mov esi, dword [esp + 0x34]
mov ecx, eax
xor eax, eax
mov ebx, eax
mov dword [0x10043ef4], eax
mov dword [0x10043f00], eax
mov dword [0x10043efc], eax
mov dword [0x10043ef8], eax
mov eax, dword [esp + 0x38]
lea edi, [esi + eax*2]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], edi
mov dword [0x10043f04], 1
cmp esi, edi
jae 0x1001df2b
movzx eax, word [esi]
xor ebp, ebp
push eax
inc ebp
add esi, 2
push ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], esi
call fcn.10029a64
movzx eax, ax
mov dword [esp + 0x24], eax
cmp eax, 0x5e
jg 0x1001df0e
je 0x1001dee1
sub eax, 0x25
je 0x1001dea4
sub eax, 3
je 0x1001de5c
dec eax
je 0x1001de2f
dec eax
dec eax
jne 0x1001df22
cmp dword [0x10043ef8], eax
jne 0x1001df5d
mov edi, dword [0x10043f04]
push 0x100
push 0x10
pop ebx
call fcn.1001ec43
mov dword [0x10043ef8], 0xa
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
xor eax, eax
mov dword [0x10043f04], eax
jmp 0x1001dd9b
test ebx, ebx
jle 0x1001df5d
push 0x10043ef4
push 0x10043f00
push 0x10043efc
push 0x10043ef8
mov esi, ebx
call fcn.1001e613
dec ebx
mov dword [esp + 0x10], ebx
jmp 0x1001e2e6
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, 3
jg 0x1001df5d
cmp dword [0x10043ef8], 0xa
jne 0x1001de79
mov dword [0x10043ef8], ebx
cmp dword [0x10043efc], 0xa
jne 0x1001de88
mov dword [0x10043efc], ebx
cmp dword [0x10043f00], 0xa
mov ecx, dword [esp + 0x14]
jne 0x1001dd9b
mov dword [0x10043f00], ebx
jmp 0x1001dd9b
cmp dword [0x10043f00], 0
jne 0x1001df5d
mov edi, dword [0x10043f04]
xor eax, eax
cmp dword [0x10043efc], eax
sete al
lea eax, [eax*4 + 0x100]
push eax
push 0x12
pop ebx
call fcn.1001ec43
mov dword [0x10043f00], 0xa
jmp 0x1001de17
cmp dword [0x10043efc], 0
jne 0x1001df5d
mov edi, dword [0x10043f04]
push 0x100
push 0x11
pop eax
mov ebx, eax
call fcn.1001ec43
mov dword [0x10043efc], 0xa
jmp 0x1001de17
sub eax, 0x7b
je 0x1001df64
dec eax
dec eax
je 0x1001df5d
dec eax
jne 0x1001df22
push 0xd
pop ebp
jmp 0x1001e08b
mov eax, dword [esp + 0x20]
jmp 0x1001e0dc
test ebx, ebx
jne 0x1001df5d
push 0x10043ef4
push 0x10043f00
push 0x10043efc
push 0x10043ef8
push 0xa
pop esi
call fcn.1001e613
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
push 5
call fcn.1000c0de
push edi
push 0x7d
mov eax, esi
call fcn.1001e4d1
mov edi, eax
mov dword [esp + 0x28], edi
test edi, edi
je 0x1001df59
lea ebp, [esi + 2]
push edi
push 0x20
mov eax, ebp
mov dword [esp + 0x34], ebp
call fcn.1001e4d1
mov esi, eax
test esi, esi
jne 0x1001df96
mov ebx, edi
jmp 0x1001e051
movzx eax, word [esi]
mov ebx, esi
test ax, ax
je 0x1001dfeb
mov edi, dword [esp + 0x14]
push eax
push edi
call fcn.10029a64
movzx ebp, ax
push ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.msvcr100.dll_iswspace]
pop ecx
test eax, eax
je 0x1001dfc9
add esi, 2
movzx eax, word [esi]
test ax, ax
jne 0x1001dfa4
mov edi, dword [esp + 0x28]
xor ebp, ebp
cmp word [esi], bp
mov ebp, dword [esp + 0x2c]
je 0x1001dfeb
push dword [esp + 0x24]
call dword [sym.imp.msvcr100.dll_iswdigit]
pop ecx
test eax, eax
je 0x1001df55
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x1001e03e
push dword [esp + 0x24]
call dword [sym.imp.msvcr100.dll_iswdigit]
pop ecx
test eax, eax
je 0x1001e045
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
imul ecx, ecx, 0xa
movzx eax, ax
add eax, 0xffffffd0
add ecx, eax
add esi, 2
movzx eax, word [esi]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x20], ecx
call fcn.10029a64
cmp dword [esp + 0x18], 0x1ff0
movzx eax, ax
mov dword [esp + 0x24], eax
jge 0x1001df55
xor eax, eax
cmp word [esi], ax
jne 0x1001dff3
cmp esi, edi
mov esi, dword [esp + 0x34]
jne 0x1001df59
cmp ebp, ebx
je 0x1001e0c2
mov esi, dword [esp + 0x34]
push esi
mov eax, ebx
call fcn.1001e519
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1001df59
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea esi, [edi + 2]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x34], esi
test ebp, ebp
je 0x1001dd9b
mov ebx, dword [esp + 0x10]
xor esi, esi
dec dword [esp + 0x18]
js 0x1001e2c4
movzx ebx, bp
mov ebp, dword [esp + 0x18]
cmp dword [0x10043f00], 0
je 0x1001e26e
xor eax, eax
cmp dword [0x10043efc], eax
sete al
lea eax, [eax*4 + 0x100]
jmp 0x1001e273
mov ecx, dword [esp + 0x34]
movzx eax, word [ecx]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
lea ecx, [edi + 2]
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ecx
cmp dword [0x10043820], 0
je 0x1001e12a
xor edi, edi
push edi
push edi
push 2
lea eax, [esp + 0x34]
push eax
push 1
lea eax, [esp + 0x34]
push eax
push edi
push edi
mov dword [esp + 0x48], edi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
cmp eax, 1
jne 0x1001e125
push dword [esp + 0x28]
call dword [sym.imp.user32.dll_VkKeyScanA]
movsx esi, ax
cmp esi, 0xffffffff
je 0x1001e125
movzx eax, word [esp + 0x28]
mov dword [esp + 0x20], eax
jmp 0x1001e136
or esi, 0xffffffff
jmp 0x1001e136
push eax
call dword [sym.imp.user32.dll_VkKeyScanW]
movsx esi, ax
xor edi, edi
mov eax, dword [0x10043820]
cmp esi, 0xffffffff
je 0x1001e2f9
test eax, eax
je 0x1001e158
mov ecx, 0xff
cmp word [esp + 0x20], cx
ja 0x1001e2f9
mov ebp, esi
and ebp, 0xff
cmp dword [0x10043ef8], 0
jne 0x1001e195
test esi, 0x100
je 0x1001e195
mov edi, dword [0x10043f04]
push 0x100
push 0x10
pop ebx
call fcn.1001ec43
xor eax, eax
mov dword [0x10043f04], eax
mov dword [0x10043ef8], 0xa
cmp dword [0x10043efc], 0
jne 0x1001e1cc
test esi, 0x200
je 0x1001e1cc
mov edi, dword [0x10043f04]
push 0x100
push 0x11
pop eax
mov ebx, eax
call fcn.1001ec43
xor eax, eax
mov dword [0x10043f04], eax
mov dword [0x10043efc], 0xa
cmp dword [0x10043f00], 0
jne 0x1001e201
test esi, 0x400
je 0x1001e201
mov edi, dword [0x10043f04]
push 0x100
push 0x12
pop ebx
call fcn.1001ec43
xor eax, eax
mov dword [0x10043f04], eax
mov dword [0x10043f00], 0xa
mov ax, word [0x10043a18]
mov ecx, 0x3ff
and ax, cx
push 0x11
pop ecx
cmp ax, cx
jne 0x1001e087
cmp dword [0x10043ef4], 0
jne 0x1001e263
test esi, 0x800
je 0x1001e087
mov edi, dword [0x10043f04]
push 0x100
push 0x15
pop ebx
call fcn.1001ec43
xor esi, esi
push 0x101
xor edi, edi
mov dword [0x10043f04], esi
call fcn.1001ec43
mov dword [0x10043ef4], 0xa
jmp 0x1001e265
xor esi, esi
mov ebx, dword [esp + 0x10]
jmp 0x1001e08d
mov eax, 0x100
mov edi, dword [0x10043f04]
movzx eax, ax
push eax
call fcn.1001ec43
cmp dword [0x10043f00], 0
mov dword [0x10043f04], esi
je 0x1001e2a5
xor eax, eax
cmp dword [0x10043efc], eax
sete al
lea eax, [eax*4 + 0x101]
jmp 0x1001e2aa
mov eax, 0x101
movzx eax, ax
push eax
xor edi, edi
call fcn.1001ec43
dec ebp
jns 0x1001e09e
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x18], ebp
push 0x10043ef4
push 0x10043f00
push 0x10043efc
push 0x10043ef8
push 0xa
pop esi
call fcn.1001e613
mov edi, dword [esp + 0x1c]
test ebx, ebx
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
jne 0x1001dd9b
jmp 0x1001dd91
dec ebp
mov dword [esp + 0x18], ebp
js 0x1001e2c4
test eax, eax
je 0x1001e37b
push edi
push edi
push 2
lea eax, [esp + 0x44]
push eax
push 1
lea eax, [esp + 0x34]
push eax
push edi
push edi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
cmp eax, 2
jl 0x1001e351
movzx ebx, word [esp + 0x38]
mov edi, dword [0x10043f04]
mov esi, 0x102
and ebx, 0xff
push esi
call fcn.1001ec43
movzx ebx, word [esp + 0x38]
xor eax, eax
shr ebx, 8
mov dword [0x10043f04], eax
push esi
xor edi, edi
jmp 0x1001e38b
cmp eax, 1
jl 0x1001e392
movzx ebx, word [esp + 0x38]
mov edi, dword [0x10043f04]
and ebx, 0xff
push 0x102
call fcn.1001ec43
xor edi, edi
mov dword [0x10043f04], edi
jmp 0x1001e392
movzx ebx, word [esp + 0x20]
mov edi, dword [0x10043f04]
push 0x102
call fcn.1001ec43
xor edi, edi
dec ebp
js 0x1001e2bc
mov eax, dword [0x10043820]
jmp 0x1001e300