Function at 0x40a400
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.00548ff0
push 0
push 0x10
lea edx, [esp + 0x40]
push edx
push str.display
call fcn.0040a1e0
mov ebx, eax
add esp, 0x24
xor esi, esi
test ebx, ebx
jle 0x40a4ca
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 0x40a4bc
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 0x40a470
pop edi
pop ebp
lea eax, [esp + 0x10]
push eax
call fcn.0054aafe
add esp, 4
pop esi
pop ebx
add esp, 0xdc
ret

Function at 0x40aac0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp eax, 0x100
jne 0x40abe3
mov eax, dword [esi + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x40abe2
cmp ecx, 9
push ebp
push edi
jne 0x40ab6e
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
mov ecx, dword [esi + 8]
jns 0x40ab00
mov eax, dword [ecx + 0xc]
cmp byte [eax + 0x15], bl
je 0x40ab0b
mov eax, dword [eax + 0xc]
jmp 0x40ab0b
mov eax, dword [ecx + 0x10]
cmp byte [eax + 0x15], bl
je 0x40ab0b
mov eax, dword [eax + 0x10]
cmp eax, ecx
jne 0x40ab14
or ebp, 0xffffffff
jmp 0x40ab1c
mov ebp, dword [eax + 8]
cmp ebp, 0xffffffff
jne 0x40ab37
mov ecx, dword [esi + 0xc]
push ebx
push ebx
push 0xa
call fcn.0052ad90
mov edi, dword [esi + 8]
cmp edi, ebx
je 0x40ab37
call fcn.0040a990
mov dword [esi + 8], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40abe0
mov eax, dword [eax + 4]
push ebp
push eax
mov ecx, esi
call fcn.00527b80
mov ebp, eax
cmp ebp, ebx
je 0x40abe0
mov edi, dword [esi + 8]
call fcn.0040a990
mov ebx, ebp
mov dword [esi + 8], ebp
call fcn.0040a8f0
pop edi
pop ebp
pop ebx
ret
cmp ecx, 0xd
jne 0x40abc0
mov ecx, dword [eax + 0x10]
cmp byte [ecx + 0x15], bl
je 0x40ab81
push ebx
push ebx
push 0xa
jmp 0x40abc9
mov ecx, dword [eax + 0x10]
cmp byte [ecx + 0x15], bl
je 0x40ab8c
mov ecx, dword [ecx + 0x10]
cmp ecx, eax
jne 0x40ab95
or ecx, 0xffffffff
jmp 0x40ab98
mov ecx, dword [ecx + 8]
mov edx, dword [eax + 4]
push ecx
push edx
mov ecx, esi
call fcn.00527b80
mov ebp, eax
cmp ebp, ebx
je 0x40abe0
mov edi, dword [esi + 8]
call fcn.0040a990
mov ebx, ebp
mov dword [esi + 8], ebp
call fcn.0040a8f0
pop edi
pop ebp
pop ebx
ret
cmp ecx, 0x1b
jne 0x40abe0
push ebx
push ebx
push 0xb
mov ecx, dword [esi + 0xc]
call fcn.0052ad90
mov edi, dword [esi + 8]
cmp edi, ebx
je 0x40abe0
call fcn.0040a990
mov dword [esi + 8], ebx
pop edi
pop ebp
pop ebx
ret