Function at 0x405e10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4364db
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x445040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x150], edi
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x405e4f
mov eax, dword [edi]
lea ecx, [ebp - 0x130]
push ecx
push 0x2001f
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405ea1
mov edx, 0x440580
mov ecx, 0x4464b0
call fcn.0040bb80
cmp dword [edi + 0x14], 0xf
mov ecx, dword [edi + 0x10]
jbe 0x405e87
mov edi, dword [edi]
push ecx
mov edx, edi
mov ecx, eax
call fcn.0040f810
push eax
call fcn.0040be30
add esp, 8
xor al, al
jmp 0x40616f
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push 0
push dword [ebp - 0x130]
mov dword [ebp - 0x134], eax
call eax
test eax, eax
jne 0x4060ca
nop
mov ecx, dword [edi + 0x10]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jb 0x40618f
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x405efd
mov eax, dword [edi]
push 1
push 0x4405a4
push ecx
push eax
push ecx
push dword [ebp - 0x134]
lea ecx, [ebp - 0x14c]
call fcn.0040f0e0
lea esi, [ebp - 0x110]
mov dword [ebp - 4], 0
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x405f28
mov edx, dword [ebp - 0x138]
sub esi, ecx
mov ecx, dword [ebp - 0x13c]
mov eax, edx
sub eax, ecx
push esi
cmp esi, eax
ja 0x405f83
lea eax, [esi + ecx]
cmp edx, 0xf
mov dword [ebp - 0x13c], eax
lea edi, [ebp - 0x14c]
cmova edi, dword [ebp - 0x14c]
lea eax, [ebp - 0x110]
add edi, ecx
push eax
push edi
call fcn.00414f00
mov byte [edi + esi], 0
lea eax, [ebp - 0x14c]
mov edi, dword [ebp - 0x150]
add esp, 0xc
jmp 0x405f9c
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x134]
lea ecx, [ebp - 0x14c]
push esi
call fcn.0040dbf0
xorps xmm0, xmm0
mov dword [ebp - 0x11c], 0
movups xmmword [ebp - 0x12c], xmm0
mov dword [ebp - 0x118], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x12c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x11c], xmm0
mov byte [ebp - 4], 2
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x138]
cmp ecx, 0xf
jbe 0x406020
mov edx, dword [ebp - 0x14c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406016
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40618a
push ecx
push edx
call fcn.0041377a
add esp, 8
lea edx, [ebp - 0x12c]
mov dword [ebp - 0x13c], 0
mov ecx, 0x80000001
mov dword [ebp - 0x138], 0xf
mov byte [ebp - 0x14c], 0
call fcn.00405e10
test al, al
je 0x4060fa
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x114], pe_nt_image_headers32
cmp ecx, 0xf
jbe 0x40609e
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406094
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40618a
push ecx
push edx
call fcn.0041377a
add esp, 8
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push dword [ebp - 0x130]
call dword [ebp - 0x134]
test eax, eax
je 0x405ee0
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x4060e0
mov eax, dword [edi]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x406140
mov edx, 0x4405a8
jmp 0x405e72
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x118]
cmp ecx, 0xf
jbe 0x40613c
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406132
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40618a
push ecx
push edx
call fcn.0041377a
add esp, 8
xor al, al
jmp 0x40616f
mov edx, 0x4405cc
mov ecx, 0x4462f8
call fcn.0040bb80
cmp dword [edi + 0x14], 0xf
mov ecx, dword [edi + 0x10]
jbe 0x40615a
mov edi, dword [edi]
push ecx
mov edx, edi
mov ecx, eax
call fcn.0040f810
push eax
call fcn.0040be30
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413732
mov esp, ebp
pop ebp
ret
call fcn.0041efa6
call fcn.004014e0
int3