Function at 0x140019e50
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1198
call fcn.14002c240
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1400625e0]
xor rax, rbp
mov qword [rbp + 0x1150], rax
mov rsi, r8
mov qword [rbp + 8], r8
mov r13, rdx
mov qword [rbp + 0x10], rdx
mov r14, rcx
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x18], r8
mov qword [rbp + 0x30], r9
xor r12d, r12d
mov word [rbp], r12w
lea rdx, [rbp + 0x150]
call fcn.1400201c0
test eax, eax
js 0x14001a355
lea rdx, [rbp]
lea rcx, [rbp + 0x150]
call fcn.140024d70
test eax, eax
jne 0x140019ee3
mov eax, 0x80020009
jmp 0x14001a355
movabs rbx, 0x100002600
nop dword [rax]
mov rcx, qword [r14]
movzx eax, byte [rcx]
cmp al, 0x20
ja 0x140019f0b
bt rbx, rax
jae 0x140019f0b
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [r14], rax
jmp 0x140019ef0
lea rdx, [rbp + 0x150]
mov rcx, r14
call fcn.1400201c0
test eax, eax
js 0x14001a355
movzx eax, word [rbp]
cmp eax, 8
je 0x14001a2f2
cmp eax, 0x11
je 0x14001a19f
cmp eax, 0x13
je 0x14001a06f
cmp eax, 0x4008
jne 0x14001a340
lea rcx, [rbp + 0x150]
or rdi, 0xffffffffffffffff
mov rax, rdi
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], r12b
jne 0x140019f60
add eax, 2
mov qword [rbp + 0x40], r12
movsxd rcx, eax
test eax, eax
je 0x140019faa
xor edx, edx
mov rax, rdi
div rcx
cmp rax, 1
jb 0x140019fa0
cmp rcx, 0x100
jbe 0x140019faa
mov rdx, rcx
lea rcx, [rbp + 0x40]
call fcn.14001a380
mov rbx, qword [rbp + 0x40]
jmp 0x140019fb2
mov ecx, 0x80070216
call fcn.140001850
lea rbx, [rbp + 0x48]
mov qword [rbp + 0x40], rbx
jmp 0x140019fc7
test rbx, rbx
je 0x14001a04f
lea rdi, [rbp + 0x150]
cmp byte [rbp + 0x150], 0
je 0x14001a033
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextA]
movzx ecx, byte [rdi]
cmp cl, 0x5c
jne 0x14001a00a
cmp byte [rax], 0x30
jne 0x14001a00a
mov byte [rbx], 0
inc rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rdi, rax
jmp 0x14001a02e
mov byte [rbx], cl
movzx ecx, byte [rdi]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x14001a028
inc rbx
inc rdi
movzx eax, byte [rdi]
test al, al
je 0x14001a033
mov byte [rbx], al
inc rbx
inc rdi
cmp byte [rdi], 0
jne 0x140019fe0
mov word [rbx], 0
mov r8, qword [rbp + 0x40]
mov rdx, rsi
mov rcx, r13
call fcn.140023850
mov edi, eax
mov rbx, qword [rbp + 0x40]
jmp 0x14001a054
mov edi, 0xe
lea rax, [rbp + 0x48]
cmp rbx, rax
je 0x14001a333
lea rcx, [rbp + 0x40]
call fcn.14001c970
jmp 0x14001a333
mov rbx, r12
mov qword [rbp + 0x10], rbx
lea rcx, [rbp + 0x150]
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x14001a084
inc eax
movsxd r15, eax
add r15, r15
mov eax, 0x80000000
add rax, r15
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x14001a180
cmp r15d, 0x400
jg 0x14001a0e9
movsxd rsi, r15d
mov rcx, rsi
call fcn.140025000
test al, al
je 0x14001a0e9
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x14001a0d6
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14002c240
sub rsp, rax
lea rcx, [rsp + 0x30]
jmp 0x14001a116
movsxd rsi, r15d
sub rdi, rsi
cmp rdi, 0x10
jb 0x14001a175
lea rcx, [rsi + 0x10]
call fcn.14002c82c
test rax, rax
jne 0x14001a10c
mov rcx, r12
jmp 0x14001a116
mov qword [rax], r12
mov rbx, rax
lea rcx, [rax + 0x10]
shr rsi, 1
mov r9d, 3
mov r8d, esi
lea rdx, [rbp + 0x150]
call fcn.14001a480
test rax, rax
je 0x14001a180
lea r9, [rbp]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov r8d, dword [rbp]
mov rdx, qword [rbp + 8]
mov rcx, r13
call fcn.140023750
mov edi, eax
test rbx, rbx
je 0x14001a333
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.140029424
test rbx, rbx
jne 0x14001a160
jmp 0x14001a333
mov ecx, 0x80070216
call fcn.140001850
nop
test rbx, rbx
je 0x14001a195
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.140029424
test rbx, rbx
jne 0x14001a185
mov eax, 0x8007000e
jmp 0x14001a355
lea rax, [rbp + 0x150]
or rdi, 0xffffffffffffffff
mov rbx, rdi
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r12b
jne 0x14001a1b0
mov dword [rbp], ebx
test bl, 1
jne 0x14001a254
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
movsxd r15, eax
mov dword [rbp + 4], r15d
mov qword [rbp + 0x40], r12
mov rcx, r15
test eax, eax
je 0x14001a211
xor edx, edx
mov rax, rdi
div rcx
cmp rax, 1
jb 0x14001a207
cmp rcx, 0x100
jbe 0x14001a211
mov rdx, rcx
lea rcx, [rbp + 0x40]
call fcn.14001a380
mov rcx, qword [rbp + 0x40]
jmp 0x14001a219
mov ecx, 0x80070216
call fcn.140001850
lea rcx, [rbp + 0x48]
mov qword [rbp + 0x40], rcx
jmp 0x14001a23d
test rcx, rcx
jne 0x14001a25e
lea rax, [rbp + 0x48]
test rax, rax
je 0x14001a254
lea rcx, [rbp + 0x40]
call fcn.14001c970
mov eax, 0x80004005
jmp 0x14001a355
movsxd r8, r15d
xor edx, edx
call fcn.14002b2f0
mov edi, r12d
mov rsi, r12
movsxd r13, ebx
test ebx, ebx
jle 0x14001a2b3
mov eax, edi
cdq
sub eax, edx
sar eax, 1
movsxd rbx, eax
add rbx, qword [rbp + 0x40]
movzx ecx, byte [rbp + rsi + 0x150]
call fcn.14001b500
movzx edx, al
mov ecx, edi
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
movzx ecx, al
shl dl, cl
or byte [rbx], dl
inc edi
inc rsi
cmp rsi, r13
jl 0x14001a275
mov dword [rsp + 0x28], r15d
mov rax, qword [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x10]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea rax, [rbp + 0x48]
cmp qword [rbp + 0x40], rax
je 0x14001a333
lea rcx, [rbp + 0x40]
call fcn.14001c970
jmp 0x14001a333
lea rax, [rbp + 0x150]
or rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rax + rdi], r12b
jne 0x14001a300
inc edi
mov dword [rsp + 0x28], edi
lea rax, [rbp + 0x150]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x14001a340
mov ecx, edi
call fcn.14001af40
jmp 0x14001a355
mov rdx, qword [rbp + 0x30]
mov rcx, r14
call fcn.1400201c0
test eax, eax
cmovs r12d, eax
mov eax, r12d
mov rcx, qword [rbp + 0x1150]
xor rcx, rbp
call fcn.14002b2c0
lea rsp, [rbp + 0x1168]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret