Function at 0x140001290
Capabilities:
Change the wallpaper
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rbx, rcx
xor r12d, r12d
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x20
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.1400029c0
nop
mov r8d, 0xe999
lea rdx, [0x1404fb100]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp - 0x58]
call fcn.140002e90
test rax, rax
jne 0x14000132b
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov r8d, 0x104
lea rdx, [rbp + 0x1b0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
lea rax, [rbp + 0x1b0]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140001360
lea rdx, [rbp + 0x1b0]
lea rcx, [rsp + 0x58]
call fcn.140003210
nop
lea rbx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x140001462
mov r15d, 0x100
mov r8d, r15d
xor edx, edx
lea rcx, [rbp + 0xb0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x140005534]
lea rdx, [0x140005538]
movzx eax, word [rcx]
cmp ax, r15w
jae 0x140001413
movzx eax, al
mov byte [rbp + rax + 0xb0], 1
add rcx, 2
cmp rcx, rdx
jne 0x1400013c1
lea rcx, [rdi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
movzx eax, word [r8]
cmp ax, r15w
jae 0x140001408
cmp byte [rbp + rax + 0xb0], 0
jne 0x14000145a
cmp r8, rbx
je 0x140001462
sub r8, 2
jmp 0x1400013f4
lea rcx, [rdi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
nop dword [rax]
mov ecx, 2
lea rax, [0x140005534]
movzx edx, word [r8]
cmp word [rax], dx
je 0x14000145a
add rax, 2
sub rcx, 1
jne 0x140001440
cmp r8, rbx
je 0x140001462
sub r8, 2
jmp 0x140001430
sub r8, rbx
sar r8, 1
jmp 0x140001469
mov r8, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.140003210
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x1400014de
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400014d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001594
call fcn.14000375c
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rsp + 0x68], xmm1
lea r8, str.image.jpg
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.140002f80
nop
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rcx, qword [rsp + 0x78]
call fcn.140001290
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova r8, qword [rsp + 0x78]
xor edx, edx
mov ecx, 0x14
mov r9d, 3
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x14000155c
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x1400015a0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000159b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000159b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000375c
movdqa xmm0, xmmword [0x140005e10]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r12w
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x1400015f8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000375c
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
lea rcx, [rbp - 0x60]
call fcn.140001640
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140003700
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rbp
ret