Function at 0x10070590
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10173067
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.10161160
mov eax, dword [0x101f0014]
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 ebx, 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 ebx
call fcn.1006f810
mov esi, eax
test esi, esi
js 0x10070eea
cmp word [ebx], 0x7d
je 0x10070eea
nop dword [eax]
push str.Delete
push ebx
mov dword [ebp - 0x2254], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x1019f678
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10070663
test edi, edi
je 0x100707a1
mov ecx, dword [ebp - 0x2264]
push ebx
call fcn.1006f810
mov esi, eax
test esi, esi
js 0x10070eea
cmp dword [ebp + 0x10], 0
je 0x100707a1
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, ebx
movzx eax, word [ebx]
test ax, ax
je 0x100706e9
mov edx, eax
cmp dx, 0x5c
je 0x100706e1
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x100706c6
jmp 0x100706e9
test ecx, ecx
jne 0x10070e28
mov esi, 0x101a6e44
nop
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10070752
add esi, 4
cmp esi, 0x101a6e74
jl 0x100706f0
mov eax, dword [ebp - 0x2268]
lea ecx, [ebp - 0x2228]
push ebx
mov dword [ebp - 0x2228], eax
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
call fcn.1006ed50
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
test edi, edi
je 0x10070793
mov edi, dword [ebp - 0x2264]
mov ecx, edi
push ebx
call fcn.1006f810
mov esi, eax
test esi, esi
js 0x10070e40
push ebx
mov ecx, edi
call fcn.1006ffc0
mov esi, eax
test esi, esi
js 0x10070e40
mov byte [ebp - 4], 0
mov dword [ebp - 0x2224], 0
jmp 0x10070b2d
mov byte [ebp - 4], 0
mov dword [ebp - 0x2224], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, dword [ebp - 0x2264]
test eax, eax
jne 0x100707cf
push ebx
mov ecx, edi
mov dword [ebp - 0x2254], eax
call fcn.1006f810
mov esi, eax
test esi, esi
js 0x10070eea
push 0x1019f690
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10070998
lea eax, [ebp - 0x2218]
mov ecx, edi
push eax
call fcn.1006f810
mov esi, eax
test esi, esi
js 0x10070eea
push ebx
mov ecx, edi
call fcn.1006f810
mov esi, eax
test esi, esi
js 0x10070eea
cmp word [ebx], 0x3d
jne 0x10070e36
cmp dword [ebp + 0x10], 0
je 0x100708c9
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, edi
mov eax, dword [ebp - 0x2268]
mov dword [ebp - 0x2234], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2234]
mov dword [ebp - 0x2230], 0
push eax
mov dword [ebp - 0x222c], 0
call fcn.1006f9d0
mov esi, eax
mov dword [ebp - 0x2234], 0
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
test esi, esi
js 0x10070e53
mov byte [ebp - 4], 0
mov dword [ebp - 0x2230], 0
jmp 0x10070b2d
cmp dword [ebp + 0x14], 0
jne 0x10070981
cmp dword [ebp - 0x2254], 0
je 0x10070981
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.1006ec80
test eax, eax
jne 0x10070e94
mov edi, dword [ebp - 0x2240]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10070958
cmp eax, 2
jne 0x10070e66
mov byte [ebp - 4], 0
test edi, edi
je 0x10070971
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2240], 0
mov edi, dword [ebp - 0x2264]
mov dword [ebp - 0x223c], 0
push ebx
mov ecx, edi
call fcn.1006ffc0
mov esi, eax
test esi, esi
js 0x10070eea
jmp 0x10070e19
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x100709c7
mov edx, eax
cmp dx, 0x5c
je 0x100709bf
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x100709a4
jmp 0x100709c7
test ecx, ecx
jne 0x10070e36
cmp dword [ebp + 0x10], 0
je 0x10070b8c
mov esi, dword [ebp - 0x2268]
lea ecx, [ebp - 0x2260]
push 0x2001f
push ebx
push esi
call fcn.1006ec80
test eax, eax
je 0x10070afa
push 0x20019
push ebx
push esi
lea ecx, [ebp - 0x2260]
call fcn.1006ec80
test eax, eax
je 0x10070afa
mov esi, dword [ebp - 0x2258]
mov dword [ebp - 0x2254], 0
test esi, esi
je 0x10070a81
cmp dword [esi], 0
je 0x10070a74
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x10070a3a
mov eax, 1
jmp 0x10070aa9
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10070a7a
push 0
push dword [esi]
lea ecx, [ebp - 0x2250]
push ecx
lea ecx, [ebp - 0x2254]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2268]
call eax
jmp 0x10070aa9
cmp dword [esi + 4], 0
jne 0x10070a81
mov eax, 1
jmp 0x10070aa9
lea eax, [ebp - 0x2250]
push eax
lea eax, [ebp - 0x2254]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2268]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10070ee1
mov ecx, dword [ebp - 0x2260]
test ecx, ecx
je 0x10070acc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2260], 0
mov edi, dword [ebp - 0x2254]
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2260], edi
mov dword [ebp - 0x225c], 0
test eax, eax
jne 0x10070ee1
mov edi, dword [ebp - 0x2264]
push ebx
mov ecx, edi
call fcn.1006f810
mov esi, eax
test esi, esi
js 0x10070eea
cmp word [ebx], 0x3d
jne 0x10070b2d
push ebx
push 0
lea eax, [ebp - 0x2260]
mov ecx, edi
push eax
call fcn.1006f9d0
mov esi, eax
test esi, esi
js 0x10070eea
cmp word [ebx], 0x7b
jne 0x10070e19
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10070b40
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x10070e19
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2260]
push ebx
call fcn.10070590
mov esi, eax
test esi, esi
js 0x10070eea
push ebx
mov ecx, edi
call fcn.1006f810
mov esi, eax
test esi, esi
js 0x10070eea
jmp 0x10070e19
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x10070bae
push 0x20019
push ebx
push dword [ebp - 0x2268]
lea ecx, [ebp - 0x2260]
call fcn.1006ec80
mov edi, eax
jmp 0x10070bb3
mov edi, 2
test edi, edi
mov ecx, 1
push 0xffffffffffffffff
mov eax, esi
cmovne eax, ecx
push ebx
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]
push eax
call fcn.1006e7f0
mov ecx, dword [ebp - 0x2264]
add esp, 0x14
push ebx
call fcn.1006f810
mov esi, eax
test esi, esi
js 0x10070eea
mov ecx, dword [ebp - 0x2264]
push ebx
call fcn.1006ffc0
mov esi, eax
test esi, esi
js 0x10070eea
cmp word [ebx], 0x7b
jne 0x10070c77
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10070c20
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x10070c77
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2264]
push 0
push dword [ebp - 0x2260]
push ebx
call fcn.10070590
mov esi, eax
test esi, esi
jns 0x10070c61
cmp dword [ebp - 0x221c], 0
je 0x10070eea
mov ecx, dword [ebp - 0x2264]
push ebx
call fcn.1006f810
mov esi, eax
test esi, esi
js 0x10070eea
cmp edi, 2
je 0x10070e19
test edi, edi
je 0x10070c95
cmp dword [ebp + 0x14], 0
jne 0x10070e19
mov ecx, edi
jmp 0x10070ee3
cmp dword [ebp + 0x14], 0
je 0x10070d27
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 0x10070d27
cmp dword [ebp - 0x221c], eax
jbe 0x10070d27
mov edi, 0x101a6e44
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10070e19
add edi, 4
cmp edi, 0x101a6e74
jl 0x10070ce1
cmp dword [ebp - 0x2254], 0
je 0x10070e19
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2260]
call fcn.1006ed50
jmp 0x10070e19
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 0x10070d60
xor edi, edi
jmp 0x10070d6c
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x2260]
xor eax, eax
test ecx, ecx
je 0x10070d87
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 0x10070ee1
cmp dword [ebp - 0x2254], eax
je 0x10070e19
test edi, edi
jne 0x10070e19
xorps xmm0, xmm0
mov dword [ebp - 0x2244], edi
movq qword [ebp - 0x224c], xmm0
mov dword [ebp - 0x224c], edi
mov dword [ebp - 0x2248], edi
mov dword [ebp - 0x2244], edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x224c]
mov eax, dword [ebp - 0x2268]
mov dword [ebp - 0x224c], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x2248], edi
mov dword [ebp - 0x2244], edi
call fcn.1006eba0
mov dword [ebp - 0x224c], edi
mov dword [ebp - 0x2248], edi
mov dword [ebp - 0x2244], edi
test eax, eax
jne 0x10070ec8
mov byte [ebp - 4], al
mov dword [ebp - 0x2248], eax
cmp word [ebx], 0x7d
jne 0x10070630
jmp 0x10070eea
mov byte [ebp - 4], 0
mov dword [ebp - 0x2224], 0
mov esi, 0x80020009
jmp 0x10070eea
mov byte [ebp - 4], 0
mov dword [ebp - 0x2224], 0
jmp 0x10070eea
mov byte [ebp - 4], 0
mov dword [ebp - 0x2230], 0
jmp 0x10070eea
mov ecx, eax
call fcn.1006e8d0
mov esi, eax
mov byte [ebp - 4], 0
test edi, edi
je 0x10070ebc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
jmp 0x10070eea
mov ecx, eax
call fcn.1006e8d0
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2240]
test eax, eax
je 0x10070ebc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
jmp 0x10070eea
mov ecx, eax
call fcn.1006e8d0
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x2248], 0
jmp 0x10070eea
mov ecx, eax
call fcn.1006e8d0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2260]
test eax, eax
je 0x10070f0c
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.101606b4
mov esp, ebp
pop ebp
ret 0x10