Function at 0x140001f60
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x2360
call fcn.140008650
sub rsp, rax
mov qword [rsp + 0x128], 0xfffffffffffffffe
mov rax, qword [0x140020010]
xor rax, rsp
mov qword [rsp + 0x2350], rax
xor eax, eax
mov word [rsp + 0x48], ax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x98], 0
lea rdx, [rsp + 0x350]
mov rcx, qword [rsp + 0x2370]
call fcn.140003970
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140001fe3
mov eax, dword [rsp + 0x30]
jmp 0x14000263c
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x350]
call fcn.140007430
test eax, eax
jne 0x140002003
mov eax, 0x80020009
jmp 0x14000263c
mov rcx, qword [rsp + 0x2370]
call fcn.1400061b0
lea rdx, [rsp + 0x350]
mov rcx, qword [rsp + 0x2370]
call fcn.140003970
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140002039
mov eax, dword [rsp + 0x30]
jmp 0x14000263c
movzx eax, word [rsp + 0x48]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 8
je 0x14000206e
cmp dword [rsp + 0x58], 0x11
je 0x1400023af
cmp dword [rsp + 0x58], 0x13
je 0x140002267
cmp dword [rsp + 0x58], 0x4008
je 0x14000209a
jmp 0x1400025f7
mov r9d, 1
lea r8, [rsp + 0x350]
mov rdx, qword [rsp + 0x2380]
mov rcx, qword [rsp + 0x2378]
call fcn.140006020
mov dword [rsp + 0x34], eax
jmp 0x1400025f7
lea rax, [rsp + 0x350]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x78], 0xffffffffffffffff
inc qword [rsp + 0x78]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x78]
cmp word [rax + rcx*2], 0
jne 0x1400020b3
mov rax, qword [rsp + 0x78]
add rax, 2
mov dword [rsp + 0x5c], eax
mov qword [rsp + 0x240], 0
movsxd rax, dword [rsp + 0x5c]
mov rdx, rax
lea rcx, [rsp + 0x240]
call fcn.1400026d0
nop
jmp 0x1400020fd
mov rax, qword [rsp + 0x240]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
je 0x14000223b
mov rax, qword [rsp + 0x240]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x350]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x5c], 0
mov rax, qword [rsp + 0x68]
movzx eax, word [rax]
test eax, eax
je 0x1400021e6
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x68]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x1400021ab
mov rax, qword [rsp + 0xa8]
movzx eax, word [rax]
cmp eax, 0x30
jne 0x1400021ab
xor eax, eax
mov rcx, qword [rsp + 0x50]
mov word [rcx], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rsp + 0x68], rax
jmp 0x1400021d7
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
movzx ecx, word [rcx]
mov word [rax], cx
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x68]
add rax, 2
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x5c]
inc eax
mov dword [rsp + 0x5c], eax
jmp 0x14000213e
xor eax, eax
mov rcx, qword [rsp + 0x50]
mov word [rcx], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
xor eax, eax
mov rcx, qword [rsp + 0x50]
mov word [rcx], ax
mov rax, qword [rsp + 0x240]
mov qword [rsp + 0xc8], rax
mov r8, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0x2380]
mov rcx, qword [rsp + 0x2378]
call fcn.140005f20
mov dword [rsp + 0x34], eax
jmp 0x140002243
mov dword [rsp + 0x34], 0xe
lea rax, [rsp + 0x248]
cmp qword [rsp + 0x240], rax
je 0x140002262
lea rcx, [rsp + 0x240]
call fcn.140003350
jmp 0x1400025f7
mov dword [rsp + 0xb0], 3
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x350]
mov qword [rsp + 0xd0], rax
lea r9, [rsp + 0x84]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x1400022f9
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x80], eax
cmp qword [rsp + 0x40], 0
je 0x1400022ed
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0xd8]
call fcn.14000c764
jmp 0x1400022bc
mov eax, dword [rsp + 0x80]
jmp 0x14000263c
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x88], eax
xor eax, eax
test eax, eax
jne 0x140002307
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x2380]
mov rax, qword [rsp + 0x2378]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x34], eax
cmp qword [rsp + 0x40], 0
je 0x140002379
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0xe0]
call fcn.14000c764
jmp 0x140002348
jmp 0x1400025f7
lea rax, [rsp + 0x350]
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0x70], 0xffffffffffffffff
inc qword [rsp + 0x70]
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x70]
cmp word [rax + rcx*2], 0
jne 0x1400023c8
mov rax, qword [rsp + 0x70]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
and eax, 1
test eax, eax
je 0x1400023ff
mov eax, 0x80004005
jmp 0x14000263c
mov eax, dword [rsp + 0x60]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x130], 0
movsxd rax, dword [rsp + 0x64]
mov rdx, rax
lea rcx, [rsp + 0x130]
call fcn.140002660
nop
jmp 0x140002430
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0xf8], rax
cmp qword [rsp + 0xf8], 0
jne 0x140002481
mov dword [rsp + 0x90], 0x80004005
lea rax, [rsp + 0x138]
cmp qword [rsp + 0x130], rax
je 0x140002475
lea rcx, [rsp + 0x130]
call fcn.140003350
mov eax, dword [rsp + 0x90]
jmp 0x14000263c
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x100], rax
movsxd rax, dword [rsp + 0x64]
mov qword [rsp + 0x108], rax
mov rdi, qword [rsp + 0x100]
xor eax, eax
mov rcx, qword [rsp + 0x108]
rep stosb byte [rdi], al
mov dword [rsp + 0x38], 0
jmp 0x1400024c6
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x38], eax
jge 0x14000255b
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x110], rax
mov eax, dword [rsp + 0x38]
cdq
sub eax, edx
sar eax, 1
cdqe
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x38]
and eax, 1
mov ecx, 1
sub ecx, eax
mov eax, ecx
shl eax, 2
mov dword [rsp + 0x94], eax
movsxd rcx, dword [rsp + 0x38]
movzx ecx, word [rsp + rcx*2 + 0x350]
call fcn.140002d00
movzx eax, al
mov ecx, dword [rsp + 0x94]
shl eax, cl
mov rcx, qword [rsp + 0xa0]
movzx ecx, byte [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xa0]
mov byte [rcx], al
jmp 0x1400024bc
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x2378]
mov rax, qword [rax]
mov qword [rsp + 0x120], rax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x2380]
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x138]
cmp qword [rsp + 0x130], rax
je 0x1400025d5
lea rcx, [rsp + 0x130]
call fcn.140003350
jmp 0x1400025f7
cmp dword [rsp + 0x34], 0
je 0x140002614
mov dword [rsp + 0x98], 0x204
mov ecx, dword [rsp + 0x34]
call fcn.140002c30
jmp 0x14000263c
mov rdx, qword [rsp + 0x2388]
mov rcx, qword [rsp + 0x2370]
call fcn.140003970
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x14000263a
mov eax, dword [rsp + 0x30]
jmp 0x14000263c
xor eax, eax
mov rcx, qword [rsp + 0x2350]
xor rcx, rsp
call fcn.1400086c0
add rsp, 0x2360
pop rdi
ret