Function at 0x140007190
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.140020b20
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14002a528]
xor rax, rbp
mov qword [rbp + 0x1160], rax
mov r14, r8
mov qword [rbp + 0x18], r8
mov r15, rdx
mov qword [rbp + 0x10], rdx
mov rsi, rcx
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 8], r8
mov qword [rbp + 0x38], r9
lea rdx, [rbp + 0x160]
call fcn.140005b00
test eax, eax
js 0x14000771c
mov eax, dword [0x14002bb90]
test al, 1
jne 0x14000726c
or eax, 1
mov dword [0x14002bb90], eax
lea rax, [0x1400218c4]
mov qword [0x14002bb50], rax
mov word [0x14002bb58], 8
lea rax, [0x1400218c0]
mov qword [0x14002bb60], rax
mov word [0x14002bb68], 0x4008
lea rax, [0x1400218bc]
mov qword [0x14002bb70], rax
mov word [0x14002bb78], 0x13
lea rax, str.BDMS
mov qword [0x14002bb80], rax
mov word [0x14002bb88], 0x11
xor r12d, r12d
mov ebx, r12d
lea r13, [0x14002bb50]
mov rdi, r13
nop
mov rdx, qword [rdi]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400072aa
add ebx, 1
add rdi, 0x10
cmp ebx, 4
jb 0x140007280
mov eax, 0x80020009
jmp 0x14000771c
movsxd rax, ebx
shl rax, 4
movzx ebx, word [rax + r13 + 8]
mov rcx, qword [rsi]
mov al, byte [rcx]
cmp al, 9
jl 0x1400072d7
cmp al, 0xa
jle 0x1400072cc
cmp al, 0xd
je 0x1400072cc
cmp al, 0x20
jne 0x1400072d7
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [rsi], rax
jmp 0x1400072b7
lea rdx, [rbp + 0x160]
mov rcx, rsi
call fcn.140005b00
test eax, eax
js 0x14000771c
movzx eax, bx
cmp eax, 8
je 0x1400076c3
cmp eax, 0x11
je 0x14000756f
cmp eax, 0x13
je 0x140007436
cmp eax, 0x4008
jne 0x140007707
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov qword [rbp + 0x50], r12
movsxd rcx, eax
test eax, eax
je 0x140007366
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jae 0x14000734b
mov ecx, 0x80070057
call fcn.140003050
cmp rcx, 0x100
jbe 0x140007366
mov rdx, rcx
lea rcx, [rbp + 0x50]
call fcn.140005da0
mov rbx, qword [rbp + 0x50]
jmp 0x14000736e
lea rbx, [rbp + 0x58]
mov qword [rbp + 0x50], rbx
jmp 0x140007383
test rbx, rbx
je 0x140007416
lea rdi, [rbp + 0x160]
cmp byte [rbp + 0x160], 0
je 0x1400073f8
nop
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextA]
movzx ecx, byte [rdi]
cmp cl, 0x5c
jne 0x1400073cb
cmp byte [rax], 0x30
jne 0x1400073cb
mov byte [rbx], 0
add rbx, 1
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rdi, rax
jmp 0x1400073f3
mov byte [rbx], cl
movzx ecx, byte [rdi]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x1400073eb
add rbx, 1
add rdi, 1
movzx eax, byte [rdi]
test al, al
je 0x1400073f8
mov byte [rbx], al
add rbx, 1
add rdi, 1
cmp byte [rdi], 0
jne 0x1400073a0
mov byte [rbx], 0
mov byte [rbx + 1], 0
mov r8, qword [rbp + 0x50]
mov rdx, r14
mov rcx, r15
call fcn.1400058e0
mov edi, eax
mov rbx, qword [rbp + 0x50]
jmp 0x14000741b
mov edi, 0xe
lea rax, [rbp + 0x58]
cmp rbx, rax
je 0x1400076fa
lea rcx, [rbp + 0x50]
call fcn.140005d60
jmp 0x1400076fa
call qword [0x14002a430]
mov r14d, eax
mov rbx, r12
mov qword [rbp + 0x10], rbx
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
movsxd r13, eax
add r13, r13
mov eax, 0x80000000
lea rcx, [r13 + rax]
mov eax, 0xffffffff
cmp rcx, rax
ja 0x140007550
cmp r13d, 0x400
jg 0x1400074b2
movsxd rdi, r13d
mov rcx, rdi
call fcn.140005e00
test al, al
je 0x1400074b2
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x14000749f
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140020b20
sub rsp, rax
lea rcx, [rsp + 0x30]
jmp 0x1400074e3
movsxd rdi, r13d
or rax, 0xffffffffffffffff
sub rax, rdi
cmp rax, 0x10
jb 0x140007545
lea rcx, [rdi + 0x10]
call fcn.140010800
test rax, rax
jne 0x1400074d9
mov rcx, r12
jmp 0x1400074e3
mov qword [rax], r12
mov rbx, rax
lea rcx, [rax + 0x10]
shr rdi, 1
mov r9d, r14d
mov r8d, edi
lea rdx, [rbp + 0x160]
call fcn.140005710
test rax, rax
je 0x140007550
lea r9, [rbp]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [0x1400213b8]
mov r8d, dword [rbp]
mov rdx, qword [rbp + 0x18]
mov rcx, r15
call fcn.1400058a0
mov edi, eax
test rbx, rbx
je 0x1400076fa
nop
nop
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1400105d0
test rbx, rbx
jne 0x140007530
jmp 0x1400076fa
mov ecx, 0x80070057
call fcn.140003050
nop
test rbx, rbx
je 0x140007565
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1400105d0
test rbx, rbx
jne 0x140007555
mov eax, 0x8007000e
jmp 0x14000771c
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov dword [rbp + 0x20], eax
test al, 1
je 0x14000758f
mov eax, 0x80004005
jmp 0x14000771c
cdq
sub eax, edx
sar eax, 1
movsxd r13, eax
mov dword [rbp], r13d
mov qword [rbp + 0x50], r12
mov rcx, r13
test eax, eax
je 0x1400075da
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jae 0x1400075bf
mov ecx, 0x80070057
call fcn.140003050
cmp rcx, 0x100
jbe 0x1400075da
mov rdx, rcx
lea rcx, [rbp + 0x50]
call fcn.140005dd0
mov rcx, qword [rbp + 0x50]
jmp 0x1400075e2
lea rcx, [rbp + 0x58]
mov qword [rbp + 0x50], rcx
jmp 0x140007606
test rcx, rcx
jne 0x140007627
lea rax, [rbp + 0x58]
test rax, rax
je 0x14000761d
lea rcx, [rbp + 0x50]
call fcn.140005d60
mov eax, 0x80004005
jmp 0x14000771c
movsxd r8, r13d
xor edx, edx
call fcn.140010da0
mov r14d, r12d
mov r15, r12
movsxd rax, ebx
test ebx, ebx
jle 0x140007684
mov r13, 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.140005a70
mov edx, r14d
and edx, 1
shl edx, 2
mov ecx, 4
sub ecx, edx
shl al, cl
or byte [rdi + rbx], al
add r14d, 1
add r15, 1
cmp r15, r13
jl 0x140007641
mov r13d, dword [rbp]
mov dword [rsp + 0x28], r13d
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x10]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea rax, [rbp + 0x58]
cmp qword [rbp + 0x50], rax
je 0x1400076fa
lea rcx, [rbp + 0x50]
call fcn.140005d60
jmp 0x1400076fa
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x160]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r14
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x140007707
mov ecx, edi
call fcn.1400057d0
jmp 0x14000771c
mov rdx, qword [rbp + 0x38]
mov rcx, rsi
call fcn.140005b00
test eax, eax
cmovs r12d, eax
mov eax, r12d
mov rcx, qword [rbp + 0x1160]
xor rcx, rbp
call fcn.1400105b0
lea rsp, [rbp + 0x1178]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret