Function at 0x401007
Capabilities:
Delete file
Manipulate console buffer
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.00407590
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
xor esi, esi
cmp dword [0x42ef2c], 0x594
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
jne 0x401042
push esi
lea eax, [ebp - 0x83c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x41fc58]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41fc5c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.00401000
mov eax, dword [0x41fc60]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [0x41fc64]
add ebx, 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x42ef2c], 0xc
mov dword [ebp - 4], eax
jne 0x4010da
push esi
lea eax, [ebp - 0x83c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push esi
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x103c]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [0x42ef2c]
cmp eax, 0xfa9
jne 0x4010f6
mov dword [0x42ef28], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40111c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x42ee80], esi
mov ecx, dword [ebp - 0xc]
mov edx, edi
lea eax, [ebx + edi]
shr edx, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [0x42ef24], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor edx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
lea ecx, [ebx + eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0xc]
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
cmp dword [0x42ef2c], 0xb03
jne 0x4011a6
push str.wuricogu_cetatiwore_datufijed
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
sub edi, dword [ebp - 4]
add ebx, 0x61c88647
dec dword [ebp - 0x20]
mov dword [ebp - 0x10], edi
jne 0x40107d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], edi
pop edi
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4