Function at 0xa6821f
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Delete registry value
Query or enumerate registry value
Read file via mapping
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb0e7e0
push 0xa713d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffcac
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
cmp dword [ebp + 8], 0
jne 0xa68258
mov eax, 0x300000a0
jmp 0xa68877
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.kernel32.dll_GetTickCount]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x244], 0
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x243]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0xbd4fbc
mov eax, dword [ebp + 8]
push eax
push 0xbd4fcc
push 0x20a
lea ecx, [ebp - 0x244]
push ecx
call fcn.00a68ee0
add esp, 0x14
mov dword [ebp - 4], 0
push 0xbd4fd4
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0xa682fb
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0xa6874a
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x364], ecx
cmp dword [ebp - 0x364], 0x102
ja 0xa68351
cmp dword [ebp - 0x364], 0x102
je 0xa68738
cmp dword [ebp - 0x364], 0
je 0xa68363
cmp dword [ebp - 0x364], 0x80
je 0xa68363
jmp 0xa6874a
cmp dword [ebp - 0x364], 0xffffffff
je 0xa68741
jmp 0xa6874a
push 0xbd5000
push 0x4000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov dword [0xbe6bc8], eax
cmp dword [0xbe6bc8], 0
je 0xa683eb
push 0
push 0
push 0
push 6
mov edx, dword [0xbe6bc8]
push edx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [0xbe6bcc], eax
cmp dword [0xbe6bcc], 0
je 0xa683c9
mov eax, dword [0xbe6bcc]
mov dword [ebp - 0x28], eax
push 0x100
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00a70120
add esp, 0xc
jmp 0xa683e9
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov edx, dword [0xbe6bc8]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [0xbe6bc8], 0
jmp 0xa683f4
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24c], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x244]
push edx
call fcn.00a6724f
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0xa6871c
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x254], 0
cmp dword [ebp - 0x20], 0
jne 0xa6846e
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov dword [ebp - 0x254], ecx
mov dword [ebp - 4], 0
jmp 0xa6846e
lea edx, [ebp - 0x34]
push edx
push 0xf003f
push 0
push 0xbd502c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x254], 1
jne 0xa684a6
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x24c], ecx
jmp 0xa68516
cmp dword [ebp - 0x250], 0
jne 0xa68508
mov dword [ebp - 0x258], 4
lea edx, [ebp - 0x258]
push edx
lea eax, [ebp - 0x24c]
push eax
push 0
push 0
push 0xbd504c
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
je 0xa684f7
mov edx, dword [ebp - 0x250]
mov dword [ebp - 0x2c], edx
jmp 0xa6874a
push 0xbd5050
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0xa68516
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x2c], ecx
jmp 0xa6874a
cmp dword [ebp - 0x24c], 0
jne 0xa68617
cmp dword [ebp - 0x254], 1
jne 0xa6853a
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
mov dword [ebp - 0x2c], eax
jmp 0xa685ed
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 4
cmp dword [ebp - 0x250], 0
jne 0xa685c7
lea ecx, [ebp - 0x25c]
push ecx
lea edx, [ebp - 0x260]
push edx
push 0
push 0
push 0xbd5054
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
je 0xa685ad
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x2c], ecx
push 0
push 0x4be
push 1
push 1
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.00a6a000
jmp 0xa6874a
mov ecx, dword [ebp - 0x260]
mov dword [ebp - 0x2c], ecx
push 0xbd5064
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0xa685ed
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x2c], eax
push 0
push 0x4ca
push 1
push 1
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00a6a000
jmp 0xa6874a
cmp dword [ebp - 0x2c], 0
jne 0xa685fa
mov dword [ebp - 0x2c], 0x300000e0
push 0
push 0x4db
push 1
push 1
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00a6a000
jmp 0xa6874a
mov edx, dword [ebp - 0x24c]
push edx
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenProcess]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0xa6865a
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
push 0
push 0x4e5
push 1
push 1
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00a6a000
jmp 0xa6874a
push 0xbd5074
push 0
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0xa6869a
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
push 0
push 0x4ef
push 1
push 1
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.00a6a000
jmp 0xa6874a
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.kernel32.dll_SetEvent]
test eax, eax
jne 0xa686cb
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
push 0
push 0x4f7
push 1
push 1
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.00a6a000
jmp 0xa6874a
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.00a671ea
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0xa6871a
push 0x64
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0xa68700
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.kernel32.dll_TerminateProcess]
push 0
push 0x507
push 1
push 1
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.00a6a000
jmp 0xa6874a
jmp 0xa68736
push 0
push 0x512
push 1
push 1
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00a6a000
jmp 0xa6874a
jmp 0xa6874a
mov dword [ebp - 0x2c], 0x30000090
jmp 0xa6874a
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00a6875b
jmp 0xa68874
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc