Function at 0x4a1d70
Capabilities:
Copy file
Create pipe
Delete file
Get common file path
Get disk information
Get file attributes
Manipulate console buffer
Query environment variable
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x3130
call fcn.0040ced0
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov edi, dword [esp + 0x38]
xor esi, esi
cmp esi, 0x2cdc8
jge 0x4a1d9e
call ebp
cmp dword [0x82ba8c], 0x6fb
jne 0x4a1dbc
push 0
lea eax, [esp + 0x544]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
cmp esi, 0x1e9afa1e
jle 0x4a1dd4
cmp edi, 0xc10c34
je 0x4a1dd4
cmp ebx, 0x952fd20
jne 0x4a1ddd
inc esi
cmp esi, 0x80c02
jl 0x4a1d94
cmp dword [0x82ba8c], 0xcf8
jne 0x4a1e87
fldz
sub esp, 8
fstp qword [esp]
call fcn.00405110
fstp st(0)
fldz
fstp qword [esp]
call fcn.00404d40
fstp st(0)
push 0x4047b0
push 0
call fcn.0040504e
push 0
push 0
call fcn.00404d00
push 0
push 0
call fcn.00404e5d
fldz
add esp, 0x18
fstp qword [esp]
call fcn.00404d40
fstp st(0)
push 0
call fcn.00405043
add esp, 0xc
push 0
push 0
call fcn.00404f59
push 0
push 0
call fcn.00405252
fld qword [0x404c08]
add esp, 8
fstp qword [esp]
push 0x4047bc
call fcn.0040504e
add esp, 0xc
push 0
call fcn.00404f99
add esp, 4
push 0
push 0
call fcn.00405252
push 0
call fcn.0040522a
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
xor esi, esi
cmp esi, 0x408
jne 0x4a1ea8
mov eax, 0x5d1
add dword [0x82ba8c], eax
cmp dword [0x82ba8c], 3
jne 0x4a1ed4
xor ecx, ecx
lea eax, [esp + 0x38]
push eax
push ecx
push ecx
push 0x4047c4
push ecx
mov dword [esp + 0x50], ecx
call edi
push 0
push 0
lea edx, [esp + 0x148]
push edx
call ebx
inc esi
cmp esi, 0x1518d4
jl 0x4a1e95
mov eax, dword [0x82ba8c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x4acadc], eax
mov eax, dword [0x82ba8c]
xor esi, esi
test eax, eax
je 0x4a1f4a
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
lea ecx, [ecx]
cmp eax, 0xfe
jne 0x4a1f1b
push 0
call ebp
call fcn.004a1940
mov eax, dword [0x82ba8c]
cmp eax, 0x29
jne 0x4a1f45
push 0
push 0
lea ecx, [esp + 0x148]
push ecx
push 0
call edi
push 0
push 0
call ebx
mov eax, dword [0x82ba8c]
inc esi
cmp esi, eax
jb 0x4a1f10
cmp eax, 0x70
jne 0x4a20a6
push 0x4047d0
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x4047e8
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push 0
push 0x4047fc
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea edx, [esp + 0x140]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
lea eax, [esp + 0x2d44]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsBadHugeReadPtr]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push 0
lea ecx, [esp + 0x1d44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll__hread]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0x404814
push 0x404850
call esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push 0x404860
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoA]
push 0
push 0x404870
push 0x4048a8
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
push 0x4048e0
lea edx, [esp + 0x2544]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x404920
lea eax, [esp + 0xd44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
push 0
push 0
lea ecx, [esp + 0x1548]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
xor eax, eax
lea edx, [esp + 0x5c]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
push edx
lea eax, [esp + 0x3c]
push eax
push 0
lea ecx, [esp + 0x54c]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov eax, dword [0x82ba8c]
mov esi, dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov dword [esp + 0x38], 0x9682ab
jmp 0x4a20d0
cmp eax, 0xdf
jne 0x4a2201
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call edi
xor edx, edx
lea ecx, [esp + 0x4c]
push ecx
push edx
push edx
lea eax, [esp + 0x54c]
push eax
push edx
mov dword [esp + 0x50], edx
call ebp
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
push 0
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0
call dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
push 0x404988
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x48]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
push 0
push 0x4049d0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
lea eax, [esp + 0x40]
push eax
push 0x4049f4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFix]
push 0
lea edx, [esp + 0xd44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
push 0x30
lea eax, [esp + 0x64]
push 0
push eax
mov dword [esp + 0x68], 0
call fcn.0040a1e0
add esp, 0xc
push 0
lea ecx, [esp + 0x60]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
lea edx, [esp + 0x1540]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x82ba8c]
dec dword [esp + 0x38]
jne 0x4a20d0
mov edi, dword [sym.imp.USER32.dll_CharUpperW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x12dba7f4
lea esp, [esp]
push 0
call edi
push 0
call ebx
dec esi
jne 0x4a2220
mov byte [0x4a7d48], 0
call fcn.004a1850
call fcn.004a1bb0
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
jmp 0x4a2250
cmp dword [0x82ba8c], 0xba
jne 0x4a2291
push 0
lea eax, [esp + 0x544]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x54]
push eax
push 0
lea ecx, [esp + 0x1558]
push ecx
push 0x404a08
call edi
push 0x404a44
push 0
push 0
call ebx
cmp esi, 0x2f64
jne 0x4a22a4
mov eax, 0
add dword [0x4acadc], eax
inc esi
cmp esi, 0x1605a
jl 0x4a2250
mov esi, dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownA]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov ebx, 0xf2b8b
mov edi, edi
cmp dword [0x82ba8c], 0x21
jne 0x4a22d7
push 0
call esi
push 0
push 0
push 0
push 0
call edi
dec ebx
jne 0x4a22c0
mov edx, 0x73
mov eax, 0x6d
mov word [0x82ba92], dx
mov word [0x82ba96], ax
xor eax, eax
mov ecx, 0x33
mov edx, 0x67
mov word [0x82ba9a], cx
mov word [0x82baa6], ax
mov word [0x82ba98], dx
mov eax, 0x69
mov ecx, 0x6d
mov edx, 0x6c
push 0x82ba90
mov dword [0x82baa0], 0x6c0064
mov word [0x82ba94], ax
mov word [0x82ba90], cx
mov word [0x82baa4], dx
mov dword [0x82ba9c], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x82ba8c], 0xc30
jne 0x4a2457
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateConsoleScreenBuffer]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea edx, [esp + 0x140]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push ebx
lea eax, [esp + 0xd44]
push eax
push 0x404a70
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
call dword [sym.imp.KERNEL32.dll_AddRefActCtx]
push ebx
lea ecx, [esp + 0x44]
push ecx
push ebx
lea edx, [esp + 0x54c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push ebx
lea eax, [esp + 0x2544]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x4c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0x404abc
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push 0x404afc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea edx, [esp + 0x1d44]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_VerLanguageNameW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 0x404b28
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
lea eax, [esp + 0x50]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumaAvailableMemoryNode]
push ebx
lea ecx, [esp + 0x1544]
push ecx
push 0x404bc4
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_SetTimeZoneInformation]
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret