Function at 0x40d9a5
Capabilities:
Get hostname
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2474
call fcn.0040bdc0
mov eax, dword [0x445090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
xor eax, eax
cmp eax, 0x180
jne 0x40d9da
mov ecx, dword [0x44a0c4]
add ecx, 0xa231
mov dword [0x17f0c2c], ecx
cmp dword [0x17f0c2c], 0x141
jne 0x40d9f7
or dword [0x44b05c], 0xffffffff
mov dword [0x44b058], 0xec58acac
inc eax
cmp eax, 0x12376ec
jl 0x40d9c1
push esi
xor esi, esi
cmp esi, 0x562d05
jne 0x40da14
mov eax, dword [0x4460b8]
mov dword [0x17f0c30], eax
cmp dword [0x17f0c2c], 0x3c
jne 0x40da26
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
inc esi
cmp esi, 0x5f6c74
jl 0x40da02
cmp dword [0x17f0c2c], 0x7c
push edi
jne 0x40db09
push ebx
lea eax, [ebp - 0x1c04]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x2458]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push ebx
push ebx
call dword [sym.imp.USER32.dll_LoadIconA]
push ebx
push ebx
lea eax, [ebp - 0xc04]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteAtom]
xor eax, eax
mov word [ebp - 0x2450], ax
lea edi, [ebp - 0x244e]
stosw word es:[edi], ax
mov word [ebp - 0x244c], ax
lea edi, [ebp - 0x244a]
stosw word es:[edi], ax
lea eax, [ebp - 0x2460]
push eax
push dword [ebp - 0x244c]
lea eax, [ebp - 0x2454]
push dword [ebp - 0x2450]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push ebx
lea eax, [ebp - 0x404]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
push str.yulazamaguguvujay_bihagivuxihenapagumayedudo__s__d__f
push ebx
call fcn.00401d8c
push 0x443396
push 0x44afd0
call fcn.00401b27
push ebx
call fcn.00401f2a
add esp, 0x14
cmp dword [0x17f0c2c], 0x110a
jne 0x40dc95
push ebx
mov dword [0x17f0af8], ebx
mov dword [0x17f0afc], ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push ebx
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0x2454]
push eax
lea eax, [ebp - 0x2458]
push eax
lea eax, [ebp - 0x2450]
push eax
lea eax, [ebp - 0x2464]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
lea eax, [ebp - 0x244c]
push eax
push ebx
push str.medotehipuyakayitijugewovekocepu_tez_bigoparikutufuzudihetelojaduz_kanezoficalulekabedifimufegijuw_yomaxowefeyipamuvuloju
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetStringTypeExW]
lea eax, [ebp - 0x245c]
push eax
lea eax, [ebp - 0x1c04]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
xor eax, eax
mov word [ebp - 0x2474], ax
lea edi, [ebp - 0x2472]
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 - 0x1404]
push eax
push str.yanitivoke
lea eax, [ebp - 0x2474]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2404]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push ebx
push ebx
lea eax, [ebp - 0x404]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
fld qword [0x4434d8]
push 0x50
push ecx
push ecx
fstp qword [esp]
push 0x4434a4
push str._s__f__c
call fcn.00401da9
push ebx
push ebx
call fcn.00401cc6
add esp, 0x1c
push 7
pop edi
xor eax, eax
push 1
lea esi, [ebp - 0x2420]
mov dword [ebp - 0x2408], edi
mov dword [ebp - 0x240c], ebx
mov word [ebp - 0x241c], ax
call fcn.00401091
push ebx
push ebx
call fcn.00401cc6
xor eax, eax
push ebx
push ebx
mov dword [ebp - 0x2424], edi
mov dword [ebp - 0x2428], ebx
mov word [ebp - 0x2438], ax
call fcn.00401f40
push ebx
push ebx
call fcn.00401cc6
push ebx
push ebx
call fcn.00401f40
push 0x4434b8
push 0x44afd0
call fcn.00401d8c
push ebx
call fcn.00401ef6
add esp, 0x2c
push 1
xor ebx, ebx
lea esi, [ebp - 0x243c]
call fcn.0040104c
push 1
lea esi, [ebp - 0x2420]
call fcn.0040104c
push dword [0x17f0c2c]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor esi, esi
mov dword [0x17f094c], eax
pop edi
cmp dword [0x17f0c2c], ebx
jbe 0x40dd01
mov eax, dword [0x17f0c30]
mov dword [ebp - 0x244c], eax
mov eax, 0xa231
add dword [ebp - 0x244c], eax
mov eax, dword [ebp - 0x244c]
mov al, byte [eax + esi]
mov ecx, dword [0x17f094c]
mov byte [esi + ecx], al
cmp dword [0x17f0c2c], 0x5ab
jne 0x40dcf8
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov dword [0x17f0950], 0x19b0
inc esi
cmp esi, dword [0x17f0c2c]
jb 0x40dcb2
push 0x4434bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call fcn.0040d6cd
call fcn.0040d6af
call fcn.0040d931
xor eax, eax
cmp eax, 0xd606b
jne 0x40dd29
call fcn.0040d6a4
inc eax
cmp eax, 0x24e87d
jl 0x40dd1d
mov esi, 0x1e4165
cmp dword [0x17f0c2c], 0xcc1
jne 0x40dd4b
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
cmp dword [0x17f0c2c], 0x7c4
mov dword [0x17f0954], 0x8e46a6f0
jne 0x40dd6a
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
dec esi
jne 0x40dd36
pop esi
cmp ebx, 0x408e
jle 0x40dd82
cmp dword [ebp - 0x2440], 0xf5bed7
jne 0x40dd8b
inc ebx
cmp ebx, 0x687ed2
jl 0x40dd6e
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00401abb
leave
ret