Function at 0x18003b080
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5e8]
sub rsp, 0x6e0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x180146748]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
lea rcx, [rsp + 0x58]
call fcn.180070600
nop
mov edi, 1
mov edx, edi
lea rcx, [rsp + 0x58]
call fcn.180074e20
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x78]
call fcn.180057340
test al, al
je 0x18003b397
mov r8d, 0x104
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp - 0x78]
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r9, [rbp + 0x1b0]
lea r8, str.CLSID_s
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.18003b3e0
mov ebx, eax
test eax, eax
js 0x18003b38b
mov ebx, 0x80004005
xor esi, esi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x18003b38b
xor r9d, r9d
lea r8, str.desk_band_name
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.180071260
nop
cmp qword [rsp + 0x78], rsi
jne 0x18003b1a8
lea r8d, [rdi + 0xe]
lea rdx, str.DeskBandToolset
lea rcx, [rsp + 0x68]
call fcn.18001b240
lea rcx, [rsp + 0x68]
mov rdx, qword [rsp + 0x68]
mov r8, qword [rbp - 0x80]
cmp r8, 8
cmovae rcx, rdx
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x18003b1c5
lea eax, [rax*2 + 2]
lea rcx, [rsp + 0x68]
cmp r8, 8
cmovae rcx, rdx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, edi
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmove ebx, esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x18003b252
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003b24d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003b3cb
call fcn.18008c16c
test ebx, ebx
js 0x18003b38b
lea r9, [rbp + 0x1b0]
lea r8, str.CLSID_sInprocServer32
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.18003b3e0
mov ebx, eax
test eax, eax
js 0x18003b38b
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jle 0x18003b2c6
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x18003b38b
mov r8d, 0x104
lea rdx, [rbp + 0x3c0]
mov rcx, qword [0x180155660]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x18003b32d
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x3c0]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jle 0x18003b32d
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x18003b380
movups xmm0, xmmword [str.Apartment]
movups xmmword [rsp + 0x68], xmm0
mov eax, dword [0x1800fb6c8]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x28], 0x14
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
lea rdx, str.ThreadingModel
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jle 0x18003b380
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x58]
call fcn.180077130
mov edi, ebx
lea rcx, [rsp + 0x58]
call fcn.1800707b0
mov eax, edi
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.18008c720
lea r11, [rsp + 0x6e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1800beee8
nop
int3