Function at 0x40a4f0
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.0056aefc
push 0
push 0x10
lea edx, [esp + 0x40]
push edx
push str.display
call fcn.0040a2d0
mov ebx, eax
add esp, 0x24
xor esi, esi
test ebx, ebx
jle 0x40a5ba
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 0x40a5ac
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 0x40a560
pop edi
pop ebp
lea eax, [esp + 0x10]
push eax
call fcn.0056cb22
add esp, 4
pop esi
pop ebx
add esp, 0xdc
ret

Function at 0x40ab80
Capabilities:
Log keystrokes via polling

Disassembly:
cmp eax, 0x100
jne 0x40aca3
mov eax, dword [esi + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x40aca2
cmp ecx, 9
push ebp
push edi
jne 0x40ac2e
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
mov ecx, dword [esi + 8]
jns 0x40abc0
mov eax, dword [ecx + 0xc]
cmp byte [eax + 0x15], bl
je 0x40abcb
mov eax, dword [eax + 0xc]
jmp 0x40abcb
mov eax, dword [ecx + 0x10]
cmp byte [eax + 0x15], bl
je 0x40abcb
mov eax, dword [eax + 0x10]
cmp eax, ecx
jne 0x40abd4
or ebp, 0xffffffff
jmp 0x40abdc
mov ebp, dword [eax + 8]
cmp ebp, 0xffffffff
jne 0x40abf7
mov ecx, dword [esi + 0xc]
push ebx
push ebx
push 0xa
call fcn.0054ba20
mov edi, dword [esi + 8]
cmp edi, ebx
je 0x40abf7
call fcn.0040aa80
mov dword [esi + 8], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40aca0
mov eax, dword [eax + 4]
push ebp
push eax
mov ecx, esi
call fcn.005486f0
mov ebp, eax
cmp ebp, ebx
je 0x40aca0
mov edi, dword [esi + 8]
call fcn.0040aa80
mov ebx, ebp
mov dword [esi + 8], ebp
call fcn.0040a9e0
pop edi
pop ebp
pop ebx
ret
cmp ecx, 0xd
jne 0x40ac80
mov ecx, dword [eax + 0x10]
cmp byte [ecx + 0x15], bl
je 0x40ac41
push ebx
push ebx
push 0xa
jmp 0x40ac89
mov ecx, dword [eax + 0x10]
cmp byte [ecx + 0x15], bl
je 0x40ac4c
mov ecx, dword [ecx + 0x10]
cmp ecx, eax
jne 0x40ac55
or ecx, 0xffffffff
jmp 0x40ac58
mov ecx, dword [ecx + 8]
mov edx, dword [eax + 4]
push ecx
push edx
mov ecx, esi
call fcn.005486f0
mov ebp, eax
cmp ebp, ebx
je 0x40aca0
mov edi, dword [esi + 8]
call fcn.0040aa80
mov ebx, ebp
mov dword [esi + 8], ebp
call fcn.0040a9e0
pop edi
pop ebp
pop ebx
ret
cmp ecx, 0x1b
jne 0x40aca0
push ebx
push ebx
push 0xb
mov ecx, dword [esi + 0xc]
call fcn.0054ba20
mov edi, dword [esi + 8]
cmp edi, ebx
je 0x40aca0
call fcn.0040aa80
mov dword [esi + 8], ebx
pop edi
pop ebp
pop ebx
ret