Function at 0x1800105b0
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x11a8
call fcn.1800193e0
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x18003d928]
xor rax, rbp
mov qword [rbp + 0x1160], rax
mov r15, r8
mov qword [rbp + 0x20], r8
mov r14, rdx
mov qword [rbp + 0x18], rdx
mov rsi, rcx
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 8], r8
mov qword [rbp + 0x38], r9
xor r13d, r13d
mov word [rbp], r13w
lea rdx, [rbp + 0x160]
call fcn.18000eb60
test eax, eax
js 0x180010aa1
lea rdx, [rbp]
lea rcx, [rbp + 0x160]
call fcn.18000e970
test eax, eax
jne 0x180010643
mov eax, 0x80020009
jmp 0x180010aa1
mov rcx, qword [rsi]
movzx eax, byte [rcx]
cmp al, 9
jl 0x180010664
cmp al, 0xa
jle 0x180010659
cmp al, 0xd
je 0x180010659
cmp al, 0x20
jne 0x180010664
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [rsi], rax
jmp 0x180010643
lea rdx, [rbp + 0x160]
mov rcx, rsi
call fcn.18000eb60
test eax, eax
js 0x180010aa1
movzx eax, word [rbp]
cmp eax, 8
je 0x180010a49
cmp eax, 0x11
je 0x1800108ea
cmp eax, 0x13
je 0x1800107bf
cmp eax, 0x4008
jne 0x180010a8c
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov qword [rbp + 0x50], r13
movsxd rcx, eax
test eax, eax
je 0x1800106f4
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jae 0x1800106d9
mov ecx, 0x80070216
call fcn.1800010d0
cmp rcx, 0x100
jbe 0x1800106f4
mov rdx, rcx
lea rcx, [rbp + 0x50]
call fcn.18000eea0
mov rbx, qword [rbp + 0x50]
jmp 0x1800106fc
lea rbx, [rbp + 0x58]
mov qword [rbp + 0x50], rbx
jmp 0x180010711
test rbx, rbx
je 0x18001079f
lea rdi, [rbp + 0x160]
cmp byte [rbp + 0x160], 0
je 0x180010783
nop word [rax + rax]
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextA]
movzx ecx, byte [rdi]
cmp cl, 0x5c
jne 0x18001075a
cmp byte [rax], 0x30
jne 0x18001075a
mov byte [rbx], 0
inc rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rdi, rax
jmp 0x18001077e
mov byte [rbx], cl
movzx ecx, byte [rdi]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x180010778
inc rbx
inc rdi
movzx eax, byte [rdi]
test al, al
je 0x180010783
mov byte [rbx], al
inc rbx
inc rdi
cmp byte [rdi], 0
jne 0x180010730
mov word [rbx], 0
mov r8, qword [rbp + 0x50]
mov rdx, r15
mov rcx, r14
call fcn.18000e7f0
mov edi, eax
mov rbx, qword [rbp + 0x50]
jmp 0x1800107a4
mov edi, 0xe
lea rax, [rbp + 0x58]
cmp rbx, rax
je 0x180010a7f
lea rcx, [rbp + 0x50]
call fcn.18000ee90
jmp 0x180010a7f
mov rbx, r13
mov qword [rbp + 0x18], rbx
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
movsxd r12, eax
add r12, r12
mov eax, 0x80000000
add rax, r12
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x1800108c5
cmp r12d, 0x400
jg 0x18001082f
movsxd rdi, r12d
mov rcx, rdi
call fcn.180001410
test al, al
je 0x18001082f
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x18001081c
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1800193e0
sub rsp, rax
lea rcx, [rsp + 0x30]
jmp 0x18001085c
movsxd rdi, r12d
or rax, 0xffffffffffffffff
sub rax, rdi
cmp rax, 0x10
jb 0x1800108ba
lea rcx, [rdi + 0x10]
call fcn.180018ae4
test rax, rax
jne 0x180010852
mov rcx, r13
jmp 0x18001085c
mov qword [rax], r13
mov rbx, rax
lea rcx, [rax + 0x10]
shr rdi, 1
mov r9d, 3
mov r8d, edi
lea rdx, [rbp + 0x160]
call fcn.180001000
test rax, rax
je 0x1800108c5
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, r15
mov rcx, r14
call fcn.180004720
mov edi, eax
test rbx, rbx
je 0x180010a7f
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.180018b9c
test rbx, rbx
jne 0x1800108a5
jmp 0x180010a7f
mov ecx, 0x80070216
call fcn.1800010d0
nop
test rbx, rbx
je 0x1800108e0
nop word [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.180018b9c
test rbx, rbx
jne 0x1800108d0
mov eax, 0x8007000e
jmp 0x180010aa1
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov dword [rbp + 0x10], eax
test al, 1
jne 0x180010992
cdq
sub eax, edx
sar eax, 1
movsxd r12, eax
mov dword [rbp], r12d
mov qword [rbp + 0x50], r13
mov rcx, r12
test eax, eax
je 0x18001094f
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jb 0x180010945
cmp rcx, 0x100
jbe 0x18001094f
mov rdx, rcx
lea rcx, [rbp + 0x50]
call fcn.18000eea0
mov rcx, qword [rbp + 0x50]
jmp 0x180010957
mov ecx, 0x80070216
call fcn.1800010d0
lea rcx, [rbp + 0x58]
mov qword [rbp + 0x50], rcx
jmp 0x18001097b
test rcx, rcx
jne 0x18001099c
lea rax, [rbp + 0x58]
test rax, rax
je 0x180010992
lea rcx, [rbp + 0x50]
call fcn.18000ee90
mov eax, 0x80004005
jmp 0x180010aa1
movsxd r8, r12d
xor edx, edx
call fcn.18001a530
mov r14d, r13d
mov r15, r13
movsxd rax, ebx
test ebx, ebx
jle 0x180010a0a
mov r12, rax
nop word [rax + rax]
mov eax, r14d
cdq
sub eax, edx
sar eax, 1
movsxd rdi, eax
mov rbx, qword [rbp + 0x50]
movzx ecx, byte [rbp + r15 + 0x160]
call fcn.18000ea70
movzx r11d, al
mov ecx, r14d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
movzx ecx, al
shl r11b, cl
or byte [rdi + rbx], r11b
inc r14d
inc r15
cmp r15, r12
jl 0x1800109c0
mov r12d, dword [rbp]
mov dword [rsp + 0x28], r12d
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x18]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea rax, [rbp + 0x58]
cmp qword [rbp + 0x50], rax
je 0x180010a7f
lea rcx, [rbp + 0x50]
call fcn.18000ee90
jmp 0x180010a7f
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x160]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x180010a8c
mov ecx, edi
call fcn.18000e590
jmp 0x180010aa1
mov rdx, qword [rbp + 0x38]
mov rcx, rsi
call fcn.18000eb60
test eax, eax
cmovs r13d, eax
mov eax, r13d
mov rcx, qword [rbp + 0x1160]
xor rcx, rbp
call fcn.1800193b0
lea rsp, [rbp + 0x1178]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret