Function at 0x140022360
Capabilities:
Delete registry key
Delete registry value
Link many functions at runtime

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x21d8]
mov eax, 0x22d8
call fcn.1400dd0b0
sub rsp, rax
mov rax, qword [0x140129718]
xor rax, rsp
mov qword [rbp + 0x21c0], rax
mov dword [rsp + 0x70], r9d
mov qword [rsp + 0x68], r8
mov r15, rdx
mov r14, rcx
xor esi, esi
mov r13d, esi
mov qword [rsp + 0x78], rsi
mov dword [rbp - 0x80], esi
mov qword [rbp - 0x78], rsi
call fcn.140020a10
mov ebx, eax
test eax, eax
js 0x14002333e
cmp word [r15], 0x7d
je 0x14002333e
mov r12d, 1
lea rdx, str.Delete
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
sete sil
lea rdx, str.ForceRemove
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140022406
test esi, esi
je 0x14002267a
mov rbx, r15
nop dword [rax]
mov rdi, qword [r14]
movzx ecx, word [rdi]
mov edx, ecx
sub edx, 9
je 0x14002242c
sub edx, r12d
je 0x14002242c
sub edx, 3
je 0x14002242c
cmp edx, 0x13
jne 0x14002243a
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
jmp 0x140022410
xor edx, edx
cmp dx, cx
je 0x140023339
mov eax, 0x27
cmp ax, cx
jne 0x140022534
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov r8, rax
mov qword [r14], rax
movzx eax, word [rax]
xor edi, edi
cmp di, ax
je 0x140022512
mov ecx, 0x27
cmp cx, ax
jne 0x140022491
mov rcx, r8
call qword [sym.imp.USER32.dll_CharNextW]
mov ecx, 0x27
cmp cx, word [rax]
jne 0x140022512
mov rdi, qword [r14]
mov eax, 0x27
cmp ax, word [rdi]
jne 0x1400224ad
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
mov rdi, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov r8, rax
mov qword [r14], rax
mov rdx, rax
sub rdx, rdi
sar rdx, 1
lea rcx, [rdx + 1]
lea rcx, [rbx + rcx*2]
lea rax, [r15 + 0x2000]
cmp rcx, rax
jae 0x140023339
test edx, edx
jle 0x140022503
sub rdi, rbx
mov ecx, edx
nop word [rax + rax]
movzx eax, word [rdi + rbx]
mov word [rbx], ax
add rbx, 2
sub rcx, r12
jne 0x1400224f0
mov r8, qword [r14]
movzx eax, word [r8]
xor edi, edi
cmp di, ax
jne 0x140022470
mov rax, qword [r14]
cmp di, word [rax]
je 0x140023339
mov word [rbx], di
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
xor edx, edx
jmp 0x1400225bc
movzx ecx, cx
sub ecx, 9
je 0x1400225b9
sub ecx, r12d
je 0x1400225b9
sub ecx, 3
je 0x1400225b9
cmp ecx, 0x13
je 0x1400225b9
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov r8, rax
mov qword [r14], rax
mov rdx, rax
sub rdx, rdi
sar rdx, 1
lea rcx, [rdx + 1]
lea rcx, [rbx + rcx*2]
lea rax, [r15 + 0x2000]
cmp rcx, rax
jae 0x140023339
test edx, edx
jle 0x1400225a3
sub rdi, rbx
mov ecx, edx
nop dword [rax + rax]
movzx eax, word [rdi + rbx]
mov word [rbx], ax
add rbx, 2
sub rcx, r12
jne 0x140022590
mov r8, qword [r14]
movzx eax, word [r8]
mov rdi, r8
xor edx, edx
cmp dx, ax
je 0x1400225b9
movzx ecx, ax
jmp 0x140022534
mov word [rbx], dx
mov edi, dword [rsp + 0x70]
test edi, edi
je 0x14002267a
mov qword [rbp - 0x68], rdx
mov dword [rbp - 0x60], edx
mov qword [rbp - 0x58], rdx
mov rcx, r15
movzx eax, word [r15]
test ax, ax
je 0x140022602
nop
cmp ax, 0x5c
je 0x1400225f9
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x1400225e0
jmp 0x140022602
test rcx, rcx
jne 0x140023339
lea rbx, str.AppID
nop dword [rax]
mov rdx, qword [rbx]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140022645
add rbx, 8
lea rax, [0x1400eb150]
cmp rbx, rax
jl 0x140022610
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x68], rax
mov rdx, r15
lea rcx, [rbp - 0x68]
call fcn.140021af0
test esi, esi
je 0x14002267a
mov rdx, r15
mov rcx, r14
call fcn.140020a10
mov ebx, eax
test eax, eax
js 0x14002333e
mov rdx, r15
mov rcx, r14
call fcn.1400233a0
mov ebx, eax
test eax, eax
js 0x14002333e
xor esi, esi
jmp 0x140022f3c
lea rdx, str.NoRemove
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor esi, esi
test eax, eax
jne 0x140022828
mov r12d, esi
mov rbx, r15
nop word [rax + rax]
mov rdi, qword [r14]
movzx ecx, word [rdi]
mov edx, ecx
sub edx, 9
je 0x1400226bc
sub edx, 1
je 0x1400226bc
sub edx, 3
je 0x1400226bc
cmp edx, 0x13
jne 0x1400226ca
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
jmp 0x1400226a0
cmp si, cx
je 0x140023339
mov eax, 0x27
cmp ax, cx
jne 0x1400227b0
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov r8, rax
mov qword [r14], rax
movzx eax, word [rax]
cmp si, ax
je 0x140022791
nop dword [rax]
mov edi, 0x27
cmp di, ax
jne 0x140022718
mov rcx, r8
call qword [sym.imp.USER32.dll_CharNextW]
cmp di, word [rax]
jne 0x140022791
mov rdi, qword [r14]
mov eax, 0x27
cmp ax, word [rdi]
jne 0x140022734
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
mov rdi, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov r8, rax
mov qword [r14], rax
mov rdx, rax
sub rdx, rdi
sar rdx, 1
lea rcx, [rdx + 1]
lea rcx, [rbx + rcx*2]
lea rax, [r15 + 0x2000]
cmp rcx, rax
jae 0x140023339
test edx, edx
jle 0x140022784
sub rdi, rbx
mov ecx, edx
nop dword [rax]
movzx eax, word [rdi + rbx]
mov word [rbx], ax
add rbx, 2
sub rcx, 1
jne 0x140022770
mov r8, qword [r14]
movzx eax, word [r8]
cmp si, ax
jne 0x140022700
mov rax, qword [r14]
cmp si, word [rax]
je 0x140023339
mov word [rbx], si
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
jmp 0x140022828
movzx ecx, cx
sub ecx, 9
je 0x140022825
sub ecx, 1
je 0x140022825
sub ecx, 3
je 0x140022825
cmp ecx, 0x13
je 0x140022825
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov r8, rax
mov qword [r14], rax
mov rdx, rax
sub rdx, rdi
sar rdx, 1
lea rcx, [rdx + 1]
lea rcx, [rbx + rcx*2]
lea rax, [r15 + 0x2000]
cmp rcx, rax
jae 0x140023339
test edx, edx
jle 0x140022814
sub rdi, rbx
mov ecx, edx
movzx eax, word [rdi + rbx]
mov word [rbx], ax
add rbx, 2
sub rcx, 1
jne 0x140022800
mov r8, qword [r14]
movzx eax, word [r8]
mov rdi, r8
cmp si, ax
je 0x140022825
movzx ecx, ax
jmp 0x1400227b0
mov word [rbx], si
lea rdx, [0x1400eb0a0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140022c36
lea rbx, [rbp + 0x1c0]
nop word [rax + rax]
mov rdi, qword [r14]
movzx ecx, word [rdi]
mov edx, ecx
sub edx, 9
je 0x14002286c
sub edx, 1
je 0x14002286c
sub edx, 3
je 0x14002286c
cmp edx, 0x13
jne 0x14002287a
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
jmp 0x140022850
cmp si, cx
je 0x140023339
mov eax, 0x27
cmp ax, cx
jne 0x140022957
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov rdx, rax
mov qword [r14], rax
movzx eax, word [rax]
cmp si, ax
je 0x14002293d
nop dword [rax]
mov edi, 0x27
cmp di, ax
jne 0x1400228c8
mov rcx, rdx
call qword [sym.imp.USER32.dll_CharNextW]
cmp di, word [rax]
jne 0x14002293d
mov rdi, qword [r14]
mov eax, 0x27
cmp ax, word [rdi]
jne 0x1400228e4
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
mov rdi, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov rdx, rax
mov qword [r14], rax
mov rcx, rax
sub rcx, rdi
sar rcx, 1
lea rax, [rcx + 1]
lea rax, [rbx + rax*2]
lea r8, [rbp + 0x21c0]
cmp rax, r8
jae 0x140023339
test ecx, ecx
jle 0x140022931
sub rdi, rbx
mov ecx, ecx
nop dword [rax]
movzx eax, word [rdi + rbx]
mov word [rbx], ax
add rbx, 2
sub rcx, 1
jne 0x140022920
movzx eax, word [rdx]
cmp si, ax
jne 0x1400228b0
mov rcx, qword [r14]
cmp si, word [rcx]
je 0x140023339
mov word [rbx], si
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
jmp 0x1400229d5
movzx ecx, cx
sub ecx, 9
je 0x1400229d2
sub ecx, 1
je 0x1400229d2
sub ecx, 3
je 0x1400229d2
cmp ecx, 0x13
je 0x1400229d2
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov r8, rax
mov qword [r14], rax
mov rdx, rax
sub rdx, rdi
sar rdx, 1
lea rcx, [rdx + 1]
lea rcx, [rbx + rcx*2]
lea rax, [rbp + 0x21c0]
cmp rcx, rax
jae 0x140023339
test edx, edx
jle 0x1400229c1
sub rdi, rbx
mov ecx, edx
nop word [rax + rax]
movzx eax, word [rdi + rbx]
mov word [rbx], ax
add rbx, 2
sub rcx, 1
jne 0x1400229b0
movzx eax, word [r8]
mov rdi, r8
cmp si, ax
je 0x1400229d2
movzx ecx, ax
jmp 0x140022957
mov word [rbx], si
mov rbx, r15
nop dword [rax + rax]
mov rdi, qword [r14]
movzx ecx, word [rdi]
mov edx, ecx
sub edx, 9
je 0x1400229fc
sub edx, 1
je 0x1400229fc
sub edx, 3
je 0x1400229fc
cmp edx, 0x13
jne 0x140022a0a
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
jmp 0x1400229e0
cmp si, cx
je 0x140023339
mov eax, 0x27
cmp ax, cx
jne 0x140022af0
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov r8, rax
mov qword [r14], rax
movzx eax, word [rax]
cmp si, ax
je 0x140022ad1
nop dword [rax]
mov edi, 0x27
cmp di, ax
jne 0x140022a58
mov rcx, r8
call qword [sym.imp.USER32.dll_CharNextW]
cmp di, word [rax]
jne 0x140022ad1
mov rdi, qword [r14]
mov eax, 0x27
cmp ax, word [rdi]
jne 0x140022a74
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
mov rdi, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov r8, rax
mov qword [r14], rax
mov rdx, rax
sub rdx, rdi
sar rdx, 1
lea rcx, [rdx + 1]
lea rcx, [rbx + rcx*2]
lea rax, [r15 + 0x2000]
cmp rcx, rax
jae 0x140023339
test edx, edx
jle 0x140022ac4
sub rdi, rbx
mov ecx, edx
nop dword [rax]
movzx eax, word [rdi + rbx]
mov word [rbx], ax
add rbx, 2
sub rcx, 1
jne 0x140022ab0
mov r8, qword [r14]
movzx eax, word [r8]
cmp si, ax
jne 0x140022a40
mov rax, qword [r14]
cmp si, word [rax]
je 0x140023339
mov word [rbx], si
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
jmp 0x140022b68
movzx ecx, cx
sub ecx, 9
je 0x140022b65
sub ecx, 1
je 0x140022b65
sub ecx, 3
je 0x140022b65
cmp ecx, 0x13
je 0x140022b65
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov r8, rax
mov qword [r14], rax
mov rdx, rax
sub rdx, rdi
sar rdx, 1
lea rcx, [rdx + 1]
lea rcx, [rbx + rcx*2]
lea rax, [r15 + 0x2000]
cmp rcx, rax
jae 0x140023339
test edx, edx
jle 0x140022b54
sub rdi, rbx
mov ecx, edx
movzx eax, word [rdi + rbx]
mov word [rbx], ax
add rbx, 2
sub rcx, 1
jne 0x140022b40
mov r8, qword [r14]
movzx eax, word [r8]
mov rdi, r8
cmp si, ax
je 0x140022b65
movzx ecx, ax
jmp 0x140022af0
mov word [rbx], si
cmp word [r15], 0x3d
jne 0x140023339
mov edi, dword [rsp + 0x70]
test edi, edi
je 0x140022ba8
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], esi
mov qword [rbp - 0x58], rsi
mov r9, r15
lea r8, [rbp + 0x1c0]
lea rdx, [rbp - 0x68]
mov rcx, r14
call fcn.14001fee0
mov ebx, eax
jmp 0x140022f34
cmp dword [rbp + 0x2240], 0
jne 0x140022c1a
test r12d, r12d
je 0x140022c1a
mov rdi, rsi
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140022be9
mov eax, esi
mov rdi, qword [rsp + 0x60]
test eax, eax
jne 0x140023320
lea rdx, [rbp + 0x1c0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140023320
test rdi, rdi
je 0x140022c1a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, r15
mov rcx, r14
call fcn.1400233a0
mov ebx, eax
test eax, eax
js 0x14002333e
xor esi, esi
jmp 0x1400223c3
mov rcx, r15
movzx eax, word [r15]
test ax, ax
je 0x140022c64
cmp ax, 0x5c
je 0x140022c5b
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140022c42
jmp 0x140022c64
test rcx, rcx
jne 0x140023339
mov edi, dword [rsp + 0x70]
test edi, edi
je 0x140022f94
mov qword [rsp + 0x60], rsi
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x140022cf2
cmp qword [rbx], 0
je 0x140022ce5
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140022ca0
mov eax, 1
jmp 0x140022d34
lea rdx, str.RegOpenKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140022ceb
mov qword [rsp + 0x30], rsi
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rsp + 0x68]
call r10
jmp 0x140022d13
cmp dword [rbx + 8], 0
jne 0x140022cf2
mov eax, 1
jmp 0x140022d13
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140022d34
mov eax, esi
test r13, r13
je 0x140022d27
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r13, qword [rsp + 0x60]
mov qword [rsp + 0x78], r13
mov dword [rbp - 0x80], esi
test eax, eax
je 0x140022efe
mov qword [rsp + 0x60], rsi
test rbx, rbx
je 0x140022dba
cmp qword [rbx], 0
je 0x140022dad
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140022d68
mov eax, 1
jmp 0x140022dfc
lea rdx, str.RegOpenKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140022db3
mov qword [rsp + 0x30], rsi
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rsp + 0x68]
call r10
jmp 0x140022ddb
cmp dword [rbx + 8], 0
jne 0x140022dba
mov eax, 1
jmp 0x140022ddb
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140022dfc
mov eax, esi
test r13, r13
je 0x140022def
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r13, qword [rsp + 0x60]
mov qword [rsp + 0x78], r13
mov dword [rbp - 0x80], esi
test eax, eax
je 0x140022efe
mov qword [rsp + 0x60], rsi
test rbx, rbx
je 0x140022e9d
cmp qword [rbx], 0
je 0x140022e90
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140022e34
mov eax, 1
jmp 0x140022ef6
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140022e96
mov qword [rsp + 0x50], rsi
mov rax, qword [rbx]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rsp + 0x68]
call r10
jmp 0x140022ed5
cmp dword [rbx + 8], 0
jne 0x140022e9d
mov eax, 1
jmp 0x140022ed5
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140022ef6
mov eax, esi
test r13, r13
je 0x140022ee9
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r13, qword [rsp + 0x60]
mov qword [rsp + 0x78], r13
mov dword [rbp - 0x80], esi
test eax, eax
jne 0x140023315
mov rdx, r15
mov rcx, r14
call fcn.140020a10
mov ebx, eax
test eax, eax
js 0x14002333e
cmp word [r15], 0x3d
jne 0x140022f3c
mov r9, r15
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, r14
call fcn.14001fee0
mov ebx, eax
mov r13, qword [rsp + 0x78]
test eax, eax
js 0x14002333e
cmp word [r15], 0x7b
jne 0x140022c2f
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [r15 + rax*2], 0
jne 0x140022f50
cmp rax, 1
jne 0x140022c2f
mov dword [rsp + 0x20], esi
mov r9d, edi
mov r8, r13
mov rdx, r15
mov rcx, r14
call fcn.140022360
mov ebx, eax
test eax, eax
js 0x14002333e
mov rdx, r15
mov rcx, r14
call fcn.140020a10
jmp 0x140022c25
mov eax, dword [rbp + 0x2240]
test eax, eax
jne 0x140023070
mov qword [rsp + 0x60], rsi
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x140023022
cmp qword [rbx], 0
je 0x140023015
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140022fd0
lea edi, [rax + 1]
jmp 0x140023068
lea rdx, str.RegOpenKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x14002301b
mov qword [rsp + 0x30], rsi
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rsp + 0x68]
call r10
jmp 0x140023043
cmp dword [rbx + 8], 0
jne 0x140023022
mov edi, 1
jmp 0x140023045
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x140023068
mov edi, esi
test r13, r13
je 0x14002305b
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov r13, qword [rsp + 0x60]
mov qword [rsp + 0x78], r13
mov dword [rbp - 0x80], esi
mov eax, dword [rbp + 0x2240]
jmp 0x140023075
mov edi, 2
mov esi, 1
test edi, edi
cmove esi, eax
mov r9, 0xffffffffffffffff
mov r8, r15
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [0x1400e7e50]
test eax, eax
je 0x1400230c0
cmp eax, 0xc
je 0x140023371
cmp eax, 0x16
je 0x140023387
cmp eax, 0x22
je 0x140023387
cmp eax, 0x50
jne 0x14002337c
mov rdx, r15
mov rcx, r14
call fcn.140020a10
mov ebx, eax
test eax, eax
js 0x14002333e
mov rdx, r15
mov rcx, r14
call fcn.1400233a0
mov ebx, eax
test eax, eax
js 0x14002333e
cmp word [r15], 0x7b
jne 0x140023149
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [r15 + rax*2], 0
jne 0x140023100
cmp rax, 1
jne 0x140023149
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov r8, r13
mov rdx, r15
mov rcx, r14
call fcn.140022360
mov ebx, eax
test eax, eax
jns 0x140023134
test esi, esi
je 0x14002333e
mov rdx, r15
mov rcx, r14
call fcn.140020a10
mov ebx, eax
test eax, eax
js 0x14002333e
cmp edi, 2
je 0x140022c2f
test edi, edi
je 0x140023171
cmp dword [rbp + 0x2240], 0
jne 0x140022c2f
mov ecx, edi
call fcn.140020660
mov ebx, eax
jmp 0x14002333e
xor esi, esi
cmp dword [rbp + 0x2240], esi
je 0x140023218
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140023218
cmp dword [rsp + 0x60], esi
jbe 0x140023218
lea rdi, str.AppID
mov rdx, qword [rdi]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400223c3
add rdi, 8
lea rax, [0x1400eb150]
cmp rdi, rax
jl 0x1400231d2
test r12d, r12d
je 0x1400223c3
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x78]
call fcn.140021af0
mov r13, qword [rsp + 0x78]
jmp 0x1400223c3
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, esi
test eax, eax
jne 0x140023268
cmp dword [rsp + 0x60], eax
seta dil
mov eax, esi
test r13, r13
je 0x140023280
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r13, rsi
mov qword [rsp + 0x78], rsi
mov dword [rbp - 0x80], esi
test eax, eax
jne 0x140023315
test r12d, r12d
je 0x1400223c3
test edi, edi
jne 0x1400223c3
cmp byte [0x14012d3a0], dil
jne 0x1400232e7
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400232d7
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012d398], rax
mov byte [0x14012d3a0], 1
jmp 0x1400232ee
mov rax, qword [0x14012d398]
mov byte [0x14012d3a0], 1
jmp 0x1400232ee
mov rax, qword [0x14012d398]
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x68]
test rax, rax
je 0x140023306
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x14002330d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
test eax, eax
je 0x1400223c3
mov ecx, eax
call fcn.140020660
mov ebx, eax
jmp 0x14002333e
mov ecx, eax
call fcn.140020660
mov ebx, eax
test rdi, rdi
je 0x14002333e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14002333e
mov ebx, 0x80020009
test r13, r13
je 0x14002334c
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.1400dc960
add rsp, 0x22d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x8007000e
call fcn.14000d650
int3
mov ecx, 0x80004005
call fcn.14000d650
int3
mov ecx, 0x80070057
call fcn.14000d650
int3