Function at 0x1002a89e
Capabilities:
Check mutex on windows
Delete registry key

Disassembly:
sub esp, 0xd4
mov eax, dword [0x102bff3c]
xor eax, esp
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xd8]
push ebx
push ebp
mov ebp, dword [esp + 0xe4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xec]
push esi
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov ebx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x54], eax
mov word [esp + 0x58], 0x100
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push 9
pop esi
test ebp, ebp
js 0x1002ac8c
cmp ebp, 1
jle 0x1002a919
cmp ebp, 2
jne 0x1002ac8c
push str.SoftwareDisc_SoftDAEMON_Tools_UltraRebootFlag
jmp 0x1002a922
mov byte [esp + 0x5c], al
push str.Global_
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [esp + 0xf8], ebx
je 0x1002a944
push str.19659239224e364682fa4baf72c53ea4
jmp 0x1002a94e
cmp ebp, 2
je 0x1002a955
push str.14919ea49a8f3b4aa3cf1058d9a64cec
lea eax, [esp + 0x64]
push eax
call edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1002a965
push eax
lea eax, [esp + 0x64]
push eax
call edi
lea eax, [esp + 0x14]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 1
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1002a990
push 0x11
pop esi
jmp 0x1002ac4d
push 8
xor eax, eax
lea edi, [esp + 0x3c]
pop ecx
rep stosd dword es:[edi], eax
and dword [esp + 0x40], eax
and dword [esp + 0x4c], eax
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0xf0]
push 0x10238050
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 2
mov dword [esp + 0x54], 5
mov dword [esp + 0x58], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1023806c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x18]
mov dword [0x102cb0a0], eax
push ecx
push 0
lea ecx, [esp + 0x40]
push ecx
push 1
call eax
test eax, eax
jne 0x1002ac4d
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1002a988
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1002ac4d
push 0
push dword [esp + 0x1c]
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x1002ac4d
mov eax, ebp
mov dword [esp + 0x28], ebx
xor ecx, ecx
sub eax, ecx
je 0x1002ab90
sub eax, 1
je 0x1002ab7c
sub eax, 1
jne 0x1002aba5
push ecx
lea eax, [esp + 0x34]
push eax
push ecx
push edi
push ecx
push ecx
push ecx
push 0x10238080
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1002aa83
push dword [esp + 0x30]
call edi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0xfc]
lea eax, [esp + 0x70]
push 1
push 0
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1002aabd
and dword [esp + 0x10], 0
jmp 0x1002ac4d
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0xfc]
push ecx
push ecx
push ecx
push 0x102380cc
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1002aba5
push dword [esp + 0x1c]
call edi
push 0x102380dc
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [esp + 0x10]
call edi
xor edi, edi
push 0x102380ec
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.RegDeleteKeyExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002ab45
push edi
push 0x100
lea ecx, [esp + 0x68]
push ecx
push reloc.WS2_32.dll_bind
call eax
test eax, eax
jne 0x1002aba5
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0xfc]
lea eax, [esp + 0x70]
push 1
push edi
push edi
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1002aba5
mov dword [esp + 0x10], edi
jmp 0x1002ac4d
lea eax, [esp + 0x60]
push eax
push ecx
push ecx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
jmp 0x1002aba1
lea eax, [esp + 0x60]
push eax
push ecx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
je 0x1002ac4d
test ebp, ebp
jne 0x1002ac4b
push ebp
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x20], eax
cmp eax, 0x80
je 0x1002ac0c
test eax, eax
je 0x1002ac0c
cmp eax, 0x102
je 0x1002ac13
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002ac00
test byte [eax + 0x1c], 1
je 0x1002ac00
push 0x10238268
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001c92e
add esp, 0x10
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002ac4d
cmp eax, 0x102
jne 0x1002ac4b
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002ac44
test byte [eax + 0x1c], 1
je 0x1002ac44
push 0x10238268
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001c92e
add esp, 0x10
push 0x14
jmp 0x1002a98a
xor esi, esi
cmp dword [esp + 0x14], 0
je 0x1002ac5e
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [esp + 0x18], 0
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1002ac71
push dword [esp + 0x18]
call edi
test ebx, ebx
je 0x1002ac78
push ebx
call edi
mov eax, dword [esp + 0x34]
xor ecx, ecx
test esi, esi
pop edi
cmove ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov eax, esi
jmp 0x1002ac8f
push 0xe
pop eax
mov ecx, dword [esp + 0xdc]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101b70aa
add esp, 0xd4
ret