Function at 0x4694d0
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4faf85
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x54
mov eax, dword [0x54c040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ecx + 0x398]
test ecx, ecx
je 0x46973e
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SWindow::IsChecked_void_]
test eax, eax
je 0x469664
call fcn.0041e8c0
push 1
call dword [0x555948]
add esp, 4
call fcn.00431ab0
lea ecx, [ebp - 0x44]
lea edx, [eax + 0x124]
call fcn.00418f50
mov esi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push 0x2d
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.004197f0
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x60]
push ecx
push 0xf003f
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4695ea
cmp dword [0x555ef0], 7
mov ecx, 0x555edc
cmova ecx, dword [0x555edc]
cmp dword [esi + 0x14], 7
jbe 0x4695c1
mov esi, dword [esi]
mov eax, dword [0x555eec]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push esi
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x60]
test eax, eax
je 0x46962c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x469624
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46961a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x469792
push ecx
push edx
call fcn.004c04a1
add esp, 8
lea ecx, [ebp - 0x44]
jmp 0x469739
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x469624
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46961a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x469792
jmp 0x46961a
call fcn.0041e8c0
push 0
call dword [0x555948]
add esp, 4
call fcn.00431ab0
lea ecx, [ebp - 0x5c]
lea edx, [eax + 0x124]
call fcn.00418f50
mov esi, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push 0x2d
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.004197f0
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x60]
push ecx
push 0xf003f
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x469700
cmp dword [esi + 0x14], 7
jbe 0x4696e9
mov esi, dword [esi]
push esi
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x60]
test eax, eax
je 0x46975b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x469736
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46972c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46978d
push ecx
push edx
call fcn.004c04a1
add esp, 8
lea ecx, [ebp - 0x5c]
call fcn.004177f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c048e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x469736
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46972c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46972c
call fcn.004cfc7c
call fcn.004cfc7c
int3