Function at 0x14001bf3c
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2190
call fcn.140169460
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rsp + 0x2180], rax
mov r15, r8
mov qword [rsp + 0x50], r8
mov r12, rdx
mov r13, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x60], r9
xor ebx, ebx
mov word [rsp + 0x30], bx
lea rdx, [rsp + 0x180]
call fcn.14001bd90
test eax, eax
js 0x14001c44f
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x180]
call fcn.14001bc94
test eax, eax
jne 0x14001bfce
mov eax, 0x80020009
jmp 0x14001c44f
mov rcx, qword [r13]
movzx eax, word [rcx]
cmp eax, 9
jl 0x14001bff5
cmp eax, 0xa
jle 0x14001bfe9
cmp eax, 0xd
je 0x14001bfe9
cmp eax, 0x20
jne 0x14001bff5
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r13], rax
jmp 0x14001bfce
lea rdx, [rsp + 0x180]
mov rcx, r13
call fcn.14001bd90
test eax, eax
js 0x14001c44f
movzx eax, word [rsp + 0x30]
cmp eax, 8
je 0x14001c419
cmp eax, 0x11
je 0x14001c251
cmp eax, 0x13
je 0x14001c1e4
cmp eax, 0x4008
jne 0x14001c43b
lea rcx, [rsp + 0x180]
or r14, 0xffffffffffffffff
mov rax, r14
inc rax
cmp word [rcx + rax*2], bx
jne 0x14001c047
add eax, 2
mov qword [rsp + 0x70], rbx
movsxd rcx, eax
test eax, eax
je 0x14001c096
xor edx, edx
mov rax, r14
div rcx
cmp rax, 2
jb 0x14001c08b
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x14001c096
lea rcx, [rsp + 0x70]
call fcn.14001dc08
mov rdi, qword [rsp + 0x70]
jmp 0x14001c0a0
mov ecx, 0x80070057
call fcn.14001ad98
int3
lea rdi, [rsp + 0x78]
mov qword [rsp + 0x70], rdi
jmp 0x14001c0c1
test rdi, rdi
je 0x14001c1c2
lea rsi, [rsp + 0x180]
cmp word [rsp + 0x180], bx
je 0x14001c11f
mov r15d, 0x30
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [rsi]
cmp cx, 0x5c
jne 0x14001c10f
cmp word [rax], r15w
jne 0x14001c10f
mov word [rdi], bx
add rdi, 2
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov rsi, rax
jmp 0x14001c11a
mov word [rdi], cx
add rdi, 2
add rsi, 2
cmp word [rsi], bx
jne 0x14001c0e2
mov dword [rdi], 0
mov rdi, qword [rsp + 0x70]
cmp qword [r12], rbx
jne 0x14001c148
lea r8, [0x1400019c8]
mov edx, 0x1693
lea rcx, [0x1400019a8]
call fcn.1400a8be8
mov eax, ebx
test rdi, rdi
setne al
test eax, eax
jne 0x14001c177
lea r8, [0x140001998]
mov edx, 0x1694
lea rcx, [0x1400019a8]
call fcn.1400a8be8
mov ecx, 0x80004005
call fcn.14001ad98
int3
mov r9d, ebx
mov r8, rdi
mov rcx, r14
inc rcx
cmp word [r8 + rcx*2], bx
jne 0x14001c180
inc ecx
lea r8, [r8 + rcx*2]
lea r9d, [r9 + rcx*2]
cmp ecx, 1
jne 0x14001c17d
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rdi
lea r9d, [rcx + 6]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rdi, qword [rsp + 0x70]
jmp 0x14001c1c7
mov esi, reloc.ADVAPI32.dll_GetTraceEnableFlags
lea rax, [rsp + 0x78]
cmp rdi, rax
je 0x14001c42e
lea rcx, [rsp + 0x70]
call fcn.14001d97c
jmp 0x14001c42e
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x180]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov r11d, dword [rsp + 0x30]
mov dword [rsp + 0x38], r11d
cmp qword [r12], rbx
jne 0x14001c224
lea r8, [0x1400019c8]
mov edx, 0x167a
lea rcx, [0x1400019a8]
call fcn.1400a8be8
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x14001c42c
lea rax, [rsp + 0x180]
or r14, 0xffffffffffffffff
mov rdi, r14
inc rdi
cmp word [rax + rdi*2], bx
jne 0x14001c260
mov dword [rsp + 0x38], edi
test dil, 1
je 0x14001c27d
mov eax, 0x80004005
jmp 0x14001c44f
mov eax, edi
cdq
sub eax, edx
sar eax, 1
movsxd rsi, eax
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x70], rbx
mov rcx, rsi
test eax, eax
je 0x14001c2cd
xor edx, edx
mov rax, r14
div rcx
cmp rax, 1
jb 0x14001c2c2
cmp rcx, 0x100
jbe 0x14001c2cd
mov rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.14001dc08
mov rcx, qword [rsp + 0x70]
jmp 0x14001c2d7
mov ecx, 0x80070057
call fcn.14001ad98
int3
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x70], rcx
jmp 0x14001c2fc
test rcx, rcx
jne 0x14001c31e
lea rax, [rsp + 0x78]
test rax, rax
je 0x14001c273
lea rcx, [rsp + 0x70]
call fcn.14001d97c
jmp 0x14001c273
movsxd r8, esi
xor edx, edx
call sub.msvcrt.dll_memset
mov r14d, ebx
mov rcx, rbx
mov qword [rsp + 0x40], rbx
movsxd rax, edi
test edi, edi
jle 0x14001c3d9
mov r15d, 0x30
mov rsi, rax
mov eax, r14d
cdq
sub eax, edx
sar eax, 1
movsxd rdi, eax
add rdi, qword [rsp + 0x70]
movzx edx, word [rsp + rcx*2 + 0x180]
mov eax, edx
cmp edx, r15d
jl 0x14001c38c
cmp eax, 0x39
jle 0x14001c387
cmp eax, 0x40
jle 0x14001c38c
cmp eax, 0x46
jle 0x14001c382
add eax, 0xffffff9f
cmp eax, 5
ja 0x14001c38c
sub dl, 0x57
jmp 0x14001c3a6
sub dl, 0x37
jmp 0x14001c3a6
sub dl, r15b
jmp 0x14001c3a6
lea r8, [0x14000190c]
mov edx, 0x2f1
lea rcx, [0x140001b30]
call fcn.1400a8be8
mov dl, bl
mov ecx, r14d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl dl, cl
or byte [rdi], dl
inc r14d
mov rcx, qword [rsp + 0x40]
inc rcx
mov qword [rsp + 0x40], rcx
cmp rcx, rsi
jl 0x14001c347
mov esi, dword [rsp + 0x30]
mov dword [rsp + 0x28], esi
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14001c42e
lea rcx, [rsp + 0x70]
call fcn.14001d97c
jmp 0x14001c42e
lea r8, [rsp + 0x180]
mov rdx, r15
mov rcx, r12
call fcn.14001b0c4
mov esi, eax
test esi, esi
je 0x14001c43b
mov ecx, esi
call fcn.14001ae34
jmp 0x14001c44f
mov rdx, qword [rsp + 0x60]
mov rcx, r13
call fcn.14001bd90
test eax, eax
cmovs ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x2180]
xor rcx, rsp
call fcn.140168920
add rsp, 0x2190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret