Function at 0x140046b40
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push r12
push r13
push r15
lea rbp, [rsp - 0x2080]
mov eax, 0x2180
call fcn.1400578d0
sub rsp, rax
mov rax, qword [0x140121c38]
xor rax, rsp
mov qword [rbp + 0x2050], rax
mov r13, rdx
mov qword [rsp + 0x30], r9
lea rdx, [rbp + 0x50]
mov qword [rsp + 0x38], r8
mov rsi, r9
mov r15, r8
mov r12, rcx
call fcn.14004b480
test eax, eax
js 0x140046e9c
lea rdx, [0x1400efa98]
mov qword [rsp + 0x2178], rbx
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140046bb8
lea ebx, [rax + 8]
jmp 0x140046c10
lea rdx, [0x1400efaa8]
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140046bd4
mov ebx, 0x4008
jmp 0x140046c10
lea rdx, [0x1400efab8]
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140046bee
lea ebx, [rax + 0x13]
jmp 0x140046c10
lea rdx, [0x1400efac8]
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140047016
lea ebx, [rax + 0x11]
nop word [rax + rax]
mov rdx, qword [r12]
movzx ecx, word [rdx]
sub ecx, 9
je 0x140046c2b
sub ecx, 1
je 0x140046c2b
sub ecx, 3
je 0x140046c2b
cmp ecx, 0x13
jne 0x140046c3a
mov rcx, rdx
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r12], rax
jmp 0x140046c10
lea rdx, [rbp + 0x50]
mov rcx, r12
call fcn.14004b480
test eax, eax
js 0x140046e94
mov qword [rsp + 0x2170], rdi
mov qword [rsp + 0x2168], r14
xor r14d, r14d
cmp ebx, 8
je 0x140046f9a
cmp ebx, 0x11
je 0x140046e11
cmp ebx, 0x13
je 0x140046dbe
cmp ebx, 0x4008
jne 0x140046ffd
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x40], r14
mov rax, rsi
lea rcx, [rbp + 0x50]
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140046ca0
add eax, 2
movsxd rcx, eax
je 0x140046ced
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 2
jb 0x14004702b
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x140046ced
lea rcx, [rsp + 0x40]
call fcn.1400470b0
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jne 0x140046cf7
lea edi, [rbx + 0xe]
jmp 0x140046da1
lea rbx, [rsp + 0x48]
mov qword [rsp + 0x40], rbx
lea rdi, [rbp + 0x50]
cmp word [rbp + 0x50], r14w
je 0x140046d3d
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [rdi]
cmp cx, 0x5c
jne 0x140046d2c
cmp word [rax], 0x30
jne 0x140046d2c
mov rcx, rax
mov word [rbx], r14w
call qword [sym.imp.USER32.dll_CharNextW]
mov rdi, rax
jmp 0x140046d33
mov word [rbx], cx
add rdi, 2
add rbx, 2
cmp word [rdi], r14w
jne 0x140046d02
mov dword [rbx], r14d
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jne 0x140046d4f
lea edi, [rbx + 0xd]
jmp 0x140046da1
mov r9d, r14d
mov r8, rbx
nop word [rax + rax]
mov rcx, rsi
inc rcx
cmp word [r8 + rcx*2], r14w
jne 0x140046d63
inc ecx
lea r8, [r8 + rcx*2]
lea r9d, [r9 + rcx*2]
cmp ecx, 1
jne 0x140046d60
mov dword [rsp + 0x28], r9d
xor r8d, r8d
lea r9d, [rcx + 6]
mov qword [rsp + 0x20], rbx
mov rcx, qword [r13]
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov edi, eax
lea rax, [rsp + 0x48]
cmp rbx, rax
je 0x140046fe8
lea rcx, [rsp + 0x40]
call fcn.14004a950
jmp 0x140046fe8
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x50]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x140046e84
mov eax, dword [rsp + 0x38]
mov r9d, 4
mov rcx, qword [r13]
xor r8d, r8d
mov dword [rsp + 0x30], eax
mov rdx, r15
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x140046fed
mov rsi, 0xffffffffffffffff
lea rax, [rbp + 0x50]
mov rbx, rsi
nop
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x140046e20
test bl, 1
jne 0x140046e7f
mov eax, ebx
mov qword [rsp + 0x40], r14
cdq
sub eax, edx
sar eax, 1
movsxd r15, eax
mov rdi, r15
je 0x140046ebb
xor edx, edx
mov rax, rsi
div rdi
cmp rax, 1
jb 0x140047020
cmp r15, 0x100
jbe 0x140046ebb
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.140047080
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x140046ec5
lea rcx, [rsp + 0x40]
call fcn.14004a940
mov eax, 0x80004005
mov rdi, qword [rsp + 0x2170]
mov r14, qword [rsp + 0x2168]
mov rbx, qword [rsp + 0x2178]
mov rcx, qword [rbp + 0x2050]
xor rcx, rsp
call fcn.140056c90
add rsp, 0x2180
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rcx
mov r8, rdi
xor edx, edx
call fcn.140085ae0
movsxd r11, ebx
mov r10d, r14d
test ebx, ebx
jle 0x140046f59
mov r9, r14
lea rbx, [0x140000000]
nop word [rax + rax]
movzx r8d, word [rbp + r9*2 + 0x50]
lea eax, [r8 - 0x30]
cmp eax, 0x36
ja case.0x140046f13.51
cdqe
movzx eax, byte [rbx + rax + 0x47048]
mov ecx, dword [rbx + rax*4 + 0x47038]
add rcx, rbx
jmp rcx
sub r8b, 0x30
jmp 0x140046f2a
sub r8b, 0x37
jmp 0x140046f2a
sub r8b, 0x57
jmp 0x140046f2a
xor r8b, r8b
mov ecx, r10d
mov edx, r10d
and ecx, 1
shr rdx, 1
add rdx, qword [rsp + 0x40]
mov eax, 4
shl ecx, 2
inc r10d
sub eax, ecx
inc r9
movzx ecx, al
shl r8b, cl
or byte [rdx], r8b
cmp r9, r11
jl 0x140046ef0
mov rax, qword [rsp + 0x40]
mov r9d, 3
mov rdx, qword [rsp + 0x38]
xor r8d, r8d
mov rcx, qword [r13]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x40], rax
je 0x140046fe8
lea rcx, [rsp + 0x40]
call fcn.14004a940
jmp 0x140046fe8
lea rax, [rbp + 0x50]
mov rsi, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rax + rsi*2 + 2], r14w
lea rsi, [rsi + 1]
jne 0x140046fb0
mov rcx, qword [r13]
lea eax, [rsi*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rbp + 0x50]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rsi, qword [rsp + 0x30]
test edi, edi
je 0x140046ffd
mov ecx, edi
call fcn.1400472e0
jmp 0x140046e84
mov rdx, rsi
mov rcx, r12
call fcn.14004b480
test eax, eax
cmovs r14d, eax
mov eax, r14d
jmp 0x140046e84
mov eax, 0x80020009
jmp 0x140046e94
mov ecx, 0x80070216
call fcn.140006d80
int3
mov ecx, 0x80070216
call fcn.140006d80
int3