Function at 0x140005350
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 rbp
mov eax, 0x13b0
call fcn.140022d10
sub rsp, rax
lea rbp, [rsp + 0x30]
mov rax, qword [0x1400d8538]
xor rax, rbp
mov qword [rbp + 0x1370], rax
xor eax, eax
mov word [rbp + 0x38], ax
mov dword [rbp + 0x10], 0
mov dword [rbp + 0x90], 0
lea rdx, [rbp + 0x370]
mov rcx, qword [rbp + 0x1390]
call fcn.140010040
mov dword [rbp + 0xc], eax
cmp dword [rbp + 0xc], 0
jge 0x1400053c3
mov eax, dword [rbp + 0xc]
jmp 0x140005c20
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x370]
call fcn.14001e210
test eax, eax
jne 0x1400053e1
mov eax, 0x80020009
jmp 0x140005c20
mov rcx, qword [rbp + 0x1390]
call fcn.14001bb30
lea rdx, [rbp + 0x370]
mov rcx, qword [rbp + 0x1390]
call fcn.140010040
mov dword [rbp + 0xc], eax
cmp dword [rbp + 0xc], 0
jge 0x140005411
mov eax, dword [rbp + 0xc]
jmp 0x140005c20
movzx eax, word [rbp + 0x38]
mov dword [rbp + 0x3c], eax
cmp dword [rbp + 0x3c], 8
je 0x140005444
cmp dword [rbp + 0x3c], 0x11
je 0x1400059a3
cmp dword [rbp + 0x3c], 0x13
je 0x140005685
cmp dword [rbp + 0x3c], 0x4008
je 0x1400054d9
jmp 0x140005be3
lea rax, [rbp + 0x370]
mov qword [rbp + 0xb8], rax
xor eax, eax
test eax, eax
jne 0x140005452
cmp qword [rbp + 0xb8], 0
je 0x14000546b
mov dword [rbp + 0x50], 1
jmp 0x140005472
mov dword [rbp + 0x50], 0
mov eax, dword [rbp + 0x50]
mov dword [rbp + 0x98], eax
cmp dword [rbp + 0x98], 0
jne 0x14000548d
mov dword [rbp + 0x10], 0xd
jmp 0x1400054d4
xor eax, eax
test eax, eax
jne 0x140005458
mov rcx, qword [rbp + 0xb8]
call fcn.1400377b0
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x13a0]
mov rax, qword [rbp + 0x1398]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rbp + 0x10], eax
jmp 0x140005be3
lea rcx, [rbp + 0x370]
call fcn.1400377b0
add rax, 2
mov dword [rbp + 0x40], eax
mov qword [rbp + 0x260], 0
movsxd rax, dword [rbp + 0x40]
mov rdx, rax
lea rcx, [rbp + 0x260]
call fcn.140005db0
nop
jmp 0x14000550d
mov rax, qword [rbp + 0x260]
mov qword [rbp + 0xe8], rax
cmp qword [rbp + 0xe8], 0
je 0x14000565d
mov rax, qword [rbp + 0x260]
mov qword [rbp + 0x28], rax
lea rax, [rbp + 0x370]
mov qword [rbp + 0x30], rax
mov dword [rbp + 0x40], 0
mov rax, qword [rbp + 0x30]
movsx eax, byte [rax]
test eax, eax
je 0x140005617
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x5c
jne 0x1400055a6
mov rax, qword [rbp + 0xc8]
movsx eax, byte [rax]
cmp eax, 0x30
jne 0x1400055a6
mov rax, qword [rbp + 0x28]
mov byte [rax], 0
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [rbp + 0x30], rax
jmp 0x14000560a
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x30]
movzx ecx, byte [rcx]
mov byte [rax], cl
mov rax, qword [rbp + 0x30]
movzx ecx, byte [rax]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x1400055f4
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x30]
inc rax
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
movsx eax, byte [rax]
test eax, eax
jne 0x1400055e7
jmp 0x140005617
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x30]
movzx ecx, byte [rcx]
mov byte [rax], cl
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x30]
inc rax
mov qword [rbp + 0x30], rax
mov eax, dword [rbp + 0x40]
inc eax
mov dword [rbp + 0x40], eax
jmp 0x140005546
mov rax, qword [rbp + 0x28]
mov byte [rax], 0
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov byte [rax], 0
mov rax, qword [rbp + 0x260]
mov qword [rbp + 0xf0], rax
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0x13a0]
mov rcx, qword [rbp + 0x1398]
call fcn.14001b8d0
mov dword [rbp + 0x10], eax
jmp 0x140005664
mov dword [rbp + 0x10], 0xe
lea rax, [rbp + 0x268]
cmp qword [rbp + 0x260], rax
je 0x140005680
lea rcx, [rbp + 0x260]
call fcn.14000de50
jmp 0x140005be3
mov dword [rbp + 0xb0], 3
mov qword [rbp + 0x18], 0
lea rax, [rbp + 0x370]
mov qword [rbp + 0x70], rax
cmp qword [rbp + 0x70], 0
jne 0x1400056b9
mov qword [rbp + 0xd0], 0
jmp 0x140005852
mov rcx, qword [rbp + 0x70]
call fcn.1400377b0
inc eax
mov dword [rbp + 0x20], eax
mov eax, dword [rbp + 0x20]
mov dword [rbp + 0xa0], eax
mov eax, 2
movsxd rcx, dword [rbp + 0xa0]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xc0], 0x7fffffff
jg 0x140005704
cmp qword [rbp + 0xc0], 0xffffffff80000000
jge 0x140005734
xor eax, eax
cmp eax, 0x216
jl 0x140005716
mov dword [rbp + 0x54], 0x216
jmp 0x14000572c
mov eax, 0x216
and eax, 0xffff
or eax, 0x70000
bts eax, 0x1f
mov dword [rbp + 0x54], eax
mov eax, dword [rbp + 0x54]
mov dword [rbp + 0x58], eax
jmp 0x140005744
mov eax, dword [rbp + 0xc0]
mov dword [rbp + 0x20], eax
mov dword [rbp + 0x58], 0
cmp dword [rbp + 0x58], 0
jge 0x140005757
mov qword [rbp + 0x68], 0
jmp 0x140005847
cmp dword [rbp + 0x20], 0x400
jg 0x1400057a7
movsxd rax, dword [rbp + 0x20]
mov rcx, rax
call fcn.14001eef0
movzx eax, al
test eax, eax
je 0x1400057a7
movsxd rax, dword [rbp + 0x20]
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14000578d
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140022d10
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 0x60], rax
jmp 0x1400057bb
movsxd rax, dword [rbp + 0x20]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.140005d40
mov qword [rbp + 0x60], rax
movsxd rax, dword [rbp + 0x20]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rbp + 0xa8], eax
mov rax, qword [rbp + 0x140]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x60], 0
je 0x1400057e8
cmp qword [rbp + 0x70], 0
jne 0x1400057f2
mov qword [rbp + 0x68], 0
jmp 0x140005847
xor eax, eax
mov rcx, qword [rbp + 0x60]
mov word [rcx], ax
mov eax, dword [rbp + 0xa8]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rbp + 0x70]
xor edx, edx
mov ecx, dword [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rbp + 0xb4], eax
cmp dword [rbp + 0xb4], 0
jne 0x14000583f
mov qword [rbp + 0x68], 0
jmp 0x140005847
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0
jne 0x1400058a4
mov dword [rbp + 0x78], 0x8007000e
cmp qword [rbp + 0x18], 0
je 0x14000589c
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
mov qword [rbp + 0x18], rax
mov rcx, qword [rbp + 0xf8]
call fcn.140033d54
jmp 0x140005871
mov eax, dword [rbp + 0x78]
jmp 0x140005c20
lea r9, [rbp + 0x7c]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov dword [rbp + 0xc], eax
cmp dword [rbp + 0xc], 0
jge 0x140005902
mov eax, dword [rbp + 0xc]
mov dword [rbp + 0x94], eax
cmp qword [rbp + 0x18], 0
je 0x1400058f7
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x100], rax
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
mov qword [rbp + 0x18], rax
mov rcx, qword [rbp + 0x100]
call fcn.140033d54
jmp 0x1400058cc
mov eax, dword [rbp + 0x94]
jmp 0x140005c20
mov eax, dword [rbp + 0x7c]
mov dword [rbp + 0x80], eax
xor eax, eax
test eax, eax
jne 0x14000590b
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp + 0x13a0]
mov rax, qword [rbp + 0x1398]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rbp + 0x10], eax
cmp qword [rbp + 0x18], 0
je 0x140005973
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
mov qword [rbp + 0x18], rax
mov rcx, qword [rbp + 0x108]
call fcn.140033d54
jmp 0x140005948
jmp 0x140005be3
lea rcx, [rbp + 0x370]
call fcn.1400377b0
mov dword [rbp + 0x48], eax
mov eax, dword [rbp + 0x48]
and eax, 1
test eax, eax
je 0x1400059c6
mov eax, 0x80004005
jmp 0x140005c20
mov eax, dword [rbp + 0x48]
cdq
sub eax, edx
sar eax, 1
mov dword [rbp + 0x4c], eax
mov qword [rbp + 0x150], 0
movsxd rax, dword [rbp + 0x4c]
mov rdx, rax
lea rcx, [rbp + 0x150]
call fcn.140005e90
nop
jmp 0x1400059f2
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x118], rax
cmp qword [rbp + 0x118], 0
jne 0x140005a3b
mov dword [rbp + 0x88], 0x80004005
lea rax, [rbp + 0x158]
cmp qword [rbp + 0x150], rax
je 0x140005a30
lea rcx, [rbp + 0x150]
call fcn.14000deb0
mov eax, dword [rbp + 0x88]
jmp 0x140005c20
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x120], rax
movsxd rax, dword [rbp + 0x4c]
mov r8, rax
xor edx, edx
mov rcx, qword [rbp + 0x120]
call fcn.140024550
mov dword [rbp + 0x24], 0
jmp 0x140005a6f
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x48]
cmp dword [rbp + 0x24], eax
jge 0x140005b56
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x128], rax
mov eax, dword [rbp + 0x24]
cdq
sub eax, edx
sar eax, 1
cdqe
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xe0], rax
movsxd rax, dword [rbp + 0x24]
movzx eax, byte [rbp + rax + 0x370]
mov byte [rbp], al
movsx eax, byte [rbp]
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
sub eax, 0x30
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0x36
ja case.0x140005ae9.10
movsxd rax, dword [rbp + 0x44]
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x5c48]
mov eax, dword [rcx + rax*4 + 0x5c38]
add rax, rcx
jmp rax
movsx eax, byte [rbp]
sub eax, 0x30
mov byte [rbp + 8], al
jmp 0x140005b13
movsx eax, byte [rbp]
sub eax, 0x37
mov byte [rbp + 8], al
jmp 0x140005b13
movsx eax, byte [rbp]
sub eax, 0x57
mov byte [rbp + 8], al
jmp 0x140005b13
mov byte [rbp + 8], 0
mov eax, dword [rbp + 0x24]
and eax, 1
mov ecx, 1
sub ecx, eax
mov eax, ecx
shl eax, 2
movzx ecx, byte [rbp + 8]
mov dword [rbp + 0x8c], ecx
movzx ecx, al
mov eax, dword [rbp + 0x8c]
shl eax, cl
mov rcx, qword [rbp + 0xe0]
movzx ecx, byte [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0xe0]
mov byte [rcx], al
jmp 0x140005a67
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x1398]
mov rax, qword [rax]
mov qword [rbp + 0x138], rax
mov eax, dword [rbp + 0x4c]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x130]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rbp + 0x13a0]
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rbp + 0x10], eax
lea rax, [rbp + 0x158]
cmp qword [rbp + 0x150], rax
je 0x140005bc4
lea rcx, [rbp + 0x150]
call fcn.14000deb0
jmp 0x140005be3
cmp dword [rbp + 0x10], 0
je 0x140005bfd
mov dword [rbp + 0x90], 0x204
mov ecx, dword [rbp + 0x10]
call fcn.1400065c0
jmp 0x140005c20
mov rdx, qword [rbp + 0x13a8]
mov rcx, qword [rbp + 0x1390]
call fcn.140010040
mov dword [rbp + 0xc], eax
cmp dword [rbp + 0xc], 0
jge 0x140005c1e
mov eax, dword [rbp + 0xc]
jmp 0x140005c20
xor eax, eax
mov rcx, qword [rbp + 0x1370]
xor rcx, rbp
call fcn.140022d70
lea rsp, [rbp + 0x1380]
pop rbp
ret