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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001411c
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.10013800
mov eax, dword [0x1001e02c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2264], eax
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
movq qword [ebp - 0x2260], xmm0
mov dword [ebp - 0x2260], 0
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2268], ecx
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
mov dword [ebp - 4], 0
mov ecx, eax
push edi
call fcn.10004e30
mov esi, eax
test esi, esi
js 0x10005982
cmp word [edi], 0x7d
je 0x10005982
nop dword [eax]
push str.Delete
push edi
mov dword [ebp - 0x2254], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10005093
test ebx, ebx
je 0x100051d1
mov ecx, dword [ebp - 0x2264]
push edi
call fcn.10004e30
mov esi, eax
test esi, esi
js 0x10005982
cmp dword [ebp + 0x10], 0
je 0x100051d1
xorps xmm0, xmm0
mov dword [ebp - 0x2220], 0
movq qword [ebp - 0x2228], xmm0
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
mov byte [ebp - 4], 1
mov ecx, edi
movzx eax, word [edi]
test ax, ax
je 0x10005119
mov edx, eax
cmp dx, 0x5c
je 0x10005111
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x100050f6
jmp 0x10005119
test ecx, ecx
jne 0x100058d7
mov esi, 0x100193d8
nop
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10005182
add esi, 4
cmp esi, str.RegOpenKeyTransactedW
jl 0x10005120
mov eax, dword [ebp - 0x2268]
lea ecx, [ebp - 0x2228]
push edi
mov dword [ebp - 0x2228], eax
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
call fcn.10004b80
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
test ebx, ebx
je 0x100051c3
mov ebx, dword [ebp - 0x2264]
mov ecx, ebx
push edi
call fcn.10004e30
mov esi, eax
test esi, esi
js 0x100058ef
push edi
mov ecx, ebx
call fcn.10004a10
mov esi, eax
test esi, esi
js 0x100058ef
mov byte [ebp - 4], 0
mov dword [ebp - 0x2224], 0
jmp 0x10005564
mov byte [ebp - 4], 0
mov dword [ebp - 0x2224], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x2264]
test eax, eax
jne 0x100051ff
push edi
mov ecx, ebx
mov dword [ebp - 0x2254], eax
call fcn.10004e30
mov esi, eax
test esi, esi
js 0x10005982
push 0x100192cc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100053c8
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.10004e30
mov esi, eax
test esi, esi
js 0x10005982
push edi
mov ecx, ebx
call fcn.10004e30
mov esi, eax
test esi, esi
js 0x10005982
cmp word [edi], 0x3d
jne 0x100058e5
cmp dword [ebp + 0x10], 0
je 0x100052f9
xorps xmm0, xmm0
mov dword [ebp - 0x222c], 0
movq qword [ebp - 0x2234], xmm0
mov dword [ebp - 0x2234], 0
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov byte [ebp - 4], 2
mov ecx, ebx
mov eax, dword [ebp - 0x2268]
mov dword [ebp - 0x2234], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2234]
mov dword [ebp - 0x2230], 0
push eax
mov dword [ebp - 0x222c], 0
call fcn.10004360
mov esi, eax
mov dword [ebp - 0x2234], 0
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
test esi, esi
js 0x10005902
mov byte [ebp - 4], 0
mov dword [ebp - 0x2230], 0
jmp 0x10005564
cmp dword [ebp + 0x14], 0
jne 0x100053b1
cmp dword [ebp - 0x2254], 0
je 0x100053b1
xorps xmm0, xmm0
mov dword [ebp - 0x2238], 0
movq qword [ebp - 0x2240], xmm0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2240]
push 0x20006
push 0
push dword [ebp - 0x2268]
call fcn.10004a90
test eax, eax
jne 0x10005940
mov ebx, dword [ebp - 0x2240]
lea eax, [ebp - 0x2218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10005388
cmp eax, 2
jne 0x10005912
mov byte [ebp - 4], 0
test ebx, ebx
je 0x100053a1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2240], 0
mov ebx, dword [ebp - 0x2264]
mov dword [ebp - 0x223c], 0
push edi
mov ecx, ebx
call fcn.10004a10
mov esi, eax
test esi, esi
js 0x10005982
jmp 0x100058c8
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x100053f7
mov edx, eax
cmp dx, 0x5c
je 0x100053ef
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x100053d4
jmp 0x100053f7
test ecx, ecx
jne 0x100058e5
cmp dword [ebp + 0x10], 0
je 0x100055bf
mov esi, dword [ebp - 0x2268]
lea ecx, [ebp - 0x2260]
push 0x2001f
push edi
push esi
call fcn.10004a90
test eax, eax
je 0x10005531
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2260]
call fcn.10004a90
test eax, eax
je 0x10005531
mov esi, dword [ebp - 0x2258]
mov dword [ebp - 0x2254], 0
test esi, esi
je 0x100054b8
cmp dword [esi], 0
je 0x100054ab
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10005974
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x100054b1
push 0
push dword [esi]
lea eax, [ebp - 0x2250]
mov ecx, ebx
push eax
lea eax, [ebp - 0x2254]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x2268]
call dword [0x1001729c]
call ebx
jmp 0x100054e0
cmp dword [esi + 4], 0
jne 0x100054b8
mov eax, 1
jmp 0x100054e0
lea eax, [ebp - 0x2250]
push eax
lea eax, [ebp - 0x2254]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x2268]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10005979
mov ecx, dword [ebp - 0x2260]
test ecx, ecx
je 0x10005503
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2260], 0
mov ecx, dword [ebp - 0x2254]
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2260], ecx
mov dword [ebp - 0x225c], 0
test eax, eax
jne 0x10005979
mov ebx, dword [ebp - 0x2264]
push edi
mov ecx, ebx
call fcn.10004e30
mov esi, eax
test esi, esi
js 0x10005982
cmp word [edi], 0x3d
jne 0x10005564
push edi
push 0
lea eax, [ebp - 0x2260]
mov ecx, ebx
push eax
call fcn.10004360
mov esi, eax
test esi, esi
js 0x10005982
cmp word [edi], 0x7b
jne 0x100058c8
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005573
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x100058c8
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2260]
push edi
call fcn.10004fc0
mov esi, eax
test esi, esi
js 0x10005982
push edi
mov ecx, ebx
call fcn.10004e30
mov esi, eax
test esi, esi
js 0x10005982
jmp 0x100058c8
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x100055e1
push 0x20019
push edi
push dword [ebp - 0x2268]
lea ecx, [ebp - 0x2260]
call fcn.10004a90
mov ebx, eax
jmp 0x100055e6
mov ebx, 2
test ebx, ebx
mov eax, 1
push 0xffffffffffffffff
cmove eax, esi
push edi
mov dword [ebp - 0x221c], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
mov ecx, eax
call fcn.10004970
mov ecx, dword [ebp - 0x2264]
push edi
call fcn.10004e30
mov esi, eax
test esi, esi
js 0x10005982
mov ecx, dword [ebp - 0x2264]
push edi
call fcn.10004a10
mov esi, eax
test esi, esi
js 0x10005982
cmp word [edi], 0x7b
jne 0x100056a7
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005650
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x100056a7
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2264]
push 0
push dword [ebp - 0x2260]
push edi
call fcn.10004fc0
mov esi, eax
test esi, esi
jns 0x10005691
cmp dword [ebp - 0x221c], 0
je 0x10005982
mov ecx, dword [ebp - 0x2264]
push edi
call fcn.10004e30
mov esi, eax
test esi, esi
js 0x10005982
cmp ebx, 2
je 0x100058c8
test ebx, ebx
je 0x100056c5
cmp dword [ebp + 0x14], 0
jne 0x100058c8
mov ecx, ebx
jmp 0x1000597b
cmp dword [ebp + 0x14], 0
je 0x1000575b
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2260]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1000575b
cmp eax, dword [ebp - 0x221c]
sbb eax, eax
neg eax
je 0x1000575b
mov ebx, 0x100193d8
push dword [ebx]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100058c8
add ebx, 4
cmp ebx, str.RegOpenKeyTransactedW
jl 0x10005715
cmp dword [ebp - 0x2254], 0
je 0x100058c8
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2260]
call fcn.10004b80
jmp 0x100058c8
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2260]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x10005794
xor ebx, ebx
jmp 0x100057a0
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb ebx, ebx
neg ebx
mov ecx, dword [ebp - 0x2260]
xor eax, eax
test ecx, ecx
je 0x100057bb
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2260], ecx
mov dword [ebp - 0x225c], 0
test eax, eax
jne 0x10005979
cmp dword [ebp - 0x2254], eax
je 0x100058c8
test ebx, ebx
jne 0x100058c8
xorps xmm0, xmm0
mov dword [ebp - 0x2244], ebx
movq qword [ebp - 0x224c], xmm0
mov dword [ebp - 0x224c], ebx
mov dword [ebp - 0x2248], ebx
mov dword [ebp - 0x2244], ebx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2268]
mov dword [ebp - 0x224c], eax
mov dword [ebp - 0x2248], ebx
mov dword [ebp - 0x2244], ebx
cmp byte [0x1001edc0], bl
jne 0x1000586f
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000585a
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov byte [0x1001edc0], 1
mov eax, dword [ebp - 0x2268]
mov dword [0x1001edbc], ebx
jmp 0x10005875
mov ebx, dword [0x1001edbc]
mov eax, dword [ebp - 0x2268]
mov byte [0x1001edc0], 1
jmp 0x10005875
mov ebx, dword [0x1001edbc]
lea ecx, [ebp - 0x218]
test ebx, ebx
je 0x10005891
push 0
push 0
push ecx
push eax
mov ecx, ebx
call dword [0x1001729c]
call ebx
jmp 0x10005899
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
mov dword [ebp - 0x2244], 0
test eax, eax
jne 0x100059ce
mov byte [ebp - 4], al
mov dword [ebp - 0x2248], eax
cmp word [edi], 0x7d
jne 0x10005060
jmp 0x10005982
mov byte [ebp - 4], 0
mov dword [ebp - 0x2224], 0
mov esi, 0x80020009
jmp 0x10005982
mov byte [ebp - 4], 0
mov dword [ebp - 0x2224], 0
jmp 0x10005982
mov byte [ebp - 4], 0
mov dword [ebp - 0x2230], 0
jmp 0x10005982
mov ecx, eax
call fcn.10004e20
mov esi, eax
mov byte [ebp - 4], 0
test ebx, ebx
je 0x10005968
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
jmp 0x10005982
mov ecx, eax
call fcn.10004e20
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2240]
test eax, eax
je 0x10005968
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
jmp 0x10005982
mov eax, 1
mov ecx, eax
call fcn.10004e20
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2260]
test eax, eax
je 0x100059a4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2260], 0
mov eax, esi
mov dword [ebp - 0x225c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10010b00
mov esp, ebp
pop ebp
ret 0x10
mov ecx, eax
call fcn.10004e20
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x2248], 0
jmp 0x10005982