Function at 0x140002e4c
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.1400189e0
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x140026008]
xor rax, rbp
mov qword [rbp + 0x1170], rax
mov qword [rbp + 0x18], r8
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x50], r9
lea rdx, [rbp + 0x170]
call fcn.140002ce4
xor edi, edi
test eax, eax
js 0x1400034ea
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140029308], eax
jle 0x140002f65
lea rcx, [0x140029308]
call fcn.140007d00
or r14, 0xffffffffffffffff
lea r12d, [rdi + 8]
mov esi, 0x4008
lea r13d, [rdi + 0x13]
lea r15d, [rdi + 0x11]
cmp dword [0x140029308], r14d
jne 0x140002f7a
lea rax, str.SMDB
mov qword [0x1400292a0], rax
mov word [0x1400292a8], r12w
lea rax, [0x140022234]
mov qword [0x1400292b0], rax
mov word [0x1400292b8], si
lea rax, [0x140022238]
mov qword [0x1400292c0], rax
mov word [0x1400292c8], r13w
lea rax, [0x14002223c]
mov qword [0x1400292d0], rax
mov word [0x1400292d8], r15w
lea rcx, [0x140029308]
call fcn.140007ca0
jmp 0x140002f7a
or r14, 0xffffffffffffffff
mov esi, 0x4008
lea r12d, [r14 + 9]
lea r13d, [r14 + 0x14]
lea r15d, [r14 + 0x12]
mov ebx, edi
lea rax, [0x1400292a0]
mov qword [rbp + 8], rax
mov rdx, qword [rax]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140002fb8
inc ebx
mov rax, qword [rbp + 8]
add rax, 0x10
mov qword [rbp + 8], rax
cmp ebx, 4
jb 0x140002f87
mov eax, 0x80020009
jmp 0x1400034ea
movsxd rax, ebx
add rax, rax
lea rcx, [0x1400292a0]
movzx ebx, word [rcx + rax*8 + 8]
mov r8, qword [rbp + 0x10]
mov rcx, qword [r8]
cmp byte [rcx], 0x20
ja 0x140002ff9
movsx rax, byte [rcx]
movabs rdx, 0x100002600
bt rdx, rax
jae 0x140002ff9
call qword [sym.imp.USER32.dll_CharNextA]
mov r8, qword [rbp + 0x10]
mov qword [r8], rax
jmp 0x140002fce
lea rdx, [rbp + 0x170]
mov rcx, r8
call fcn.140002ce4
test eax, eax
js 0x1400034ea
movzx eax, bx
cmp eax, r12d
je 0x140003489
cmp eax, r15d
je 0x140003315
cmp eax, r13d
je 0x140003194
cmp eax, esi
jne 0x1400034d6
lea rcx, [rbp + 0x170]
mov rax, r14
inc rax
cmp byte [rcx + rax], dil
jne 0x140003040
add eax, 2
mov qword [rbp + 0x60], rdi
movsxd rcx, eax
test eax, eax
je 0x14000308a
xor edx, edx
mov rax, r14
div rcx
cmp rax, 1
jae 0x14000306f
mov ecx, 0x80070216
call fcn.1400016ec
cmp rcx, 0x100
jbe 0x14000308a
mov rdx, rcx
lea rcx, [rbp + 0x60]
call fcn.14000683c
mov rbx, qword [rbp + 0x60]
jmp 0x140003092
lea rbx, [rbp + 0x68]
mov qword [rbp + 0x60], rbx
mov r15, qword [rbp + 0x20]
mov r12, qword [rbp + 0x18]
jmp 0x1400030b6
test rbx, rbx
je 0x140003174
lea rsi, [rbp + 0x170]
cmp byte [rbp + 0x170], dil
je 0x14000311c
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [rsi]
cmp cl, 0x5c
jne 0x1400030f5
cmp byte [rax], 0x30
jne 0x1400030f5
mov byte [rbx], dil
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rsi, rax
jmp 0x140003114
mov byte [rbx], cl
mov cl, byte [rsi]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x140003111
inc rbx
inc rsi
mov al, byte [rsi]
test al, al
je 0x14000311c
mov byte [rbx], al
inc rsi
inc rbx
cmp byte [rsi], dil
jne 0x1400030cf
and word [rbx], 0
mov rbx, qword [rbp + 0x60]
test rbx, rbx
jne 0x14000312e
lea esi, [rbx + 0xd]
jmp 0x140003179
mov r9d, edi
mov r8, rbx
mov rcx, r14
inc rcx
cmp byte [r8 + rcx], dil
jne 0x140003137
inc ecx
mov eax, ecx
add r8, rax
add r9d, ecx
cmp ecx, 1
jne 0x140003134
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rbx
lea r9d, [rcx + 6]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov rbx, qword [rbp + 0x60]
jmp 0x140003179
mov esi, 0xe
lea rax, [rbp + 0x68]
cmp rbx, rax
je 0x1400034c9
lea rcx, [rbp + 0x60]
call fcn.140006834
jmp 0x1400034c9
mov rbx, rdi
mov qword [rbp + 0x30], rbx
lea rcx, [rbp + 0x170]
mov rax, r14
inc rax
cmp byte [rcx + rax], dil
jne 0x1400031a5
inc eax
movsxd r15, eax
add r15, r15
mov eax, 0x80000000
add rax, r15
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x14000326e
cmp r15d, 0x400
jg 0x14000320a
movsxd rsi, r15d
mov rcx, rsi
call fcn.1400015b4
test al, al
je 0x14000320a
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x1400031f7
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400189e0
sub rsp, rax
lea r15, [rsp + 0x30]
jmp 0x14000323a
movsxd rsi, r15d
mov rax, rsi
not rax
cmp rax, 0x10
jb 0x14000330a
lea rcx, [rsi + 0x10]
call fcn.14000d8dc
test rax, rax
jne 0x140003230
mov r15, rdi
jmp 0x14000323a
mov qword [rax], rdi
mov rbx, rax
lea r15, [rax + 0x10]
shr rsi, 1
test r15, r15
je 0x14000326e
mov word [r15], di
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r15
mov r9d, r14d
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, r15
jmp 0x140003271
mov rcx, rdi
test rcx, rcx
jne 0x140003292
jmp 0x140003283
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14000d7bc
test rbx, rbx
jne 0x140003278
mov eax, 0x8007000e
jmp 0x1400034ea
lea r9, [rbp]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test eax, eax
jns 0x1400032c0
jmp 0x1400032b4
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14000d7bc
test rbx, rbx
jne 0x1400032a9
mov eax, esi
jmp 0x1400034ea
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, qword [rbp + 0x18]
mov r15, qword [rbp + 0x20]
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x140003300
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14000d7bc
test rbx, rbx
jne 0x1400032f5
jmp 0x1400034c9
mov ecx, 0x80070216
call fcn.1400016ec
nop
lea rax, [rbp + 0x170]
mov rbx, r14
inc rbx
cmp byte [rax + rbx], dil
jne 0x14000331f
mov dword [rbp + 8], ebx
test bl, 1
je 0x14000333a
mov eax, 0x80004005
jmp 0x1400034ea
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
movsxd rsi, eax
mov dword [rbp], esi
mov qword [rbp + 0x60], rdi
mov rcx, rsi
test eax, eax
je 0x140003385
xor edx, edx
mov rax, r14
div rcx
cmp rax, 1
jae 0x14000336a
mov ecx, 0x80070216
call fcn.1400016ec
cmp rcx, 0x100
jbe 0x140003385
mov rdx, rcx
lea rcx, [rbp + 0x60]
call fcn.14000683c
mov rcx, qword [rbp + 0x60]
jmp 0x14000338d
lea rcx, [rbp + 0x68]
mov qword [rbp + 0x60], rcx
mov r15, qword [rbp + 0x20]
mov r12, qword [rbp + 0x18]
jmp 0x1400033b3
test rcx, rcx
jne 0x1400033d3
lea rax, [rbp + 0x68]
test rax, rax
je 0x140003330
lea rcx, [rbp + 0x60]
call fcn.140006834
jmp 0x140003330
movsxd r8, esi
xor edx, edx
call fcn.14000aad0
mov r8d, edi
movsxd r11, ebx
mov r9, rdi
test ebx, ebx
jle 0x140003450
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
movsxd r10, eax
add r10, qword [rbp + 0x60]
mov dl, byte [rbp + r9 + 0x170]
cmp dl, 0x30
jl 0x14000342b
cmp dl, 0x39
jle 0x140003426
cmp dl, 0x40
jle 0x14000342b
cmp dl, 0x46
jle 0x140003421
lea eax, [rdx - 0x61]
cmp al, 5
ja 0x14000342b
sub dl, 0x57
jmp 0x14000342e
sub dl, 0x37
jmp 0x14000342e
sub dl, 0x30
jmp 0x14000342e
mov dl, dil
mov ecx, r8d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl dl, cl
or byte [r10], dl
inc r8d
inc r9
cmp r9, r11
jl 0x1400033ea
mov dword [rsp + 0x28], esi
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea rax, [rbp + 0x68]
cmp qword [rbp + 0x60], rax
je 0x1400034c9
lea rcx, [rbp + 0x60]
call fcn.140006834
jmp 0x1400034c9
lea rax, [rbp + 0x170]
inc r14
cmp byte [rax + r14], dil
jne 0x140003490
inc r14d
mov dword [rsp + 0x28], r14d
lea rax, [rbp + 0x170]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x18]
mov r15, qword [rbp + 0x20]
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x1400034d6
mov ecx, esi
call fcn.1400017b4
jmp 0x1400034ea
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x10]
call fcn.140002ce4
test eax, eax
cmovs edi, eax
mov eax, edi
mov rcx, qword [rbp + 0x1170]
xor rcx, rbp
call fcn.140007b00
lea rsp, [rbp + 0x1188]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret