Function at 0x1400e8040
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
push r14
sub rsp, 0x80
mov r14, rcx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov rcx, r14
mov dword [rsp + 0x20], 0x20019
call fcn.14000d810
test eax, eax
je 0x1400e84a2
mov ecx, dword [r14]
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rdi
mov edi, 0x6b6e
mov qword [rsp + 0x60], r12
xor r12d, r12d
mov qword [rsp + 0x58], r13
mov r13, qword [rsp + 0x38]
mov qword [rsp + 0x50], r15
lea r8d, [rdi + 8]
mov dword [rsp + 0xa8], r12d
test ecx, ecx
je 0x1400e81da
cmp ecx, 1
jne 0x1400e8414
mov ebp, r12d
test r13, r13
je 0x1400e80d3
mov r15, r13
jmp 0x1400e80db
mov rax, qword [r14 + 8]
mov r15, qword [rax + 0x18]
cmp word [r15 + 4], di
jne 0x1400e81bc
mov ecx, dword [r15 + 0x28]
test ecx, ecx
je 0x1400e81bc
movsxd rdx, dword [r15 + 0x2c]
cmp edx, 0xffffffff
je 0x1400e81bc
mov rax, qword [r14 + 8]
mov esi, r12d
add rdx, qword [rax + 0x10]
mov qword [rsp + 0x30], rdx
test ecx, ecx
je 0x1400e81bc
test rbp, rbp
jne 0x1400e81b7
mov eax, esi
movsxd rbx, dword [rdx + rax*4 + 4]
mov rax, qword [r14 + 8]
add rbx, qword [rax + 0x10]
cmp word [rbx + 4], r8w
jne 0x1400e81ab
movzx eax, word [rbx + 6]
test ax, ax
je 0x1400e81ab
test byte [rbx + 0x14], 1
mov edx, eax
je 0x1400e815a
lea rcx, [rbx + 0x18]
call fcn.140012170
mov rdi, rax
test rax, rax
je 0x1400e81a0
jmp 0x1400e8182
add rdx, 2
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400e81a0
movzx r8d, word [rbx + 6]
lea rdx, [rbx + 0x18]
mov rcx, rax
call fcn.14011b4a0
mov rdx, rdi
lea rcx, str.ObjectName
call fcn.14011ebc8
test eax, eax
mov rcx, rdi
cmove rbp, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rsp + 0x30]
mov r8d, 0x6b76
inc esi
cmp esi, dword [r15 + 0x28]
jb 0x1400e8117
mov edi, 0x6b6e
test rbp, rbp
mov ebx, r12d
setne bl
test rbp, rbp
je 0x1400e8218
mov eax, dword [rbp + 8]
btr eax, 0x1f
mov dword [rsp + 0xa8], eax
jmp 0x1400e8218
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
lea rdx, str.ObjectName
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ebx, r12d
sete bl
test eax, eax
je 0x1400e8218
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x1400e8414
mov eax, dword [rsp + 0xa8]
test eax, eax
je 0x1400e8420
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x40], rax
mov r15, rax
test rax, rax
je 0x1400e8428
mov eax, dword [r14]
mov ebx, r12d
test eax, eax
je 0x1400e83ad
cmp eax, 1
jne 0x1400e83e6
mov rsi, r12
test r13, r13
jne 0x1400e8274
mov rax, qword [r14 + 8]
mov r13, qword [rax + 0x18]
cmp word [r13 + 4], di
jne 0x1400e8355
mov ecx, dword [r13 + 0x28]
test ecx, ecx
je 0x1400e8355
movsxd rdx, dword [r13 + 0x2c]
cmp edx, 0xffffffff
je 0x1400e8355
mov rax, qword [r14 + 8]
mov ebp, r12d
add rdx, qword [rax + 0x10]
mov qword [rsp + 0x30], rdx
test ecx, ecx
je 0x1400e8355
mov r15d, 0x6b76
test rsi, rsi
jne 0x1400e8350
mov eax, ebp
movsxd rbx, dword [rdx + rax*4 + 4]
mov rax, qword [r14 + 8]
add rbx, qword [rax + 0x10]
cmp word [rbx + 4], r15w
jne 0x1400e8344
movzx eax, word [rbx + 6]
test ax, ax
je 0x1400e8344
test byte [rbx + 0x14], 1
mov edx, eax
je 0x1400e82f9
lea rcx, [rbx + 0x18]
call fcn.140012170
mov rdi, rax
test rax, rax
je 0x1400e833f
jmp 0x1400e8321
add rdx, 2
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400e833f
movzx r8d, word [rbx + 6]
lea rdx, [rbx + 0x18]
mov rcx, rax
call fcn.14011b4a0
mov rdx, rdi
lea rcx, str.ObjectName
call fcn.14011ebc8
test eax, eax
mov rcx, rdi
cmove rsi, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rsp + 0x30]
inc ebp
cmp ebp, dword [r13 + 0x28]
jb 0x1400e82b6
mov r15, qword [rsp + 0x40]
test rsi, rsi
mov ebx, r12d
setne bl
test rsi, rsi
je 0x1400e83e6
mov ecx, dword [rsi + 8]
mov ebx, r12d
mov edi, ecx
btr edi, 0x1f
cmp dword [rsp + 0xa8], edi
setae bl
jb 0x1400e83a4
lea rdx, [rsi + 0xc]
test ecx, ecx
js 0x1400e8399
mov rax, qword [r14 + 8]
movsxd rdx, dword [rdx]
mov rax, qword [rax + 0x10]
add rax, 4
add rdx, rax
mov r8d, edi
mov rcx, r15
call fcn.14011b4a0
mov dword [rsp + 0xa8], edi
jmp 0x1400e83e6
lea rax, [rsp + 0xa8]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, str.ObjectName
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
test eax, eax
je 0x1400e83e6
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r12d, ebx
test ebx, ebx
je 0x1400e83fa
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x30], eax
jmp 0x1400e8428
lea rcx, str.ERROR_kull_m_registry_QueryWithAlloc___kull_m_registry_RegQueryValueEx_KO_n
call fcn.14000afb0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r15, rax
jmp 0x1400e8428
lea rcx, str.ERROR_kull_m_registry_QueryWithAlloc___pre___kull_m_registry_RegQueryValueEx_KO_n
call fcn.14000afb0
mov r15, qword [rsp + 0xa8]
cmp dword [r14], 0
mov r13, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x90]
jne 0x1400e8461
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1400e8461
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r12d, r12d
mov r12, qword [rsp + 0x60]
je 0x1400e8493
mov r8d, dword [rsp + 0x30]
lea rcx, str.___service__s_with_yonghuming_:__.s
mov rdx, qword [rsp + 0xa0]
mov r9, r15
shr r8, 1
call fcn.14000afb0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r15, qword [rsp + 0x50]
add rsp, 0x80
pop r14
ret
lea rcx, str.ERROR_kull_m_registry_OpenAndQueryWithAlloc___kull_m_registry_RegOpenKeyEx_KO_n
call fcn.14000afb0
add rsp, 0x80
pop r14
ret