Function at 0x140003ce0
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
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1168
call fcn.1400112c0
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov r12, r8
mov r13, rdx
mov r15, rcx
lea rdx, [rbp + 0x130]
call fcn.140006d70
test eax, eax
js 0x14000431c
lea rdx, [0x140015914]
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140003d54
lea ebx, [rax + 8]
jmp 0x140003daf
lea rdx, [0x14001594c]
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140003d73
mov ebx, 0x4008
jmp 0x140003daf
lea rdx, [0x140015964]
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140003d90
lea ebx, [rax + 0x13]
jmp 0x140003daf
lea rdx, [0x1400159cc]
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140004317
lea ebx, [rax + 0x11]
movabs rdi, 0x100002600
nop dword [rax]
mov rcx, qword [r15]
movzx eax, byte [rcx]
cmp al, 0x20
ja 0x140003ddb
bt rdi, rax
jae 0x140003ddb
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [r15], rax
jmp 0x140003dc0
lea rdx, [rbp + 0x130]
mov rcx, r15
call fcn.140006d70
test eax, eax
js 0x14000431c
cmp ebx, 8
je 0x1400042c4
cmp ebx, 0x11
je 0x14000413f
cmp ebx, 0x13
je 0x140003f9e
cmp ebx, 0x4008
jne 0x140003f7e
lea rcx, [rbp + 0x130]
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x140003e27
add eax, 2
xor r14d, r14d
mov qword [rbp + 0x20], r14
movsxd rcx, eax
test eax, eax
je 0x140003e6a
xor edx, edx
mov rax, rdi
div rcx
cmp rax, 1
jb 0x140004330
cmp rcx, 0x100
jbe 0x140003e6a
mov rdx, rcx
lea rcx, [rbp + 0x20]
call fcn.140004390
jmp 0x140003e72
lea rax, [rbp + 0x28]
mov qword [rbp + 0x20], rax
jmp 0x140003e90
mov rsi, qword [rbp + 0x20]
test rsi, rsi
je 0x140003f5d
lea rbx, [rbp + 0x130]
cmp byte [rbp + 0x130], 0
je 0x140003f00
nop dword [rax]
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextA]
movzx ecx, byte [rbx]
cmp cl, 0x5c
jne 0x140003ed7
cmp byte [rax], 0x30
jne 0x140003ed7
mov byte [rsi], 0
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rbx, rax
jmp 0x140003ef8
mov byte [rsi], cl
movzx ecx, byte [rbx]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x140003ef5
inc rsi
inc rbx
movzx eax, byte [rbx]
test al, al
je 0x140003f00
mov byte [rsi], al
inc rbx
inc rsi
cmp byte [rbx], 0
jne 0x140003eb0
mov word [rsi], 0
mov r9, qword [rbp + 0x20]
test r9, r9
jne 0x140003f14
lea edi, [r9 + 0xd]
jmp 0x140003f62
mov r8d, r14d
mov rdx, r9
nop word [rax + rax]
mov rcx, rdi
inc rcx
cmp byte [rdx + rcx], 0
jne 0x140003f23
inc ecx
mov eax, ecx
add rdx, rax
add r8d, ecx
cmp ecx, 1
jne 0x140003f20
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r9
lea r9d, [rcx + 6]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
jmp 0x140003f62
mov edi, 0xe
lea rax, [rbp + 0x28]
cmp qword [rbp + 0x20], rax
je 0x140004306
lea rcx, [rbp + 0x20]
call fcn.1400060e0
jmp 0x140004306
xor r14d, r14d
mov rdx, qword [rbp + 0x1198]
mov rcx, r15
call fcn.140006d70
test eax, eax
cmovs r14d, eax
mov eax, r14d
jmp 0x14000431c
xor r14d, r14d
mov ebx, r14d
mov qword [rbp + 0x10], rbx
lea rax, [rbp + 0x130]
or rdi, 0xffffffffffffffff
lea rdi, [rdi + 1]
cmp byte [rax + rdi], 0
jne 0x140003fb3
lea eax, [rdi + 1]
cdqe
lea rcx, [rax + rax]
mov eax, 0x80000000
add rax, rcx
mov edx, 0xffffffff
cmp rax, rdx
ja 0x14000411a
movsxd rdi, ecx
cmp ecx, 0x400
jg 0x140004019
mov rcx, rdi
call fcn.14000b030
test al, al
je 0x140004019
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x140004006
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400112c0
sub rsp, rax
lea rcx, [rsp + 0x30]
jmp 0x140004060
mov rax, rdi
not rax
cmp rax, 0x10
lea rdx, [rdi + 0x10]
jae 0x14000402d
mov rdx, qword [rbp + 0x10]
sbb ecx, ecx
and ecx, 0x80070216
cmp rax, 0x10
jb 0x14000433b
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
jne 0x140004052
mov rcx, r14
jmp 0x140004060
mov qword [rax], r14
mov rbx, rax
mov qword [rbp + 0x10], rax
lea rcx, [rax + 0x10]
shr rdi, 1
mov r9d, 3
mov r8d, edi
lea rdx, [rbp + 0x130]
call fcn.140004480
test rax, rax
je 0x14000411a
lea r9, [rbp]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edi, eax
test eax, eax
jns 0x1400040bc
test rbx, rbx
je 0x1400040b5
nop
mov rcx, rbx
mov rbx, qword [rbx]
mov qword [rbp + 0x10], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x1400040a0
mov eax, edi
jmp 0x14000431c
mov eax, dword [rbp]
mov dword [rbp + 8], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test rbx, rbx
je 0x140004306
nop dword [rax]
nop dword [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
mov qword [rbp + 0x10], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x140004100
jmp 0x140004306
test rbx, rbx
je 0x140004135
nop
mov rcx, rbx
mov rbx, qword [rbx]
mov qword [rbp + 0x10], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x140004120
mov eax, 0x8007000e
jmp 0x14000431c
lea rax, [rbp + 0x130]
or rdi, 0xffffffffffffffff
mov rbx, rdi
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140004150
mov dword [rbp + 8], ebx
test bl, 1
jne 0x1400041f8
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
movsxd rsi, eax
mov dword [rbp], esi
xor r14d, r14d
mov qword [rbp + 0x20], r14
mov rcx, rsi
test eax, eax
jne 0x140004185
mov ecx, r14d
jmp 0x14000419d
xor edx, edx
mov rax, rdi
div rcx
cmp rax, 1
jae 0x14000419d
mov ecx, 0x80070216
call fcn.140005280
cmp rcx, 0x100
jbe 0x1400041b4
mov rdx, rcx
lea rcx, [rbp + 0x20]
call fcn.140004390
jmp 0x1400041bc
lea rax, [rbp + 0x28]
mov qword [rbp + 0x20], rax
jmp 0x1400041dc
mov rcx, qword [rbp + 0x20]
test rcx, rcx
jne 0x140004202
lea rax, [rbp + 0x28]
cmp qword [rbp + 0x20], rax
je 0x1400041f8
lea rcx, [rbp + 0x20]
call fcn.140006120
mov eax, 0x80004005
jmp 0x14000431c
movsxd r8, esi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r9d, r14d
movsxd r11, ebx
test ebx, ebx
jle 0x14000428a
mov r8, r14
lea rbx, [0x140000000]
mov eax, r9d
cdq
sub eax, edx
sar eax, 1
movsxd r10, eax
add r10, qword [rbp + 0x20]
movsx edx, byte [rbp + r8 + 0x130]
lea eax, [rdx - 0x30]
cmp eax, 0x36
ja case.0x140004254.51
cdqe
movzx eax, byte [rbx + rax + 0x4354]
mov ecx, dword [rbx + rax*4 + 0x4344]
add rcx, rbx
jmp rcx
sub dl, 0x30
jmp 0x140004267
sub dl, 0x37
jmp 0x140004267
sub dl, 0x57
jmp 0x140004267
xor dl, dl
mov ecx, r9d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
movzx ecx, al
shl dl, cl
or byte [r10], dl
inc r9d
inc r8
cmp r8, r11
jl 0x140004220
mov dword [rsp + 0x28], esi
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea rax, [rbp + 0x28]
cmp qword [rbp + 0x20], rax
je 0x140004306
lea rcx, [rbp + 0x20]
call fcn.140006120
jmp 0x140004306
lea rax, [rbp + 0x130]
or rdi, 0xffffffffffffffff
nop
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400042d0
inc edi
mov dword [rsp + 0x28], edi
lea rax, [rbp + 0x130]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
xor r14d, r14d
test edi, edi
je 0x140003f81
mov ecx, edi
call fcn.140004520
jmp 0x14000431c
mov eax, 0x80020009
lea rsp, [rbp + 0x1138]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070216
call fcn.140005280
nop
call fcn.140005280
int3