Function at 0x1005fa5
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x1012d80]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x248], eax
mov eax, dword [ebp + 0xc]
push 3
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x23c]
pop ecx
xor ebx, ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
add eax, 8
dec ecx
jne 0x1005b62
mov eax, dword [ebp + 0x10]
xor edi, edi
sub eax, ebx
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], bl
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], 1
mov dword [ebp - 0x244], ebx
je 0x1005f3c
dec eax
je 0x1005e98
dec eax
je 0x1005dfb
dec eax
je 0x1005d77
dec eax
je 0x1005ce6
dec eax
je 0x1005c63
dec eax
jne 0x1005fee
lea ecx, [ebp - 0x23c]
call fcn.01004880
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea eax, [ebp - 0x14]
push eax
call esi
test eax, eax
je 0x10061c2
lea ecx, [ebp - 0x234]
call fcn.01004880
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
call esi
test eax, eax
je 0x10061c2
lea ecx, [ebp - 0x22c]
call fcn.01004880
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call esi
test eax, eax
je 0x10061c2
mov edi, dword [ebp - 0x22c]
mov dword [ebp - 0x238], 0x2001b
jmp 0x1005fd3
lea ecx, [ebp - 0x23c]
call fcn.01004880
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x10061c2
lea ecx, [ebp - 0x234]
call fcn.01004880
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x10061c2
mov eax, dword [ebp - 0x23c]
mov edi, dword [ebp - 0x234]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x224], 2
jmp 0x1005fee
lea ecx, [ebp - 0x23c]
call fcn.01004880
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x10061c2
lea ecx, [ebp - 0x234]
call fcn.01004880
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x10061c2
lea ecx, [ebp - 0x22c]
call fcn.01004880
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 4
push esi
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x10061c2
mov eax, dword [ebp - 0x23c]
mov edi, dword [ebp - 0x234]
mov dword [ebp - 0x244], eax
jmp 0x1005e81
lea ecx, [ebp - 0x23c]
call fcn.01004880
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x10061c2
lea ecx, [ebp - 0x234]
call fcn.01004880
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
pop esi
push esi
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x10061c2
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp - 0x234]
neg eax
sbb eax, eax
and eax, 0xfe10001
add eax, 0x1effff
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x224], esi
jmp 0x1005fee
lea ecx, [ebp - 0x23c]
call fcn.01004880
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 4
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x10061c2
lea ecx, [ebp - 0x234]
call fcn.01004880
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push esi
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x10061c2
lea ecx, [ebp - 0x22c]
call fcn.01004880
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x10061c2
mov edi, dword [ebp - 0x22c]
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x228], esi
jmp 0x1005fe4
lea ecx, [ebp - 0x23c]
call fcn.01004880
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
call esi
test eax, eax
je 0x10061c2
lea ecx, [ebp - 0x234]
call fcn.01004880
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea eax, [ebp - 0x14]
push eax
call esi
test eax, eax
je 0x10061c2
lea ecx, [ebp - 0x22c]
call fcn.01004880
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call esi
test eax, eax
je 0x10061c2
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp - 0x22c]
neg eax
sbb eax, eax
and eax, 0xfe10001
add eax, 0x1effff
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x230], 0xa0120000
jmp 0x1005fde
lea ecx, [ebp - 0x23c]
call fcn.01004880
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea eax, [ebp - 0x14]
push eax
call esi
test eax, eax
je 0x10061c2
lea ecx, [ebp - 0x234]
call fcn.01004880
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
call esi
test eax, eax
je 0x10061c2
lea ecx, [ebp - 0x22c]
call fcn.01004880
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call esi
test eax, eax
je 0x10061c2
cmp dword [ebp + 0x14], ebx
mov edi, dword [ebp - 0x22c]
mov dword [ebp - 0x238], 0x13ffff
jne 0x1005fd3
mov dword [ebp - 0x238], 0x12ffff
mov eax, 0x10000000
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], 3
cmp dword [ebp - 0x224], ebx
push 8
pop esi
mov dword [ebp - 0x240], ebx
jle 0x100602a
mov eax, dword [ebp - 0x240]
push dword [ebp + eax*8 - 0x23c]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
inc dword [ebp - 0x240]
lea esi, [esi + eax + 8]
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x224]
jl 0x1005fff
mov eax, 0x200
cmp esi, eax
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], ecx
jle 0x1006051
push esi
lea ecx, [ebp - 0x220]
call fcn.01005778
push 2
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x100608d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x21c], 0x200
mov esi, eax
jle 0x10061ca
push dword [ebp - 0x220]
call fcn.010052fd
pop ecx
jmp 0x10061ca
xor esi, esi
cmp dword [ebp - 0x224], ebx
jle 0x10060e2
push dword [ebp + esi*8 - 0x23c]
push dword [ebp + esi*8 - 0x238]
push 2
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x1006064
lea eax, [ebp - 0x240]
push eax
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x1006064
mov eax, dword [ebp - 0x240]
inc esi
cmp esi, dword [ebp - 0x224]
mov byte [eax + 1], 3
jl 0x1006097
push 1
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1006064
push ebx
push dword [ebp - 0x220]
lea eax, [ebp - 0x260]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x1006064
push ebx
push edi
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
je 0x1006064
cmp dword [ebp - 0x244], ebx
je 0x1006152
push ebx
push dword [ebp - 0x244]
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
test eax, eax
je 0x1006064
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
mov ecx, dword [ebp - 0x24c]
cmp dword [ecx], eax
jae 0x1006186
cmp dword [ebp - 0x21c], 0x200
jle 0x1006181
push dword [ebp - 0x220]
call fcn.010052fd
pop ecx
push 0x7a
pop esi
jmp 0x10061ca
push ecx
push dword [ebp - 0x248]
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.ADVAPI32.dll_MakeSelfRelativeSD]
test eax, eax
jne 0x10061a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [ebp - 0x21c], 0x200
jle 0x10061be
push dword [ebp - 0x220]
call fcn.010052fd
pop ecx
mov esi, ebx
jmp 0x10061ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0x100489b
push 3
push 8
lea eax, [ebp - 0x23c]
push eax
call fcn.010048a5
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0100f1d6
leave
ret