Function at 0x18000557c
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.18001a640
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x180029008]
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.180005414
xor edi, edi
test eax, eax
js 0x180005c21
mov ecx, dword [0x18002a178]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x18002cb40], ecx
jle 0x18000569c
lea rcx, [0x18002cb40]
call fcn.1800097a0
or r14, 0xffffffffffffffff
lea r12d, [rdi + 8]
mov esi, 0x4008
lea r13d, [rdi + 0x13]
lea r15d, [rdi + 0x11]
cmp dword [0x18002cb40], r14d
jne 0x1800056b1
lea rax, str.SMDB
mov qword [0x18002c6b0], rax
mov word [0x18002c6b8], r12w
lea rax, [0x180025424]
mov qword [0x18002c6c0], rax
mov word [0x18002c6c8], si
lea rax, [0x180025428]
mov qword [0x18002c6d0], rax
mov word [0x18002c6d8], r13w
lea rax, [0x18002542c]
mov qword [0x18002c6e0], rax
mov word [0x18002c6e8], r15w
lea rcx, [0x18002cb40]
call fcn.180009740
jmp 0x1800056b1
or r14, 0xffffffffffffffff
mov esi, 0x4008
lea r12d, [r14 + 9]
lea r13d, [r14 + 0x14]
lea r15d, [r14 + 0x12]
mov ebx, edi
lea rax, [0x18002c6b0]
mov qword [rbp + 8], rax
mov rdx, qword [rax]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1800056ef
inc ebx
mov rax, qword [rbp + 8]
add rax, 0x10
mov qword [rbp + 8], rax
cmp ebx, 4
jb 0x1800056be
mov eax, 0x80020009
jmp 0x180005c21
movsxd rax, ebx
add rax, rax
lea rcx, [0x18002c6b0]
movzx ebx, word [rcx + rax*8 + 8]
mov r8, qword [rbp + 0x10]
mov rcx, qword [r8]
cmp byte [rcx], 0x20
ja 0x180005730
movsx rax, byte [rcx]
movabs rdx, 0x100002600
bt rdx, rax
jae 0x180005730
call qword [sym.imp.USER32.dll_CharNextA]
mov r8, qword [rbp + 0x10]
mov qword [r8], rax
jmp 0x180005705
lea rdx, [rbp + 0x170]
mov rcx, r8
call fcn.180005414
test eax, eax
js 0x180005c21
movzx eax, bx
cmp eax, r12d
je 0x180005bc0
cmp eax, r15d
je 0x180005a4c
cmp eax, r13d
je 0x1800058cb
cmp eax, esi
jne 0x180005c0d
lea rcx, [rbp + 0x170]
mov rax, r14
inc rax
cmp byte [rcx + rax], dil
jne 0x180005777
add eax, 2
mov qword [rbp + 0x60], rdi
movsxd rcx, eax
test eax, eax
je 0x1800057c1
xor edx, edx
mov rax, r14
div rcx
cmp rax, 1
jae 0x1800057a6
mov ecx, 0x80070216
call fcn.180003e1c
cmp rcx, 0x100
jbe 0x1800057c1
mov rdx, rcx
lea rcx, [rbp + 0x60]
call fcn.180009360
mov rbx, qword [rbp + 0x60]
jmp 0x1800057c9
lea rbx, [rbp + 0x68]
mov qword [rbp + 0x60], rbx
mov r15, qword [rbp + 0x20]
mov r12, qword [rbp + 0x18]
jmp 0x1800057ed
test rbx, rbx
je 0x1800058ab
lea rsi, [rbp + 0x170]
cmp byte [rbp + 0x170], dil
je 0x180005853
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [rsi]
cmp cl, 0x5c
jne 0x18000582c
cmp byte [rax], 0x30
jne 0x18000582c
mov byte [rbx], dil
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rsi, rax
jmp 0x18000584b
mov byte [rbx], cl
mov cl, byte [rsi]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x180005848
inc rbx
inc rsi
mov al, byte [rsi]
test al, al
je 0x180005853
mov byte [rbx], al
inc rsi
inc rbx
cmp byte [rsi], dil
jne 0x180005806
and word [rbx], 0
mov rbx, qword [rbp + 0x60]
test rbx, rbx
jne 0x180005865
lea esi, [rbx + 0xd]
jmp 0x1800058b0
mov r9d, edi
mov r8, rbx
mov rcx, r14
inc rcx
cmp byte [r8 + rcx], dil
jne 0x18000586e
inc ecx
mov eax, ecx
add r8, rax
add r9d, ecx
cmp ecx, 1
jne 0x18000586b
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 0x1800058b0
mov esi, 0xe
lea rax, [rbp + 0x68]
cmp rbx, rax
je 0x180005c00
lea rcx, [rbp + 0x60]
call fcn.180009358
jmp 0x180005c00
mov rbx, rdi
mov qword [rbp + 0x30], rbx
lea rcx, [rbp + 0x170]
mov rax, r14
inc rax
cmp byte [rcx + rax], dil
jne 0x1800058dc
inc eax
movsxd r15, eax
add r15, r15
mov eax, 0x80000000
add rax, r15
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x1800059a5
cmp r15d, 0x400
jg 0x180005941
movsxd rsi, r15d
mov rcx, rsi
call fcn.180003ce4
test al, al
je 0x180005941
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x18000592e
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.18001a640
sub rsp, rax
lea r15, [rsp + 0x30]
jmp 0x180005971
movsxd rsi, r15d
mov rax, rsi
not rax
cmp rax, 0x10
jb 0x180005a41
lea rcx, [rsi + 0x10]
call fcn.18000f7ac
test rax, rax
jne 0x180005967
mov r15, rdi
jmp 0x180005971
mov qword [rax], rdi
mov rbx, rax
lea r15, [rax + 0x10]
shr rsi, 1
test r15, r15
je 0x1800059a5
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 0x1800059a8
mov rcx, rdi
test rcx, rcx
jne 0x1800059c9
jmp 0x1800059ba
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.18000f68c
test rbx, rbx
jne 0x1800059af
mov eax, 0x8007000e
jmp 0x180005c21
lea r9, [rbp]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test eax, eax
jns 0x1800059f7
jmp 0x1800059eb
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.18000f68c
test rbx, rbx
jne 0x1800059e0
mov eax, esi
jmp 0x180005c21
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 0x180005a37
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.18000f68c
test rbx, rbx
jne 0x180005a2c
jmp 0x180005c00
mov ecx, 0x80070216
call fcn.180003e1c
nop
lea rax, [rbp + 0x170]
mov rbx, r14
inc rbx
cmp byte [rax + rbx], dil
jne 0x180005a56
mov dword [rbp + 8], ebx
test bl, 1
je 0x180005a71
mov eax, 0x80004005
jmp 0x180005c21
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 0x180005abc
xor edx, edx
mov rax, r14
div rcx
cmp rax, 1
jae 0x180005aa1
mov ecx, 0x80070216
call fcn.180003e1c
cmp rcx, 0x100
jbe 0x180005abc
mov rdx, rcx
lea rcx, [rbp + 0x60]
call fcn.180009360
mov rcx, qword [rbp + 0x60]
jmp 0x180005ac4
lea rcx, [rbp + 0x68]
mov qword [rbp + 0x60], rcx
mov r15, qword [rbp + 0x20]
mov r12, qword [rbp + 0x18]
jmp 0x180005aea
test rcx, rcx
jne 0x180005b0a
lea rax, [rbp + 0x68]
test rax, rax
je 0x180005a67
lea rcx, [rbp + 0x60]
call fcn.180009358
jmp 0x180005a67
movsxd r8, esi
xor edx, edx
call fcn.18000c910
mov r8d, edi
movsxd r11, ebx
mov r9, rdi
test ebx, ebx
jle 0x180005b87
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 0x180005b62
cmp dl, 0x39
jle 0x180005b5d
cmp dl, 0x40
jle 0x180005b62
cmp dl, 0x46
jle 0x180005b58
lea eax, [rdx - 0x61]
cmp al, 5
ja 0x180005b62
sub dl, 0x57
jmp 0x180005b65
sub dl, 0x37
jmp 0x180005b65
sub dl, 0x30
jmp 0x180005b65
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 0x180005b21
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 0x180005c00
lea rcx, [rbp + 0x60]
call fcn.180009358
jmp 0x180005c00
lea rax, [rbp + 0x170]
inc r14
cmp byte [rax + r14], dil
jne 0x180005bc7
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 0x180005c0d
mov ecx, esi
call fcn.180003ee4
jmp 0x180005c21
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x10]
call fcn.180005414
test eax, eax
cmovs edi, eax
mov eax, edi
mov rcx, qword [rbp + 0x1170]
xor rcx, rbp
call fcn.1800095a0
lea rsp, [rbp + 0x1188]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret