Function at 0x4069b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 1
xor ebx, ebx
push ebx
push str.SoftwareL0phtL0phtCrack
push 0x80000001
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406a39
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
push ebx
push ebx
push str.AdminGroupName
push eax
mov dword [esp + 0x30], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406a6b
mov ecx, dword [str.Administrators]
mov edx, dword [0x449290]
mov eax, dword [0x449294]
mov dword [esp + 0x30], ecx
mov cx, word [0x449298]
mov dword [esp + 0x34], edx
mov dl, byte [0x44929a]
mov dword [esp + 0x38], eax
mov word [esp + 0x3c], cx
mov byte [esp + 0x3e], dl
jmp 0x406a6b
mov eax, dword [str.Administrators]
mov ecx, dword [0x449290]
mov edx, dword [0x449294]
mov dword [esp + 0x30], eax
mov ax, word [0x449298]
mov dword [esp + 0x34], ecx
mov cl, byte [0x44929a]
mov dword [esp + 0x38], edx
mov word [esp + 0x3c], ax
mov byte [esp + 0x3e], cl
push 0x60009
lea edx, [esp + 0x34]
push edx
push 0x10000000
push str.SYSTEM
lea eax, [esp + 0x2c]
push 2
push eax
call fcn.004060d0
add esp, 0x18
test eax, eax
jne 0x406aa0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
mov ecx, 8
mov esi, str.SECURITYSAMDomainsAccountUsers
lea edi, [esp + 0xb0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [esp + 0xb0]
push 0x5c
push ecx
movsb byte es:[edi], byte [esi]
call fcn.0040de50
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
mov edi, eax
test edi, edi
je 0x406ad9
mov byte [edi], 0
jmp 0x406ae1
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x134]
lea edx, [esp + 0x10]
push edx
push 0x40000
push 0
lea eax, [esp + 0xbc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x406b57
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
mov esi, eax
test esi, esi
jne 0x406bc1
mov ecx, dword [esp + 0x10]
push ecx
mov ebx, 1
call ebp
test edi, edi
je 0x406b46
mov byte [edi], 0x5c
push 0x5c
inc edi
push edi
call fcn.0040de50
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x406c32
jmp 0x406ad0
mov eax, dword [0x44e674]
test eax, eax
je 0x406b67
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov esi, dword [esp + 0x14]
mov ecx, dword [0x550b80]
neg eax
sbb eax, eax
and eax, esi
push eax
mov dword [0x44e674], eax
lea eax, [esp + 0xb4]
push eax
push str.set_sam_tree_access:Failed_to_open_key__s_to_set_security._Error_was__s._n
push ecx
call fcn.0040d480
add esp, 0x10
mov eax, ebx
neg eax
sbb eax, eax
dec eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
mov eax, dword [0x44e674]
test eax, eax
je 0x406bd1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edi, dword [esp + 0x14]
mov ecx, dword [0x550b80]
neg eax
sbb eax, eax
and eax, edi
push eax
mov dword [0x44e674], eax
lea eax, [esp + 0xb4]
push eax
push str.set_sam_tree_access:_Failed_to_set_security_on_key__s._Error_was__s._n
push ecx
call fcn.0040d480
mov edx, dword [esp + 0x20]
add esp, 0x10
push edx
call ebp
mov eax, ebx
neg eax
sbb eax, eax
dec eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xb8]
push edx
push eax
call fcn.004064c0
add esp, 0x10
test eax, eax
je 0x406c68
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
mov eax, dword [esp + 0x138]
test eax, eax
jne 0x406c87
mov ecx, dword [esp + 0x10]
push ecx
call ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
mov edx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [eax], edx
xor eax, eax
pop ebx
add esp, 0x120
ret