Function at 0x18000730c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2160
call fcn.180022680
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov r12, r8
mov r13, rdx
mov r14, rcx
xor ebx, ebx
mov word [rsp + 0x30], bx
lea rdx, [rsp + 0x160]
call fcn.180007178
test eax, eax
js 0x18000778c
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x160]
call fcn.18000704c
test eax, eax
jne 0x180007385
mov eax, 0x80020009
jmp 0x18000778c
mov rcx, qword [r14]
movzx eax, word [rcx]
cmp eax, 9
jb 0x1800073b0
cmp eax, 0x20
ja 0x1800073b0
movabs rdx, 0x1000027ff
bt rdx, rax
jae 0x1800073b0
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
jmp 0x180007385
lea rdx, [rsp + 0x160]
mov rcx, r14
call fcn.180007178
test eax, eax
js 0x18000778c
movzx eax, word [rsp + 0x30]
cmp eax, 8
je 0x18000772b
cmp eax, 0x11
je 0x1800075a1
cmp eax, 0x13
je 0x180007544
cmp eax, 0x4008
jne 0x180007775
lea rcx, [rsp + 0x160]
call fcn.18000ffd0
add eax, 2
mov qword [rsp + 0x50], rbx
movsxd rcx, eax
test eax, eax
je 0x180007446
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x18000743c
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x180007446
lea rcx, [rsp + 0x50]
call fcn.180009e64
mov rdi, qword [rsp + 0x50]
jmp 0x180007450
mov ecx, 0x80070216
call fcn.1800063ec
lea rdi, [rsp + 0x58]
mov qword [rsp + 0x50], rdi
jmp 0x180007471
test rdi, rdi
je 0x180007522
lea rsi, [rsp + 0x160]
cmp word [rsp + 0x160], bx
je 0x1800074cb
mov r15d, 0x30
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [rsi]
cmp cx, 0x5c
jne 0x1800074bb
cmp word [rax], r15w
jne 0x1800074bb
mov word [rdi], bx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov rsi, rax
jmp 0x1800074c2
mov word [rdi], cx
add rsi, 2
add rdi, 2
cmp word [rsi], bx
jne 0x180007492
and dword [rdi], 0
mov rdi, qword [rsp + 0x50]
test rdi, rdi
jne 0x1800074dd
lea esi, [rdi + 0xd]
jmp 0x180007527
mov r15d, ebx
mov rsi, rdi
mov rcx, rsi
call fcn.18000ffd0
lea ecx, [rax + 1]
lea rsi, [rsi + rcx*2]
lea r15d, [r15 + rcx*2]
cmp ecx, 1
jne 0x1800074e3
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rdi
lea r9d, [rcx + 6]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rdi, qword [rsp + 0x50]
jmp 0x180007527
mov esi, 0xe
lea rax, [rsp + 0x58]
cmp rdi, rax
je 0x180007768
lea rcx, [rsp + 0x50]
call fcn.180009cdc
jmp 0x180007768
mov qword [rsp + 0x48], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x160]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
jns 0x18000756a
jmp 0x18000778c
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x180007768
lea rcx, [rsp + 0x160]
call fcn.18000ffd0
mov rdi, rax
mov dword [rsp + 0x38], eax
test al, 1
je 0x1800075c3
mov eax, 0x80004005
jmp 0x18000778c
cdq
sub eax, edx
sar eax, 1
movsxd rsi, eax
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x50], rbx
mov rcx, rsi
test eax, eax
je 0x180007611
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jae 0x1800075f4
mov ecx, 0x80070216
call fcn.1800063ec
cmp rcx, 0x100
jbe 0x180007611
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.180009e64
mov rcx, qword [rsp + 0x50]
jmp 0x18000761b
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x50], rcx
jmp 0x180007644
test rcx, rcx
jne 0x180007666
lea rax, [rsp + 0x58]
test rax, rax
je 0x1800075b9
lea rcx, [rsp + 0x50]
call fcn.180009cdc
jmp 0x1800075b9
movsxd r8, esi
xor edx, edx
call fcn.18000c9c0
mov r8d, ebx
movsxd r11, edi
mov r9, rbx
test edi, edi
jle 0x1800076ed
mov r15d, 0x30
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
movsxd r10, eax
add r10, qword [rsp + 0x50]
movzx edx, word [rsp + r9*2 + 0x160]
mov eax, edx
cmp edx, r15d
jb 0x1800076c9
cmp eax, 0x39
jbe 0x1800076c4
cmp eax, 0x40
jbe 0x1800076c9
cmp eax, 0x46
jbe 0x1800076bf
add eax, 0xffffff9f
cmp eax, 5
ja 0x1800076c9
sub dl, 0x57
jmp 0x1800076cb
sub dl, 0x37
jmp 0x1800076cb
sub dl, r15b
jmp 0x1800076cb
mov dl, bl
mov ecx, r8d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl dl, cl
or byte [r10], dl
inc r8d
inc r9
cmp r9, r11
jl 0x180007683
mov dword [rsp + 0x28], esi
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x180007768
lea rcx, [rsp + 0x50]
call fcn.180009cdc
jmp 0x180007768
lea rcx, [rsp + 0x160]
call fcn.18000ffd0
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x160]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x180007775
mov ecx, esi
call fcn.180006428
jmp 0x18000778c
mov rdx, qword [rsp + 0x21b8]
mov rcx, r14
call fcn.180007178
test eax, eax
cmovs ebx, eax
mov eax, ebx
add rsp, 0x2160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret