Function at 0x405a50
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41a626
mov eax, dword fs:[0]
push eax
mov eax, 0x8824
call fcn.0040b4f0
mov eax, dword [0x4243c8]
xor eax, esp
mov dword [esp + 0x8820], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4243c8]
xor eax, esp
push eax
lea eax, [esp + 0x8838]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x8848]
lea eax, [esp + 0x14]
push eax
push 0xf003f
xor esi, esi
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405ca6
mov dword [esp + 0x1c], esi
push 0x7fe
lea ecx, [esp + 0x3a]
push esi
push ecx
mov word [esp + 0x40], si
call fcn.0040b3b0
push 0x7ffe
lea edx, [esp + 0x846]
push esi
push edx
mov word [esp + 0x84c], si
call fcn.0040b3b0
add esp, 0x18
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x838]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
push esi
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x48]
push ecx
push edx
push eax
mov dword [esp + 0x50], 0x400
mov dword [esp + 0x4c], 0x4000
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebp, eax
cmp ebp, esi
jne 0x405c65
mov edi, 1
cmp dword [esp + 0x18], edi
jne 0x405c65
mov edx, dword [0x4258bc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4258bc
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov edx, dword [0x4258bc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4258bc
mov dword [esp + 0x8840], esi
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
mov dword [esp + 0x8840], edi
mov dword [esp + 0x24], ecx
lea edx, [eax + 2]
jmp 0x405ba0
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405ba0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x28]
call fcn.00402860
lea eax, [esp + 0x834]
lea edx, [eax + 2]
jmp 0x405bd0
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405bd0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x838]
push eax
lea ecx, [esp + 0x30]
call fcn.00402860
mov esi, dword [ebx + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x20]
push ecx
push edx
push esi
mov ecx, ebx
call fcn.00404390
push 1
mov ecx, ebx
mov edi, eax
call fcn.00404430
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x8840], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor esi, esi
add dword [esp + 0x1c], 1
cmp ebp, 0x103
je 0x405c7b
cmp ebp, 0x57
jne 0x405ac3
mov ecx, dword [ebx + 4]
mov esi, dword [ecx]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp esi, dword [ebx + 4]
je 0x405ca4
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x14]
push edx
push eax
call edi
cmp esi, dword [ebx + 4]
jne 0x405ca0
call fcn.0040b753
mov esi, dword [esi]
jmp 0x405c86
xor esi, esi
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x405cb5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x8838]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8820]
xor ecx, esp
call fcn.0040b399
add esp, 0x8830
ret