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.00408c00
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 [0x2afb3b4], 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 [0x422ee8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x422eec]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.00401000
mov eax, dword [0x422ef0]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [str.pKN]
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 [0x2afb3b4], 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_WriteConsoleW]
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 [0x2afb3b4]
cmp eax, 0xfa9
jne 0x4010f6
mov dword [0x2afb3b0], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40111d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x2afb308], 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 [0x2afb3ac], 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 [0x2afb3b4], 0xb03
jne 0x4011a7
push str.xebidirufojibumemuyigepas_ratedusacesicokizenefocolorevo_vuvelihivoticabugapefilex
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