Function at 0x140049890
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140049890
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x14007c860]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov qword [rbp + 0x3f], 0xf
xor edi, edi
mov qword [rbp + 0x37], rdi
mov byte [rbp + 0x27], dil
lea r8d, [rdi + 0x35]
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea rcx, [rbp + 0x27]
call fcn.1400017d0
nop
mov qword [rbp + 0x17], 0xf
mov qword [rbp + 0xf], rdi
mov byte [rbp - 1], dil
mov qword [rbp + 0x1f], rdi
mov qword [rbp - 9], 0xffffffff80000002
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 1]
call fcn.14000254a
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x140049984
cmp qword [rbp + 0xf], rdi
jne 0x140049950
cmp rcx, 0xffffffff80000000
jne 0x140049950
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140049984
mov qword [rbp + 0x1f], rdi
jmp 0x140049984
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 0x10
cmovae rdx, qword [rbp - 1]
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rbp + 0x1f]
test eax, eax
cmovne rcx, rdi
mov qword [rbp + 0x1f], rcx
cmp qword [rbp + 0x3f], 0x10
jb 0x140049994
mov rcx, qword [rbp + 0x27]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbp + 0x3f], 0xf
mov qword [rbp + 0x37], rdi
mov byte [rbp + 0x27], 0
mov qword [rbp - 0x11], 0xf
mov qword [rbp - 0x19], rdi
mov byte [rbp - 0x29], 0
mov r8d, 0xe
lea rdx, str.AutoAdminLogon
lea rcx, [rbp - 0x29]
call fcn.1400017d0
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x140049a05
mov dword [rbp - 0x39], edi
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rdx, qword [rbp - 0x29]
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [rbp - 0x39]
je 0x140049a07
mov eax, edi
test eax, eax
setne bl
cmp qword [rbp - 0x11], 0x10
jb 0x140049a1c
mov rcx, qword [rbp - 0x29]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
test bl, bl
je 0x140049c42
mov qword [rbp - 0x11], 0xf
mov qword [rbp - 0x19], rdi
mov byte [rbp - 0x29], 0
mov r8d, 0xe
lea rdx, str.AutoAdminLogon
lea rcx, [rbp - 0x29]
call fcn.1400017d0
nop
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.1400015b9
test rax, rax
setne bl
cmp qword [rbp - 0x11], 0x10
jb 0x140049a6e
mov rcx, qword [rbp - 0x29]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
test bl, bl
je 0x140049c42
cmp byte [0x14007ca60], 0
je 0x140049a8b
lea rcx, str.Auto_logon_set_n
call fcn.1400031a2
mov qword [rbp - 0x11], 0xf
mov qword [rbp - 0x19], rdi
mov byte [rbp - 0x29], 0
mov r8d, 0x11
lea rdx, str.DefaultDomainName
lea rcx, [rbp - 0x29]
call fcn.1400017d0
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x140049aec
mov dword [rbp - 0x39], edi
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rdx, qword [rbp - 0x29]
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [rbp - 0x39]
je 0x140049aee
mov eax, edi
test eax, eax
sete bl
cmp qword [rbp - 0x11], 0x10
jb 0x140049b03
mov rcx, qword [rbp - 0x29]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
test bl, bl
je 0x140049b1c
cmp byte [0x14007ca60], 0
je 0x140049b1c
lea rcx, str.Auto_logon_set___No_Domain_n
call fcn.1400031a2
mov qword [rbp - 0x11], 0xf
mov qword [rbp - 0x19], rdi
mov byte [rbp - 0x29], 0
mov r8d, 0xf
lea rdx, str.DefaultUserName
lea rcx, [rbp - 0x29]
call fcn.1400017d0
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x140049b7d
mov dword [rbp - 0x39], edi
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rdx, qword [rbp - 0x29]
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [rbp - 0x39]
je 0x140049b7f
mov eax, edi
test eax, eax
sete bl
cmp qword [rbp - 0x11], 0x10
jb 0x140049b94
mov rcx, qword [rbp - 0x29]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
test bl, bl
je 0x140049bad
cmp byte [0x14007ca60], 0
je 0x140049bad
lea rcx, str.Auto_logon_set___No_User_n
call fcn.1400031a2
mov qword [rbp - 0x11], 0xf
mov qword [rbp - 0x19], rdi
mov byte [rbp - 0x29], 0
mov r8d, 0xf
lea rdx, str.DefaultPassword
lea rcx, [rbp - 0x29]
call fcn.1400017d0
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x140049c0e
mov dword [rbp - 0x39], edi
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rdx, qword [rbp - 0x29]
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [rbp - 0x39]
je 0x140049c10
mov eax, edi
test eax, eax
sete bl
cmp qword [rbp - 0x11], 0x10
jb 0x140049c25
mov rcx, qword [rbp - 0x29]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
test bl, bl
je 0x140049c3e
cmp byte [0x14007ca60], 0
je 0x140049c3e
lea rcx, str.Auto_logon_set___No_Password_n
call fcn.1400031a2
mov bl, 1
jmp 0x140049c44
xor bl, bl
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x140049c5d
cmp rcx, qword [rbp - 9]
je 0x140049c5d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x1f], rdi
cmp qword [rbp + 0x17], 0x10
jb 0x140049c6d
mov rcx, qword [rbp - 1]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
movzx eax, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140052d40
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret