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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430591
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x43c034]
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
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xe0], vtable.std::_Func_impl_no_alloc_class__lambda_4bd350c91393dd107ecd8cf124607e0b___void___.0
mov dword [ebp - 0xbc], eax
push 0xd
push eax
mov dword [ebp - 4], 0
call fcn.004263b0
mov ecx, dword [ebp - 0xbc]
add esp, 8
test ecx, ecx
je 0x405383
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0xe0]
cmp ecx, eax
setne al
push eax
call edx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x4053d2
lea eax, [ebp - 0x108]
mov dword [ebp - method.std::_Func_impl_no_alloc_class__lambda_2075442e6d045c0cdca363c290d1d284___void___.virtual_0], vtable.std::_Func_impl_no_alloc_class__lambda_2075442e6d045c0cdca363c290d1d284___void___.0
mov dword [ebp - 0xe4], eax
push 5
push eax
mov dword [ebp - 4], 1
call fcn.004263b0
mov ecx, dword [ebp - 0xe4]
add esp, 8
test ecx, ecx
je 0x4053d2
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x108]
cmp ecx, eax
setne al
push eax
call edx
push 0x43269c
call fcn.004079c0
push str._Step_1__Terminate_virus_process_n
call fcn.004079c0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 2
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], vtable.std::_Func_impl_no_alloc_class__lambda_a0d19aa86e3985285a6d513657d20944___bool__struct_WinUtils::ProcessInfo_const___void__.0
mov dword [ebp - 0x6c], eax
push eax
mov byte [ebp - 4], 3
call fcn.00426010
mov ecx, dword [ebp - 0x6c]
add esp, 0xc
test al, al
mov byte [ebp - 4], 2
sete bl
test ecx, ecx
je 0x40544e
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x90]
cmp ecx, eax
setne al
push eax
call edx
test bl, bl
jne 0x405576
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
cmp esi, edi
je 0x4054da
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], vtable.std::_Func_impl_no_alloc_class__lambda_483716c7b601f0686fb24b78876b57b0___void___.0
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0x94], eax
push 9
push eax
mov byte [ebp - 4], 4
call fcn.004263b0
mov ecx, dword [ebp - 0x94]
add esp, 8
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4054bc
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0xb8]
cmp ecx, eax
setne al
push eax
call edx
push dword [esi + 0x18]
call fcn.00424f90
add esp, 4
test al, al
je 0x405576
push 0x32
call ebx
add esi, 0x1c
cmp esi, edi
jne 0x405470
push 0x4326a0
call fcn.004079c0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402b10
push 0x43269c
call fcn.004079c0
push str._Step_2__Remove_virus_directories_n
call fcn.004079c0
add esp, 8
call fcn.00406dd0
test al, al
jne 0x4055c0
push 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00426620
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x405532
mov eax, dword [eax]
push eax
push str.Error:__s_n
call fcn.004079c0
mov ecx, dword [ebp - 0x14]
add esp, 8
cmp ecx, 8
jb 0x405664
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4055b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405701
jmp 0x4055b1
push 0
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00426620
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40558e
mov eax, dword [eax]
push eax
push str.Error:__s_n
call fcn.004079c0
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00402a70
lea ecx, [ebp - 0x1c]
call fcn.00402b10
jmp 0x405664
push ecx
push edx
call fcn.00428a43
add esp, 8
jmp 0x405664
push 0x4326a0
call fcn.004079c0
push 0x43269c
call fcn.004079c0
push str._Step_3__Clean_Registry_n
call fcn.004079c0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x432a3c
lea eax, [ebp - 0x10c]
push eax
push 0x20006
push 0
push dword [esi]
push 0x80000001
call ebx
test eax, eax
jne 0x4056d5
push dword [esi + 4]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
sub eax, 0
je 0x405683
sub eax, 2
je 0x4056cb
push dword [ebp - 0x10c]
call edi
push 0
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00426620
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40564e
mov eax, dword [eax]
push eax
push str.Error:__s_n
call fcn.004079c0
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00402a70
or eax, 0xffffffff
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.00428a51
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], vtable.std::_Func_impl_no_alloc_class__lambda_24f52595d1b56bce0cc6fd63fdc12e92___void___.0
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x44], eax
push 9
push eax
mov dword [ebp - 4], 5
call fcn.004263b0
mov ecx, dword [ebp - 0x44]
add esp, 8
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x4056cb
mov edx, dword [ecx]
lea eax, [ebp - 0x68]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x44], 0
push dword [ebp - 0x10c]
call edi
jmp 0x4056de
cmp eax, 2
jne 0x405636
add esi, 8
cmp esi, 0x432a4c
jne 0x4055f2
push 0x4326a0
call fcn.004079c0
add esp, 4
xor eax, eax
jmp 0x405667
call fcn.00429ae0
int3