Function at 0x10008705
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1108]
mov eax, 0x1108
call fcn.1000bfa0
push 0xffffffffffffffff
push 0x1000d631
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10017114]
xor eax, ebp
mov dword [ebp + 0x1104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x1114]
mov edi, dword [ebp + 0x1110]
mov dword [ebp - 0x24], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.10006d5f
mov esi, eax
test esi, esi
js 0x10008c94
cmp byte [edi], 0x7d
je 0x10008c86
push 0x1000e39c
push edi
mov dword [ebp - 0x20], 1
call dword [sym.imp.kernel32.dll_lstrcmpiA]
neg eax
push 0x1000e384
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x28], esi
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
je 0x100087b4
test esi, esi
je 0x1000884e
mov ecx, dword [ebp - 0x10]
push edi
call fcn.10006d5f
mov esi, eax
test esi, esi
js 0x10008c86
cmp dword [ebp + 0x1118], 0
je 0x1000884e
and dword [ebp - 0x38], 0
and dword [ebp - 0x30], 0
push 0x5c
push edi
call fcn.10009a1f
pop ecx
pop ecx
test eax, eax
jne 0x10008c81
mov esi, dword [ebp - 0x10]
mov ecx, esi
push edi
call fcn.1000436e
test eax, eax
je 0x10008814
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x38]
and dword [ebp - 0x34], 0
push edi
mov dword [ebp - 0x38], eax
call fcn.10007fc2
and dword [ebp - 0x38], 0
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x28], 0
je 0x10008848
push edi
mov ecx, esi
call fcn.10006d5f
mov esi, eax
test esi, esi
js 0x10008c86
mov ecx, dword [ebp - 0x10]
push edi
call fcn.1000ccc2
mov esi, eax
test esi, esi
js 0x10008c86
and dword [ebp - 0x34], 0
jmp 0x10008a61
and dword [ebp - 0x34], 0
jmp 0x10008851
mov esi, dword [ebp - 0x10]
push 0x1000e390
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
jne 0x10008876
and dword [ebp - 0x20], eax
mov ecx, esi
push edi
call fcn.10006d5f
mov esi, eax
test esi, esi
js 0x10008c86
push 0x1000e380
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
jne 0x10008982
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.10006d5f
mov esi, eax
test esi, esi
js 0x10008c86
mov ecx, dword [ebp - 0x10]
push edi
call fcn.10006d5f
mov esi, eax
test esi, esi
js 0x10008c86
cmp byte [edi], 0x3d
jne 0x10008c81
cmp dword [ebp + 0x1118], 0
je 0x10008908
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x4c], 0
and dword [ebp - 0x48], 0
mov dword [ebp - 0x50], eax
lea eax, [ebp]
push edi
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
call fcn.1000387c
mov esi, eax
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
test esi, esi
js 0x10008c86
mov byte [ebp - 4], al
mov dword [ebp - 0x4c], eax
jmp 0x10008a61
cmp dword [ebp + 0x111c], 0
jne 0x10008967
cmp dword [ebp - 0x20], 0
je 0x10008967
xor esi, esi
lea ecx, [ebp - 0x44]
push 0x20006
push esi
push dword [ebp - 0x24]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
call fcn.1000ccc2
test eax, eax
jne 0x10008c62
mov ebx, dword [ebp - 0x44]
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x10008956
cmp eax, 2
jne 0x10008c4c
test ebx, ebx
je 0x10008964
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov ecx, dword [ebp - 0x10]
push edi
call fcn.1000ccc2
mov ebx, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
js 0x10008c89
jmp 0x10008b8a
push 0x5c
push edi
call fcn.10009a1f
pop ecx
pop ecx
test eax, eax
jne 0x10008c81
cmp dword [ebp + 0x1118], eax
je 0x10008aac
mov ebx, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
mov esi, 0x2001f
push esi
push edi
push ebx
call fcn.1000ccc2
test eax, eax
je 0x10008a25
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x1c]
call fcn.1000ccc2
test eax, eax
je 0x10008a25
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x54]
push eax
xor edx, edx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], edx
push eax
push edx
push esi
push edx
push edx
push edx
push edi
push ebx
test ecx, ecx
je 0x100089ec
call fcn.1000ccc2
jmp 0x100089f2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10008a10
cmp dword [ebp - 0x1c], eax
je 0x10008a04
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x20]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], ebx
jmp 0x10008a13
mov ebx, dword [ebp - 0x1c]
test eax, eax
je 0x10008a28
push eax
call fcn.10003f2d
pop ecx
mov esi, eax
jmp 0x10008c89
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.10006d5f
mov esi, eax
test esi, esi
js 0x10008c89
cmp byte [edi], 0x3d
jne 0x10008a5e
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push edi
push 0
push eax
call fcn.1000387c
mov ebx, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
js 0x10008c89
jmp 0x10008a61
mov ebx, dword [ebp - 0x1c]
cmp byte [edi], 0x7b
jne 0x10008b87
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008a6f
sub ecx, edx
cmp ecx, 1
jne 0x10008b87
push 0
push dword [ebp + 0x1118]
push ebx
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push edi
call fcn.10008705
mov esi, eax
test esi, esi
js 0x10008c86
push edi
mov ecx, ebx
call fcn.10006d5f
jmp 0x10008970
cmp dword [ebp + 0x111c], 0
jne 0x10008acb
push 0x20019
push edi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
call fcn.1000ccc2
mov ebx, dword [ebp - 0x1c]
jmp 0x10008ace
push 2
pop eax
xor ecx, ecx
mov dword [ebp - 0x28], eax
push 0xffffffffffffffff
inc ecx
test eax, eax
push edi
cmove ecx, dword [ebp + 0x111c]
lea eax, [ebp + 0x1000]
push 0x104
push eax
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
push eax
call fcn.10003e6b
mov ecx, dword [ebp - 0x10]
add esp, 0x14
push edi
call fcn.10006d5f
mov esi, eax
test esi, esi
js 0x10008c86
mov ecx, dword [ebp - 0x10]
push edi
call fcn.1000ccc2
mov esi, eax
test esi, esi
js 0x10008c86
cmp byte [edi], 0x7b
jne 0x10008b6e
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008b2e
sub ecx, edx
cmp ecx, 1
jne 0x10008b6e
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
push 0
push ebx
push edi
call fcn.10008705
mov esi, eax
test esi, esi
jns 0x10008b5b
cmp dword [ebp - 0x2c], 0
je 0x10008c86
mov ecx, dword [ebp - 0x10]
push edi
call fcn.10006d5f
mov esi, eax
test esi, esi
js 0x10008c86
mov eax, dword [ebp - 0x28]
cmp eax, 2
je 0x10008b87
test eax, eax
je 0x10008b9b
cmp dword [ebp + 0x111c], 0
je 0x10008c76
mov ebx, dword [ebp - 0x1c]
cmp byte [edi], 0x7d
je 0x10008c89
mov ebx, dword [ebp - 0x1c]
jmp 0x10008781
cmp dword [ebp + 0x111c], 0
je 0x10008bdb
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.1000ccc2
test eax, eax
je 0x10008bdb
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x1000]
push eax
call fcn.1000436e
test eax, eax
je 0x10008b87
cmp dword [ebp - 0x20], 0
je 0x10008b87
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10007fc2
jmp 0x10008b87
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.1000ccc2
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x28], ecx
test ebx, ebx
je 0x10008c00
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x28]
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
jmp 0x10008c03
mov ebx, dword [ebp - 0x1c]
and dword [ebp - 0x18], 0
test eax, eax
jne 0x10008a17
cmp dword [ebp - 0x20], eax
je 0x10008b8a
test ecx, ecx
jne 0x10008b8a
mov eax, dword [ebp - 0x24]
and dword [ebp - 0x5c], ecx
and dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0x1000]
push eax
call fcn.100055fb
and dword [ebp - 0x60], 0
test eax, eax
jne 0x10008a17
jmp 0x10008b8a
push eax
call fcn.10003f2d
mov esi, eax
pop ecx
test ebx, ebx
je 0x10008c86
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10008c86
push eax
call fcn.10003f2d
cmp dword [ebp - 0x44], 0
mov esi, eax
pop ecx
je 0x10008c86
push dword [ebp - 0x44]
jmp 0x10008c5a
push eax
call fcn.10003f2d
pop ecx
mov esi, eax
jmp 0x10008c86
mov esi, 0x80020009
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x10008c94
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1104]
xor ecx, ebp
call fcn.1000be75
add ebp, 0x1108
leave
ret 0x10