Function at 0x10006630
Capabilities:
Delete registry key
Delete registry value
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000c5ab
mov eax, dword fs:[0]
push eax
mov eax, 0x2248
call fcn.1000b130
mov eax, dword [0x10015540]
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 dword [ebp - 0x2224], ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2220], eax
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
push ebx
mov dword [ebp - 4], 0
call fcn.100055d0
mov esi, eax
test esi, esi
js 0x10007012
cmp word [ebx], 0x7d
je 0x10006fff
nop dword [eax]
push str.Delete
push ebx
mov dword [ebp - 0x2238], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x1000e390
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100066f0
test edi, edi
jne 0x100067ff
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.100055d0
mov esi, eax
test esi, esi
js 0x10006fff
cmp dword [ebp + 0x10], 0
je 0x100067ff
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test ax, ax
je 0x10006753
nop
cmp ax, 0x5c
je 0x1000674b
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x10006730
jmp 0x10006753
test edx, edx
jne 0x10006fed
mov esi, 0x1000e3cc
nop dword [eax + eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100067b8
add esi, 4
cmp esi, 0x1000e3fc
jl 0x10006760
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2244]
push ebx
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
call fcn.10006100
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test edi, edi
jne 0x100067f5
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.100055d0
mov esi, eax
test esi, esi
js 0x10006fff
push ebx
mov ecx, edi
call fcn.10007310
mov esi, eax
test esi, esi
js 0x10006fff
mov dword [ebp - 0x2240], 0
jmp 0x10006c29
mov dword [ebp - 0x2240], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000682f
mov ecx, dword [ebp - 0x2224]
xor edi, edi
push ebx
mov dword [ebp - 0x2238], edi
call fcn.100055d0
mov esi, eax
test esi, esi
js 0x10006fff
jmp 0x10006835
mov edi, dword [ebp - 0x2238]
push 0x1000e388
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10006985
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
push eax
call fcn.100055d0
mov esi, eax
test esi, esi
js 0x10006fff
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.100055d0
mov esi, eax
test esi, esi
js 0x10006fff
cmp word [ebx], 0x3d
jne 0x10006fed
cmp dword [ebp + 0x10], 0
je 0x10006906
mov eax, dword [ebp - 0x2220]
mov edi, dword [ebp - 0x2224]
mov ecx, edi
mov dword [ebp - 0x2254], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2254]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
call fcn.100027b0
mov esi, eax
mov dword [ebp - 0x2254], 0
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
test esi, esi
js 0x10006fff
mov byte [ebp - 4], 0
mov dword [ebp - 0x2250], 0
jmp 0x10006c29
cmp dword [ebp + 0x14], 0
jne 0x1000696a
test edi, edi
je 0x1000696a
lea eax, [ebp - 0x2238]
mov dword [ebp - 0x2238], 0
push eax
push 0x20006
push 0
push 0
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10006ff4
mov edi, dword [ebp - 0x2238]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1000695f
cmp eax, 2
jne 0x10006fd5
test edi, edi
je 0x1000696a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.10007310
mov esi, eax
test esi, esi
js 0x10006fff
jmp 0x10006fc9
movzx eax, word [ebx]
mov edx, ebx
test ax, ax
je 0x100069b3
nop
cmp ax, 0x5c
je 0x100069ab
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x10006990
jmp 0x100069b3
test edx, edx
jne 0x10006fed
cmp dword [ebp + 0x10], 0
je 0x10006c8c
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x10006a26
cmp dword [esi], 0
je 0x10006a19
push 0x1000e8c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x100069ec
mov eax, 1
jmp 0x10006a41
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10006a1f
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x10006a41
cmp dword [esi + 4], 0
jne 0x10006a26
mov eax, 1
jmp 0x10006a41
lea eax, [ebp - 0x221c]
push eax
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10006a76
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x10006a56
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
test eax, eax
je 0x10006bf0
jmp 0x10006a7c
mov edi, dword [ebp - 0x2230]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x10006adf
cmp dword [esi], 0
je 0x10006ad2
push 0x1000e8c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x10006aa5
mov eax, 1
jmp 0x10006afa
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10006ad8
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x10006afa
cmp dword [esi + 4], 0
jne 0x10006adf
mov eax, 1
jmp 0x10006afa
lea eax, [ebp - 0x221c]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10006b27
test edi, edi
je 0x10006b09
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
test eax, eax
je 0x10006bf0
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x10006b97
cmp dword [esi], 0
je 0x10006b8a
push 0x1000e8c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x10006b50
mov eax, 1
jmp 0x10006bbf
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10006b90
push 0
push dword [esi]
lea ecx, [ebp - 0x2248]
push ecx
lea ecx, [ebp - 0x221c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x10006bbf
cmp dword [esi + 4], 0
jne 0x10006b97
mov eax, 1
jmp 0x10006bbf
lea eax, [ebp - 0x2248]
push eax
lea eax, [ebp - 0x221c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10006ff4
test edi, edi
je 0x10006bd2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], 0
test eax, eax
jne 0x10006ff4
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.100055d0
mov esi, eax
test esi, esi
js 0x10006fff
cmp word [ebx], 0x3d
jne 0x10006c29
push ebx
push 0
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
call fcn.100027b0
mov esi, eax
test esi, esi
js 0x10006fff
cmp word [ebx], 0x7b
jne 0x10006fc9
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006c40
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x10006fc9
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2230]
push ebx
call fcn.10006630
mov esi, eax
test esi, esi
js 0x10006fff
push ebx
mov ecx, edi
call fcn.100055d0
mov esi, eax
test esi, esi
js 0x10006fff
jmp 0x10006fc9
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x10006d48
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], eax
test esi, esi
je 0x10006cf9
cmp dword [esi], eax
je 0x10006cec
push 0x1000e8c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x10006cbf
lea edi, [eax + 1]
jmp 0x10006d16
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10006cf2
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x10006d14
cmp dword [esi + 4], 0
jne 0x10006cf9
mov edi, 1
jmp 0x10006d16
lea eax, [ebp - 0x221c]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x10006d43
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x10006d2d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov eax, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], 0
mov eax, dword [ebp + 0x14]
jmp 0x10006d4d
mov edi, 2
mov esi, dword [ebp - 0x2234]
test edi, edi
push 0xffffffffffffffff
mov ebx, 1
push esi
cmove ebx, eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
push eax
call fcn.10002da0
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push esi
call fcn.100055d0
mov esi, eax
test esi, esi
js 0x10006fff
push dword [ebp - 0x2234]
mov ecx, dword [ebp - 0x2224]
call fcn.10007310
mov esi, eax
test esi, esi
js 0x10006fff
mov eax, dword [ebp - 0x2234]
cmp word [eax], 0x7b
jne 0x10006e22
mov ecx, eax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006dc0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x10006e1a
mov ecx, dword [ebp - 0x2224]
push ebx
push 0
push dword [ebp - 0x2230]
push dword [ebp - 0x2234]
call fcn.10006630
mov esi, eax
test esi, esi
jns 0x10006dfc
test ebx, ebx
je 0x10006fff
mov ebx, dword [ebp - 0x2234]
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.100055d0
mov esi, eax
test esi, esi
js 0x10006fff
jmp 0x10006e24
mov ebx, dword [ebp - 0x2234]
jmp 0x10006e24
mov ebx, eax
cmp edi, 2
je 0x10006fc9
test edi, edi
je 0x10006e41
cmp dword [ebp + 0x14], 0
jne 0x10006fc9
push edi
jmp 0x10006ff5
cmp dword [ebp + 0x14], 0
je 0x10006ed7
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 - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10006ed7
cmp eax, dword [ebp - 0x221c]
sbb eax, eax
neg eax
je 0x10006ed7
mov edi, 0x1000e3cc
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10006fc9
add edi, 4
cmp edi, 0x1000e3fc
jl 0x10006e91
cmp dword [ebp - 0x2238], 0
je 0x10006fc9
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.10006100
jmp 0x10006fc9
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 - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x10006f10
xor edi, edi
jmp 0x10006f1c
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x2230]
xor eax, eax
test ecx, ecx
je 0x10006f37
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], 0
test eax, eax
jne 0x10006ff4
cmp dword [ebp - 0x2238], eax
je 0x10006fc9
test edi, edi
jne 0x10006fc9
cmp byte [0x10016d78], al
jne 0x10006f94
push 0x1000e8c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10006f86
push 0x1000e350
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10016d74], eax
mov byte [0x10016d78], 1
jmp 0x10006f99
mov eax, dword [0x10016d74]
mov byte [0x10016d78], 1
jmp 0x10006f99
mov eax, dword [0x10016d74]
test eax, eax
je 0x10006fb2
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x2220]
call eax
jmp 0x10006fc5
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x10006ff4
cmp word [ebx], 0x7d
jne 0x100066c0
jmp 0x10006fff
push eax
call fcn.10002e60
add esp, 4
mov esi, eax
test edi, edi
je 0x10006fff
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10006fff
mov esi, 0x80020009
jmp 0x10006fff
push eax
call fcn.10002e60
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x10007010
push eax
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 - 0x10]
xor ecx, ebp
call fcn.1000b113
mov esp, ebp
pop ebp
ret 0x10