Function at 0x1400044b4
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x11b8
call fcn.140012740
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x14001e048]
xor rax, rbp
mov qword [rbp + 0x1170], rax
mov r15, r8
mov qword [rbp + 0x10], r8
mov r13, rdx
mov r12, rcx
mov qword [rbp + 0x18], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x48], r9
lea rdx, [rbp + 0x170]
call fcn.14000432c
xor edi, edi
test eax, eax
js 0x140004ab2
lea rdx, str.SMDB
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14000453c
lea ebx, [rdi + 8]
jmp 0x140004597
lea rdx, [0x14001548c]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14000455b
mov ebx, 0x4008
jmp 0x140004597
lea rdx, [0x140015490]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140004578
lea ebx, [rax + 0x13]
jmp 0x140004597
lea rdx, [0x140015494]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140004aad
lea ebx, [rax + 0x11]
mov rcx, qword [r12]
cmp byte [rcx], 0x20
ja 0x1400045c0
movsx rax, byte [rcx]
movabs rdx, 0x100002600
bt rdx, rax
jae 0x1400045c0
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [r12], rax
jmp 0x140004597
lea rdx, [rbp + 0x170]
mov rcx, r12
call fcn.14000432c
test eax, eax
js 0x140004ab2
cmp ebx, 8
je 0x140004a4d
cmp ebx, 0x11
je 0x1400048cf
cmp ebx, 0x13
je 0x140004752
cmp ebx, 0x4008
jne 0x140004a98
lea rcx, [rbp + 0x170]
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rcx + rax], dil
jne 0x14000460c
add eax, 2
mov qword [rbp + 0x60], rdi
movsxd rcx, eax
test eax, eax
je 0x140004650
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 1
jb 0x140004ad5
cmp rcx, 0x100
jbe 0x140004650
mov rdx, rcx
lea rcx, [rbp + 0x60]
call fcn.14000942c
mov rbx, qword [rbp + 0x60]
jmp 0x140004658
lea rbx, [rbp + 0x68]
mov qword [rbp + 0x60], rbx
jmp 0x140004670
test rbx, rbx
je 0x140004732
lea r14, [rbp + 0x170]
cmp byte [rbp + 0x170], dil
je 0x1400046d9
mov rcx, r14
call qword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [r14]
cmp cl, 0x5c
jne 0x1400046b0
cmp byte [rax], 0x30
jne 0x1400046b0
mov byte [rbx], dil
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov r14, rax
jmp 0x1400046d1
mov byte [rbx], cl
mov cl, byte [r14]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x1400046ce
inc rbx
inc r14
mov al, byte [r14]
test al, al
je 0x1400046d9
mov byte [rbx], al
inc r14
inc rbx
cmp byte [r14], dil
jne 0x140004689
and word [rbx], 0
mov rbx, qword [rbp + 0x60]
test rbx, rbx
jne 0x1400046eb
lea esi, [rbx + 0xd]
jmp 0x140004737
mov r9d, edi
mov r8, rbx
mov rcx, rsi
inc rcx
cmp byte [r8 + rcx], dil
jne 0x1400046f4
inc ecx
mov eax, ecx
add r8, rax
add r9d, ecx
cmp ecx, 1
jne 0x1400046f1
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rbx
lea r9d, [rcx + 6]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov rbx, qword [rbp + 0x60]
jmp 0x140004737
mov esi, 0xe
lea rax, [rbp + 0x68]
cmp rbx, rax
je 0x140004a8b
lea rcx, [rbp + 0x60]
call fcn.140008d6c
jmp 0x140004a8b
mov rbx, rdi
mov qword [rbp + 0x40], rbx
lea rcx, [rbp + 0x170]
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rcx + rax], dil
jne 0x140004767
inc eax
movsxd rcx, eax
add rcx, rcx
mov eax, 0x80000000
add rax, rcx
mov edx, 0xffffffff
cmp rax, rdx
ja 0x140004834
movsxd r14, ecx
mov r15, r14
shr r15, 1
cmp ecx, 0x400
jg 0x1400047d1
mov rcx, r14
call fcn.140002a30
test al, al
je 0x1400047d1
lea rax, [r14 + 0xf]
cmp rax, r14
ja 0x1400047be
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140012740
sub rsp, rax
lea r14, [rsp + 0x30]
jmp 0x1400047fa
mov rax, r14
not rax
cmp rax, 0x10
jb 0x140004ae3
lea rcx, [r14 + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140004830
mov qword [rax], rdi
mov rbx, rax
lea r14, [rax + 0x10]
test r14, r14
je 0x140004830
mov word [r14], di
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r14
mov r9d, esi
lea r8, [rbp + 0x170]
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb rcx, rcx
and rcx, r14
mov r15, qword [rbp + 0x10]
jmp 0x140004837
mov r15, qword [rbp + 0x10]
mov rcx, rdi
test rcx, rcx
jne 0x140004859
jmp 0x14000484a
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x14000483e
mov eax, 0x8007000e
jmp 0x140004ab2
lea r9, [rbp]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test eax, eax
jns 0x140004888
jmp 0x14000487c
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x140004870
mov eax, esi
jmp 0x140004ab2
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, r15
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x1400048c5
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x1400048b9
jmp 0x140004a8b
lea rax, [rbp + 0x170]
or rsi, 0xffffffffffffffff
mov rbx, rsi
inc rbx
cmp byte [rax + rbx], dil
jne 0x1400048dd
mov dword [rbp + 8], ebx
test bl, 1
je 0x1400048f8
mov eax, 0x80004005
jmp 0x140004ab2
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
movsxd r15, eax
mov dword [rbp], r15d
mov qword [rbp + 0x60], rdi
mov r14, r15
mov qword [rbp + 0x40], r15
test eax, eax
je 0x140004942
xor edx, edx
mov rax, rsi
div r14
cmp rax, 1
jb 0x140004af1
cmp r14, 0x100
jbe 0x140004942
mov rdx, r14
lea rcx, [rbp + 0x60]
call fcn.14000942c
mov rcx, qword [rbp + 0x60]
jmp 0x14000494a
lea rcx, [rbp + 0x68]
mov qword [rbp + 0x60], rcx
mov rsi, qword [rbp + 0x10]
jmp 0x14000496d
test rcx, rcx
jne 0x140004980
lea rcx, [rbp + 0x60]
call fcn.140008d6c
jmp 0x1400048ee
mov r8, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r10d, edi
movsxd rbx, ebx
test rbx, rbx
jle 0x140004a12
mov r11, rdi
mov r9b, byte [rbp + r11 + 0x170]
cmp r9b, 0x30
jl 0x1400049d2
cmp r9b, 0x39
jle 0x1400049cc
cmp r9b, 0x40
jle 0x1400049d2
cmp r9b, 0x46
jle 0x1400049c6
lea eax, [r9 - 0x61]
cmp al, 5
ja 0x1400049d2
sub r9b, 0x57
jmp 0x1400049d5
sub r9b, 0x37
jmp 0x1400049d5
sub r9b, 0x30
jmp 0x1400049d5
mov r9b, dil
mov eax, r10d
test r10d, r10d
jns 0x1400049e1
lea eax, [r10 + 1]
sar eax, 1
movsxd r8, eax
mov rdx, qword [rbp + 0x60]
mov ecx, r10d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl r9b, cl
or r9b, byte [r8 + rdx]
mov byte [r8 + rdx], r9b
inc r10d
inc r11
cmp r11, rbx
jl 0x140004998
mov dword [rsp + 0x28], r15d
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea rax, [rbp + 0x68]
cmp qword [rbp + 0x60], rax
je 0x140004a8b
lea rcx, [rbp + 0x60]
call fcn.140008d6c
jmp 0x140004a8b
lea rax, [rbp + 0x170]
or rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], dil
jne 0x140004a58
inc esi
mov dword [rsp + 0x28], esi
lea rax, [rbp + 0x170]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x140004a98
mov ecx, esi
call fcn.140002c54
jmp 0x140004ab2
mov rdx, qword [rbp + 0x48]
mov rcx, r12
call fcn.14000432c
test eax, eax
cmovs edi, eax
mov eax, edi
jmp 0x140004ab2
mov eax, 0x80020009
mov rcx, qword [rbp + 0x1170]
xor rcx, rbp
call fcn.140010d90
lea rsp, [rbp + 0x1188]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070216
call fcn.140002b80
nop
jmp 0x140004ae2
nop
mov ecx, 0x80070216
call fcn.140002b80
nop
jmp 0x140004af0
nop
mov ecx, 0x80070216
call fcn.140002b80
int3