Function at 0x1009ef80
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2244
call fcn.10212f90
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
mov dword [ebp - 0x2218], ecx
mov dword [ebp - 0x2214], eax
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
mov dword [ebp - 0x221c], 0
call fcn.1009e500
mov esi, eax
test esi, esi
js 0x1009f90f
cmp word [ebx], 0x7d
push edi
je 0x1009f8fb
jmp 0x1009eff0
push str.Delete
push ebx
mov dword [ebp - 0x2228], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x102263c8
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1009f023
test edi, edi
je 0x1009f125
mov ecx, dword [ebp - 0x2218]
push ebx
call fcn.1009e500
mov esi, eax
test esi, esi
js 0x1009f8fb
cmp dword [ebp + 0x10], 0
je 0x1009f125
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2238], 0
mov dword [ebp - 0x2230], 0
test ax, ax
je 0x1009f084
cmp ax, 0x5c
je 0x1009f07c
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x1009f061
jmp 0x1009f084
test edx, edx
jne 0x1009f8e4
mov esi, 0x10226404
lea esp, [esp]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1009f0de
add esi, 4
cmp esi, 0x10226434
jl 0x1009f090
mov eax, dword [ebp - 0x2214]
lea ecx, [ebp - 0x2238]
push ebx
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], 0
call fcn.1009eac0
mov dword [ebp - 0x2238], 0
mov dword [ebp - 0x2230], 0
test edi, edi
je 0x1009f11b
mov edi, dword [ebp - 0x2218]
mov ecx, edi
push ebx
call fcn.1009e500
mov esi, eax
test esi, esi
js 0x1009f8fb
push ebx
mov ecx, edi
call fcn.1009f930
mov esi, eax
test esi, esi
js 0x1009f8fb
mov dword [ebp - 0x2234], 0
jmp 0x1009f533
mov dword [ebp - 0x2234], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1009f155
mov ecx, dword [ebp - 0x2218]
xor edi, edi
push ebx
mov dword [ebp - 0x2228], edi
call fcn.1009e500
mov esi, eax
test esi, esi
js 0x1009f8fb
jmp 0x1009f15b
mov edi, dword [ebp - 0x2228]
push 0x102263c0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1009f299
mov ecx, dword [ebp - 0x2218]
lea eax, [ebp - 0x220c]
push eax
call fcn.1009e500
mov esi, eax
test esi, esi
js 0x1009f8fb
mov ecx, dword [ebp - 0x2218]
push ebx
call fcn.1009e500
mov esi, eax
test esi, esi
js 0x1009f8fb
cmp word [ebx], 0x3d
jne 0x1009f8e4
cmp dword [ebp + 0x10], 0
je 0x1009f21a
mov eax, dword [ebp - 0x2214]
mov edi, dword [ebp - 0x2218]
mov ecx, edi
mov dword [ebp - 0x2244], eax
lea eax, [ebp - 0x220c]
push ebx
push eax
lea eax, [ebp - 0x2244]
mov dword [ebp - 0x2240], 0
push eax
mov dword [ebp - 0x223c], 0
call fcn.1009dda0
mov esi, eax
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test esi, esi
js 0x1009f8fb
mov dword [ebp - 0x2240], 0
jmp 0x1009f533
cmp dword [ebp + 0x14], 0
jne 0x1009f27e
test edi, edi
je 0x1009f27e
lea eax, [ebp - 0x2228]
mov dword [ebp - 0x2228], 0
push eax
push 0x20006
push 0
push 0
push dword [ebp - 0x2214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009f8f0
mov edi, dword [ebp - 0x2228]
lea eax, [ebp - 0x220c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1009f273
cmp eax, 2
jne 0x1009f8cc
test edi, edi
je 0x1009f27e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2218]
push ebx
call fcn.1009f930
mov esi, eax
test esi, esi
js 0x1009f8fb
jmp 0x1009f8c0
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x1009f2c6
mov edx, ecx
cmp dx, 0x5c
je 0x1009f2be
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x1009f2a5
jmp 0x1009f2c6
test eax, eax
jne 0x1009f8e4
cmp dword [ebp + 0x10], 0
je 0x1009f58e
mov esi, dword [ebp - 0x221c]
mov dword [ebp - 0x2210], 0
test esi, esi
je 0x1009f336
cmp dword [esi], 0
je 0x1009f329
push 0x10219e10
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1009f386
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1009f32f
push 0
push dword [esi]
lea ecx, [ebp - 0x2210]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2214]
call eax
jmp 0x1009f351
cmp dword [esi + 4], 0
jne 0x1009f336
mov eax, 1
jmp 0x1009f351
lea eax, [ebp - 0x2210]
push eax
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009f386
mov ecx, dword [ebp - 0x2224]
test ecx, ecx
je 0x1009f366
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x2210]
mov dword [ebp - 0x2224], edi
mov dword [ebp - 0x2220], 0
test eax, eax
je 0x1009f4fa
jmp 0x1009f38c
mov edi, dword [ebp - 0x2224]
mov dword [ebp - 0x2210], 0
test esi, esi
je 0x1009f3ec
cmp dword [esi], 0
je 0x1009f3df
push 0x10219e10
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1009f434
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1009f3e5
push 0
push dword [esi]
lea ecx, [ebp - 0x2210]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2214]
call eax
jmp 0x1009f407
cmp dword [esi + 4], 0
jne 0x1009f3ec
mov eax, 1
jmp 0x1009f407
lea eax, [ebp - 0x2210]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x2214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009f434
test edi, edi
je 0x1009f416
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x2210]
mov dword [ebp - 0x2224], edi
mov dword [ebp - 0x2220], 0
test eax, eax
je 0x1009f4fa
mov dword [ebp - 0x2210], 0
test esi, esi
je 0x1009f4a1
cmp dword [esi], 0
je 0x1009f494
push 0x10219e10
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1009f8eb
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1009f49a
push 0
push dword [esi]
lea ecx, [ebp - 0x222c]
push ecx
lea ecx, [ebp - 0x2210]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2214]
call eax
jmp 0x1009f4c9
cmp dword [esi + 4], 0
jne 0x1009f4a1
mov eax, 1
jmp 0x1009f4c9
lea eax, [ebp - 0x222c]
push eax
lea eax, [ebp - 0x2210]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2214]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1009f8f0
test edi, edi
je 0x1009f4dc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x2210]
mov dword [ebp - 0x2224], edi
mov dword [ebp - 0x2220], 0
test eax, eax
jne 0x1009f8f0
mov edi, dword [ebp - 0x2218]
mov ecx, edi
push ebx
call fcn.1009e500
mov esi, eax
test esi, esi
js 0x1009f8fb
cmp word [ebx], 0x3d
jne 0x1009f533
push ebx
push 0
lea eax, [ebp - 0x2224]
mov ecx, edi
push eax
call fcn.1009dda0
mov esi, eax
test esi, esi
js 0x1009f8fb
cmp word [ebx], 0x7b
jne 0x1009f8c0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1009f542
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x1009f8c0
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2224]
push ebx
call fcn.1009ef80
mov esi, eax
test esi, esi
js 0x1009f8fb
push ebx
mov ecx, edi
call fcn.1009e500
mov esi, eax
test esi, esi
js 0x1009f8fb
jmp 0x1009f8c0
cmp dword [ebp + 0x14], 0
jne 0x1009f65b
mov esi, dword [ebp - 0x221c]
mov dword [ebp - 0x2210], 0
test esi, esi
je 0x1009f602
cmp dword [esi], 0
je 0x1009f5f5
push 0x10219e10
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x1009f5c8
lea edi, [eax + 1]
jmp 0x1009f64c
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1009f5fb
push 0
push dword [esi]
lea ecx, [ebp - 0x2210]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2214]
call eax
jmp 0x1009f61d
cmp dword [esi + 4], 0
jne 0x1009f602
mov edi, 1
jmp 0x1009f61f
lea eax, [ebp - 0x2210]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x2214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x1009f64c
mov eax, dword [ebp - 0x2224]
test eax, eax
je 0x1009f636
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov eax, dword [ebp - 0x2210]
mov dword [ebp - 0x2224], eax
mov dword [ebp - 0x2220], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2210], eax
test edi, edi
je 0x1009f66a
jmp 0x1009f660
mov edi, 2
mov dword [ebp - 0x2210], 1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1020ed30
push eax
call fcn.100049d0
mov ecx, dword [ebp - 0x2218]
add esp, 0x14
push ebx
call fcn.1009e500
mov esi, eax
test esi, esi
js 0x1009f8fb
mov ecx, dword [ebp - 0x2218]
push ebx
call fcn.1009f930
mov esi, eax
test esi, esi
js 0x1009f8fb
cmp word [ebx], 0x7b
jne 0x1009f717
mov ecx, ebx
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1009f6c0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x1009f717
push dword [ebp - 0x2210]
mov ecx, dword [ebp - 0x2218]
push 0
push dword [ebp - 0x2224]
push ebx
call fcn.1009ef80
mov esi, eax
test esi, esi
jns 0x1009f701
cmp dword [ebp - 0x2210], 0
je 0x1009f8fb
mov ecx, dword [ebp - 0x2218]
push ebx
call fcn.1009e500
mov esi, eax
test esi, esi
js 0x1009f8fb
cmp edi, 2
je 0x1009f8c0
test edi, edi
je 0x1009f734
cmp dword [ebp + 0x14], 0
jne 0x1009f8c0
push edi
jmp 0x1009f8f1
cmp dword [ebp + 0x14], 0
je 0x1009f7c6
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2210]
mov dword [ebp - 0x2210], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1009f7c6
cmp dword [ebp - 0x2210], eax
jbe 0x1009f7c6
mov edi, 0x10226404
push dword [edi]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1009f8c0
add edi, 4
cmp edi, 0x10226434
jl 0x1009f780
cmp dword [ebp - 0x2228], 0
je 0x1009f8c0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x2224]
call fcn.1009eac0
jmp 0x1009f8c0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2210]
mov dword [ebp - 0x2210], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1009f7ff
xor edi, edi
jmp 0x1009f80b
xor eax, eax
cmp eax, dword [ebp - 0x2210]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x2224]
xor eax, eax
test ecx, ecx
je 0x1009f826
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2224], ecx
mov dword [ebp - 0x2220], 0
test eax, eax
jne 0x1009f8f0
cmp dword [ebp - 0x2228], eax
je 0x1009f8c0
test edi, edi
jne 0x1009f8c0
cmp byte [0x10256b2c], al
jne 0x1009f88b
push 0x10219e10
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1009f87d
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10256b28], eax
mov byte [0x10256b2c], 1
jmp 0x1009f890
mov eax, dword [0x10256b28]
mov byte [0x10256b2c], 1
jmp 0x1009f890
mov eax, dword [0x10256b28]
test eax, eax
je 0x1009f8a9
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
push dword [ebp - 0x2214]
call eax
jmp 0x1009f8bc
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x2214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1009f8f0
cmp word [ebx], 0x7d
jne 0x1009eff0
jmp 0x1009f8fb
push eax
call fcn.1009e320
add esp, 4
mov esi, eax
test edi, edi
je 0x1009f8fb
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1009f8fb
mov esi, 0x80020009
jmp 0x1009f8fb
mov eax, 1
push eax
call fcn.1009e320
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2224]
pop edi
test eax, eax
je 0x1009f90d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret 0x10