Function at 0x180041de0
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 [0x1801548a8]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
lea rcx, [rsp + 0x58]
call fcn.180077500
nop
mov edi, 1
mov edx, edi
lea rcx, [rsp + 0x58]
call fcn.18007c7e0
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x78]
call fcn.18005dc30
test al, al
je 0x1800420f7
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.180042140
mov ebx, eax
test eax, eax
js 0x1800420eb
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 0x1800420eb
xor r9d, r9d
lea r8, str.desk_band_name
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.180078ca0
nop
cmp qword [rsp + 0x78], rsi
jne 0x180041f08
lea r8d, [rdi + 0xe]
lea rdx, str.DeskBandToolset
lea rcx, [rsp + 0x68]
call fcn.18001b400
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 0x180041f25
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 0x180041fb2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180041fad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004212b
call fcn.1800965cc
test ebx, ebx
js 0x1800420eb
lea r9, [rbp + 0x1b0]
lea r8, str.CLSID_sInprocServer32
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.180042140
mov ebx, eax
test eax, eax
js 0x1800420eb
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 0x180042026
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x1800420eb
mov r8d, 0x104
lea rdx, [rbp + 0x3c0]
mov rcx, qword [0x180163780]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x18004208d
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 0x18004208d
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x1800420e0
movups xmm0, xmmword [str.Apartment]
movups xmmword [rsp + 0x68], xmm0
mov eax, dword [0x180106fa8]
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 0x1800420e0
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x58]
call fcn.18007ee80
mov edi, ebx
lea rcx, [rsp + 0x58]
call fcn.1800776b0
mov eax, edi
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.180096b80
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.1800c9338
nop
int3