Function at 0x140005aec
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
sub rsp, 0x328
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x98], 0xfffffffffffffffe
mov rax, qword [0x140013130]
xor rax, rbp
mov qword [rbp + 0x2b0], rax
mov dword [rbp + 0x28], r9d
mov qword [rbp + 0x30], r8
mov rax, rdx
mov qword [rbp], rdx
mov qword [rbp + 0x10], rcx
xor edx, edx
mov ebx, edx
mov qword [rbp + 0x90], rdx
mov esi, edx
mov qword [rbp + 0x70], rdx
mov qword [rbp + 0x78], rdx
mov qword [rbp + 0x80], rdx
mov qword [rbp + 0x40], rdx
mov dword [rbp + 0x48], 1
mov edx, dword [rbp + reloc.msvcrt.dll___C_specific_handler]
mov dword [rbp + 0x68], edx
mov rdx, rax
call fcn.140005964
mov edi, eax
mov dword [rbp + 8], eax
test eax, eax
jns 0x140005b72
jmp 0x140006570
mov rax, qword [rbp]
cmp word [rax], 0x7d
je 0x140006546
lea rdx, [0x140001328]
mov rdi, qword [rbp]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
xor edx, edx
mov ecx, edx
test eax, eax
sete cl
mov dword [rbp + 0x20], ecx
lea rdx, [0x1400012f8]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
xor ecx, ecx
test eax, eax
je 0x140005bbf
cmp dword [rbp + 0x20], ecx
je 0x140005ca9
mov rdx, rdi
mov rcx, qword [rbp + 0x10]
call fcn.140005964
mov edi, eax
mov dword [rbp + 8], eax
xor edx, edx
test eax, eax
js 0x140006546
cmp dword [rbp + 0x28], edx
je 0x140005ca5
mov qword [rbp + 0x50], rdx
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], rdx
mov rdi, qword [rbp]
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140005c0d
cmp ax, 0x5c
je 0x140005c14
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140005bfb
jmp 0x140005c1d
test rcx, rcx
jne 0x1400063e1
lea rax, [0x140013150]
mov qword [rbp + 8], rax
mov rdx, qword [rax]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
je 0x140005c64
mov rax, qword [rbp + 8]
add rax, 8
mov qword [rbp + 8], rax
lea rcx, [0x140013160]
cmp rax, rcx
jl 0x140005c28
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x50], rax
mov rdx, rdi
lea rcx, [rbp + 0x50]
call fcn.14000567c
xor eax, eax
cmp dword [rbp + 0x20], eax
je 0x140005ca3
mov rdx, rdi
mov rcx, qword [rbp + 0x10]
call fcn.140005964
mov edi, eax
mov dword [rbp + 8], eax
test eax, eax
js 0x140006412
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0x10]
call fcn.1400058a8
mov edi, eax
mov dword [rbp + 8], eax
test eax, eax
js 0x14000640d
jmp 0x14000637f
jmp 0x140005ca9
mov rdi, qword [rbp]
lea rdx, [0x140001310]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
xor ecx, ecx
test eax, eax
jne 0x140005cdf
mov dword [rbp + 0x48], ecx
mov rdx, rdi
mov rcx, qword [rbp + 0x10]
call fcn.140005964
mov edi, eax
mov dword [rbp + 8], eax
test eax, eax
js 0x140006546
mov rdi, qword [rbp]
lea rdx, [0x1400012f0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
xor edx, edx
test eax, eax
jne 0x140005e1a
lea rdx, [rbp + 0xa0]
mov rcx, qword [rbp + 0x10]
call fcn.140005964
mov edi, eax
mov dword [rbp + 8], eax
test eax, eax
js 0x140006546
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0x10]
call fcn.140005964
mov edi, eax
mov dword [rbp + 8], eax
xor edx, edx
test eax, eax
js 0x140006546
mov rdi, qword [rbp]
cmp word [rdi], 0x3d
jne 0x140006490
cmp dword [rbp + 0x28], edx
je 0x140005d82
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], rdx
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x50], rax
mov byte [rsp + 0x20], dl
mov r9, rdi
lea r8, [rbp + 0xa0]
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x10]
call fcn.140004dd4
mov edi, eax
mov dword [rbp + 8], eax
test eax, eax
js 0x140006417
jmp 0x14000637f
cmp dword [rbp + reloc.msvcrt.dll___C_specific_handler], edx
jne 0x140005dfc
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x18], rdx
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov r11d, eax
xor edx, edx
test eax, eax
jne 0x140005dc4
mov r11d, edx
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x20], rax
jmp 0x140005dc7
mov rax, rdx
test r11d, r11d
jne 0x140006465
lea rdx, [rbp + 0xa0]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, eax
je 0x140005ded
cmp eax, 2
jne 0x140006445
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x140005dfc
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rdx, rdi
mov rcx, qword [rbp + 0x10]
call fcn.1400058a8
mov edi, eax
mov dword [rbp + 8], eax
test eax, eax
js 0x140006546
jmp 0x140005b72
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140005e36
cmp ax, 0x5c
je 0x140005e3d
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x140005e22
jmp 0x140005e46
test rcx, rcx
jne 0x1400064b7
cmp dword [rbp + 0x28], edx
je 0x140005fc2
mov qword [rbp + 0x18], rdx
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
xor ecx, ecx
test eax, eax
jne 0x140005e9a
mov eax, ecx
test rsi, rsi
je 0x140005e8a
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor ecx, ecx
mov rsi, qword [rbp + 0x18]
mov qword [rbp + 0x70], rsi
test eax, eax
je 0x140005f4a
mov qword [rbp + 0x18], rcx
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
xor ecx, ecx
test eax, eax
jne 0x140005ee1
mov eax, ecx
test rsi, rsi
je 0x140005ed5
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor ecx, ecx
mov rsi, qword [rbp + 0x18]
mov qword [rbp + 0x70], rsi
test eax, eax
je 0x140005f4a
mov qword [rbp + 0x18], rcx
lea rax, [rbp + 0x88]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x18]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], reloc.msvcrt.dll___C_specific_handler
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
xor ecx, ecx
test eax, eax
jne 0x1400064de
mov eax, ecx
test rsi, rsi
je 0x140005f3a
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor ecx, ecx
mov rsi, qword [rbp + 0x18]
mov qword [rbp + 0x70], rsi
test eax, eax
jne 0x1400064de
mov byte [rbp + 0x38], cl
cmp word [rdi], 0x4c
je 0x140005f59
cmp word [rdi], 0x6c
jne 0x140005f7c
lea rdx, [0x140001b30]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
mov ecx, dword [rbp + 0x38]
movzx ecx, cl
test eax, eax
mov eax, 1
cmove ecx, eax
mov dword [rbp + 0x38], ecx
mov rdx, rdi
mov rcx, qword [rbp + 0x10]
call fcn.140005964
mov edi, eax
mov dword [rbp + 8], eax
test eax, eax
js 0x140006546
mov rax, qword [rbp]
cmp word [rax], 0x3d
jne 0x140006383
mov ecx, dword [rbp + 0x38]
mov byte [rsp + 0x20], cl
mov r9, rax
xor r8d, r8d
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp + 0x10]
call fcn.140004dd4
jmp 0x140006372
cmp dword [rbp + reloc.msvcrt.dll___C_specific_handler], edx
jne 0x140006019
mov qword [rbp + 0x18], rdx
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
xor edx, edx
test eax, eax
jne 0x14000600f
mov eax, edx
test rsi, rsi
je 0x140006003
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rsi, qword [rbp + 0x18]
mov qword [rbp + 0x70], rsi
test eax, eax
je 0x140006019
mov dword [rbp + reloc.msvcrt.dll___C_specific_handler], 1
mov rcx, qword [rbp + 0x40]
test rcx, rcx
jne 0x140006074
mov ecx, 0x208
call fcn.140005604
test al, al
je 0x140006044
mov eax, dword [rsp]
mov eax, 0x210
sub rsp, rax
lea rcx, [rsp + 0x60]
mov eax, dword [rcx]
jmp 0x140006067
mov ecx, 0x218
call qword [sym.imp.msvcrt.dll_malloc]
xor ecx, ecx
test rax, rax
je 0x140006067
mov qword [rax], rbx
mov rbx, rax
mov qword [rbp + 0x90], rax
lea rcx, [rax + 0x10]
mov qword [rbp + 0x40], rcx
test rcx, rcx
je 0x140006505
mov r8d, 0x104
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcpynW]
xor eax, eax
cmp dword [rbp + reloc.msvcrt.dll___C_specific_handler], eax
jne 0x1400061b3
mov dword [rbp + 0x20], eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
xor ecx, ecx
test eax, eax
js 0x1400060e7
mov eax, ecx
cmp dword [rbp + 0x20], ecx
seta al
test eax, eax
jne 0x1400061b3
mov dword [rbp + 0x20], ecx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x14000630b
mov ecx, dword [rbp + 0x20]
lea eax, [rdx + 1]
cmp ecx, eax
jne 0x1400061a4
mov dword [rbp + 8], reloc.msvcrt.dll___C_specific_handler
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rbp + 0x18], rax
xor edx, edx
test rax, rax
je 0x14000630b
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 8]
mov r8, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
xor edx, edx
mov rcx, qword [rbp + 0x18]
test eax, eax
jne 0x140006197
cmp word [rcx], dx
je 0x140006197
call qword [sym.imp.msvcrt.dll_free]
jmp 0x1400061b3
call qword [sym.imp.msvcrt.dll_free]
xor edx, edx
jmp 0x14000630b
mov eax, edx
test ecx, ecx
setne al
test eax, eax
je 0x14000630b
mov rdx, rdi
mov rcx, qword [rbp + 0x10]
call fcn.140005964
mov edi, eax
mov dword [rbp + 8], eax
test eax, eax
js 0x140006546
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0x10]
call fcn.1400058a8
mov edi, eax
mov dword [rbp + 8], eax
xor edx, edx
test eax, eax
js 0x140006546
mov rax, qword [rbp]
cmp word [rax], 0x7b
jne 0x140006252
mov eax, dword [rbp + reloc.msvcrt.dll___C_specific_handler]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rsi
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0x10]
call fcn.140005aec
mov edi, eax
mov dword [rbp + 8], eax
xor edx, edx
test eax, eax
js 0x140006546
cmp dword [rbp + reloc.msvcrt.dll___C_specific_handler], edx
je 0x14000625e
mov eax, dword [rbp + 0x68]
mov dword [rbp + reloc.msvcrt.dll___C_specific_handler], eax
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0x10]
call fcn.140005964
mov edi, eax
mov dword [rbp + 8], eax
test eax, eax
js 0x140006546
mov rdx, qword [rbp]
jmp 0x140005dff
cmp dword [rbp + reloc.msvcrt.dll___C_specific_handler], edx
jne 0x140005b76
mov dword [rbp + 0x20], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
js 0x1400062fb
mov eax, edx
cmp dword [rbp + 0x20], edx
seta al
test eax, eax
je 0x1400062fb
lea rdi, [0x140013150]
mov rdx, qword [rdi]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
je 0x1400062e9
add rdi, 8
lea rax, [0x140013160]
cmp rdi, rax
jl 0x1400062b7
mov rdx, qword [rbp + 0x40]
lea rcx, [rbp + 0x70]
call fcn.14000567c
mov rsi, qword [rbp + 0x70]
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0x10]
call fcn.140005964
jmp 0x140005e08
cmp dword [rbp + reloc.msvcrt.dll___C_specific_handler], edx
jne 0x140005b72
mov rdi, qword [rbp]
test rsi, rsi
je 0x140006329
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor edx, edx
mov esi, edx
mov qword [rbp + 0x70], rdx
test eax, eax
jne 0x14000652e
cmp dword [rbp + 0x48], edx
je 0x14000634c
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], rdx
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x50], rax
mov rdx, qword [rbp + 0x40]
lea rcx, [rbp + 0x50]
call fcn.1400057f4
nop
mov rdx, rdi
mov rcx, qword [rbp + 0x10]
call fcn.140005964
mov edi, eax
mov dword [rbp + 8], eax
test eax, eax
js 0x140006546
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0x10]
call fcn.1400058a8
test eax, eax
mov dword [rbp + 8], eax
mov edi, eax
js 0x140006546
mov rax, qword [rbp]
mov edx, dword [rbp + 0x28]
xor r8d, r8d
test edx, edx
je 0x140005b72
cmp word [rax], 0x7b
jne 0x140005b72
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r8w
jne 0x14000639f
mov r9d, 1
cmp rcx, r9
jne 0x140005b72
mov dword [rsp + 0x20], r8d
mov r9d, edx
mov r8, rsi
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.140005aec
mov edi, eax
mov dword [rbp + 8], eax
test eax, eax
js 0x140006546
jmp 0x1400062e9
test rsi, rsi
je 0x1400063f0
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
jmp 0x1400063fe
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x1400063f2
mov eax, 0x80020009
jmp 0x140006570
jmp 0x140006546
jmp 0x140006546
test rsi, rsi
je 0x140006426
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
test rbx, rbx
je 0x14000656e
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x14000642f
jmp 0x14000656b
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov dword [rbp + 8], edi
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x140006546
jmp 0x140006485
movzx edi, r11w
or edi, 0x80070000
test r11d, r11d
cmovle edi, r11d
mov dword [rbp + 8], edi
test rax, rax
je 0x140006546
mov rcx, rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x140006546
test rsi, rsi
je 0x14000649f
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
jmp 0x1400064ad
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x1400064a1
jmp 0x140006403
test rsi, rsi
je 0x1400064c6
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
jmp 0x1400064d4
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x1400064c8
jmp 0x140006403
test rsi, rsi
je 0x1400064ed
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
jmp 0x1400064fb
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x1400064ef
jmp 0x140006403
test rsi, rsi
je 0x140006514
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
jmp 0x140006522
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x140006516
mov eax, 0x8007000e
jmp 0x140006570
jmp 0x14000653c
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x140006530
jmp 0x140006403
test rsi, rsi
je 0x140006555
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
test rbx, rbx
je 0x14000656e
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x14000655a
mov edi, dword [rbp + 8]
mov eax, edi
mov rcx, qword [rbp + 0x2b0]
xor rcx, rbp
call fcn.14000e510
lea rsp, [rbp + 0x2c8]
pop rdi
pop rsi
pop rbx
pop rbp
ret