Function at 0x40a460
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xdc
xor eax, eax
mov dword [esp + 9], eax
push ebx
mov dword [esp + 0x11], eax
push esi
mov dword [esp + 0x19], eax
push ecx
mov word [esp + 0x21], ax
push edx
mov byte [esp + 0x27], al
mov eax, dword [esp + 0xf0]
push eax
lea ecx, [esp + 0x70]
push str.modes_d_d__d
push ecx
mov byte [esp + 0x24], 0
call fcn.0055e68c
push 0
push 0x10
lea edx, [esp + 0x40]
push edx
push str.display
call fcn.0040a240
mov ebx, eax
add esp, 0x24
xor esi, esi
test ebx, ebx
jle 0x40a52a
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [esp]
mov edx, dword [esp + esi*4 + 0x2c]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x78]
push ecx
push edx
call ebp
test eax, eax
jne 0x40a51c
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push str.RefreshRate
push eax
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov edx, dword [esp + esi*4 + 0x2c]
push edx
call edi
inc esi
cmp esi, ebx
jl 0x40a4d0
pop edi
pop ebp
lea eax, [esp + 0x10]
push eax
call fcn.005602b2
add esp, 4
pop esi
pop ebx
add esp, 0xdc
ret

Function at 0x40aaf0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp eax, 0x100
jne 0x40ac13
mov eax, dword [esi + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x40ac12
cmp ecx, 9
push ebp
push edi
jne 0x40ab9e
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
mov ecx, dword [esi + 8]
jns 0x40ab30
mov eax, dword [ecx + 0xc]
cmp byte [eax + 0x15], bl
je 0x40ab3b
mov eax, dword [eax + 0xc]
jmp 0x40ab3b
mov eax, dword [ecx + 0x10]
cmp byte [eax + 0x15], bl
je 0x40ab3b
mov eax, dword [eax + 0x10]
cmp eax, ecx
jne 0x40ab44
or ebp, 0xffffffff
jmp 0x40ab4c
mov ebp, dword [eax + 8]
cmp ebp, 0xffffffff
jne 0x40ab67
mov ecx, dword [esi + 0xc]
push ebx
push ebx
push 0xa
call fcn.0053f1c0
mov edi, dword [esi + 8]
cmp edi, ebx
je 0x40ab67
call fcn.0040a9f0
mov dword [esi + 8], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40ac10
mov eax, dword [eax + 4]
push ebp
push eax
mov ecx, esi
call fcn.0053bdc0
mov ebp, eax
cmp ebp, ebx
je 0x40ac10
mov edi, dword [esi + 8]
call fcn.0040a9f0
mov ebx, ebp
mov dword [esi + 8], ebp
call fcn.0040a950
pop edi
pop ebp
pop ebx
ret
cmp ecx, 0xd
jne 0x40abf0
mov ecx, dword [eax + 0x10]
cmp byte [ecx + 0x15], bl
je 0x40abb1
push ebx
push ebx
push 0xa
jmp 0x40abf9
mov ecx, dword [eax + 0x10]
cmp byte [ecx + 0x15], bl
je 0x40abbc
mov ecx, dword [ecx + 0x10]
cmp ecx, eax
jne 0x40abc5
or ecx, 0xffffffff
jmp 0x40abc8
mov ecx, dword [ecx + 8]
mov edx, dword [eax + 4]
push ecx
push edx
mov ecx, esi
call fcn.0053bdc0
mov ebp, eax
cmp ebp, ebx
je 0x40ac10
mov edi, dword [esi + 8]
call fcn.0040a9f0
mov ebx, ebp
mov dword [esi + 8], ebp
call fcn.0040a950
pop edi
pop ebp
pop ebx
ret
cmp ecx, 0x1b
jne 0x40ac10
push ebx
push ebx
push 0xb
mov ecx, dword [esi + 0xc]
call fcn.0053f1c0
mov edi, dword [esi + 8]
cmp edi, ebx
je 0x40ac10
call fcn.0040a9f0
mov dword [esi + 8], ebx
pop edi
pop ebp
pop ebx
ret