Function at 0xf036a78
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c4
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, esi
push 0x41a
mov dword [ebp - 0x2c], edi
call fcn.0f044313
lea eax, [ebp - 0x30]
push eax
push 0x41c
call fcn.0f044313
lea eax, [ebp - 0x44]
push eax
push 0x482
call fcn.0f044313
lea eax, [ebp - 0x38]
push eax
push 0x480
call fcn.0f044313
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], 0x1f
cmp word [ebp - 0x10], ax
je 0xf036ebc
push ebx
xor ebx, ebx
inc ebx
add eax, 0xfffe
mov dword [ebp - 0x30], eax
cmp ax, word [ebp - 0x38]
jae 0xf036af7
mov eax, dword [ebp - 0x44]
add eax, 0xfffffffe
movzx eax, ax
mov dword [ebp - 0x30], eax
movzx eax, ax
lea ecx, [ebp - 0x34]
push ecx
add eax, 0x400
push eax
call fcn.0f044313
mov edi, dword [ebp - 4]
imul edi, edi, 0x14
mov eax, ebx
lea esi, [ebp + edi - 0x2c4]
mov word [esi], ax
mov ax, word [ebp - 0x34]
mov cx, ax
mov byte [ebp - 5], al
mov byte [ebp + edi - 0x2b6], al
lea eax, [ebp + edi - 0x2c0]
shr cx, 8
push eax
mov word [ebp + edi - 0x2b8], cx
mov dword [ebp - 0xc], eax
call fcn.0f03e989
test eax, eax
je 0xf036e69
xor eax, eax
cmp word [ebp + edi - 0x2b8], ax
je 0xf036ba8
mov ecx, dword [ebp - 0xc]
dec dword [ebp - 4]
mov dword [ecx], eax
push 5
lea edi, [esi - 0x14]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x14
dec dword [ebp - 4]
mov dword [ebp + ecx - 0x2c0], ebx
cmp dword [ebp + 8], eax
je 0xf036e69
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax - 1]
cmp dword [ebp - 0x2c], eax
jae 0xf036e69
mov ecx, dword [ebp - 0x2c]
mov al, byte [ebp - 5]
inc dword [ebp - 0x2c]
mov byte [ecx], al
jmp 0xf036e69
cmp byte [ebp + edi - 0x2b6], 0
je 0xf036e69
movzx eax, word [ebp + edi - 0x2b6]
push 0x1f
pop esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], esi
je 0xf036be9
lea eax, [ebp - 0x40]
push eax
mov eax, esi
sub eax, dword [ebp - 4]
push eax
lea eax, [ebp + edi - 0x2b0]
push eax
push dword [0xf0ad924]
call sub.KERNEL32.dll_WriteConsoleInputVDMW
mov dword [ebp - 4], esi
mov esi, 0x90
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
and eax, ebx
mov dword [ebp - 0x3c], eax
jne 0xf036c6e
mov eax, dword [ebp - 4]
imul eax, eax, 0x14
and dword [ebp + eax - 0x2c0], 0
mov ecx, ebx
mov word [ebp + eax - 0x2c4], cx
push 0x45
pop ecx
mov word [ebp + eax - 0x2b8], cx
xor ecx, ecx
dec dword [ebp - 4]
mov word [ebp + eax - 0x2b6], cx
mov word [ebp + eax - 0x2ba], si
mov dword [ebp + eax - 0x2b4], 0x20
mov ecx, ebx
mov word [ebp + eax - 0x2bc], cx
mov eax, dword [ebp - 4]
imul eax, eax, 0x14
dec dword [ebp - 4]
push 5
lea edi, [ebp + eax - 0x2c4]
pop ecx
lea esi, [ebp - 0x2c4]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + eax - 0x2c0], ebx
mov eax, dword [ebp - 4]
imul eax, eax, 0x14
and dword [ebp + eax - 0x2c0], 0
dec dword [ebp - 4]
cmp byte [ebp - 5], 0
mov ecx, ebx
mov word [ebp + eax - 0x2c4], cx
push 0x38
pop ecx
mov word [ebp + eax - 0x2b8], cx
mov cx, word [ebp - 0xc]
mov word [ebp + eax - 0x2b6], cx
push 0x12
pop ecx
mov word [ebp + eax - 0x2ba], cx
mov ecx, ebx
mov dword [ebp + eax - 0x2b4], 0x20
mov word [ebp + eax - 0x2bc], cx
je 0xf036da9
mov eax, dword [ebp - 4]
imul eax, eax, 0x14
lea ecx, [ebp + eax - 0x2c0]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp + eax - 0x2b4]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp + eax - 0x2ba]
lea esi, [ebp + eax - 0x2c4]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp + eax - 0x2b8]
lea eax, [ebp + eax - 0x2b6]
mov dword [ebp - 0x28], eax
lea eax, [esi - 0x14]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xc], eax
jmp 0xf036d17
mov esi, dword [ebp - 0x20]
movzx eax, byte [ebp - 5]
cdq
push 0xa
pop ecx
idiv ecx
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0xc]
push 5
mov byte [ebp - 5], al
mov eax, ebx
mov word [esi], ax
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebp - 0x24]
movzx eax, dl
mov ax, word [eax*2 + str.ROPQKLMGHI]
mov word [ecx], ax
mov ecx, dword [ebp - 0x18]
movzx ax, dl
add ax, 0x60
mov word [ecx], ax
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x22
mov eax, dword [ebp - 0x14]
and dword [eax], 0
dec dword [ebp - 4]
pop ecx
push 0x14
pop eax
sub dword [ebp - 0x14], eax
sub dword [ebp - 0x28], eax
sub dword [ebp - 0x24], eax
sub dword [ebp - 0x18], eax
sub dword [ebp - 0x1c], eax
sub dword [ebp - 0x20], eax
sub dword [ebp - 0xc], eax
dec dword [ebp - 4]
sub dword [ebp - 0x28], eax
sub dword [ebp - 0x24], eax
sub dword [ebp - 0x18], eax
sub dword [ebp - 0x1c], eax
sub dword [ebp - 0x20], eax
sub dword [ebp - 0xc], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
sub dword [ebp - 0x14], eax
cmp byte [ebp - 5], 0
mov dword [ecx], ebx
jne 0xf036d14
mov eax, dword [ebp - 4]
imul eax, eax, 0x14
mov ecx, ebx
mov word [ebp + eax - 0x2c4], cx
push 0x38
pop ecx
mov word [ebp + eax - 0x2b8], cx
xor ecx, ecx
dec dword [ebp - 4]
cmp word [ebp - 0x3c], 0
mov word [ebp + eax - 0x2b6], cx
push 0x12
pop ecx
mov word [ebp + eax - 0x2ba], cx
mov ecx, ebx
mov dword [ebp + eax - 0x2b4], 0x22
mov word [ebp + eax - 0x2bc], cx
mov dword [ebp + eax - 0x2c0], ebx
jne 0xf036e69
mov eax, dword [ebp - 4]
imul eax, eax, 0x14
and dword [ebp + eax - 0x2c0], 0
lea esi, [ebp + eax - 0x2c4]
mov word [esi], cx
push 0x45
pop ecx
mov word [ebp + eax - 0x2b8], cx
xor ecx, ecx
dec dword [ebp - 4]
mov word [ebp + eax - 0x2b6], cx
mov ecx, 0x90
mov word [ebp + eax - 0x2ba], cx
mov dword [ebp + eax - 0x2b4], 0x20
mov ecx, ebx
mov word [ebp + eax - 0x2bc], cx
mov eax, dword [ebp - 4]
imul eax, eax, 0x14
dec dword [ebp - 4]
push 5
lea edi, [esi - 0x14]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + eax - 0x2c0], ebx
mov ax, word [ebp - 0x10]
cmp ax, word [ebp - 0x30]
jne 0xf036e79
cmp dword [ebp - 4], 0x1f
jne 0xf036e7f
cmp dword [ebp - 4], 0
jge 0xf036ea8
lea eax, [ebp - 0x40]
push eax
push 0x1f
pop esi
mov eax, esi
sub eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
imul eax, eax, 0x14
lea eax, [ebp + eax - 0x2b0]
push eax
push dword [0xf0ad924]
call sub.KERNEL32.dll_WriteConsoleInputVDMW
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x30]
cmp word [ebp - 0x10], ax
jne 0xf036add
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x2c]
pop ebx
push eax
push 0x41c
call fcn.0f044367
cmp esi, edi
jae 0xf036edc
mov byte [esi], 0
mov cl, byte [esi]
dec edi
mov al, byte [edi]
mov byte [edi], cl
mov byte [esi], al
inc esi
cmp esi, edi
jb 0xf036ece
pop edi
pop esi
leave
ret 8