Function at 0x402b82
Capabilities:
Allocate or change rwx memory
Extract resource via kernel32 functions
Get common file path
Get hostname
Manipulate console buffer

Disassembly:
push ecx
push 0x42c0f8
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
push ebp
mov ebp, esp
mov eax, 0x2140
call fcn.0040ccc0
push ebx
push esi
xor esi, esi
cmp dword [0x2a9f420], 0x5b1
push edi
jne 0x402c19
push esi
push esi
lea eax, [ebp - 0x940]
push eax
push esi
push esi
call sub.USER32.dll_DdeQueryStringA
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
xor eax, eax
mov word [ebp - 0xc], ax
lea edi, [ebp - 0xa]
stosw word es:[edi], ax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x540]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push esi
call fcn.004030be
push esi
call fcn.004030a8
add esp, 0xc
jmp 0x402b75
add dword [0x2a9f420], 0x1134b
push dword [0x2a9f420]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [0x2a9f420]
mov dword [0x2a9e374], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor edi, edi
cmp dword [0x2a9f420], esi
jbe 0x402c97
mov eax, dword [0x2a9f424]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x2a9e374]
mov byte [ecx + edi], al
cmp dword [0x2a9f420], 0xa8
jne 0x402c8e
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueue]
inc edi
cmp edi, dword [0x2a9f420]
jb 0x402c52
xor ebx, ebx
mov eax, dword [0x2a9f420]
add eax, ebx
cmp eax, 0xe
jne 0x402d3b
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
push esi
lea eax, [ebp - 0x1140]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push esi
lea eax, [ebp - 0x940]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push esi
push esi
lea eax, [ebp - 0x1940]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x540]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push esi
push esi
lea eax, [ebp - 0x2140]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push esi
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
inc ebx
cmp ebx, 0x39621
jl 0x402c99
call fcn.00402a7b
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x26
jne 0x402d5f
call fcn.00402b5b
inc edi
cmp edi, 0x6753f
jl 0x402d4f
push 0x7b
pop ebx
cmp dword [0x2a9f420], 0x86
jne 0x402dc5
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
xor eax, eax
mov word [ebp - 0x2c], ax
lea edi, [ebp - 0x2a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_TzSpecificLocalTimeToSystemTime]
push esi
lea eax, [ebp - 0x2140]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x2a9f420], 0xf
jne 0x402dd9
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
dec ebx
jne 0x402d6b
call fcn.0040281f
pop edi
pop esi
pop ebx
leave
ret