Function at 0x140037080
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2f8
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x14007c478]
xor rax, rbp
mov qword [rbp + 0x280], rax
mov dword [rbp + 8], r9d
mov qword [rbp + 0x10], r8
mov rsi, rdx
mov r12, rcx
xor r14d, r14d
mov ebx, r14d
mov qword [rbp + 0x60], rbx
mov r15d, r14d
mov qword [rbp + 0x40], r14
mov qword [rbp + 0x48], r14
mov qword [rbp + 0x50], r14
mov r13d, r14d
mov dword [rbp + 0x18], 1
mov eax, dword [rbp + 0x300]
mov dword [rbp + 0x38], eax
call fcn.140036ea4
mov edi, eax
test eax, eax
js 0x14003786c
cmp word [rsi], 0x7d
je 0x14003786c
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
sete r14b
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x140037144
test r14d, r14d
je 0x140037218
mov rdx, rsi
mov rcx, r12
call fcn.140036ea4
mov edi, eax
xor edx, edx
test eax, eax
js 0x14003786c
cmp dword [rbp + 8], edx
je 0x140037218
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], rdx
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x140037190
cmp ax, 0x5c
je 0x140037197
call qword [sym.imp.USER32.dll_CharNextW]
nop dword [rax + rax]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140037178
jmp 0x1400371a0
test rcx, rcx
jne 0x140037867
lea rdi, [0x140053600]
mov rdx, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x1400371e1
add rdi, 8
lea rax, [0x140053610]
cmp rdi, rax
jl 0x1400371a7
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov rdx, rsi
lea rcx, [rbp + 0x20]
call fcn.140036b5c
test r14d, r14d
je 0x140037218
mov rdx, rsi
mov rcx, r12
call fcn.140036ea4
mov edi, eax
xor r14d, r14d
test eax, eax
js 0x140037883
mov rdx, rsi
mov rcx, r12
call fcn.140036dd4
mov edi, eax
test eax, eax
js 0x14003786c
jmp 0x14003780d
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
xor r14d, r14d
test eax, eax
jne 0x14003724e
mov dword [rbp + 0x18], r14d
mov rdx, rsi
mov rcx, r12
call fcn.140036ea4
mov edi, eax
test eax, eax
js 0x14003786c
lea rdx, [0x140054588]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
jne 0x140037363
lea rdx, [rbp + 0x70]
mov rcx, r12
call fcn.140036ea4
mov edi, eax
test eax, eax
js 0x14003786c
mov rdx, rsi
mov rcx, r12
call fcn.140036ea4
mov edi, eax
test eax, eax
js 0x14003786c
cmp word [rsi], 0x3d
jne 0x140037867
cmp dword [rbp + 8], r14d
je 0x1400372d6
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x30], r14
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov byte [rsp + 0x20], r14b
mov r9, rsi
lea r8, [rbp + 0x70]
lea rdx, [rbp + 0x20]
mov rcx, r12
call fcn.1400362d0
mov edi, eax
jmp 0x14003720b
xor edi, edi
cmp dword [rbp + 0x300], edi
jne 0x140037350
mov qword [rbp], rdi
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140037885
mov eax, edi
mov r14, qword [rbp]
test eax, eax
jne 0x140037885
lea rdx, [rbp + 0x70]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, 0xfffffffd
jne 0x140037885
test r14, r14
je 0x140037350
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rdx, rsi
mov rcx, r12
call fcn.140036dd4
xor r14d, r14d
jmp 0x1400370f1
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x140037383
cmp ax, 0x5c
je 0x14003738a
call qword [sym.imp.USER32.dll_CharNextW]
nop dword [rax + rax]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x14003736b
jmp 0x140037393
test rcx, rcx
jne 0x140037867
cmp dword [rbp + 8], r14d
je 0x140037526
mov qword [rbp], r14
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rsi
mov rdi, qword [rbp + 0x10]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400373f4
mov eax, r14d
test r15, r15
je 0x1400373e4
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, qword [rbp]
mov qword [rbp + 0x40], r15
test eax, eax
je 0x1400374b2
mov qword [rbp], r14
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140037443
mov eax, r14d
test r15, r15
je 0x140037437
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, qword [rbp]
mov qword [rbp + 0x40], r15
test eax, eax
je 0x1400374b2
mov qword [rbp], r14
lea rax, [rbp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rbp]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140037867
mov eax, r14d
test r15, r15
je 0x1400374a2
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, qword [rbp]
mov qword [rbp + 0x40], r15
test eax, eax
jne 0x140037867
movzx eax, word [rsi]
sub ax, 0x4c
mov ecx, 0xffdf
test cx, ax
jne 0x1400374e8
lea rdx, str.LocalServer32
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
movzx r14d, r14b
test eax, eax
mov eax, 1
cmove r14d, eax
mov rdx, rsi
mov rcx, r12
call fcn.140036ea4
mov edi, eax
test eax, eax
js 0x14003786c
cmp word [rsi], 0x3d
jne 0x14003780a
mov byte [rsp + 0x20], r14b
mov r9, rsi
xor r8d, r8d
lea rdx, [rbp + 0x40]
mov rcx, r12
call fcn.1400362d0
xor r14d, r14d
jmp 0x1400372cf
mov r14d, dword [rbp + 0x300]
xor edi, edi
test r14d, r14d
jne 0x140037591
mov qword [rbp], rdi
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140037583
mov eax, edi
test r15, r15
je 0x140037577
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, qword [rbp]
mov qword [rbp + 0x40], r15
test eax, eax
je 0x140037591
mov eax, 1
mov r14d, eax
mov dword [rbp + 0x300], eax
test r13, r13
jne 0x1400375ec
mov ecx, 0x208
call fcn.1400369e0
test al, al
je 0x1400375ba
mov eax, dword [rsp]
mov eax, 0x210
sub rsp, rax
lea r13, [rsp + 0x60]
mov eax, dword [r13]
jmp 0x1400375e3
mov ecx, 0x218
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
test rax, rax
jne 0x1400375d5
mov r13, rdi
jmp 0x1400375e3
mov qword [rax], rbx
mov rbx, rax
mov qword [rbp + 0x60], rax
lea r13, [rax + 0x10]
test r13, r13
je 0x1400378a9
mov r8d, 0x104
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
nop dword [rax + rax]
test r14d, r14d
jne 0x140037668
mov dword [rbp], edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
js 0x140037658
cmp dword [rbp], edi
ja 0x140037668
mov rdx, r15
call fcn.140036a58
test eax, eax
je 0x1400377a0
mov rdx, rsi
mov rcx, r12
call fcn.140036ea4
mov edi, eax
test eax, eax
js 0x14003786c
mov rdx, rsi
mov rcx, r12
call fcn.140036dd4
mov edi, eax
xor eax, eax
test edi, edi
js 0x14003786c
cmp word [rsi], 0x7b
jne 0x1400376f2
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8, r15
mov rdx, rsi
mov rcx, r12
call fcn.140037080
mov edi, eax
xor eax, eax
test edi, edi
js 0x14003786c
test r14d, r14d
je 0x1400376fb
mov eax, dword [rbp + 0x38]
mov dword [rbp + 0x300], eax
mov rdx, rsi
mov rcx, r12
call fcn.140036ea4
mov edi, eax
xor r14d, r14d
test eax, eax
js 0x14003786c
mov rdx, rsi
mov rcx, r12
call fcn.140036dd4
jmp 0x1400370f1
test r14d, r14d
jne 0x14003785f
mov dword [rbp], 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]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
js 0x140037797
cmp dword [rbp], ecx
jbe 0x140037797
lea rdi, [0x140053600]
xor r14d, r14d
mov rdx, qword [rdi]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x14003778c
add rdi, 8
lea rax, [0x140053610]
cmp rdi, rax
jl 0x140037756
mov rdx, r13
lea rcx, [rbp + 0x40]
call fcn.140036b5c
mov r15, qword [rbp + 0x40]
mov rdx, rsi
mov rcx, r12
jmp 0x1400370ec
test r14d, r14d
jne 0x14003785f
xor r14d, r14d
test r15, r15
je 0x1400377c6
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov r15d, r14d
mov qword [rbp + 0x40], r14
test eax, eax
jne 0x140037867
cmp dword [rbp + 0x18], r14d
je 0x1400377e9
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x30], r14
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov rdx, r13
lea rcx, [rbp + 0x20]
call fcn.140036cf8
nop
mov rdx, rsi
mov rcx, r12
call fcn.140036ea4
mov edi, eax
test eax, eax
js 0x14003786c
mov rdx, rsi
mov rcx, r12
call fcn.140036dd4
jmp 0x1400372cf
xor r14d, r14d
mov ecx, dword [rbp + 8]
test ecx, ecx
je 0x1400370fb
cmp word [rsi], 0x7b
jne 0x1400370fb
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x140037826
mov edx, 1
cmp rax, rdx
jne 0x1400370fb
mov dword [rsp + 0x20], r14d
mov r9d, ecx
mov r8, r15
mov rdx, rsi
mov rcx, r12
call fcn.140037080
mov edi, eax
test eax, eax
js 0x14003786c
jmp 0x14003778c
xor r14d, r14d
jmp 0x1400370fb
mov edi, 0x80020009
test r15, r15
je 0x140037881
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x1400378c2
jmp 0x14003786c
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test r14, r14
je 0x14003786c
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14003786c
mov edi, 0x8007000e
jmp 0x14003786c
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
test rbx, rbx
jne 0x1400378b0
mov eax, edi
mov rcx, qword [rbp + 0x280]
xor rcx, rbp
call fcn.1400438c0
lea rsp, [rbp + 0x298]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret