Function at 0x475f80
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 0x50e705
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x54
mov eax, dword [0x566040]
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 0x4761ee
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SWindow::IsChecked_void_]
test eax, eax
je 0x476114
call fcn.0041ce30
push 1
call dword [0x571378]
add esp, 4
call fcn.004341c0
lea ecx, [ebp - 0x44]
lea edx, [eax + 0x124]
call fcn.00416570
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.00416e10
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 0x47609a
cmp dword [0x571bcc], 7
mov ecx, 0x571bb8
cmova ecx, dword [0x571bb8]
cmp dword [esi + 0x14], 7
jbe 0x476071
mov esi, dword [esi]
mov eax, dword [0x571bc8]
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 0x4760dc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x4760d4
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4760ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476242
push ecx
push edx
call fcn.004d37a1
add esp, 8
lea ecx, [ebp - 0x44]
jmp 0x4761e9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x4760d4
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4760ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476242
jmp 0x4760ca
call fcn.0041ce30
push 0
call dword [0x571378]
add esp, 4
call fcn.004341c0
lea ecx, [ebp - 0x5c]
lea edx, [eax + 0x124]
call fcn.00416570
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.00416e10
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 0x4761b0
cmp dword [esi + 0x14], 7
jbe 0x476199
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 0x47620b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x4761e6
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4761dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47623d
push ecx
push edx
call fcn.004d37a1
add esp, 8
lea ecx, [ebp - 0x5c]
call fcn.00415000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d378e
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 0x4761e6
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4761dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4761dc
call fcn.004e2f6c
call fcn.004e2f6c
int3