Function at 0x140001834
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x22b0
call fcn.1400117d0
sub rsp, rax
mov rax, qword [0x140046308]
xor rax, rsp
mov qword [rsp + 0x22a0], rax
mov r13, r8
mov r12, rdx
mov r14, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x68], r9
xor edi, edi
mov word [rsp + 0x30], di
lea rdx, [rsp + 0x2a0]
call fcn.140002ea0
lfence
test eax, eax
js 0x1400018b7
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x2a0]
call fcn.140004dbc
test eax, eax
jne 0x1400018da
mov eax, 0x80020009
mov rcx, qword [rsp + 0x22a0]
xor rcx, rsp
call fcn.140011830
add rsp, 0x22b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lfence
mov rdx, qword [r14]
movzx ecx, word [rdx]
sub ecx, 9
je 0x140001cb9
sub ecx, 1
je 0x140001cb9
sub ecx, 3
je 0x140001cb9
cmp ecx, 0x13
je 0x140001cb9
lea rdx, [rsp + 0x2a0]
mov rcx, r14
call fcn.140002ea0
test eax, eax
jns 0x140001920
lfence
jmp 0x1400018b7
movzx eax, word [rsp + 0x30]
cmp eax, 8
je 0x140001c4d
cmp eax, 0x11
je 0x140001abe
cmp eax, 0x13
je 0x140001a7e
cmp eax, 0x4008
jne 0x140001c9a
lea rcx, [rsp + 0x2a0]
call fcn.1400191c4
lea ebx, [rax + 2]
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x190]
call fcn.140013280
mov qword [rsp + 0x190], rdi
movsxd rcx, ebx
test ebx, ebx
je 0x1400019b9
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140001cca
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x1400019b9
lfence
lea rcx, [rsp + 0x190]
call fcn.140001ce8
mov rbx, qword [rsp + 0x190]
jmp 0x1400019c9
lea rbx, [rsp + 0x198]
mov qword [rsp + 0x190], rbx
jmp 0x1400019e4
test rbx, rbx
je 0x140001a56
lea rsi, [rsp + 0x2a0]
cmp word [rsp + 0x2a0], di
je 0x140001a34
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [rsi]
cmp cx, 0x5c
jne 0x140001a24
cmp word [rax], 0x30
jne 0x140001a24
mov word [rbx], di
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov rsi, rax
jmp 0x140001a2b
mov word [rbx], cx
add rsi, 2
add rbx, 2
cmp word [rsi], di
jne 0x1400019fb
and dword [rbx], 0
mov r8, qword [rsp + 0x190]
mov rdx, r13
mov rcx, r12
call fcn.140004714
mov esi, eax
mov rbx, qword [rsp + 0x190]
jmp 0x140001a5b
mov esi, SafeArrayGetDim
lea rax, [rsp + 0x198]
cmp rbx, rax
je 0x140001c8a
lea rcx, [rsp + 0x190]
call fcn.140002cec
jmp 0x140001c8a
lea r9, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x14000191b
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov r9d, 4
jmp 0x140001c73
lea rcx, [rsp + 0x2a0]
call fcn.1400191c4
mov rsi, rax
mov dword [rsp + 0x34], eax
test al, 1
jne 0x140001b9a
cdq
sub eax, edx
sar eax, 1
movsxd r15, eax
mov dword [rsp + 0x38], r15d
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x80]
call fcn.140013280
mov qword [rsp + 0x80], rdi
mov rbx, r15
mov qword [rsp + 0x40], rbx
test r15d, r15d
je 0x140001b4a
xor edx, edx
or rax, 0xffffffffffffffff
div rbx
cmp rax, 1
jb 0x140001cd8
cmp rbx, 0x100
jbe 0x140001b4a
lfence
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.140001ce8
mov rcx, qword [rsp + 0x80]
jmp 0x140001b5a
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x80], rcx
jmp 0x140001b88
test rcx, rcx
jne 0x140001ba4
lea rcx, [rsp + 0x80]
call fcn.140002cec
mov eax, 0x80004005
jmp 0x1400018b7
mov r8, rbx
xor edx, edx
call fcn.140013280
movsxd rax, esi
test esi, esi
jle 0x140001c02
mov rsi, rdi
mov r15d, edi
mov r14, rax
mov ebx, r15d
shr rbx, 1
add rbx, qword [rsp + 0x80]
movzx ecx, word [rsp + rsi*2 + 0x2a0]
call fcn.140002a10
mov edx, r15d
and edx, 1
shl edx, 2
mov ecx, 4
sub ecx, edx
shl al, cl
or byte [rbx], al
inc r15d
inc rsi
cmp rsi, r14
jl 0x140001bbe
mov r14, qword [rsp + 0x60]
mov r15d, dword [rsp + 0x38]
mov dword [rsp + 0x28], r15d
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea rax, [rsp + 0x88]
cmp qword [rsp + 0x80], rax
je 0x140001c8a
lea rcx, [rsp + 0x80]
call fcn.140002cec
jmp 0x140001c8a
lea rcx, [rsp + 0x2a0]
call fcn.1400191c4
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x2a0]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x140001c9a
mov ecx, esi
call fcn.140002008
jmp 0x1400018b7
lfence
mov rdx, qword [rsp + 0x68]
mov rcx, r14
call fcn.140002ea0
test eax, eax
js 0x14000191b
xor eax, eax
jmp 0x1400018b7
mov rcx, rdx
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
jmp 0x1400018dd
lfence
mov ecx, 0x80070216
call fcn.140001170
nop
lfence
mov ecx, 0x80070216
call fcn.140001170
int3