Function at 0x140001d80
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, 0x2370
call fcn.140008470
sub rsp, rax
mov qword [rsp + 0x138], 0xfffffffffffffffe
mov rax, qword [0x14001f010]
xor rax, rsp
mov qword [rsp + 0x2360], rax
xor eax, eax
mov word [rsp + 0x50], ax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0xa8], 0
lea rdx, [rsp + 0x360]
mov rcx, qword [rsp + 0x2380]
call fcn.140003700
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x140001e03
mov eax, dword [rsp + 0x34]
jmp 0x1400024e3
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x360]
call fcn.140007260
test eax, eax
jne 0x140001e23
mov eax, 0x80020009
jmp 0x1400024e3
mov rcx, qword [rsp + 0x2380]
call fcn.140006050
lea rdx, [rsp + 0x360]
mov rcx, qword [rsp + 0x2380]
call fcn.140003700
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x140001e59
mov eax, dword [rsp + 0x34]
jmp 0x1400024e3
movzx eax, word [rsp + 0x50]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 8
je 0x140001e8e
cmp dword [rsp + 0x60], 0x11
je 0x1400021db
cmp dword [rsp + 0x60], 0x13
je 0x140002093
cmp dword [rsp + 0x60], 0x4008
je 0x140001eba
jmp 0x14000249e
mov r9d, 1
lea r8, [rsp + 0x360]
mov rdx, qword [rsp + 0x2390]
mov rcx, qword [rsp + 0x2388]
call fcn.140005ec0
mov dword [rsp + 0x40], eax
jmp 0x14000249e
lea rax, [rsp + 0x360]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x80], 0xffffffffffffffff
inc qword [rsp + 0x80]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x80]
cmp word [rax + rcx*2], 0
jne 0x140001ed6
mov rax, qword [rsp + 0x80]
add rax, 2
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x250], 0
movsxd rax, dword [rsp + 0x64]
mov rdx, rax
lea rcx, [rsp + 0x250]
call fcn.1400025c0
nop
jmp 0x140001f29
mov rax, qword [rsp + 0x250]
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
je 0x140002067
mov rax, qword [rsp + 0x250]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x360]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x64], 0
mov rax, qword [rsp + 0x78]
movzx eax, word [rax]
test eax, eax
je 0x140002012
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x78]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x140001fd7
mov rax, qword [rsp + 0xb0]
movzx eax, word [rax]
cmp eax, 0x30
jne 0x140001fd7
xor eax, eax
mov rcx, qword [rsp + 0x58]
mov word [rcx], ax
mov rax, qword [rsp + 0x58]
add rax, 2
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rsp + 0x78], rax
jmp 0x140002003
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x78]
movzx ecx, word [rcx]
mov word [rax], cx
mov rax, qword [rsp + 0x58]
add rax, 2
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x78]
add rax, 2
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
jmp 0x140001f6a
xor eax, eax
mov rcx, qword [rsp + 0x58]
mov word [rcx], ax
mov rax, qword [rsp + 0x58]
add rax, 2
mov qword [rsp + 0x58], rax
xor eax, eax
mov rcx, qword [rsp + 0x58]
mov word [rcx], ax
mov rax, qword [rsp + 0x250]
mov qword [rsp + 0xd8], rax
mov r8, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0x2390]
mov rcx, qword [rsp + 0x2388]
call fcn.140005dc0
mov dword [rsp + 0x40], eax
jmp 0x14000206f
mov dword [rsp + 0x40], 0xe
lea rax, [rsp + 0x258]
cmp qword [rsp + 0x250], rax
je 0x14000208e
lea rcx, [rsp + 0x250]
call fcn.1400030e0
jmp 0x14000249e
mov dword [rsp + 0xc0], 3
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x360]
mov qword [rsp + 0xe0], rax
lea r9, [rsp + 0x94]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x140002125
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x90], eax
cmp qword [rsp + 0x48], 0
je 0x140002119
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0xe8]
call fcn.14000c1c4
jmp 0x1400020e8
mov eax, dword [rsp + 0x90]
jmp 0x1400024e3
mov eax, dword [rsp + 0x94]
mov dword [rsp + 0x98], eax
xor eax, eax
test eax, eax
jne 0x140002133
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x2390]
mov rax, qword [rsp + 0x2388]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x40], eax
cmp qword [rsp + 0x48], 0
je 0x1400021a5
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0xf0]
call fcn.14000c1c4
jmp 0x140002174
jmp 0x14000249e
lea rax, [rsp + 0x360]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x88], 0xffffffffffffffff
inc qword [rsp + 0x88]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x88]
cmp word [rax + rcx*2], 0
jne 0x1400021f7
mov rax, qword [rsp + 0x88]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x6c]
and eax, 1
test eax, eax
je 0x140002237
mov eax, 0x80004005
jmp 0x1400024e3
mov eax, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x140], 0
movsxd rax, dword [rsp + 0x70]
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.140002550
nop
jmp 0x140002268
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x108], rax
cmp qword [rsp + 0x108], 0
jne 0x1400022b9
mov dword [rsp + 0xa0], 0x80004005
lea rax, [rsp + 0x148]
cmp qword [rsp + 0x140], rax
je 0x1400022ad
lea rcx, [rsp + 0x140]
call fcn.1400030e0
mov eax, dword [rsp + 0xa0]
jmp 0x1400024e3
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x110], rax
movsxd rax, dword [rsp + 0x70]
mov qword [rsp + 0x118], rax
mov rdi, qword [rsp + 0x110]
xor eax, eax
mov rcx, qword [rsp + 0x118]
rep stosb byte [rdi], al
mov dword [rsp + 0x44], 0
jmp 0x1400022fe
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x6c]
cmp dword [rsp + 0x44], eax
jge 0x140002402
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x120], rax
mov eax, dword [rsp + 0x44]
cdq
sub eax, edx
sar eax, 1
cdqe
mov rcx, qword [rsp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
movsxd rax, dword [rsp + 0x44]
movzx eax, word [rsp + rax*2 + 0x360]
mov word [rsp + 0x38], ax
movzx eax, word [rsp + 0x38]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
sub eax, 0x30
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0x36
ja case.0x140002388.58
movsxd rax, dword [rsp + 0x68]
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x250c]
mov eax, dword [rcx + rax*4 + 0x24fc]
add rax, rcx
jmp rax
movzx eax, word [rsp + 0x38]
sub eax, 0x30
mov byte [rsp + 0x30], al
jmp 0x1400023b9
movzx eax, word [rsp + 0x38]
sub eax, 0x37
mov byte [rsp + 0x30], al
jmp 0x1400023b9
movzx eax, word [rsp + 0x38]
sub eax, 0x57
mov byte [rsp + 0x30], al
jmp 0x1400023b9
mov byte [rsp + 0x30], 0
mov eax, dword [rsp + 0x44]
and eax, 1
mov ecx, 1
sub ecx, eax
mov eax, ecx
shl eax, 2
movzx ecx, byte [rsp + 0x30]
mov dword [rsp + 0xa4], ecx
movzx ecx, al
mov eax, dword [rsp + 0xa4]
shl eax, cl
mov rcx, qword [rsp + 0xb8]
movzx ecx, byte [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xb8]
mov byte [rcx], al
jmp 0x1400022f4
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x2388]
mov rax, qword [rax]
mov qword [rsp + 0x130], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x2390]
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x148]
cmp qword [rsp + 0x140], rax
je 0x14000247c
lea rcx, [rsp + 0x140]
call fcn.1400030e0
jmp 0x14000249e
cmp dword [rsp + 0x40], 0
je 0x1400024bb
mov dword [rsp + 0xa8], 0x204
mov ecx, dword [rsp + 0x40]
call fcn.140002b20
jmp 0x1400024e3
mov rdx, qword [rsp + 0x2398]
mov rcx, qword [rsp + 0x2380]
call fcn.140003700
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x1400024e1
mov eax, dword [rsp + 0x34]
jmp 0x1400024e3
xor eax, eax
mov rcx, qword [rsp + 0x2360]
xor rcx, rsp
call fcn.1400084e0
add rsp, 0x2370
pop rdi
ret