Function at 0x140002cdc
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x11a8
call fcn.1400129e0
sub rsp, rax
lea rbp, [rsp + 0x30]
mov rax, qword [0x14001d040]
xor rax, rbp
mov qword [rbp + 0x1160], 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 + 0x160]
call fcn.140002b4c
xor edi, edi
test eax, eax
js 0x14000335d
lea rdx, str.SMDB
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140002d5f
lea eax, [rdi + 1]
lea ebx, [rdi + 8]
jmp 0x140002dcb
lea rdx, [0x140015614]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140002d83
mov eax, 1
mov ebx, 0x4008
jmp 0x140002dcb
lea rdx, [0x140015618]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140002da5
mov eax, 1
lea ebx, [rax + 0x12]
jmp 0x140002dcb
lea rdx, [0x14001561c]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140002dc7
mov eax, 1
lea ebx, [rax + 0x10]
jmp 0x140002dcb
mov eax, edi
mov ebx, edi
test eax, eax
jne 0x140002dd9
mov eax, 0x80020009
jmp 0x14000335d
mov rdx, qword [r12]
movsx ecx, byte [rdx]
sub ecx, 9
je 0x140002df6
sub ecx, 1
je 0x140002df6
sub ecx, 3
je 0x140002df6
cmp ecx, 0x13
mov eax, edi
jne 0x140002dfb
mov eax, 1
test eax, eax
je 0x140002e0e
mov rcx, rdx
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [r12], rax
jmp 0x140002dd9
lea rdx, [rbp + 0x160]
mov rcx, r12
call fcn.140002b4c
test eax, eax
js 0x14000335d
cmp ebx, 8
je 0x1400032ff
cmp ebx, 0x11
je 0x140003122
cmp ebx, 0x13
je 0x140002fa5
cmp ebx, 0x4008
jne 0x14000334a
lea rcx, [rbp + 0x160]
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rcx + rax], dil
jne 0x140002e5a
add eax, 2
mov qword [rbp + 0x50], rdi
movsxd rcx, eax
test eax, eax
jne 0x140002e8f
mov rcx, rdi
cmp rcx, 0x100
jbe 0x140002ea3
mov rdx, rcx
lea rcx, [rbp + 0x50]
call fcn.140007ca0
mov rbx, qword [rbp + 0x50]
jmp 0x140002eab
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 1
jb 0x140003380
jmp 0x140002e74
lea rbx, [rbp + 0x58]
mov qword [rbp + 0x50], rbx
jmp 0x140002ec3
test rbx, rbx
je 0x140002f85
lea r14, [rbp + 0x160]
cmp byte [rbp + 0x160], dil
je 0x140002f2c
mov rcx, r14
call qword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [r14]
cmp cl, 0x5c
jne 0x140002f03
cmp byte [rax], 0x30
jne 0x140002f03
mov byte [rbx], dil
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov r14, rax
jmp 0x140002f24
mov byte [rbx], cl
mov cl, byte [r14]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x140002f21
inc rbx
inc r14
mov al, byte [r14]
test al, al
je 0x140002f2c
mov byte [rbx], al
inc r14
inc rbx
cmp byte [r14], dil
jne 0x140002edc
and word [rbx], 0
mov rbx, qword [rbp + 0x50]
test rbx, rbx
jne 0x140002f3e
lea esi, [rbx + 0xd]
jmp 0x140002f8a
mov r9d, edi
mov r8, rbx
mov rcx, rsi
inc rcx
cmp byte [r8 + rcx], dil
jne 0x140002f47
inc ecx
mov eax, ecx
add r8, rax
add r9d, ecx
cmp ecx, 1
jne 0x140002f44
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 + 0x50]
jmp 0x140002f8a
mov esi, 0xe
lea rax, [rbp + 0x58]
cmp rbx, rax
je 0x14000333d
lea rcx, [rbp + 0x50]
call fcn.1400077b4
jmp 0x14000333d
mov rbx, rdi
mov qword [rbp + 0x40], rbx
lea rcx, [rbp + 0x160]
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rcx + rax], dil
jne 0x140002fba
inc eax
movsxd rcx, eax
add rcx, rcx
mov eax, 0x80000000
add rax, rcx
mov edx, 0xffffffff
cmp rax, rdx
ja 0x140003087
movsxd r14, ecx
mov r15, r14
shr r15, 1
cmp ecx, 0x400
jg 0x140003024
mov rcx, r14
call fcn.140001254
test al, al
je 0x140003024
lea rax, [r14 + 0xf]
cmp rax, r14
ja 0x140003011
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400129e0
sub rsp, rax
lea r14, [rsp + 0x30]
jmp 0x14000304d
mov rax, r14
not rax
cmp rax, 0x10
jb 0x14000338f
lea rcx, [r14 + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140003083
mov qword [rax], rdi
mov rbx, rax
lea r14, [rax + 0x10]
test r14, r14
je 0x140003083
mov word [r14], di
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r14
mov r9d, esi
lea r8, [rbp + 0x160]
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 0x14000308a
mov r15, qword [rbp + 0x10]
mov rcx, rdi
test rcx, rcx
jne 0x1400030ac
jmp 0x14000309d
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 0x140003091
mov eax, 0x8007000e
jmp 0x14000335d
lea r9, [rbp]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test eax, eax
jns 0x1400030db
jmp 0x1400030cf
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 0x1400030c3
mov eax, esi
jmp 0x14000335d
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 0x140003118
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 0x14000310c
jmp 0x14000333d
lea rax, [rbp + 0x160]
or rsi, 0xffffffffffffffff
mov rbx, rsi
inc rbx
cmp byte [rax + rbx], dil
jne 0x140003130
mov dword [rbp + 8], ebx
test bl, 1
jne 0x1400031cd
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
movsxd r15, eax
mov dword [rbp], r15d
mov qword [rbp + 0x50], rdi
mov r14, r15
mov qword [rbp + 0x40], r15
test eax, eax
jne 0x140003167
mov rdx, rdi
jmp 0x14000317c
xor edx, edx
mov rax, rsi
div r14
cmp rax, 1
jb 0x14000339d
mov rdx, r14
cmp rdx, 0x100
jbe 0x140003194
lea rcx, [rbp + 0x50]
call fcn.140007ca0
mov rcx, qword [rbp + 0x50]
jmp 0x14000319c
lea rcx, [rbp + 0x58]
mov qword [rbp + 0x50], rcx
mov rsi, qword [rbp + 0x10]
jmp 0x1400031bf
test rcx, rcx
jne 0x1400031d7
lea rcx, [rbp + 0x50]
call fcn.1400077b4
mov eax, 0x80004005
jmp 0x14000335d
mov r8, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r10d, edi
movsxd rbx, ebx
test rbx, rbx
jle 0x1400032c4
mov r11, rdi
movsx r9d, byte [rbp + r11 + 0x160]
mov ecx, r9d
cmp r9d, 0x61
jg 0x140003265
je 0x140003283
cmp ecx, 0x38
jg 0x14000323c
je 0x140003236
sub ecx, 0x30
je 0x140003236
sub ecx, 1
je 0x140003236
sub ecx, 1
je 0x140003236
sub ecx, 1
je 0x140003236
sub ecx, 1
je 0x140003236
sub ecx, 1
je 0x140003236
sub ecx, 1
je 0x140003236
cmp ecx, 1
jne 0x14000327e
sub r9b, 0x30
jmp 0x140003287
sub ecx, 0x39
je 0x140003236
sub ecx, 8
je 0x14000325f
sub ecx, 1
je 0x14000325f
sub ecx, 1
je 0x14000325f
sub ecx, 1
je 0x14000325f
sub ecx, 1
je 0x14000325f
cmp ecx, 1
jne 0x14000327e
sub r9b, 0x37
jmp 0x140003287
sub ecx, 0x62
je 0x140003283
sub ecx, 1
je 0x140003283
sub ecx, 1
je 0x140003283
sub ecx, 1
je 0x140003283
cmp ecx, 1
je 0x140003283
mov r9b, dil
jmp 0x140003287
sub r9b, 0x57
mov eax, r10d
test r10d, r10d
jns 0x140003293
lea eax, [r10 + 1]
sar eax, 1
movsxd r8, eax
mov rdx, qword [rbp + 0x50]
mov ecx, r10d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl r9b, cl
or byte [r8 + rdx], r9b
inc r10d
inc r11
cmp r11, rbx
jl 0x1400031f3
mov dword [rsp + 0x28], r15d
mov rax, qword [rbp + 0x50]
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 + 0x58]
cmp qword [rbp + 0x50], rax
je 0x14000333d
lea rcx, [rbp + 0x50]
call fcn.1400077b4
jmp 0x14000333d
lea rax, [rbp + 0x160]
or rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], dil
jne 0x14000330a
inc esi
mov dword [rsp + 0x28], esi
lea rax, [rbp + 0x160]
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 0x14000334a
mov ecx, esi
call fcn.1400013fc
jmp 0x14000335d
mov rdx, qword [rbp + 0x48]
mov rcx, r12
call fcn.140002b4c
test eax, eax
cmovs edi, eax
mov eax, edi
mov rcx, qword [rbp + 0x1160]
xor rcx, rbp
call fcn.140011250
lea rsp, [rbp + 0x1178]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070216
call fcn.1400012f0
nop
jmp 0x14000338e
nop
mov ecx, 0x80070216
call fcn.1400012f0
nop
jmp 0x14000339c
nop
mov ecx, 0x80070216
call fcn.1400012f0
int3