Function at 0x180007d10
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x12b8
call fcn.18017bc70
sub rsp, rax
lea rbp, [rsp + 0x30]
mov rax, qword [0x180243280]
xor rax, rbp
mov qword [rbp + 0x1270], rax
mov r15, r8
mov qword [rbp], r8
mov r13, rdx
mov r12, rcx
mov qword [rbp + 8], rcx
mov qword [rbp + 0x10], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x30], r9
lea rdx, [rbp + 0x270]
call fcn.180007b70
test eax, eax
js 0x1800083bd
lea rdx, str.SMDB
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x180007d8e
lea ebx, [rax + 8]
jmp 0x180007df0
lea rdx, [0x1801f8428]
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x180007dad
mov ebx, 0x4008
jmp 0x180007df0
lea rdx, [0x1801f842c]
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x180007dca
lea ebx, [rax + 0x13]
jmp 0x180007df0
lea rdx, [0x1801f8430]
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1800083b8
lea ebx, [rax + 0x11]
nop dword [rax]
mov rdx, qword [r12]
movsx ecx, byte [rdx]
sub ecx, 9
je 0x1800083a6
sub ecx, 1
je 0x1800083a6
sub ecx, 3
je 0x1800083a6
cmp ecx, 0x13
je 0x1800083a6
lea rdx, [rbp + 0x270]
mov rcx, r12
call fcn.180007b70
test eax, eax
js 0x1800083bd
cmp ebx, 8
je 0x18000834e
cmp ebx, 0x11
je 0x1800081b5
cmp ebx, 0x13
je 0x180008015
cmp ebx, 0x4008
jne 0x180007ffb
lea rax, [rbp + 0x270]
mov rsi, 0xffffffffffffffff
mov rbx, rsi
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180007e70
add ebx, 2
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x160]
call fcn.1801db010
xor edi, edi
mov qword [rbp + 0x160], rdi
movsxd rcx, ebx
test ebx, ebx
je 0x180007ed3
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 1
jb 0x1800083e0
cmp rcx, 0x100
jbe 0x180007ed3
mov rdx, rcx
lea rcx, [rbp + 0x160]
call fcn.180036f40
mov rbx, qword [rbp + 0x160]
jmp 0x180007ee1
lea rbx, [rbp + 0x168]
mov qword [rbp + 0x160], rbx
jmp 0x180007eff
test rbx, rbx
je 0x180007fd5
lea r14, [rbp + 0x270]
cmp byte [rbp + 0x270], 0
je 0x180007f74
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.USER32.dll_CharNextA]
movzx ecx, byte [r14]
cmp cl, 0x5c
jne 0x180007f48
cmp byte [rax], 0x30
jne 0x180007f48
mov byte [rbx], 0
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov r14, rax
jmp 0x180007f6b
mov byte [rbx], cl
movzx ecx, byte [r14]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x180007f68
inc rbx
inc r14
movzx eax, byte [r14]
test al, al
je 0x180007f74
mov byte [rbx], al
inc r14
inc rbx
cmp byte [r14], 0
jne 0x180007f20
mov word [rbx], 0
mov rbx, qword [rbp + 0x160]
test rbx, rbx
jne 0x180007f8a
lea esi, [rbx + 0xd]
jmp 0x180007fda
mov r9d, edi
mov r8, rbx
mov rcx, rsi
inc rcx
cmp byte [r8 + rcx], 0
jne 0x180007f93
inc ecx
mov eax, ecx
add r8, rax
add r9d, ecx
cmp ecx, 1
jne 0x180007f90
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 + 0x160]
jmp 0x180007fda
mov esi, reloc.WS2_32.dll_ntohl
lea rax, [rbp + 0x168]
cmp rbx, rax
je 0x180008395
lea rcx, [rbp + 0x160]
call fcn.180034950
jmp 0x180008395
xor edi, edi
mov rdx, qword [rbp + 0x30]
mov rcx, r12
call fcn.180007b70
test eax, eax
cmovs edi, eax
mov eax, edi
jmp 0x1800083bd
xor edi, edi
mov ebx, edi
mov qword [rbp + 0x48], rbx
lea rcx, [rbp + 0x270]
mov rsi, 0xffffffffffffffff
mov rax, rsi
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x180008030
inc eax
movsxd rcx, eax
add rcx, rcx
mov eax, 0x80000000
add rax, rcx
mov edx, 0xffffffff
cmp rax, rdx
ja 0x1800080fa
movsxd r14, ecx
mov r15, r14
shr r15, 1
cmp ecx, 0x400
jg 0x18000809a
mov rcx, r14
call fcn.180006c30
test al, al
je 0x18000809a
lea rax, [r14 + 0xf]
cmp rax, r14
ja 0x180008087
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.18017bc70
sub rsp, rax
lea r14, [rsp + 0x30]
jmp 0x1800080c2
mov rax, r14
not rax
cmp rax, 0x10
jb 0x1800083eb
lea rcx, [r14 + 0x10]
call fcn.1801bfe80
test rax, rax
je 0x1800080f6
mov qword [rax], rdi
mov rbx, rax
lea r14, [rax + 0x10]
test r14, r14
je 0x1800080f6
mov word [r14], di
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r14
mov r9d, esi
lea r8, [rbp + 0x270]
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
cmove r14, rdi
mov r15, qword [rbp]
jmp 0x1800080fd
mov r15, qword [rbp]
mov r14, rdi
test r14, r14
jne 0x18000812a
test rbx, rbx
je 0x180008120
nop word [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1801b2680
test rbx, rbx
jne 0x180008110
mov eax, 0x8007000e
jmp 0x1800083bd
lea r9, [rbp + 0x38]
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test eax, eax
jns 0x180008167
test rbx, rbx
je 0x180008160
nop word [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1801b2680
test rbx, rbx
jne 0x180008150
mov eax, esi
jmp 0x1800083bd
mov eax, dword [rbp + 0x38]
mov dword [rbp + 0x40], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x40]
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
test rbx, rbx
je 0x180008395
nop
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1801b2680
test rbx, rbx
jne 0x1800081a0
jmp 0x180008395
lea rax, [rbp + 0x270]
mov rsi, 0xffffffffffffffff
mov rbx, rsi
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800081c6
mov dword [rbp + 0x40], ebx
test bl, 1
jne 0x180008272
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
movsxd r15, eax
mov dword [rbp + 0x38], r15d
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x50]
call fcn.1801db010
xor edi, edi
mov qword [rbp + 0x50], rdi
mov r14, r15
mov qword [rbp + 0x48], r15
test r15d, r15d
je 0x180008239
xor edx, edx
mov rax, rsi
div r14
cmp rax, 1
jb 0x1800083f6
cmp r14, 0x100
jbe 0x180008239
mov rdx, r14
lea rcx, [rbp + 0x50]
call fcn.180036f40
mov rcx, qword [rbp + 0x50]
jmp 0x180008241
lea rcx, [rbp + 0x58]
mov qword [rbp + 0x50], rcx
mov rsi, qword [rbp]
jmp 0x180008264
test rcx, rcx
jne 0x18000827c
lea rcx, [rbp + 0x50]
call fcn.180034950
mov eax, 0x80004005
jmp 0x1800083bd
mov r8, r14
xor edx, edx
call fcn.1801db010
mov r9d, edi
movsxd r11, ebx
test ebx, ebx
jle 0x180008313
mov r10, rdi
lea rbx, [0x180000000]
nop
movsx r8d, byte [rbp + r10 + 0x270]
lea eax, [r8 - 0x30]
cmp eax, 0x36
ja case.0x1800082c6.51
cdqe
movzx eax, byte [rbx + rax + 0x8414]
mov ecx, dword [rbx + rax*4 + 0x8404]
add rcx, rbx
jmp rcx
sub r8b, 0x30
jmp 0x1800082dd
sub r8b, 0x37
jmp 0x1800082dd
sub r8b, 0x57
jmp 0x1800082dd
xor r8b, r8b
mov eax, r9d
test r9d, r9d
jns 0x1800082e9
lea eax, [r9 + 1]
sar eax, 1
movsxd rdx, eax
add rdx, qword [rbp + 0x50]
mov eax, r9d
and eax, 1
shl eax, 2
mov ecx, 4
sub ecx, eax
shl r8b, cl
or byte [rdx], r8b
inc r9d
inc r10
cmp r10, r11
jl 0x1800082a0
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 0x180008395
lea rcx, [rbp + 0x50]
call fcn.180034950
jmp 0x180008395
lea rax, [rbp + 0x270]
mov rsi, 0xffffffffffffffff
nop dword [rax]
inc rsi
cmp byte [rax + rsi], 0
jne 0x180008360
inc esi
mov dword [rsp + 0x28], esi
lea rax, [rbp + 0x270]
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
xor edi, edi
test esi, esi
je 0x180007ffd
mov ecx, esi
call fcn.180006d40
jmp 0x1800083bd
mov rcx, rdx
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [r12], rax
jmp 0x180007df0
mov eax, 0x80020009
mov rcx, qword [rbp + 0x1270]
xor rcx, rbp
call fcn.18017ae80
lea rsp, [rbp + 0x1288]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070216
call fcn.180001b00
nop
mov ecx, 0x80070216
call fcn.180001b00
nop
mov ecx, 0x80070216
call fcn.180001b00
int3